/* —— Shared plan picker (variable products) —— */
.single-product .tb-buy-shell .tb-buy-kicker {
  display: none;
}

.single-product .tb-pick {
  display: grid;
  gap: 0.95rem;
  margin: 0 0 0.35rem;
}

.single-product .tb-pick-label {
  margin: 0 0 0.45rem;
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--tb-deep, #2a1248);
}

.single-product .tb-pick-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.single-product .tb-pick-chip {
  appearance: none;
  border: 1px solid rgba(196, 170, 236, 0.7);
  background: linear-gradient(180deg, #fff, #faf7ff);
  color: var(--tb-deep, #2a1248);
  border-radius: 999px;
  min-height: 2.45rem;
  padding: 0.45rem 1rem;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 750;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(74, 34, 130, 0.05);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.single-product .tb-pick-chip:hover {
  border-color: rgba(124, 58, 237, 0.55);
  transform: translateY(-1px);
}

.single-product .tb-pick-chip.is-selected {
  border-color: transparent;
  color: #fff;
  background: var(--tb-gradient, linear-gradient(115deg, #7c3aed 0%, #6366f1 52%, #e879f9 100%));
  box-shadow: 0 12px 24px rgba(124, 58, 237, 0.28);
}

.single-product .tb-pick-chip:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(167, 139, 250, 0.35);
}

/* Hide native WC variation table + legacy plan grids */
.single-product .tb-buy-shell table.variations,
.single-product .tb-buy-shell .tb-plan-grid,
.single-product .tb-buy-shell .tb-spec,
.single-product form.variations_form > table.variations {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.single-product .tb-buy-shell .woocommerce-variation.single_variation {
  min-height: 0;
}
.single-product .tb-buy-shell .woocommerce-variation-description,
.single-product .tb-buy-shell .woocommerce-variation-availability,
.single-product .tb-buy-shell .woocommerce-variation .price {
  display: none !important;
}

/* Result card — only after selection */
.single-product .tb-pick-result {
  display: none;
  margin-top: 0.85rem;
}
.single-product .tb-pick-result.is-visible,
.single-product .tb-pick-result:not([hidden]) {
  display: block;
  animation: tb-pick-in 0.34s ease both;
}

@keyframes tb-pick-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .single-product .tb-pick-result.is-visible,
  .single-product .tb-pick-result:not([hidden]),
  .single-product .tb-pick-chip {
    animation: none;
    transition: none;
  }
}

.single-product .tb-pick-result-card {
  display: grid;
  gap: 0.45rem;
  padding: 1.05rem 1.1rem 1.15rem;
  border-radius: 20px;
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.96), rgba(247, 241, 255, 0.9));
  border: 1px solid rgba(196, 170, 236, 0.55);
  box-shadow:
    0 16px 34px rgba(74, 34, 130, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px) saturate(1.12);
  -webkit-backdrop-filter: blur(16px) saturate(1.12);
}

.single-product .tb-pick-result-title {
  margin: 0;
  font-size: 1.08rem;
  font-weight: 850;
  color: var(--tb-deep, #2a1248);
  line-height: 1.45;
}

.single-product .tb-pick-result-duration {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--tb-blue, #7c3aed);
}

.single-product .tb-pick-result-price {
  margin: 0.15rem 0 0.35rem;
  color: var(--tb-deep, #2a1248);
  font-size: 1.35rem;
  font-weight: 850;
  line-height: 1.35;
}
.single-product .tb-pick-result-price .amount,
.single-product .tb-pick-result-price .woocommerce-Price-amount {
  font-weight: 850;
  color: inherit;
}
.single-product .tb-pick-result-price del {
  display: none;
}

.single-product .tb-pick-result-note {
  margin: 0 0 0.35rem;
  padding: 0.55rem 0.7rem;
  border-radius: 12px;
  background: rgba(254, 242, 242, 0.92);
  border: 1px solid rgba(252, 165, 165, 0.45);
  color: #b91c1c;
  font-size: 0.82rem;
  font-weight: 650;
  line-height: 1.45;
}

.single-product .tb-pick-result-actions {
  margin-top: 0.25rem;
}
.single-product .tb-pick-result-actions .quantity {
  display: none;
}
.single-product .tb-buy-shell:not(.is-picked) .single_variation_wrap {
  display: none !important;
}
.woocommerce .tb-pick-result-actions button.single_add_to_cart_button.button,
.woocommerce .tb-pick-result-actions .single_add_to_cart_button {
  width: 100%;
  min-height: 3.1rem;
  margin: 0;
  border-radius: 16px !important;
  font-weight: 800 !important;
  background: var(--tb-gradient) !important;
  color: #fff !important;
  border: 0 !important;
  box-shadow: 0 14px 28px rgba(124, 58, 237, 0.28) !important;
}

@media (max-width: 47.99rem) {
  .single-product .tb-pick-chips {
    gap: 0.4rem;
  }
  .single-product .tb-pick-chip {
    min-height: 2.35rem;
    padding: 0.4rem 0.85rem;
    font-size: 0.88rem;
  }
  .single-product .tb-pick-result-card {
    padding: 0.95rem 1rem 1.05rem;
    border-radius: 18px;
  }
  .single-product .tb-pick-result-price {
    font-size: 1.2rem;
  }
}

/* Ensure ATC is solid once a priced variation is selected */
.woocommerce .tb-pick-result-actions .woocommerce-variation-add-to-cart-enabled .single_add_to_cart_button,
.woocommerce .tb-pick-result-actions .single_add_to_cart_button:not(.disabled):not(:disabled) {
  opacity: 1 !important;
  pointer-events: auto !important;
  filter: none !important;
}
.woocommerce .tb-pick-result-actions .woocommerce-variation-add-to-cart-disabled .single_add_to_cart_button {
  opacity: 0.55;
}


.single-product .tb-pick-result-card,
.single-product .tb-pick-result-card * {
  opacity: 1;
}
.single-product .tb-pick-result-title {
  color: #2a1248 !important;
}
.single-product .tb-pick-result-duration {
  color: #7c3aed !important;
}
.single-product .tb-pick-result-price,
.single-product .tb-pick-result-price .amount,
.single-product .tb-pick-result-price .woocommerce-Price-amount,
.single-product .tb-pick-result-price bdi {
  color: #2a1248 !important;
  opacity: 1 !important;
}
