/* Calda Calda purchase choice cards - inherits the site's typography and brand colours. */
.twc-vsl {
  --twc-vsl-accent: #005a42;
  --twc-vsl-soft: rgba(0, 90, 66, .07);
  margin: 1rem 0;
}
.twc-vsl[hidden],
.twc-vsl-clubs[hidden],
.twc-vsl-club[hidden] { display: none !important; }

.twc-vsl-choice {
  border: 0;
  padding: 0;
  margin: 0 0 1.25rem;
  min-width: 0;
}
.twc-vsl-choice legend {
  font-weight: 700;
  font-size: 1.05em;
  margin-bottom: .65rem;
  padding: 0;
}
.twc-vsl-choice-card {
  display: flex;
  gap: .85rem;
  align-items: center;
  width: 100%;
  min-width: 0;
  padding: 1rem 1.1rem;
  margin: 0 0 .65rem;
  border: none !important;
  border-radius: .55rem;
  background: rgba(255, 255, 255, .47);
  box-shadow: none;
  color: inherit;
  cursor: pointer;
  transition: background-color .15s ease, box-shadow .15s ease;
}
.twc-vsl-choice-card:hover { background: var(--twc-vsl-soft); }
.twc-vsl-choice-card.is-selected {
  background: var(--twc-vsl-soft);
  box-shadow: inset 0 0 0 2px var(--twc-vsl-accent);
}
.twc-vsl-choice-card:focus-within {
  outline: 2px solid var(--twc-vsl-accent);
  outline-offset: 2px;
}
.twc-vsl-choice-card input[type="radio"] {
  flex: 0 0 1.15rem;
  width: 1.15rem;
  height: 1.15rem;
  accent-color: var(--twc-vsl-accent);
  margin: 0;
}
.twc-vsl-choice-copy { display: flex; flex: 1 1 auto; flex-direction: column; gap: .2rem; min-width: 0; }
.twc-vsl-choice-copy strong { font-weight: 700; line-height: 1.2; }
.twc-vsl-choice-copy small { font-size: .82em; line-height: 1.4; opacity: .8; }
.twc-vsl-choice-price {
  display: block;
  flex: 0 1 42%;
  min-width: 0;
  text-align: right;
  font-weight: 700;
  color: var(--twc-vsl-accent);
  line-height: 1.35;
}
.twc-vsl-choice-price del { opacity: .6; }
.twc-vsl-choice-price ins { text-decoration: none; }

.twc-vsl-club {
  padding: .4rem 0 0;
  border: 0 !important;
  border-radius: 0;
  background: none;
  box-shadow: none !important;
}
.twc-vsl-club h3 { margin-top: 0; }

/* Frequency pills. Keep WooCommerce's native radio fields and event handling,
   but hide the circles and theme-generated indicators. Do not use :has() or
   Elementor's editor-only "selector" prefix in a plugin stylesheet. */
.twc-vsl-club form.cart input[type="radio"] {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  pointer-events: none !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
}
.twc-vsl-club form.cart label::before,
.twc-vsl-club form.cart label::after,
.twc-vsl-club .wcsatt-options-product span::before,
.twc-vsl-club .wcsatt-options-product span::after {
  display: none !important;
  content: none !important;
}
.twc-vsl-club .wcsatt-options-product li,
.twc-vsl-club .wcsatt-options-product li label {
  border-color: transparent !important;
  box-shadow: none !important;
}
.twc-vsl-club .wcsatt-options-product li label {
  border-radius: 999px !important;
  background: rgba(255, 255, 255, .55);
  padding: 14px 22px !important;
  padding-left: 22px !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-height: 56px;
}
/* JS sets the selected state on the containing label or li. */
.twc-vsl-club form.cart label.twc-selected-plan,
.twc-vsl-club form.cart li.twc-selected-plan {
  outline: 3px solid #005a42 !important;
  outline-offset: -3px;
  border-radius: 999px !important;
}
.twc-vsl-club .wcsatt-options-product label:focus-within {
  outline: 2px solid #005a42;
  outline-offset: 2px;
}

/* Keep the native Club quantity input in the form, but never display an
   editable field. PHP locks its permitted minimum and maximum to one. */
.twc-vsl-club > form.cart > .quantity { display: none !important; }

/* Existing variable product add-to-cart remains available for one-time mode. */
/* Keep the choice visible above the button when Club is selected, but
   suppress the ordinary product price and Add to Cart controls. */
.variations_form.twc-vsl-sub-mode .woocommerce-variation.single_variation,
.variations_form.twc-vsl-sub-mode .woocommerce-variation-add-to-cart {
  display: none !important;
}
.twc-vsl-before-button-choice { margin: 1rem 0; }
.twc-vsl-before-button-choice[hidden] { display: none !important; }

@media (max-width: 600px) {
  .twc-vsl-choice-card { padding: .85rem; gap: .65rem; flex-wrap: wrap; }
  .twc-vsl-choice-price { flex-basis: 100%; text-align: left; padding-left: 1.8rem; }
}
