

.gmg-bundle-wrapper {
  
  --bndl-accent: var(--gmg-main-secondary, #00f2fe);
  --bndl-accent-2: var(--gmg-main-primary, #a855f7);
  --bndl-success: var(--gmg-main-success, #4ade80);
  --bndl-danger: var(--gmg-main-danger, #f87171);
  --bndl-text: var(--gmg-main-text, #ffffff);
  --bndl-sub: var(--gmg-main-muted, #94a3b8);
  --bndl-faint: color-mix(in srgb, var(--bndl-sub) 65%, transparent);
  --bndl-surface: color-mix(in srgb, var(--gmg-main-surface, #0f172a) 75%, transparent);
  --bndl-line: color-mix(in srgb, var(--bndl-text) 8%, transparent);
  --bndl-tile: color-mix(in srgb, var(--bndl-text) 2.5%, transparent);
  --bndl-tile-line: color-mix(in srgb, var(--bndl-text) 6%, transparent);
  --bndl-shadow: color-mix(in srgb, var(--gmg-main-bg, #000000) 60%, transparent);
  --bndl-on-accent: #0b0f19;

  font-family: inherit;
  width: 100%;
}


.bundle-builder-card {
  background: var(--bndl-surface);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--bndl-line);
  border-radius: 24px;
  padding: 2.5rem 2rem;
  box-shadow: 0 25px 50px -12px var(--bndl-shadow);
  position: relative;
  overflow: hidden;
}

.bundle-builder-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 20%;
  right: 20%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--bndl-accent), transparent);
}


.section-header-box {
  margin-bottom: 2rem;
}

.sub-header {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--bndl-accent);
  display: block;
  margin-bottom: 0.5rem;
}

.main-header-title {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--bndl-text);
  margin: 0;
}


.bundle-items-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.bundle-operator-plus {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--bndl-tile);
  border: 1px solid var(--bndl-tile-line);
  color: var(--bndl-sub);
  flex-shrink: 0;
}

.bundle-item-checkbox {
  position: relative;
  cursor: pointer;
  flex: 1;
  min-width: 170px;
  max-width: 230px;
  user-select: none;
}

.bundle-item-checkbox input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}


.bundle-item-checkbox:focus-within .item-glass-tile {
  outline: 2px solid var(--bndl-accent);
  outline-offset: 3px;
}

.item-glass-tile {
  background: var(--bndl-tile);
  border: 1px solid var(--bndl-tile-line);
  border-radius: 18px;
  padding: 1.4rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.item-check-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: color-mix(in srgb, var(--bndl-text) 8%, transparent);
  border: 1px solid color-mix(in srgb, var(--bndl-text) 15%, transparent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: transparent;
  transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.bundle-item-checkbox.is-active .item-glass-tile {
  background: color-mix(in srgb, var(--bndl-accent) 4%, transparent);
  border-color: color-mix(in srgb, var(--bndl-accent) 40%, transparent);
  box-shadow: 0 10px 25px -5px color-mix(in srgb, var(--bndl-accent) 15%, transparent);
  transform: translateY(-4px);
}

.bundle-item-checkbox.is-active .item-check-badge {
  background: var(--bndl-accent);
  border-color: var(--bndl-accent);
  color: var(--bndl-on-accent);
}

.item-thumb-wrapper {
  width: 90px;
  height: 90px;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.item-thumb-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 5px 12px rgba(0, 0, 0, 0.5));
}

.b-title {
  color: var(--bndl-text);
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
}

.b-price {
  color: var(--bndl-sub);
  font-size: 0.9rem;
  font-weight: 600;
}


.bundle-summary-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding-top: 1.8rem;
  border-top: 1px solid var(--bndl-line);
}

.calc-label-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.4rem;
}

.calc-label {
  font-size: 0.9rem;
  color: var(--bndl-sub);
}

.badge-discount-rate {
  background: color-mix(in srgb, var(--bndl-accent-2) 15%, transparent);
  color: var(--bndl-accent-2);
  border: 1px solid color-mix(in srgb, var(--bndl-accent-2) 30%, transparent);
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.15rem 0.5rem;
  border-radius: 6px;
}

.calc-pricing-box {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
}

.calc-orig-price del {
  color: var(--bndl-faint);
  font-size: 1rem;
}

.calc-total {
  font-size: 1.75rem;
  font-weight: 900;
  color: var(--bndl-text);
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
}

.calc-total small {
  font-size: 0.9rem;
  color: var(--bndl-accent);
  font-weight: 600;
}


.bundle-action-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.btn-cyber-action {
  background: linear-gradient(135deg, var(--bndl-accent), color-mix(in srgb, var(--bndl-accent) 55%, var(--bndl-accent-2)));
  color: var(--bndl-on-accent);
  font-weight: 800;
  font-size: 1rem;
  padding: 0.85rem 1.8rem;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  box-shadow: 0 10px 25px -6px color-mix(in srgb, var(--bndl-accent) 40%, transparent);
  transition: transform 0.3s ease, box-shadow 0.3s ease, filter 0.3s ease, opacity 0.3s ease;
}

.btn-cyber-action:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 15px 30px -6px color-mix(in srgb, var(--bndl-accent) 60%, transparent);
  filter: brightness(1.1);
}

.btn-cyber-action:focus-visible {
  outline: 2px solid var(--bndl-accent);
  outline-offset: 3px;
}

.btn-cyber-action:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  box-shadow: none;
}

.bundle-status-msg {
  font-size: 0.82rem;
}

.bundle-status-msg.success {
  color: var(--bndl-success);
}

.bundle-status-msg.error {
  color: var(--bndl-danger);
}


@media (max-width: 768px) {
  .bundle-items-row {
    flex-direction: column;
    gap: 0.8rem;
  }

  .bundle-item-checkbox {
    max-width: 100%;
    width: 100%;
  }

  .bundle-operator-plus {
    transform: rotate(90deg);
  }

  .bundle-summary-footer {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .bundle-action-col {
    align-items: stretch;
  }

  .btn-cyber-action {
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .item-glass-tile,
  .item-check-badge,
  .btn-cyber-action {
    transition: none;
  }

  .bundle-item-checkbox.is-active .item-glass-tile,
  .btn-cyber-action:hover:not(:disabled) {
    transform: none;
  }
}
