:root {
  --wcbc-accent: #894b9d;
  --wcbc-accent-text: #ffffff;
  --wcbc-active-bg: rgba(21,128,61,.08);
  --wcbc-border: rgba(0,0,0,.12);
  --wcbc-badge-bg: rgba(21,128,61,.92);
  --wcbc-badge-text: #ffffff;
  --wcbc-radius: 16px;
  --wcbc-title-size: 17px;
  --wcbc-shadow: 0 10px 26px rgba(0,0,0,.06);
  --wcbc-text: #1e293b;
}

.wcbc-offers,
.chb-offers {
  margin: 14px 0;
}

.wcbc-offers__title,
.chb-offers__title {
  font-weight: 800;
  font-size: var(--wcbc-title-size);
  margin: 0 0 10px;
  color: var(--wcbc-text);
}

.wcbc-offers__grid,
.chb-offers__grid {
  display: grid;
  gap: 10px;
}

.wcbc-offer,
.chb-offer {
  width: 100%;
  text-align: left;
  border: 2px solid var(--wcbc-border);
  background: #fff;
  border-radius: var(--wcbc-radius);
  padding: 14px;
  cursor: pointer;
  transition: transform .12s ease, border-color .12s ease, box-shadow .12s ease, background-color .12s ease;
}

.wcbc-offer[role=\"radio\"],
.chb-offer[role=\"radio\"] {
  cursor: pointer;
}

.wcbc-offer:hover,
.chb-offer:hover {
  transform: translateY(-1px);
  box-shadow: var(--wcbc-shadow);
}

.wcbc-offer.is-active,
.chb-offer.is-active {
  border-color: var(--wcbc-accent);
  background: var(--wcbc-active-bg);
}

.wcbc-offer__top,
.chb-offer__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.wcbc-offer__name,
.chb-offer__name {
  font-weight: 900;
  font-size: 18px;
  line-height: 1.2;
  color: var(--wcbc-text);
}

.wcbc-offer__pill,
.chb-offer__pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border-radius: 999px;
  font-weight: 900;
  font-size: 12px;
  line-height: 1;
  white-space: nowrap;
  background: var(--wcbc-badge-bg);
  color: var(--wcbc-badge-text);
}

.wcbc-offer__price,
.chb-offer__price {
  display: flex;
  align-items: baseline;
  gap: 10px;
  color: rgba(30,41,59,.92);
  font-size: 15px;
}

.wcbc-offer__each,
.chb-offer__each {
  font-weight: 900;
}

.wcbc-offer__total,
.chb-offer__total {
  color: rgba(30,41,59,.70);
  font-weight: 700;
}

.wcbc-offer__save {
  margin-top: 8px;
  font-size: 13px;
  color: rgba(30,41,59,.76);
  font-weight: 700;
}

.wcbc-offer__note,
.chb-offer__note {
  margin-top: 8px;
  font-size: 12px;
  color: rgba(30,41,59,.65);
}

/* Optional bundle card selectors */
.wcbc-bundle,
.chb-bundle {
  display: none;
  gap: 10px;
  margin-top: 12px;
}

.wcbc-offers.is-bundle-mode .wcbc-bundle,
.chb-offers.is-bundle-mode .chb-bundle {
  display: grid;
}

.wcbc-bundle__row,
.chb-bundle__row {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 10px;
  align-items: center;
}

.wcbc-bundle__index,
.chb-bundle__index {
  font-weight: 950;
  font-size: 28px;
  line-height: 1;
  color: var(--wcbc-accent);
}

.wcbc-bundle__fields,
.chb-bundle__fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.wcbc-bundle__select,
.chb-bundle__select {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1.5px solid var(--wcbc-border);
  background: #fff;
  color: var(--wcbc-text);
  font-weight: 700;
  font-size: 15px;
}

.wcbc-bundle__row.is-invalid .wcbc-bundle__index,
.chb-bundle__row.is-invalid .chb-bundle__index {
  color: #b91c1c;
}

.wcbc-bundle__select.is-invalid,
.chb-bundle__select.is-invalid {
  border-color: rgba(185,28,28,.85);
  background: rgba(185,28,28,.04);
}

form.cart.wcbc-offer-mode-bundle .variations,
form.cart.chb-offer-mode-bundle .variations {
  display: none !important;
}

form.cart.wcbc-offer-mode-single .variations,
form.cart.chb-offer-mode-single .variations {
  display: table !important;
}

/* Compare table */
.wcbc-compare,
.chb-compare {
  margin: 18px 0 10px;
  border: 1px solid var(--wcbc-border);
  border-radius: var(--wcbc-radius);
  background: #fff;
  box-shadow: var(--wcbc-shadow);
  overflow: hidden;
}

.wcbc-compare__head,
.chb-compare__head {
  padding: 14px 16px 10px;
  background: linear-gradient(90deg, rgba(137, 75, 157, .08), rgba(255, 255, 255, 1));
  border-bottom: 1px solid var(--wcbc-border);
}

.wcbc-compare__title,
.chb-compare__title {
  margin: 6px 0 0;
  font-weight: 950;
  font-size: 18px;
  color: var(--wcbc-text);
}

.wcbc-compare__row,
.chb-compare__row {
  display: grid;
  grid-template-columns: 1.05fr 1fr 1fr;
  border-top: 1px solid var(--wcbc-border);
}

.wcbc-compare__cell,
.chb-compare__cell {
  padding: 12px 14px;
  font-size: 14px;
  line-height: 1.35;
  color: rgba(30,41,59,.88);
}

.wcbc-compare__cell--feat,
.chb-compare__cell--feat {
  font-weight: 900;
  background: rgba(0,0,0,.015);
}

/* FAQ */
.wcbc-faq,
.chb-faq {
  margin: 18px 0 14px;
  border: 1px solid var(--wcbc-border);
  border-radius: var(--wcbc-radius);
  background: #fff;
  box-shadow: var(--wcbc-shadow);
  overflow: hidden;
}

.wcbc-faq__head,
.chb-faq__head {
  padding: 14px 16px 12px;
  background: linear-gradient(90deg, rgba(137, 75, 157, .08), rgba(255, 255, 255, 1));
  border-bottom: 1px solid var(--wcbc-border);
}

.wcbc-faq__title,
.chb-faq__title {
  margin: 6px 0;
  font-weight: 950;
  font-size: 18px;
  color: var(--wcbc-text);
}

.wcbc-faq__item,
.chb-faq__item {
  border-top: 1px solid var(--wcbc-border);
}

.wcbc-faq__q,
.chb-faq__q {
  list-style: none !important;
  position: relative;
  cursor: pointer;
  padding: 14px 56px 14px 16px;
  font-weight: 900;
  font-size: 15px;
  color: var(--wcbc-text);
}

.wcbc-faq__q::marker,
.chb-faq__q::marker,
.wcbc-faq__q::-webkit-details-marker,
.chb-faq__q::-webkit-details-marker {
  display: none !important;
  content: '' !important;
}

.wcbc-faq__q::after,
.chb-faq__q::after {
  content: '+';
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 900;
  background: rgba(0,0,0,.04);
  color: rgba(30,41,59,.75);
}

.wcbc-faq__item[open] > .wcbc-faq__q::after,
.chb-faq__item[open] > .chb-faq__q::after {
  content: '−';
}

.wcbc-faq__a,
.chb-faq__a {
  padding: 0 16px 14px;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(30,41,59,.80);
}

/* Reviews */
.wcbc-reviews,
.chb-reviews {
  margin: 18px 0 14px;
  border: 1px solid var(--wcbc-border);
  border-radius: var(--wcbc-radius);
  background: #fff;
  box-shadow: var(--wcbc-shadow);
  overflow: hidden;
}

.wcbc-reviews__head,
.chb-reviews__head {
  padding: 14px 16px 12px;
  background: linear-gradient(90deg, rgba(137, 75, 157, .08), rgba(255, 255, 255, 1));
  border-bottom: 1px solid var(--wcbc-border);
}

.wcbc-reviews__title,
.chb-reviews__title {
  margin: 6px 0;
  font-weight: 950;
  font-size: 18px;
  color: var(--wcbc-text);
}

.wcbc-reviews__grid,
.chb-reviews__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 14px;
}

.wcbc-review,
.chb-review {
  border: 1px solid var(--wcbc-border);
  border-radius: 16px;
  background: #fff;
  padding: 14px;
  box-shadow: 0 8px 18px rgba(0,0,0,.04);
}

/* Floating CTA */
.wcbc-fcta,
.chb-fcta {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 9999;
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
}

.wcbc-fcta.is-visible,
.chb-fcta.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Cart: strikethrough original price for discounted bundle items */
.wcbc-cart-orig-price {
  color: rgba(30,41,59,.45) !important;
  font-weight: 400 !important;
  text-decoration: line-through !important;
}
.wcbc-cart-orig-price {
  font-size: 14px !important;
  line-height: 18px !important;
}

.wcbc-cart-free-price,
.wcbc-cart-new-price {
  text-decoration: none !important;
}

.wcbc-cart-free-price b,
.wcbc-cart-free-price .woocommerce-Price-amount,
.wcbc-cart-free-price .woocommerce-Price-currencySymbol,
.wcbc-cart-new-price b,
.wcbc-cart-new-price .woocommerce-Price-amount,
.wcbc-cart-new-price .woocommerce-Price-currencySymbol {
  font-weight: inherit !important;
  color: inherit !important;
  text-decoration: none !important;
}

@media (max-width: 780px) {
  .wcbc-reviews__grid,
  .chb-reviews__grid {
    grid-template-columns: 1fr;
  }

  .wcbc-compare__row,
  .chb-compare__row {
    grid-template-columns: 1fr;
  }

  .wcbc-bundle__row,
  .chb-bundle__row {
    grid-template-columns: 44px 1fr;
  }

  .wcbc-bundle__fields,
  .chb-bundle__fields {
    grid-template-columns: 1fr;
  }
}
