/* ===========================
   SUBSCRIPTION BUTTON UI
   =========================== */

/* Group container (card look) — works for both attribute names */
.attr-buttons-group[data-attr="attribute_subscription"],
.attr-buttons-group[data-attr="attribute_pa_subscription"] {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 8px;
  margin: 4px 0 20px;
  padding: 12px;
  border: 1px solid rgba(42,139,234,.35); /* #2A8BEA tint */
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(16,24,40,.04);
}

/* Buttons inside the subscription group */
.attr-buttons-group[data-attr="attribute_subscription"] .attr-btn,
.attr-buttons-group[data-attr="attribute_pa_subscription"] .attr-btn {
  appearance: none;
  border: 1px solid #E2E8F0;
  background: #fff;
  color: #0F172A;
  font-weight: 600;
  font-size: 1.05rem;
  padding: .8rem 1rem;
  border-radius: 12px;
  line-height: 1;
  cursor: pointer;
  width: 100%;
  text-align: center;
  outline: none;
  transition: background .2s, border-color .2s, color .2s, box-shadow .2s, transform .04s;
}

/* Hover / focus / active (subscription only) */
.attr-buttons-group[data-attr="attribute_subscription"] .attr-btn:hover,
.attr-buttons-group[data-attr="attribute_pa_subscription"] .attr-btn:hover {
  background: #F2F8FF; /* #2A8BEA tinted */
  border-color: rgba(42,139,234,.45);
}
.attr-buttons-group[data-attr="attribute_subscription"] .attr-btn:focus-visible,
.attr-buttons-group[data-attr="attribute_pa_subscription"] .attr-btn:focus-visible {
  box-shadow: 0 0 0 3px rgba(42,139,234,.35);
}
.attr-buttons-group[data-attr="attribute_subscription"] .attr-btn:active,
.attr-buttons-group[data-attr="attribute_pa_subscription"] .attr-btn:active {
  transform: translateY(1px);
}

/* Selected state — brand #2A8BEA */
.attr-buttons-group[data-attr="attribute_subscription"] .attr-btn.is-active,
.attr-buttons-group[data-attr="attribute_pa_subscription"] .attr-btn.is-active {
  background: #2A8BEA;
  color: #fff;
  border-color: #2A8BEA;
  box-shadow: 0 6px 18px rgba(42,139,234,.25);
}

/* Disabled / unavailable (subscription only) */
.attr-buttons-group[data-attr="attribute_subscription"] .attr-btn[disabled],
.attr-buttons-group[data-attr="attribute_subscription"] .attr-btn.is-unavailable,
.attr-buttons-group[data-attr="attribute_pa_subscription"] .attr-btn[disabled],
.attr-buttons-group[data-attr="attribute_pa_subscription"] .attr-btn.is-unavailable {
  background: #F1F5F9;
  color: #94A3B8;
  border-color: #E2E8F0;
  cursor: not-allowed;
  position: relative;
}
.attr-buttons-group[data-attr="attribute_subscription"] .attr-btn.is-unavailable::after,
.attr-buttons-group[data-attr="attribute_pa_subscription"] .attr-btn.is-unavailable::after {
  content: "";
  position: absolute;
  inset: auto 12% calc(50% - 1px) 12%;
  height: 2px;
  background: #94A3B8;
  opacity: .5;
  transform: rotate(-12deg);
}

/* Label above the buttons in the lifted block */
.attr-subscription-block .attr-inline-label {
  display: block;
  font-weight: 700;
  font-size: 16px;
  margin: 20px 0 8px;
  color: inherit;
}

/* Hide native dropdown UI inside the lifted block only */
.attr-subscription-block select[name="attribute_subscription"],
.attr-subscription-block select[name="attribute_pa_subscription"] {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  pointer-events: none !important;
}
.attr-subscription-block .nice-select {
  display: none !important;
  visibility: hidden !important;
}

/* ===== Legacy fallbacks (safe to keep) ===== */
/* If a theme cell is marked with .has-attr-buttons, hide its native select there too */
.variations_form td.value.has-attr-buttons select[name="attribute_subscription"],
.variations_form td.value.has-attr-buttons select[name="attribute_pa_subscription"] {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}
.variations_form td.value.has-attr-buttons .nice-select {
  display: none !important; /* only in that cell */
}

/* If your theme adds .attr-row--subscription (older approach), keep full-width layout */
.variations_form table.variations tr.attr-row--subscription {
  display: block !important;
  width: 100% !important;
  margin: 0 0 12px !important;
}
.variations_form table.variations tr.attr-row--subscription > th.label,
.variations_form table.variations tr.attr-row--subscription > td.value {
  display: block !important;
  width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  float: none !important;
  clear: both !important;
}
.variations_form table.variations tr.attr-row--subscription > th.label label {
  display: block !important;
  margin: 0 0 8px !important;
  font-weight: 600;
}
.variations_form table.variations tr.attr-row--subscription td.value
  .attr-buttons-group[data-attr="attribute_subscription"],
.variations_form table.variations tr.attr-row--subscription td.value
  .attr-buttons-group[data-attr="attribute_pa_subscription"] {
  display: grid !important;
  grid-template-columns: 1fr !important;   /* one per row */
  gap: 8px !important;
  width: 100% !important;
  max-width: none !important;
}
.variations_form table.variations tr.attr-row--subscription td.value
  .attr-buttons-group[data-attr="attribute_subscription"] .attr-btn,
.variations_form table.variations tr.attr-row--subscription td.value
  .attr-buttons-group[data-attr="attribute_pa_subscription"] .attr-btn {
  display: block !important;
  width: 100% !important;
  justify-self: stretch !important;
  text-align: center !important;
  padding: 0.95rem 1rem !important;
  margin-bottom: 20px !important;
}

/* ===========================
   PRICE DISPLAY TWEAKS
   =========================== */

/* Single product: show the price note on its own line */
.single-product .summary .price .subzz-price-note {
  display: block;
  margin-top: 4px;
  font-size: .9em;
  opacity: .85;
  white-space: normal;
}

/* Hide Woo’s small variation price box (we mirror it under the title) */
.woocommerce-variation-price { display: none; }

/* Font size and color for prices */
.summary span.woocommerce-Price-amount.amount { font-size: 40px; }
span.woocommerce-Price-amount.amount { color: #545454; font-weight: 700; }
.woocommerce:where(body:not(.woocommerce-uses-block-theme)) div.product p.price,
.woocommerce:where(body:not(.woocommerce-uses-block-theme)) div.product span.price { color: #545454; }
.woocommerce ul.products li.product .price { color: #545454 !important; }

/* ===========================
   HEADER BUTTONS (from your CSS)
   =========================== */

.header-btn-group {
  display: inline-flex;
  gap: 0.75rem;
  align-items: center;
}

.header-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1rem;
  line-height: 1;
  border-radius: 9999px; /* pill */
  text-decoration: none;
  white-space: nowrap;
}

/* Variants */
.header-btn--primary    { background: #1e40af; color: #fff; }
.header-btn--primary:hover { opacity: .9; }

.header-btn--secondary  { border: 1px solid #1e40af; color: #1e40af; background: transparent; }
.header-btn--secondary:hover { background: rgba(30,64,175,.08); }

.header-btn--logout     { color: #e11d48; background: transparent; }
.header-btn--logout:hover { background: rgba(225,29,72,.08); }

/* Small screens */
@media (max-width: 782px) {
  .header-btn { padding: 0.5rem 0.9rem; font-size: .9rem; }
}