/* ═══════════════════════════════════════════════════════════════════
   ShieldConsent — WooCommerce Overrides
   Lightweight styles to integrate WC pages with the SC design system.
   ═══════════════════════════════════════════════════════════════════ */

/* ─── General WC layout ───────────────────────────────────────── */
.woocommerce-page main.section {
  padding-top: 7rem;
}

.woocommerce .woocommerce-breadcrumb {
  font-size: 0.82rem;
  color: var(--sc-slate-500);
  margin-bottom: 2rem;
}

.woocommerce .woocommerce-breadcrumb a {
  color: var(--sc-sky);
}

/* ─── Notices / Messages ──────────────────────────────────────── */
.woocommerce .woocommerce-message,
.woocommerce .woocommerce-info,
.woocommerce .woocommerce-error {
  border-radius: var(--sc-radius-lg);
  border: 1px solid var(--sc-slate-200);
  background: var(--sc-slate-50);
  font-size: 0.88rem;
  padding: 1rem 1.25rem;
  line-height: 1.5;
}

.woocommerce .woocommerce-message {
  border-left: 3px solid var(--sc-success);
}

.woocommerce .woocommerce-info {
  border-left: 3px solid var(--sc-sky);
}

.woocommerce .woocommerce-error {
  border-left: 3px solid var(--sc-danger);
}

/* ─── Buttons ─────────────────────────────────────────────────── */
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce .button.alt {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.875rem;
  border-radius: var(--sc-radius);
  padding: 0.6rem 1.25rem;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  line-height: 1.5;
  text-decoration: none;
}

.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt,
.woocommerce #respond input#submit.alt {
  background: var(--sc-gradient);
  color: white;
  box-shadow: 0 2px 8px rgba(14, 165, 233, 0.25);
}

.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover,
.woocommerce input.button.alt:hover {
  background: linear-gradient(135deg, #0284c7, #1d4ed8);
  color: white;
  box-shadow: 0 4px 16px rgba(14, 165, 233, 0.35);
  transform: translateY(-1px);
}

.woocommerce a.button:not(.alt),
.woocommerce button.button:not(.alt),
.woocommerce input.button:not(.alt) {
  background: var(--sc-slate-100);
  color: var(--sc-dark);
  border: 1px solid var(--sc-slate-200);
}

.woocommerce a.button:not(.alt):hover,
.woocommerce button.button:not(.alt):hover {
  background: var(--sc-slate-200);
  color: var(--sc-dark);
}

/* ─── Forms ───────────────────────────────────────────────────── */
.woocommerce form .form-row label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--sc-dark);
  margin-bottom: 0.3rem;
}

.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select {
  font-family: 'Inter', sans-serif;
  font-size: 0.88rem;
  border: 1px solid var(--sc-slate-200);
  border-radius: var(--sc-radius);
  padding: 0.6rem 0.85rem;
  color: var(--sc-dark);
  transition: border-color 0.2s;
  width: 100%;
}

.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus,
.woocommerce form .form-row select:focus {
  outline: none;
  border-color: var(--sc-sky);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

/* ─── Tables (Cart, Order) ────────────────────────────────────── */
.woocommerce table.shop_table {
  border: 1px solid var(--sc-slate-200);
  border-radius: var(--sc-radius-lg);
  overflow: hidden;
  font-size: 0.88rem;
  border-collapse: separate;
  border-spacing: 0;
}

.woocommerce table.shop_table th {
  background: var(--sc-slate-50);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--sc-slate-500);
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--sc-slate-200);
}

.woocommerce table.shop_table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--sc-slate-100);
  vertical-align: middle;
}

/* ─── My Account ──────────────────────────────────────────────── */
.woocommerce-account .woocommerce-MyAccount-navigation {
  margin-bottom: 2rem;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li a {
  display: block;
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--sc-slate-600);
  background: var(--sc-slate-50);
  border: 1px solid var(--sc-slate-200);
  border-radius: var(--sc-radius);
  text-decoration: none;
  transition: all 0.2s;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li a:hover {
  border-color: var(--sc-sky);
  color: var(--sc-sky);
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li.is-active a {
  background: var(--sc-gradient);
  color: white;
  border-color: transparent;
}

/* ─── Checkout ────────────────────────────────────────────────── */
.woocommerce-checkout #payment {
  background: var(--sc-slate-50);
  border: 1px solid var(--sc-slate-200);
  border-radius: var(--sc-radius-xl);
  padding: 1.5rem;
}

.woocommerce-checkout #payment .payment_methods {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
}

.woocommerce-checkout #payment .payment_methods li {
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--sc-slate-200);
}

.woocommerce-checkout #payment .payment_methods li:last-child {
  border-bottom: none;
}

/* ─── Product pages (if needed later) ─────────────────────────── */
.woocommerce div.product .product_title {
  font-size: 1.5rem;
  font-weight: 800;
}

.woocommerce div.product .price {
  font-size: 1.75rem;
  font-weight: 800;
  background: var(--sc-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ─── Responsive ──────────────────────────────────────────────── */
@media (max-width: 767.98px) {
  .woocommerce-account .woocommerce-MyAccount-navigation ul {
    flex-direction: column;
  }
  .woocommerce table.shop_table {
    font-size: 0.82rem;
  }
  .woocommerce table.shop_table th,
  .woocommerce table.shop_table td {
    padding: 0.65rem 0.75rem;
  }
}

/* ═══════════════════════════════════════════════════════════════
   ShieldConsent — Mini-cart in nav
   APPEND this block to assets/css/woocommerce.css
   ═══════════════════════════════════════════════════════════════ */

/* ─── Cart toggle + count badge ─────────────────────────────── */
.sc-cart-wrap {
  position: relative;
  margin-left: 0.35rem;
}

.sc-cart-toggle {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.75);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--sc-radius);
  text-decoration: none;
  position: relative;
  transition: all 0.2s;
}

.sc-cart-toggle:hover,
.sc-cart-wrap.open .sc-cart-toggle {
  color: white;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
}

.sc-cart-toggle i {
  font-size: 1.05rem;
}

.sc-cart-count-wrap {
  position: absolute;
  top: -4px;
  right: -4px;
  pointer-events: none;
}

.sc-cart-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: var(--sc-gradient);
  color: white;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: 0 2px 6px rgba(14, 165, 233, 0.4);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes scCartPulse {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.5); }
  100% { transform: scale(1); }
}
.sc-cart-wrap.pulse .sc-cart-count {
  animation: scCartPulse 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ─── Dropdown panel ─────────────────────────────────────────── */
.sc-cart-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: 340px;
  background: white;
  border-radius: var(--sc-radius-lg);
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.25), 0 4px 12px rgba(15, 23, 42, 0.1);
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              visibility 0.25s;
  z-index: 1000;
  max-height: 80vh;
  overflow-y: auto;
}

.sc-cart-dropdown::before {
  content: '';
  position: absolute;
  top: -6px;
  right: 14px;
  width: 12px;
  height: 12px;
  background: white;
  transform: rotate(45deg);
  box-shadow: -2px -2px 4px rgba(15, 23, 42, 0.04);
}

.sc-cart-wrap.open .sc-cart-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* ─── Mini-cart content (uses WC default template structure) ──── */
.sc-cart-dropdown .woocommerce-mini-cart__empty-message {
  margin: 1rem 0 0.25rem;
  padding: 1.25rem;
  text-align: center;
  font-size: 0.9rem;
  color: var(--sc-slate-500);
  background: var(--sc-slate-50);
  border: 1px solid var(--sc-slate-200);
  border-radius: var(--sc-radius-lg);
}

.sc-cart-dropdown ul.woocommerce-mini-cart {
  list-style: none;
  padding: 0;
  margin: 0 0 0.5rem;
}

.sc-cart-dropdown ul.woocommerce-mini-cart li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--sc-slate-100);
  position: relative;
  font-size: 0.85rem;
}

.sc-cart-dropdown ul.woocommerce-mini-cart li:last-child {
  border-bottom: none;
}

.sc-cart-dropdown ul.woocommerce-mini-cart li img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: var(--sc-radius);
  flex-shrink: 0;
  border: 1px solid var(--sc-slate-100);
  margin: 0;
}

.sc-cart-dropdown ul.woocommerce-mini-cart li a:not(.remove) {
  color: var(--sc-dark);
  font-weight: 600;
  text-decoration: none;
  display: block;
  line-height: 1.3;
  padding-right: 28px; /* space for .remove button */
}

.sc-cart-dropdown ul.woocommerce-mini-cart li a:not(.remove):hover {
  color: var(--sc-sky);
}

.sc-cart-dropdown ul.woocommerce-mini-cart li .quantity {
  display: block;
  font-size: 0.78rem;
  color: var(--sc-slate-500);
  font-weight: 400;
  margin-top: 0.2rem;
}

.sc-cart-dropdown ul.woocommerce-mini-cart li .quantity .amount {
  color: var(--sc-dark);
  font-weight: 600;
}

/* Remove button — WC outputs <a class="remove">&times;</a> */
.sc-cart-dropdown a.remove {
  position: absolute !important;
  top: 50% !important;
  right: 0 !important;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--sc-slate-100);
  color: var(--sc-slate-500) !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  line-height: 1 !important;
  text-decoration: none !important;
  transition: all 0.2s;
}

.sc-cart-dropdown a.remove:hover {
  background: var(--sc-danger);
  color: white !important;
}

/* Subtotal line */
.sc-cart-dropdown p.woocommerce-mini-cart__total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.85rem 0;
  margin: 0 0 0.75rem;
  border-top: 1px solid var(--sc-slate-200);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--sc-dark);
}

.sc-cart-dropdown p.woocommerce-mini-cart__total .amount {
  background: var(--sc-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 800;
  font-size: 1rem;
}

/* Buttons row (View cart / Checkout) */
.sc-cart-dropdown p.woocommerce-mini-cart__buttons {
  display: flex;
  gap: 0.5rem;
  margin: 0;
}

.sc-cart-dropdown p.woocommerce-mini-cart__buttons a {
  flex: 1;
  text-align: center;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.6rem 0.75rem;
  border-radius: var(--sc-radius);
  text-decoration: none;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.sc-cart-dropdown p.woocommerce-mini-cart__buttons a.button {
  background: var(--sc-slate-100);
  color: var(--sc-dark);
  border: 1px solid var(--sc-slate-200);
}

.sc-cart-dropdown p.woocommerce-mini-cart__buttons a.button:hover {
  background: var(--sc-slate-200);
}

.sc-cart-dropdown p.woocommerce-mini-cart__buttons a.checkout {
  background: var(--sc-gradient);
  color: white;
  box-shadow: 0 2px 8px rgba(14, 165, 233, 0.25);
  border: none;
}

.sc-cart-dropdown p.woocommerce-mini-cart__buttons a.checkout:hover {
  background: linear-gradient(135deg, #0284c7, #1d4ed8);
  box-shadow: 0 4px 16px rgba(14, 165, 233, 0.35);
  transform: translateY(-1px);
}

/* Loading state on add-to-cart buttons (WC adds .loading class) */
.ajax_add_to_cart.loading {
  opacity: 0.6;
  cursor: wait;
  position: relative;
}

.ajax_add_to_cart.added::after {
  content: '\2713'; /* checkmark */
  margin-left: 0.35rem;
  font-weight: 700;
}

/* ─── Mobile cart link (in hamburger menu) ───────────────────── */
.sc-mobile-cart-link {
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.sc-mobile-cart-link i {
  font-size: 1.15rem;
}

.sc-mobile-cart-link .sc-cart-count-wrap {
  position: static;
}

.sc-mobile-cart-link .sc-cart-count {
  position: static;
  box-shadow: none;
  margin-left: 0.25rem;
}

/* ─── Responsive: dropdown on small screens ───────────────────── */
@media (max-width: 575.98px) {
  .sc-cart-dropdown {
    width: calc(100vw - 48px);
    max-width: 340px;
  }
}
/* ─── Page-level containers ────────────────────────────────────── */
.woocommerce-cart main.section,
.woocommerce-checkout main.section,
.woocommerce-order-received main.section,
.woocommerce-account main.section {
  padding-top: 7rem;
}

.woocommerce-cart main.section > .container,
.woocommerce-checkout main.section > .container,
.woocommerce-order-received main.section > .container {
  max-width: 1100px;
}

/* Page heading (cart / checkout / order received) */
.woocommerce-cart h1.entry-title,
.woocommerce-checkout h1.entry-title,
.woocommerce-order-received h1.entry-title {
  font-size: clamp(1.65rem, 3vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--sc-dark);
  margin: 0 0 2rem;
  text-align: center;
}

/* Global notices on cart/checkout (errors, coupon applied, etc.) */
.woocommerce-notices-wrapper {
  margin-bottom: 1.25rem;
}

/* ═══ CART PAGE ════════════════════════════════════════════════ */

/* Two-column layout on desktop — CSS Grid on .woocommerce wrapper.
   Cart form on the left, totals sidebar on the right.
   Empty cart + notices span full width. */
.woocommerce-cart main.section > .container > .woocommerce {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 992px) {
  .woocommerce-cart main.section > .container > .woocommerce {
    grid-template-columns: minmax(0, 1fr) 380px;
    grid-template-areas:
      "notices   notices"
      "main      sidebar";
    gap: 2rem 2.5rem;
    align-items: start;
  }
  .woocommerce-cart .woocommerce-notices-wrapper { grid-area: notices; }
  .woocommerce-cart form.woocommerce-cart-form    { grid-area: main; min-width: 0; }
  .woocommerce-cart .cart-collaterals             { grid-area: sidebar; position: sticky; top: 100px; }
}

/* Items table — restyle as a card-like container */
.woocommerce-cart table.cart {
  border: 1px solid var(--sc-slate-200);
  border-radius: var(--sc-radius-xl);
  overflow: hidden;
  background: white;
  border-collapse: separate;
  border-spacing: 0;
  margin: 0 0 1rem;
  font-size: 0.9rem;
}

.woocommerce-cart table.cart thead {
  background: var(--sc-slate-50);
  border-bottom: 1px solid var(--sc-slate-200);
}

.woocommerce-cart table.cart thead th {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--sc-slate-500);
  padding: 0.85rem 1rem;
  border: none;
  background: transparent;
}

.woocommerce-cart table.cart tbody tr.cart_item {
  background: white;
  border-bottom: 1px solid var(--sc-slate-100);
}

.woocommerce-cart table.cart tbody tr.cart_item td {
  padding: 1rem;
  vertical-align: middle;
  border: none;
  background: transparent;
}

.woocommerce-cart table.cart td.product-remove {
  width: 40px;
  padding-left: 0.75rem;
  padding-right: 0;
}

.woocommerce-cart table.cart td.product-remove a.remove {
  width: 26px;
  height: 26px;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--sc-slate-100);
  color: var(--sc-slate-500) !important;
  font-size: 16px !important;
  font-weight: 400 !important;
  line-height: 1 !important;
  text-decoration: none !important;
  transition: all 0.2s;
}

.woocommerce-cart table.cart td.product-remove a.remove:hover {
  background: var(--sc-danger);
  color: white !important;
}

.woocommerce-cart table.cart td.product-thumbnail { width: 80px; }
.woocommerce-cart table.cart td.product-thumbnail img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: var(--sc-radius);
  border: 1px solid var(--sc-slate-100);
}

.woocommerce-cart table.cart td.product-name a {
  color: var(--sc-dark);
  font-weight: 700;
  text-decoration: none;
  font-size: 0.95rem;
  line-height: 1.3;
}
.woocommerce-cart table.cart td.product-name a:hover { color: var(--sc-sky); }

.woocommerce-cart table.cart td.product-price,
.woocommerce-cart table.cart td.product-subtotal {
  font-weight: 600;
  color: var(--sc-dark);
  text-align: right;
}

.woocommerce-cart table.cart td.product-subtotal .amount {
  background: var(--sc-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 800;
  font-size: 1rem;
}

/* Quantity input */
.woocommerce-cart table.cart td.product-quantity .quantity {
  display: inline-flex;
  align-items: center;
}
.woocommerce-cart input.qty {
  width: 64px;
  height: 36px;
  padding: 0.35rem 0.5rem;
  text-align: center;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--sc-dark);
  background: white;
  border: 1.5px solid var(--sc-slate-200);
  border-radius: var(--sc-radius);
  transition: border-color 0.15s, box-shadow 0.15s;
  -moz-appearance: textfield;
}
.woocommerce-cart input.qty::-webkit-outer-spin-button,
.woocommerce-cart input.qty::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.woocommerce-cart input.qty:focus {
  outline: none;
  border-color: var(--sc-sky);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

/* Actions row (coupon + update cart) */
.woocommerce-cart table.cart td.actions {
  background: var(--sc-slate-50);
  padding: 1rem;
  border-top: 1px solid var(--sc-slate-200);
  vertical-align: middle;
}

.woocommerce-cart td.actions .coupon {
  display: inline-flex;
  gap: 0.5rem;
  align-items: stretch;
  flex-wrap: wrap;
}

.woocommerce-cart td.actions .coupon label { display: none; }

.woocommerce-cart td.actions .coupon input[name="coupon_code"] {
  min-width: 180px;
  height: 36px;
  padding: 0.35rem 0.75rem;
  font-size: 0.85rem;
  background: white;
  border: 1.5px solid var(--sc-slate-200);
  border-radius: var(--sc-radius);
  color: var(--sc-dark);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.woocommerce-cart td.actions .coupon input[name="coupon_code"]:focus {
  outline: none;
  border-color: var(--sc-sky);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

.woocommerce-cart td.actions .coupon button,
.woocommerce-cart td.actions .coupon input[type="submit"] {
  padding: 0.45rem 1rem;
  font-size: 0.82rem;
  font-weight: 600;
  background: var(--sc-slate-100);
  color: var(--sc-dark);
  border: 1px solid var(--sc-slate-200);
  border-radius: var(--sc-radius);
  cursor: pointer;
  transition: background 0.2s;
}
.woocommerce-cart td.actions .coupon button:hover {
  background: var(--sc-slate-200);
}

.woocommerce-cart td.actions button[name="update_cart"] {
  padding: 0.5rem 1rem;
  font-size: 0.82rem;
  font-weight: 600;
  background: transparent;
  color: var(--sc-slate-600);
  border: 1px solid var(--sc-slate-200);
  border-radius: var(--sc-radius);
  cursor: pointer;
  transition: all 0.2s;
  float: right;
}
.woocommerce-cart td.actions button[name="update_cart"]:hover {
  background: var(--sc-slate-50);
  color: var(--sc-dark);
  border-color: var(--sc-slate-300);
}
.woocommerce-cart td.actions button[name="update_cart"][disabled] {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ── Cart totals sidebar ── */
.woocommerce-cart .cart_totals {
  background: white;
  border: 1px solid var(--sc-slate-200);
  border-radius: var(--sc-radius-xl);
  padding: 1.75rem;
  box-shadow: var(--sc-shadow);
}

.woocommerce-cart .cart_totals h2 {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--sc-dark);
  margin: 0 0 1rem;
}

.woocommerce-cart .cart_totals table.shop_table {
  width: 100%;
  border: none;
  margin: 0 0 1rem;
  background: transparent;
}

.woocommerce-cart .cart_totals table.shop_table th,
.woocommerce-cart .cart_totals table.shop_table td {
  padding: 0.75rem 0;
  border: none;
  border-bottom: 1px solid var(--sc-slate-100);
  background: transparent;
  font-size: 0.9rem;
  color: var(--sc-slate-600);
}

.woocommerce-cart .cart_totals table.shop_table th {
  font-weight: 500;
  color: var(--sc-slate-500);
  text-align: left;
}

.woocommerce-cart .cart_totals table.shop_table td { text-align: right; }

.woocommerce-cart .cart_totals table.shop_table tr:last-child th,
.woocommerce-cart .cart_totals table.shop_table tr:last-child td {
  border-bottom: none;
  padding-bottom: 0;
}

.woocommerce-cart .cart_totals .order-total th {
  font-weight: 700;
  color: var(--sc-dark);
  font-size: 1rem;
}

.woocommerce-cart .cart_totals .order-total .amount {
  background: var(--sc-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.woocommerce-cart .cart_totals .cart-discount td .amount {
  color: var(--sc-success);
  font-weight: 700;
}

.woocommerce-cart .cart_totals .woocommerce-remove-coupon {
  font-size: 0.75rem;
  color: var(--sc-slate-400);
  margin-left: 0.35rem;
}

.woocommerce-cart .wc-proceed-to-checkout {
  padding: 1rem 0 0;
  margin: 0;
}

.woocommerce-cart .wc-proceed-to-checkout a.checkout-button {
  width: 100%;
  padding: 0.85rem 1.5rem !important;
  font-size: 1rem !important;
  font-weight: 700 !important;
  background: var(--sc-gradient) !important;
  color: white !important;
  border-radius: var(--sc-radius-lg) !important;
  box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);
  text-align: center;
  justify-content: center;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0 !important;
}

.woocommerce-cart .wc-proceed-to-checkout a.checkout-button:hover {
  background: linear-gradient(135deg, #0284c7, #1d4ed8) !important;
  box-shadow: 0 8px 20px rgba(14, 165, 233, 0.4);
  transform: translateY(-1px);
}

/* ═══ EMPTY CART (custom template) ═════════════════════════════ */
.sc-cart-empty {
  grid-column: 1 / -1;
  max-width: 520px;
  margin: 2rem auto;
  padding: 3rem 2rem;
  text-align: center;
}

.sc-cart-empty__icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  background: var(--sc-gradient);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 2rem;
  box-shadow: 0 8px 24px rgba(14, 165, 233, 0.3);
}

.sc-cart-empty__title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--sc-dark);
  margin: 0 0 0.75rem;
  letter-spacing: -0.02em;
}

.sc-cart-empty__text {
  font-size: 0.95rem;
  color: var(--sc-slate-500);
  line-height: 1.6;
  margin: 0 0 1.75rem;
}

.sc-cart-empty__actions {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ═══ CHECKOUT PAGE ═══════════════════════════════════════════ */

/* Two-column grid: customer details on the left, order review sticky on the right. */
.woocommerce-checkout form.checkout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 992px) {
  .woocommerce-checkout form.checkout {
    grid-template-columns: minmax(0, 1fr) 380px;
    grid-template-areas:
      "main  heading"
      "main  review";
    gap: 1rem 2.5rem;
    align-items: start;
  }
  .woocommerce-checkout form.checkout #customer_details      { grid-area: main; min-width: 0; }
  .woocommerce-checkout form.checkout #order_review_heading  { grid-area: heading; margin: 0; }
  .woocommerce-checkout form.checkout #order_review          { grid-area: review; position: sticky; top: 100px; }
}

/* Billing / shipping section wrappers */
.woocommerce-checkout #customer_details .col-1,
.woocommerce-checkout #customer_details .col-2 {
  width: 100%;
  max-width: none;
  float: none;
  background: white;
  border: 1px solid var(--sc-slate-200);
  border-radius: var(--sc-radius-xl);
  padding: 1.75rem;
  box-shadow: var(--sc-shadow);
  margin-bottom: 1rem;
}

.woocommerce-checkout form.checkout h3 {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--sc-dark);
  margin: 0 0 1.25rem;
  letter-spacing: -0.01em;
}

.woocommerce-checkout #order_review_heading {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--sc-dark);
  margin: 0 0 1rem;
}

/* Form fields — same visual language as CF7 */
.woocommerce-checkout form.checkout .form-row {
  margin: 0 0 1rem;
  padding: 0;
}

.woocommerce-checkout form.checkout .form-row label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--sc-dark);
  margin-bottom: 0.35rem;
}

.woocommerce-checkout form.checkout .form-row label .required,
.woocommerce-checkout form.checkout .form-row label .optional {
  font-weight: 400;
  font-size: 0.78rem;
  color: var(--sc-slate-400);
  margin-left: 0.25rem;
  text-decoration: none;
}

.woocommerce-checkout form.checkout .form-row input.input-text,
.woocommerce-checkout form.checkout .form-row textarea,
.woocommerce-checkout form.checkout .form-row select,
.woocommerce-checkout form.checkout .select2-selection,
.woocommerce-checkout form.checkout .form-row .woocommerce-input-wrapper input {
  width: 100% !important;
  padding: 0.7rem 0.95rem !important;
  font-family: inherit;
  font-size: 0.88rem;
  color: var(--sc-dark);
  background: var(--sc-slate-50);
  border: 1.5px solid var(--sc-slate-200) !important;
  border-radius: var(--sc-radius) !important;
  outline: none;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
  box-sizing: border-box;
  height: auto !important;
  line-height: 1.4 !important;
}

.woocommerce-checkout form.checkout .form-row input.input-text:hover,
.woocommerce-checkout form.checkout .form-row textarea:hover,
.woocommerce-checkout form.checkout .form-row select:hover {
  border-color: var(--sc-slate-300) !important;
  background: white;
}

.woocommerce-checkout form.checkout .form-row input.input-text:focus,
.woocommerce-checkout form.checkout .form-row textarea:focus,
.woocommerce-checkout form.checkout .form-row select:focus,
.woocommerce-checkout form.checkout .select2-container--focus .select2-selection {
  border-color: var(--sc-sky) !important;
  background: white;
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1) !important;
}

.woocommerce-checkout form.checkout .form-row textarea {
  min-height: 90px;
  resize: vertical;
  line-height: 1.5 !important;
}

/* Select2 dropdown (country, state) — align with our input style */
.woocommerce-checkout form.checkout .select2-container .select2-selection {
  height: auto !important;
  min-height: 42px;
  display: flex;
  align-items: center;
}
.woocommerce-checkout form.checkout .select2-selection__rendered {
  padding: 0 !important;
  line-height: 1.4 !important;
  color: var(--sc-dark) !important;
}
.woocommerce-checkout form.checkout .select2-selection__arrow {
  height: 100% !important;
}

/* Two-column rows (first/last name) */
.woocommerce-checkout form.checkout .form-row-first,
.woocommerce-checkout form.checkout .form-row-last {
  width: calc(50% - 0.5rem);
  float: none;
  display: inline-block;
}
.woocommerce-checkout form.checkout .form-row-first { margin-right: 1rem; }
@media (max-width: 575.98px) {
  .woocommerce-checkout form.checkout .form-row-first,
  .woocommerce-checkout form.checkout .form-row-last {
    width: 100%;
    margin-right: 0;
  }
}

/* Validation errors */
.woocommerce-checkout form.checkout .woocommerce-invalid input.input-text,
.woocommerce-checkout form.checkout .woocommerce-invalid select {
  border-color: var(--sc-danger) !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.08) !important;
}

/* "Create account" + ship-to-different-address checkbox */
.woocommerce-checkout form.checkout .woocommerce-form__label-for-checkbox {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.85rem;
  color: var(--sc-slate-600);
  cursor: pointer;
  font-weight: 500;
}
.woocommerce-checkout form.checkout .woocommerce-form__input-checkbox {
  accent-color: var(--sc-sky);
  width: 16px;
  height: 16px;
  margin: 0;
}

/* ── Order review (right sidebar) ── */
.woocommerce-checkout #order_review {
  background: white;
  border: 1px solid var(--sc-slate-200);
  border-radius: var(--sc-radius-xl);
  padding: 1.5rem;
  box-shadow: var(--sc-shadow);
}

.woocommerce-checkout #order_review table.shop_table {
  border: none;
  margin: 0 0 0.5rem;
  background: transparent;
  border-collapse: collapse;
  width: 100%;
  font-size: 0.88rem;
}

.woocommerce-checkout #order_review table.shop_table thead { display: none; }

.woocommerce-checkout #order_review table.shop_table tbody tr.cart_item td {
  padding: 0.6rem 0;
  border: none;
  border-bottom: 1px solid var(--sc-slate-100);
  background: transparent;
  color: var(--sc-slate-700);
  vertical-align: middle;
}

.woocommerce-checkout #order_review table.shop_table tbody tr.cart_item .product-name {
  font-weight: 600;
  color: var(--sc-dark);
}

.woocommerce-checkout #order_review table.shop_table tbody tr.cart_item .product-quantity {
  font-size: 0.78rem;
  color: var(--sc-slate-500);
  font-weight: 400;
  margin-left: 0.2rem;
}

.woocommerce-checkout #order_review table.shop_table tbody tr.cart_item .product-total {
  text-align: right;
  font-weight: 600;
  color: var(--sc-dark);
  white-space: nowrap;
}

.woocommerce-checkout #order_review table.shop_table tfoot th {
  font-weight: 500;
  color: var(--sc-slate-500);
  padding: 0.6rem 0;
  border: none;
  border-bottom: 1px solid var(--sc-slate-100);
  background: transparent;
  text-align: left;
}

.woocommerce-checkout #order_review table.shop_table tfoot td {
  padding: 0.6rem 0;
  border: none;
  border-bottom: 1px solid var(--sc-slate-100);
  background: transparent;
  text-align: right;
  color: var(--sc-slate-700);
}

.woocommerce-checkout #order_review table.shop_table tfoot tr:last-child th,
.woocommerce-checkout #order_review table.shop_table tfoot tr:last-child td {
  border-bottom: none;
}

.woocommerce-checkout #order_review table.shop_table tfoot .order-total th {
  font-weight: 700;
  color: var(--sc-dark);
  font-size: 1rem;
}

.woocommerce-checkout #order_review table.shop_table tfoot .order-total td .amount {
  background: var(--sc-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: -0.02em;
}

/* Payment methods block */
.woocommerce-checkout #payment {
  background: transparent !important;
  border: none;
  padding: 1rem 0 0 !important;
  margin-top: 1rem;
  border-radius: 0 !important;
}

.woocommerce-checkout #payment ul.payment_methods {
  background: var(--sc-slate-50);
  border: 1px solid var(--sc-slate-200);
  border-radius: var(--sc-radius-lg);
  padding: 0.35rem;
  margin: 0 0 1rem;
  list-style: none;
}

.woocommerce-checkout #payment ul.payment_methods li {
  padding: 0.75rem 0.85rem;
  border-bottom: 1px solid var(--sc-slate-200);
  margin: 0;
  background: transparent;
  list-style: none;
}

.woocommerce-checkout #payment ul.payment_methods li:last-child {
  border-bottom: none;
}

.woocommerce-checkout #payment ul.payment_methods li > label {
  font-size: 0.88rem !important;
  font-weight: 600;
  color: var(--sc-dark);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}

.woocommerce-checkout #payment ul.payment_methods li input[type="radio"] {
  accent-color: var(--sc-sky);
  width: 16px;
  height: 16px;
}

.woocommerce-checkout #payment ul.payment_methods li img {
  margin-left: 0.5rem;
  max-height: 24px;
  width: auto;
}

.woocommerce-checkout #payment div.payment_box {
  background: white !important;
  border: 1px solid var(--sc-slate-200);
  border-radius: var(--sc-radius);
  padding: 0.85rem 1rem !important;
  margin: 0.65rem 0 0 !important;
  font-size: 0.85rem;
  color: var(--sc-slate-600);
  line-height: 1.55;
}

.woocommerce-checkout #payment div.payment_box::before {
  display: none; /* hide WC's default arrow triangle */
}

/* Terms & conditions */
.woocommerce-terms-and-conditions-wrapper {
  margin: 1rem 0;
  padding: 0.9rem 0 0;
  border-top: 1px solid var(--sc-slate-200);
  font-size: 0.82rem;
  color: var(--sc-slate-600);
}

.woocommerce-terms-and-conditions-wrapper .woocommerce-form__label-for-checkbox {
  font-size: 0.85rem;
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  line-height: 1.5;
}

/* Place order button */
.woocommerce-checkout #place_order {
  width: 100%;
  padding: 0.95rem 1.5rem !important;
  font-size: 1rem !important;
  font-weight: 700 !important;
  background: var(--sc-gradient) !important;
  color: white !important;
  border: none !important;
  border-radius: var(--sc-radius-lg) !important;
  box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);
  cursor: pointer;
  margin: 0.75rem 0 0 !important;
  transition: all 0.2s;
  display: block;
  text-align: center;
}

.woocommerce-checkout #place_order:hover {
  background: linear-gradient(135deg, #0284c7, #1d4ed8) !important;
  box-shadow: 0 8px 20px rgba(14, 165, 233, 0.4);
  transform: translateY(-1px);
}

.woocommerce-checkout #place_order:disabled {
  opacity: 0.6;
  cursor: wait;
  transform: none;
}

/* Processing overlay on checkout form */
.woocommerce-checkout form.checkout.processing {
  opacity: 0.65;
  pointer-events: none;
}

/* ═══ THANK-YOU / ORDER RECEIVED ═══════════════════════════════ */

.woocommerce-order-received main.section > .container {
  max-width: 800px;
}

/* License key block — our custom hook output */
.sc-license-block {
  margin: 0 0 2.5rem;
  padding: 2rem;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.04), rgba(37, 99, 235, 0.04));
  border: 1px solid rgba(14, 165, 233, 0.2);
  border-radius: var(--sc-radius-xl);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.sc-license-block::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.sc-license-block__icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 1rem;
  background: var(--sc-gradient);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  box-shadow: 0 8px 24px rgba(14, 165, 233, 0.3);
  position: relative;
  z-index: 2;
}

.sc-license-block__title {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--sc-dark);
  margin: 0 0 1.25rem;
  letter-spacing: -0.02em;
  position: relative;
  z-index: 2;
}

.sc-license-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  position: relative;
  z-index: 2;
}

.sc-license-list li {
  display: flex;
  align-items: stretch;
  gap: 0.5rem;
  background: white;
  border: 1px solid var(--sc-slate-200);
  border-radius: var(--sc-radius-lg);
  padding: 0.5rem;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
}

/* Plan badge — pinned to the left of each license row, identifies which plan
   the key belongs to. Fixed min-width so all rows align vertically. */
.sc-license-plan {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 1rem;
  min-width: 130px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #1e40af;
  background: rgba(14, 165, 233, 0.08);
  border: 1px solid rgba(14, 165, 233, 0.2);
  border-radius: var(--sc-radius);
  white-space: nowrap;
}

.sc-license-key {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 0.85rem;
  font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', 'Consolas', monospace;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--sc-dark);
  background: var(--sc-slate-50);
  border-radius: var(--sc-radius);
  user-select: all;
  word-break: break-all;
}

.sc-copy-key {
  flex-shrink: 0;
  padding: 0.6rem 1rem !important;
  font-size: 0.82rem !important;
  font-weight: 600 !important;
}

.sc-copy-key.is-copied {
  background: rgba(16, 185, 129, 0.1) !important;
  color: var(--sc-success) !important;
  border-color: rgba(16, 185, 129, 0.3) !important;
}

.sc-copy-key.is-failed {
  background: rgba(239, 68, 68, 0.08) !important;
  color: var(--sc-danger) !important;
  border-color: rgba(239, 68, 68, 0.3) !important;
}

.sc-license-block__help {
  font-size: 0.88rem;
  color: var(--sc-slate-600);
  line-height: 1.6;
  margin: 0;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  z-index: 2;
}

@media (max-width: 575.98px) {
  .sc-license-list li { flex-direction: column; gap: 0.5rem; }
  .sc-license-plan { width: 100%; min-width: 0; padding: 0.5rem; }
  .sc-copy-key { width: 100%; justify-content: center; }
}

/* ── Default order-received content (order summary, customer details) ── */
.woocommerce-order ul.order_details {
  list-style: none;
  padding: 1.25rem 1.5rem;
  margin: 0 0 2rem;
  background: var(--sc-slate-50);
  border: 1px solid var(--sc-slate-200);
  border-radius: var(--sc-radius-lg);
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 2rem;
}

.woocommerce-order ul.order_details li {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--sc-slate-500);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border: none !important;
  padding: 0 !important;
  margin: 0;
}

.woocommerce-order ul.order_details li strong {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--sc-dark);
  text-transform: none;
  letter-spacing: 0;
}

.woocommerce-order h2 {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--sc-dark);
  margin: 2rem 0 1rem;
}

.woocommerce-order section.woocommerce-order-details,
.woocommerce-order section.woocommerce-customer-details {
  margin-bottom: 2rem;
}

.woocommerce-order table.shop_table {
  background: white;
  border: 1px solid var(--sc-slate-200);
  border-radius: var(--sc-radius-lg);
  overflow: hidden;
}

.woocommerce-order table.shop_table th,
.woocommerce-order table.shop_table td {
  padding: 0.85rem 1rem;
  font-size: 0.88rem;
}

.woocommerce-order table.shop_table tfoot .order-total .amount {
  background: var(--sc-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 800;
}

/* ═══ Responsive fine-tuning ═══════════════════════════════════ */
@media (max-width: 767.98px) {
  /* Stack cart table more cleanly on mobile — WC's .shop_table_responsive does most of the work */
  .woocommerce-cart table.cart {
    border: none;
    background: transparent;
  }
  .woocommerce-cart table.cart tbody tr.cart_item {
    background: white;
    border: 1px solid var(--sc-slate-200) !important;
    border-radius: var(--sc-radius-lg);
    margin-bottom: 0.75rem;
    display: block;
    padding: 0.75rem;
  }
  .woocommerce-cart table.cart tbody tr.cart_item td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.4rem 0 !important;
    border: none !important;
    text-align: right !important;
  }
  .woocommerce-cart table.cart tbody tr.cart_item td::before {
    content: attr(data-title);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--sc-slate-500);
    flex: 0 0 auto;
  }
  .woocommerce-cart table.cart tbody tr.cart_item td.product-thumbnail::before { display: none; }
  .woocommerce-cart table.cart tbody tr.cart_item td.product-thumbnail { justify-content: flex-start; }
  .woocommerce-cart table.cart tbody tr.cart_item td.product-remove { justify-content: flex-end; }

  .woocommerce-cart table.cart td.actions {
    background: white;
    border: 1px solid var(--sc-slate-200);
    border-radius: var(--sc-radius-lg);
    padding: 1rem;
    margin-top: 0.5rem;
  }
  .woocommerce-cart td.actions .coupon { width: 100%; }
  .woocommerce-cart td.actions .coupon input[name="coupon_code"] { flex: 1; }
  .woocommerce-cart td.actions button[name="update_cart"] {
    float: none;
    width: 100%;
    margin-top: 0.5rem;
  }
}
/* Row inserted in cart totals + checkout order review when zero-rate applies */
tr.sc-vat-notice th,
tr.sc-vat-notice td {
  padding: 0.85rem 0 0.25rem !important;
  text-align: center !important;
  border: none !important;
  background: transparent !important;
}

.sc-vat-notice__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.95rem;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.22);
  border-radius: var(--sc-radius);
  font-size: 0.8rem;
  font-weight: 600;
  color: #047857;
  letter-spacing: 0.01em;
}

.sc-vat-notice__badge i {
  font-size: 0.9rem;
  color: var(--sc-success);
}

/* Legal note on the thank-you / order details page */
.sc-vat-exemption-note {
  font-size: 0.85rem;
  color: var(--sc-slate-700);
  line-height: 1.55;
  padding: 0.85rem 1.15rem;
  background: var(--sc-slate-50);
  border: 1px solid var(--sc-slate-200);
  border-left: 3px solid var(--sc-success);
  border-radius: var(--sc-radius);
  margin: 1rem 0 1.5rem;
}
@media (min-width: 992px) {
  .woocommerce-checkout form.checkout {
    grid-template-rows: min-content 1fr !important;
  }
  .woocommerce-checkout form.checkout #order_review_heading {
    align-self: start !important;
  }
  .woocommerce-checkout form.checkout #order_review {
    align-self: start !important;
  }
}
.woocommerce-checkout #payment ul.payment_methods li.woocommerce-notice,
.woocommerce-checkout #payment ul.payment_methods li.woocommerce-info,
.woocommerce-checkout #payment ul.payment_methods li.woocommerce-error,
.woocommerce-checkout #payment > .woocommerce-notice,
.woocommerce-checkout #payment > .woocommerce-info,
.woocommerce-checkout #payment > .woocommerce-error {
  position: relative;
  padding: 0.95rem 1.15rem !important;
  background: rgba(14, 165, 233, 0.05);
  border: 1px solid rgba(14, 165, 233, 0.2);
  border-radius: var(--sc-radius);
  font-size: 0.85rem;
  color: var(--sc-slate-600);
  line-height: 1.55;
  margin: 0 !important;
  list-style: none;
  border-bottom: 1px solid rgba(14, 165, 233, 0.2) !important;
}

/* Hide WC's absolutely-positioned Dashicons icon on these notices */
.woocommerce-checkout #payment ul.payment_methods li.woocommerce-notice::before,
.woocommerce-checkout #payment ul.payment_methods li.woocommerce-info::before,
.woocommerce-checkout #payment ul.payment_methods li.woocommerce-error::before,
.woocommerce-checkout #payment > .woocommerce-notice::before,
.woocommerce-checkout #payment > .woocommerce-info::before,
.woocommerce-checkout #payment > .woocommerce-error::before {
  display: none !important;
  content: none !important;
}


/* ─── FIX 3 — Cart page: hide empty Quantity column.
   ShieldConsent licenses are sold individually (1 license = 1 order item).
   Multi-license agency plans use the Pro tier (5 sites). */
.woocommerce-cart table.cart th.product-quantity,
.woocommerce-cart table.cart td.product-quantity {
  display: none !important;
}


/* ─── Trust / reassurance block under Cart totals ────────────── */
.sc-cart-trust {
  margin-top: 1rem;
  padding: 1.25rem;
  background: white;
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
}

.sc-cart-trust__item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.sc-cart-trust__item .sc-cart-trust__icon {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--sc-radius);
  background: rgba(14, 165, 233, 0.08);
  color: var(--sc-sky);
  font-size: 1.05rem;
  flex-shrink: 0;
}

.sc-cart-trust__body {
  min-width: 0;
}

.sc-cart-trust__body strong {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--sc-dark);
  line-height: 1.3;
}

.sc-cart-trust__body span {
  display: block;
  font-size: 0.8rem;
  color: var(--sc-slate-500);
  line-height: 1.5;
  margin-top: 0.15rem;
}

/* ─── HIDE WC's ::before icon glyphs on ALL notice variants ───── */
/* (body prefix for specificity to beat WC core styles) */
body .woocommerce-info::before,
body .woocommerce-error::before,
body .woocommerce-message::before,
body .woocommerce-notice::before,
body .woocommerce-notices-wrapper .woocommerce-info::before,
body .woocommerce-notices-wrapper .woocommerce-error::before,
body .woocommerce-notices-wrapper .woocommerce-message::before,
body .woocommerce-notices-wrapper .woocommerce-notice::before,
body .woocommerce-checkout #payment .woocommerce-info::before,
body .woocommerce-checkout #payment .woocommerce-error::before,
body .woocommerce-checkout #payment .woocommerce-notice::before,
body .woocommerce-checkout #payment ul.payment_methods li.woocommerce-info::before,
body .woocommerce-checkout #payment ul.payment_methods li.woocommerce-error::before,
body .woocommerce-checkout #payment ul.payment_methods li.woocommerce-notice::before,
body ul.woocommerce-error::before,
body ul.woocommerce-error li::before {
  display: none !important;
  content: none !important;
  font-family: inherit !important;
  background: none !important;
}


/* ─── ERROR notices (validation errors at top of checkout) ────── */
body .woocommerce-notices-wrapper .woocommerce-error,
body .woocommerce-notices-wrapper ul.woocommerce-error,
body .woocommerce-notices-wrapper > ul.woocommerce-error,
body .woocommerce .woocommerce-error {
  background: rgba(239, 68, 68, 0.04) !important;
  border: 1px solid rgba(239, 68, 68, 0.2) !important;
  border-left: 3px solid var(--sc-danger) !important;
  border-radius: var(--sc-radius) !important;
  padding: 0.95rem 1.15rem !important;
  margin: 0 0 1.5rem !important;
  list-style: none outside none !important;
  position: relative !important;
  color: var(--sc-slate-700) !important;
  font-size: 0.88rem !important;
  line-height: 1.55 !important;
}

body .woocommerce-notices-wrapper .woocommerce-error li,
body .woocommerce .woocommerce-error li {
  padding: 0.2rem 0 !important;
  margin: 0 !important;
  list-style: none outside none !important;
  border: none !important;
  background: transparent !important;
  color: var(--sc-slate-700) !important;
  font-size: 0.88rem !important;
  line-height: 1.55 !important;
}

/* Links inside error messages (WC wraps field labels in <a href="#field">) */
body .woocommerce-notices-wrapper .woocommerce-error a,
body .woocommerce .woocommerce-error a {
  color: var(--sc-danger) !important;
  font-weight: 700 !important;
  text-decoration: none !important;
}

body .woocommerce-notices-wrapper .woocommerce-error a:hover,
body .woocommerce .woocommerce-error a:hover {
  color: #b91c1c !important;
  text-decoration: underline !important;
}


/* ─── INFO notices (cart/checkout generic info) ──────────────── */
body .woocommerce-notices-wrapper .woocommerce-info,
body .woocommerce-notices-wrapper > .woocommerce-info,
body .woocommerce .woocommerce-info {
  background: rgba(14, 165, 233, 0.04) !important;
  border: 1px solid rgba(14, 165, 233, 0.2) !important;
  border-left: 3px solid var(--sc-sky) !important;
  border-radius: var(--sc-radius) !important;
  padding: 0.95rem 1.15rem !important;
  margin: 0 0 1.5rem !important;
  list-style: none !important;
  color: var(--sc-slate-700) !important;
  font-size: 0.88rem !important;
  line-height: 1.55 !important;
}

body .woocommerce-notices-wrapper .woocommerce-info a,
body .woocommerce .woocommerce-info a {
  color: var(--sc-sky) !important;
  font-weight: 600 !important;
  text-decoration: none !important;
}

body .woocommerce-notices-wrapper .woocommerce-info a:hover,
body .woocommerce .woocommerce-info a:hover {
  text-decoration: underline !important;
}


/* ─── SUCCESS / MESSAGE notices ──────────────────────────────── */
body .woocommerce-notices-wrapper .woocommerce-message,
body .woocommerce-notices-wrapper > .woocommerce-message,
body .woocommerce .woocommerce-message {
  background: rgba(16, 185, 129, 0.05) !important;
  border: 1px solid rgba(16, 185, 129, 0.22) !important;
  border-left: 3px solid var(--sc-success) !important;
  border-radius: var(--sc-radius) !important;
  padding: 0.95rem 1.15rem !important;
  margin: 0 0 1.5rem !important;
  list-style: none !important;
  color: #065f46 !important;
  font-size: 0.88rem !important;
  line-height: 1.55 !important;
}

body .woocommerce-notices-wrapper .woocommerce-message a,
body .woocommerce .woocommerce-message a {
  color: var(--sc-success) !important;
  font-weight: 600 !important;
  text-decoration: none !important;
}


/* ─── "No payment methods" notice (inside #payment) ──────────── */
body .woocommerce-checkout #payment ul.payment_methods li.woocommerce-info,
body .woocommerce-checkout #payment ul.payment_methods li.woocommerce-notice,
body .woocommerce-checkout #payment > .woocommerce-info,
body .woocommerce-checkout #payment > .woocommerce-notice {
  position: relative !important;
  padding: 0.95rem 1.15rem !important;
  background: rgba(14, 165, 233, 0.05) !important;
  border: 1px solid rgba(14, 165, 233, 0.2) !important;
  border-radius: var(--sc-radius) !important;
  border-left: 3px solid var(--sc-sky) !important;
  font-size: 0.88rem !important;
  color: var(--sc-slate-700) !important;
  line-height: 1.55 !important;
  margin: 0 !important;
  list-style: none !important;
}

/* ─── HIDE WC's ::before icon glyphs on ALL notice variants ───── */
/* (body prefix for specificity to beat WC core styles) */
body .woocommerce-info::before,
body .woocommerce-error::before,
body .woocommerce-message::before,
body .woocommerce-notice::before,
body .woocommerce-notices-wrapper .woocommerce-info::before,
body .woocommerce-notices-wrapper .woocommerce-error::before,
body .woocommerce-notices-wrapper .woocommerce-message::before,
body .woocommerce-notices-wrapper .woocommerce-notice::before,
body .woocommerce-checkout #payment .woocommerce-info::before,
body .woocommerce-checkout #payment .woocommerce-error::before,
body .woocommerce-checkout #payment .woocommerce-notice::before,
body .woocommerce-checkout #payment ul.payment_methods li.woocommerce-info::before,
body .woocommerce-checkout #payment ul.payment_methods li.woocommerce-error::before,
body .woocommerce-checkout #payment ul.payment_methods li.woocommerce-notice::before,
body ul.woocommerce-error::before,
body ul.woocommerce-error li::before {
  display: none !important;
  content: none !important;
  font-family: inherit !important;
  background: none !important;
}


/* ─── ERROR notices (validation errors at top of checkout) ────── */
body .woocommerce-notices-wrapper .woocommerce-error,
body .woocommerce-notices-wrapper ul.woocommerce-error,
body .woocommerce-notices-wrapper > ul.woocommerce-error,
body .woocommerce .woocommerce-error {
  background: rgba(239, 68, 68, 0.04) !important;
  border: 1px solid rgba(239, 68, 68, 0.2) !important;
  border-left: 3px solid var(--sc-danger) !important;
  border-radius: var(--sc-radius) !important;
  padding: 0.95rem 1.15rem !important;
  margin: 0 0 1.5rem !important;
  list-style: none outside none !important;
  position: relative !important;
  color: var(--sc-slate-700) !important;
  font-size: 0.88rem !important;
  line-height: 1.55 !important;
}

body .woocommerce-notices-wrapper .woocommerce-error li,
body .woocommerce .woocommerce-error li {
  padding: 0.2rem 0 !important;
  margin: 0 !important;
  list-style: none outside none !important;
  border: none !important;
  background: transparent !important;
  color: var(--sc-slate-700) !important;
  font-size: 0.88rem !important;
  line-height: 1.55 !important;
}

/* Links inside error messages (WC wraps field labels in <a href="#field">) */
body .woocommerce-notices-wrapper .woocommerce-error a,
body .woocommerce .woocommerce-error a {
  color: var(--sc-danger) !important;
  font-weight: 700 !important;
  text-decoration: none !important;
}

body .woocommerce-notices-wrapper .woocommerce-error a:hover,
body .woocommerce .woocommerce-error a:hover {
  color: #b91c1c !important;
  text-decoration: underline !important;
}


/* ─── INFO notices (cart/checkout generic info) ──────────────── */
body .woocommerce-notices-wrapper .woocommerce-info,
body .woocommerce-notices-wrapper > .woocommerce-info,
body .woocommerce .woocommerce-info {
  background: rgba(14, 165, 233, 0.04) !important;
  border: 1px solid rgba(14, 165, 233, 0.2) !important;
  border-left: 3px solid var(--sc-sky) !important;
  border-radius: var(--sc-radius) !important;
  padding: 0.95rem 1.15rem !important;
  margin: 0 0 1.5rem !important;
  list-style: none !important;
  color: var(--sc-slate-700) !important;
  font-size: 0.88rem !important;
  line-height: 1.55 !important;
}

body .woocommerce-notices-wrapper .woocommerce-info a,
body .woocommerce .woocommerce-info a {
  color: var(--sc-sky) !important;
  font-weight: 600 !important;
  text-decoration: none !important;
}

body .woocommerce-notices-wrapper .woocommerce-info a:hover,
body .woocommerce .woocommerce-info a:hover {
  text-decoration: underline !important;
}


/* ─── SUCCESS / MESSAGE notices ──────────────────────────────── */
body .woocommerce-notices-wrapper .woocommerce-message,
body .woocommerce-notices-wrapper > .woocommerce-message,
body .woocommerce .woocommerce-message {
  background: rgba(16, 185, 129, 0.05) !important;
  border: 1px solid rgba(16, 185, 129, 0.22) !important;
  border-left: 3px solid var(--sc-success) !important;
  border-radius: var(--sc-radius) !important;
  padding: 0.95rem 1.15rem !important;
  margin: 0 0 1.5rem !important;
  list-style: none !important;
  color: #065f46 !important;
  font-size: 0.88rem !important;
  line-height: 1.55 !important;
}

body .woocommerce-notices-wrapper .woocommerce-message a,
body .woocommerce .woocommerce-message a {
  color: var(--sc-success) !important;
  font-weight: 600 !important;
  text-decoration: none !important;
}


/* ─── "No payment methods" notice (inside #payment) ──────────── */
body .woocommerce-checkout #payment ul.payment_methods li.woocommerce-info,
body .woocommerce-checkout #payment ul.payment_methods li.woocommerce-notice,
body .woocommerce-checkout #payment > .woocommerce-info,
body .woocommerce-checkout #payment > .woocommerce-notice {
  position: relative!important;
  padding: 0.95rem 1.15rem!important;
  background: rgba(14, 165, 233, 0.05)!important;
  border: 1px solid rgba(14, 165, 233, 0.2)!important;
  border-radius: var(--sc-radius)!important;
  border-left: 3px solid var(--sc-sky)!important;
  font-size: 0.88rem!important;
  color: var(--sc-slate-700)!important;
  line-height: 1.55!important;
  margin: 0!important;
  list-style: none!important;
}

body .woocommerce-checkout #payment ul.payment_methods:has(> li.woocommerce-info:only-child),
body .woocommerce-checkout #payment ul.payment_methods:has(> li.woocommerce-notice:only-child),
body .woocommerce-checkout #payment ul.payment_methods:has(> li.woocommerce-error:only-child) {
  background: transparent!important;
  border: none!important;
  padding: 0!important;
  margin: 0 0 1.25rem!important;
  box-shadow: none!important;
}

/* Also kill any border-bottom the notice might still carry from earlier rules
   (since it's now the only child, no separator needed below it) */
body .woocommerce-checkout #payment ul.payment_methods:has(> li.woocommerce-info:only-child) > li.woocommerce-info,
body .woocommerce-checkout #payment ul.payment_methods:has(> li.woocommerce-notice:only-child) > li.woocommerce-notice,
body .woocommerce-checkout #payment ul.payment_methods:has(> li.woocommerce-error:only-child) > li.woocommerce-error {
  border-bottom: none!important;
}

.woocommerce-checkout #payment ul.payment_methods {
  background: transparent!important;
  border: none!important;
  margin-bottom: 0px;
}

.sc-buyer-type {
  margin: 0 0 1.75rem;
}

.sc-buyer-type__fieldset {
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
  min-width: 0;
}

.sc-buyer-type__legend {
  display: block !important;
  float: none !important;
  width: 100%;
  font-size: 0.82rem !important;
  font-weight: 700 !important;
  color: var(--sc-dark) !important;
  margin: 0 0 0.55rem !important;
  padding: 0 !important;
  line-height: 1.3 !important;
  letter-spacing: 0.01em;
}

.sc-buyer-type__options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  min-width: 0;
}

.sc-buyer-type__option {
  display: block;
  cursor: pointer;
  margin: 0;
  padding: 0;
  position: relative;
  min-width: 0;
}

.sc-buyer-type__option input[type="radio"] {
  position: absolute !important;
  opacity: 0 !important;
  pointer-events: none !important;
  width: 1px;
  height: 1px;
  margin: 0;
}

/* ── CARD LAYOUT (the critical change) ────────────────────────
   Grid with 2 columns (icon | text column).
   Title goes in col 2 row 1, sub goes in col 2 row 2.
   Icon spans both rows in col 1. */
.sc-buyer-type__card {
  display: grid !important;
  grid-template-columns: auto 1fr;
  column-gap: 0.65rem;
  row-gap: 0.1rem;
  align-items: center;
  padding: 0.7rem 0.85rem;
  background: var(--sc-slate-50);
  border: 1.5px solid var(--sc-slate-200);
  border-radius: var(--sc-radius);
  transition: background 0.15s ease, border-color 0.15s ease;
  min-height: 100%;
  min-width: 0;
  overflow: hidden;
}

.sc-buyer-type__option:hover .sc-buyer-type__card {
  border-color: var(--sc-slate-300);
  background: white;
}

.sc-buyer-type__option input[type="radio"]:focus-visible + .sc-buyer-type__card {
  outline: 2px solid var(--sc-sky);
  outline-offset: 2px;
}

.sc-buyer-type__option input[type="radio"]:checked + .sc-buyer-type__card {
  background: rgba(14, 165, 233, 0.06);
  border-color: var(--sc-sky);
}

/* Icon: column 1, spans both text rows, centered vertically */
.sc-buyer-type__card > i {
  grid-column: 1;
  grid-row: 1 / span 2;
  align-self: center;
  font-size: 1.15rem;
  color: var(--sc-slate-500);
  flex-shrink: 0;
  transition: color 0.15s ease;
  line-height: 1;
}

.sc-buyer-type__option input[type="radio"]:checked + .sc-buyer-type__card i {
  color: var(--sc-sky);
}

/* Title: column 2, row 1 */
.sc-buyer-type__title {
  display: block !important;
  grid-column: 2;
  grid-row: 1;
  align-self: end;
  font-size: 0.85rem !important;
  font-weight: 600 !important;
  color: var(--sc-dark) !important;
  line-height: 1.2 !important;
  min-width: 0;
}

/* Sub: column 2, row 2 */
.sc-buyer-type__sub {
  display: block !important;
  grid-column: 2;
  grid-row: 2;
  align-self: start;
  font-size: 0.73rem !important;
  font-weight: 400 !important;
  color: var(--sc-slate-500) !important;
  line-height: 1.3 !important;
  margin: 0 !important;
  min-width: 0;
}

/* Stack on narrow mobile */
@media (max-width: 575.98px) {
  .sc-buyer-type__options {
    grid-template-columns: 1fr;
  }
}

/* ─── Business-only fields visibility ───────────────────────── */
.woocommerce-checkout form.checkout:not(.sc-buyer--business) #billing_company_field,
.woocommerce-checkout form.checkout:not(.sc-buyer--business) #billing_vat_field,
.woocommerce-checkout form.checkout.sc-buyer--individual #billing_company_field,
.woocommerce-checkout form.checkout.sc-buyer--individual #billing_vat_field {
  display: none !important;
}

/* ─── Required indicator on Company name when Business mode ──
   The field is declared required:false in PHP (to avoid global
   required for Individual orders), validation runs server-side.
   This CSS-only asterisk gives the visual cue. */
.woocommerce-checkout form.checkout.sc-buyer--business #billing_company_field > label::after {
  content: " *";
  color: var(--sc-danger);
  font-weight: 700;
  margin-left: 2px;
}

/* Hide WC's "(optional)" suffix on Company in Business mode */
.woocommerce-checkout form.checkout.sc-buyer--business #billing_company_field > label .optional {
  display: none !important;
}
/* ═══════════════ MY ACCOUNT — LAYOUT ══════════════════════════ */

/* Reset anything we may have previously inflicted on the wrapper */
body.woocommerce-account .woocommerce {
  display: grid !important;
  grid-template-columns: 240px minmax(0, 1fr) !important;
  gap: 2.5rem !important;
  align-items: start;
  max-width: 100%;
}

@media (max-width: 767.98px) {
  body.woocommerce-account .woocommerce {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }
}

/* ─── Sidebar navigation ──────────────────────────────────────── */
body.woocommerce-account .woocommerce-MyAccount-navigation {
  width: 100% !important;
  float: none !important;
  margin: 0 !important;
  padding: 0 !important;
  position: sticky;
  top: 100px;
}

body.woocommerce-account .woocommerce-MyAccount-navigation ul {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 0.25rem !important;
  background: transparent !important;
  border: none !important;
}

body.woocommerce-account .woocommerce-MyAccount-navigation li {
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
  display: block !important;
  float: none !important;
  width: 100% !important;
  list-style: none !important;
}

body.woocommerce-account .woocommerce-MyAccount-navigation li a {
  display: flex !important;
  align-items: center !important;
  gap: 0.65rem !important;
  padding: 0.7rem 0.9rem !important;
  font-size: 0.9rem !important;
  font-weight: 500 !important;
  color: var(--sc-slate-600) !important;
  background: transparent !important;
  border: 1px solid transparent !important;
  border-radius: var(--sc-radius) !important;
  text-decoration: none !important;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease !important;
  width: 100% !important;
  text-align: left !important;
}

body.woocommerce-account .woocommerce-MyAccount-navigation li a::before {
  font-family: 'bootstrap-icons' !important;
  font-size: 1rem;
  color: var(--sc-slate-400);
  flex-shrink: 0;
  transition: color 0.15s ease;
}

body.woocommerce-account .woocommerce-MyAccount-navigation li.woocommerce-MyAccount-navigation-link--dashboard a::before       { content: "\f4fa"; } /* grid */
body.woocommerce-account .woocommerce-MyAccount-navigation li.woocommerce-MyAccount-navigation-link--orders a::before          { content: "\f174"; } /* bag */
body.woocommerce-account .woocommerce-MyAccount-navigation li.woocommerce-MyAccount-navigation-link--downloads a::before       { content: "\f30a"; } /* download */
body.woocommerce-account .woocommerce-MyAccount-navigation li.woocommerce-MyAccount-navigation-link--edit-address a::before    { content: "\f3e7"; } /* geo-alt */
body.woocommerce-account .woocommerce-MyAccount-navigation li.woocommerce-MyAccount-navigation-link--edit-account a::before    { content: "\f4e1"; } /* person */
body.woocommerce-account .woocommerce-MyAccount-navigation li.woocommerce-MyAccount-navigation-link--customer-logout a::before { content: "\f3b4"; } /* box-arrow-right */

body.woocommerce-account .woocommerce-MyAccount-navigation li a:hover {
  background: var(--sc-slate-50) !important;
  color: var(--sc-dark) !important;
}

body.woocommerce-account .woocommerce-MyAccount-navigation li a:hover::before {
  color: var(--sc-sky);
}

body.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a {
  background: var(--sc-gradient) !important;
  color: white !important;
  box-shadow: 0 4px 12px rgba(14, 165, 233, 0.18) !important;
}

body.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a::before {
  color: white;
}

/* ─── Content area ────────────────────────────────────────────── */
body.woocommerce-account .woocommerce-MyAccount-content {
  width: 100% !important;
  float: none !important;
  margin: 0 !important;
  padding: 0 !important;
  min-width: 0;
}


/* ═══════════════ DASHBOARD — CUSTOM UI ════════════════════════ */

.sc-dashboard {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* ─── Welcome card ──────────────────────────────────────────── */
.sc-dash-welcome {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  background: white;
  border: 1px solid var(--sc-slate-200);
  border-radius: var(--sc-radius-xl);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.sc-dash-welcome__avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--sc-gradient);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  font-weight: 700;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(14, 165, 233, 0.22);
}

.sc-dash-welcome__title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--sc-dark);
  margin: 0 0 0.15rem;
  line-height: 1.2;
}

.sc-dash-welcome__email {
  font-size: 0.85rem;
  color: var(--sc-slate-500);
  margin: 0;
  line-height: 1.4;
}

/* ─── Generic section wrapper ────────────────────────────────── */
.sc-dash-section {
  margin: 0;
}

.sc-dash-section__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 0 0 0.85rem;
}

.sc-dash-section__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--sc-dark);
  margin: 0;
  line-height: 1.3;
}

.sc-dash-section__action {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--sc-sky);
  text-decoration: none;
  transition: color 0.15s ease;
}

.sc-dash-section__action:hover {
  color: #0284c7;
}

.sc-dash-section__action i {
  font-size: 0.85rem;
  transition: transform 0.15s ease;
}

.sc-dash-section__action:hover i {
  transform: translateX(2px);
}

/* ─── Empty state ───────────────────────────────────────────── */
.sc-dash-empty {
  padding: 2.5rem 1.5rem;
  text-align: center;
  background: var(--sc-slate-50);
  border: 1px dashed var(--sc-slate-200);
  border-radius: var(--sc-radius-xl);
}

.sc-dash-empty > i {
  display: inline-flex;
  width: 56px;
  height: 56px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: white;
  border: 1px solid var(--sc-slate-200);
  color: var(--sc-slate-400);
  font-size: 1.5rem;
  margin-bottom: 0.85rem;
}

.sc-dash-empty p {
  color: var(--sc-slate-600);
  font-size: 0.9rem;
  margin: 0 0 1rem;
}

/* ─── License cards ─────────────────────────────────────────── */
.sc-license-cards {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.sc-license-card {
  padding: 1.25rem 1.25rem;
  background: white;
  border: 1px solid var(--sc-slate-200);
  border-radius: var(--sc-radius-xl);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.sc-license-card.is-active   { border-left: 3px solid var(--sc-success); }
.sc-license-card.is-expiring { border-left: 3px solid #f59e0b; }
.sc-license-card.is-expired  { border-left: 3px solid var(--sc-danger); opacity: 0.85; }

.sc-license-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.sc-license-card__identity {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.sc-license-card__plan {
  font-size: 1rem;
  font-weight: 700;
  color: var(--sc-dark);
  line-height: 1.3;
}

.sc-license-card__meta {
  font-size: 0.82rem;
  color: var(--sc-slate-500);
}

/* Status pill */
.sc-status {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}

.sc-status i { font-size: 0.85rem; }

.sc-status--active  { background: rgba(16, 185, 129, 0.1); color: #047857; }
.sc-status--warning { background: rgba(245, 158, 11, 0.12); color: #b45309; }
.sc-status--expired { background: rgba(239, 68, 68, 0.1); color: #b91c1c; }

/* License key row */
.sc-license-card__key {
  display: flex;
  align-items: stretch;
  gap: 0.5rem;
  background: var(--sc-slate-50);
  border: 1px solid var(--sc-slate-200);
  border-radius: var(--sc-radius);
  padding: 0.35rem;
  min-width: 0;
}

.sc-license-card__key code {
  flex: 1;
  min-width: 0;
  padding: 0.5rem 0.75rem;
  font-family: ui-monospace, 'SF Mono', 'Menlo', 'Monaco', monospace;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--sc-dark);
  background: transparent;
  border: none;
  overflow-x: auto;
  white-space: nowrap;
  letter-spacing: 0.02em;
}

.sc-license-card__key .sc-copy-key {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 0.85rem;
  background: white;
  border: 1px solid var(--sc-slate-200);
  border-radius: calc(var(--sc-radius) - 2px);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--sc-slate-700);
  cursor: pointer;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.sc-license-card__key .sc-copy-key:hover {
  background: var(--sc-sky);
  border-color: var(--sc-sky);
  color: white;
}

.sc-license-card__key .sc-copy-key.is-copied {
  background: var(--sc-success);
  border-color: var(--sc-success);
  color: white;
}

.sc-license-card__key .sc-copy-key.is-failed {
  background: var(--sc-danger);
  border-color: var(--sc-danger);
  color: white;
}

/* Footer stats */
.sc-license-card__footer {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--sc-slate-100);
  font-size: 0.82rem;
  color: var(--sc-slate-500);
}

.sc-license-card__stat {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.sc-license-card__stat-value {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--sc-dark);
  line-height: 1.2;
}

.sc-license-card__stat-label {
  font-size: 0.75rem;
  color: var(--sc-slate-500);
  line-height: 1.3;
  text-transform: lowercase;
  letter-spacing: 0.01em;
}

/* ─── Recent orders ─────────────────────────────────────────── */
.sc-dash-orders {
  display: flex;
  flex-direction: column;
  gap: 0;
  background: white;
  border: 1px solid var(--sc-slate-200);
  border-radius: var(--sc-radius-xl);
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.sc-dash-order {
  display: grid;
  grid-template-columns: auto 1fr auto auto auto;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1.15rem;
  text-decoration: none;
  color: var(--sc-dark);
  border-bottom: 1px solid var(--sc-slate-100);
  transition: background 0.15s ease;
}

.sc-dash-order:last-child { border-bottom: none; }

.sc-dash-order:hover {
  background: var(--sc-slate-50);
}

.sc-dash-order__num {
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--sc-dark);
}

.sc-dash-order__date {
  font-size: 0.82rem;
  color: var(--sc-slate-500);
}

.sc-dash-order__status {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.sc-dash-order__status--completed  { background: rgba(16, 185, 129, 0.1); color: #047857; }
.sc-dash-order__status--processing { background: rgba(14, 165, 233, 0.1); color: #0369a1; }
.sc-dash-order__status--on-hold    { background: rgba(245, 158, 11, 0.12); color: #b45309; }
.sc-dash-order__status--pending    { background: rgba(148, 163, 184, 0.15); color: var(--sc-slate-600); }

.sc-dash-order__total {
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--sc-dark);
  white-space: nowrap;
}

.sc-dash-order > i {
  color: var(--sc-slate-400);
  font-size: 0.85rem;
  transition: transform 0.15s ease;
}

.sc-dash-order:hover > i {
  color: var(--sc-sky);
  transform: translateX(2px);
}

@media (max-width: 575.98px) {
  .sc-dash-order {
    grid-template-columns: 1fr auto;
    gap: 0.4rem 0.85rem;
    padding: 0.85rem 1rem;
  }
  .sc-dash-order__num   { grid-column: 1; grid-row: 1; }
  .sc-dash-order__total { grid-column: 2; grid-row: 1; }
  .sc-dash-order__date   { grid-column: 1; grid-row: 2; }
  .sc-dash-order__status { grid-column: 2; grid-row: 2; justify-self: end; }
  .sc-dash-order > i { display: none; }
}

/* ─── Quick actions ─────────────────────────────────────────── */
.sc-dash-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 575.98px) {
  .sc-dash-actions { grid-template-columns: 1fr; }
}

.sc-dash-action {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1.15rem 1.25rem;
  background: white;
  border: 1px solid var(--sc-slate-200);
  border-radius: var(--sc-radius-xl);
  text-decoration: none;
  color: var(--sc-dark);
  transition: all 0.15s ease;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.sc-dash-action:hover {
  border-color: var(--sc-sky);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(14, 165, 233, 0.08);
}

.sc-dash-action__icon {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--sc-radius);
  background: rgba(14, 165, 233, 0.08);
  color: var(--sc-sky);
  font-size: 1.2rem;
  flex-shrink: 0;
}

.sc-dash-action__text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

.sc-dash-action__text strong {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--sc-dark);
  line-height: 1.3;
}

.sc-dash-action__text span {
  font-size: 0.78rem;
  color: var(--sc-slate-500);
  line-height: 1.4;
}

/* ═══════════════════════════════════════════════════════════════
   ShieldConsent — My Account + WooCommerce pages WIDE LAYOUT
   FINAL version. APPEND to assets/css/woocommerce.css.
   Overrides the narrow 780px page container (inline style in
   page.php) so WC pages get enough room for sidebars + cards.
   ═══════════════════════════════════════════════════════════════ */


/* ─── 1. Widen the container for ALL WooCommerce pages ────────
   Your page.php injects style="max-width:780px;" inline on the
   .container. Inline styles WITHOUT !important are beaten by
   any CSS rule with !important — so these rules win. */

body.woocommerce-page main .container,
body.woocommerce-page main > .container,
body.woocommerce-account main .container,
body.woocommerce-cart main .container,
body.woocommerce-checkout main .container {
  max-width: 1200px !important;
}


/* ─── 2. Neutralize .sc-page-content constraints on WC pages ──
   That wrapper is designed for narrow-column text (legal pages).
   On WC pages it must be transparent — no max-width, no padding. */

body.woocommerce-page .sc-page-content,
body.woocommerce-account .sc-page-content,
body.woocommerce-cart .sc-page-content,
body.woocommerce-checkout .sc-page-content {
  max-width: none !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}


/* ═══════════════ MY ACCOUNT LAYOUT (flex) ══════════════════════ */

body.woocommerce-account .woocommerce {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  gap: 2.5rem !important;
  align-items: flex-start !important;
  width: 100% !important;
  max-width: 100% !important;
  float: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

@media (max-width: 767.98px) {
  body.woocommerce-account .woocommerce {
    flex-direction: column !important;
    gap: 1.5rem !important;
  }
}

/* Sidebar nav: fixed 240px column */
body.woocommerce-account .woocommerce-MyAccount-navigation {
  flex: 0 0 240px !important;
  width: 240px !important;
  max-width: 240px !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  float: none !important;
  position: sticky;
  top: 100px;
}

@media (max-width: 767.98px) {
  body.woocommerce-account .woocommerce-MyAccount-navigation {
    flex: 1 1 auto !important;
    width: 100% !important;
    max-width: 100% !important;
    position: static;
  }
}

body.woocommerce-account .woocommerce-MyAccount-navigation ul {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 0.25rem !important;
  background: transparent !important;
  border: none !important;
  width: 100% !important;
}

body.woocommerce-account .woocommerce-MyAccount-navigation li {
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
  display: block !important;
  float: none !important;
  width: 100% !important;
  list-style: none !important;
}

body.woocommerce-account .woocommerce-MyAccount-navigation li a {
  display: flex !important;
  align-items: center !important;
  gap: 0.65rem !important;
  padding: 0.7rem 0.9rem !important;
  font-size: 0.9rem !important;
  font-weight: 500 !important;
  color: var(--sc-slate-600) !important;
  background: transparent !important;
  border: 1px solid transparent !important;
  border-radius: var(--sc-radius) !important;
  text-decoration: none !important;
  transition: background 0.15s ease, color 0.15s ease !important;
  width: 100% !important;
  text-align: left !important;
  box-sizing: border-box !important;
}

body.woocommerce-account .woocommerce-MyAccount-navigation li a::before {
  font-family: 'bootstrap-icons' !important;
  font-size: 1rem !important;
  color: var(--sc-slate-400) !important;
  flex-shrink: 0 !important;
  transition: color 0.15s ease !important;
  line-height: 1 !important;
}

body.woocommerce-account .woocommerce-MyAccount-navigation li.woocommerce-MyAccount-navigation-link--dashboard a::before       { content: "\f4fa" !important; }
body.woocommerce-account .woocommerce-MyAccount-navigation li.woocommerce-MyAccount-navigation-link--orders a::before          { content: "\f174" !important; }
body.woocommerce-account .woocommerce-MyAccount-navigation li.woocommerce-MyAccount-navigation-link--downloads a::before       { content: "\f30a" !important; }
body.woocommerce-account .woocommerce-MyAccount-navigation li.woocommerce-MyAccount-navigation-link--edit-address a::before    { content: "\f3e7" !important; }
body.woocommerce-account .woocommerce-MyAccount-navigation li.woocommerce-MyAccount-navigation-link--edit-account a::before    { content: "\f4e1" !important; }
body.woocommerce-account .woocommerce-MyAccount-navigation li.woocommerce-MyAccount-navigation-link--customer-logout a::before { content: "\f3b4" !important; }

body.woocommerce-account .woocommerce-MyAccount-navigation li a:hover {
  background: var(--sc-slate-50) !important;
  color: var(--sc-dark) !important;
}

body.woocommerce-account .woocommerce-MyAccount-navigation li a:hover::before {
  color: var(--sc-sky) !important;
}

body.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a {
  background: var(--sc-gradient) !important;
  color: white !important;
  box-shadow: 0 4px 12px rgba(14, 165, 233, 0.18) !important;
}

body.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a::before {
  color: white !important;
}


/* Content area: takes all remaining space */
body.woocommerce-account .woocommerce-MyAccount-content {
  flex: 1 1 0% !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  float: none !important;
}

@media (max-width: 767.98px) {
  body.woocommerce-account .woocommerce-MyAccount-content {
    flex: 1 1 auto !important;
    width: 100% !important;
  }
}

/* ═══════════════════════════════════════════════════════════════
   ShieldConsent — My Account → Address tab (FINAL FIX)
   APPEND to assets/css/woocommerce.css.
   WC 10.x no longer wraps address blocks in .u-columns, so we
   target .col-1 / .woocommerce-Address directly under the
   content area regardless of any wrapper presence.
   ═══════════════════════════════════════════════════════════════ */


/* ─── Intro paragraph ─────────────────────────────────────────── */
body.woocommerce-account .woocommerce-MyAccount-content > p:first-of-type,
body.woocommerce-account .woocommerce-MyAccount-content > .woocommerce-notices-wrapper + p {
  color: var(--sc-slate-600) !important;
  font-size: 0.9rem !important;
  line-height: 1.55 !important;
  margin: 0 0 1.5rem !important;
}


/* ─── RESET WC legacy floats + narrow widths on ALL variants ──── */
/* Targets .col-1 / .col-2 / .u-column1 / .u-column2 / .woocommerce-Address
   no matter how deep they are under .woocommerce-MyAccount-content — do
   NOT require .u-columns parent since WC 10.x may omit it. */
body.woocommerce-account .woocommerce-MyAccount-content .col-1,
body.woocommerce-account .woocommerce-MyAccount-content .col-2,
body.woocommerce-account .woocommerce-MyAccount-content .u-column1,
body.woocommerce-account .woocommerce-MyAccount-content .u-column2,
body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Address {
  float: none !important;
  clear: both !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
}

/* Optional wrapper if still present (older WC versions) */
body.woocommerce-account .woocommerce-MyAccount-content .u-columns,
body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Addresses {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  float: none !important;
  overflow: visible !important;
  margin: 0 !important;
}

body.woocommerce-account .woocommerce-MyAccount-content .u-columns::before,
body.woocommerce-account .woocommerce-MyAccount-content .u-columns::after,
body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Addresses::before,
body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Addresses::after {
  display: none !important;
  content: none !important;
}


/* ─── Address card (BLOCK display — not flex) ─────────────────── */
body.woocommerce-account .woocommerce-Address {
  display: block !important;              /* key: block, not flex */
  background: white !important;
  border: 1px solid var(--sc-slate-200) !important;
  border-radius: var(--sc-radius-xl) !important;
  padding: 1.25rem 1.5rem !important;
  margin: 0 0 1.25rem !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

body.woocommerce-account .woocommerce-Address:last-child {
  margin-bottom: 0 !important;
}


/* ─── Card header: title + Add/Edit action horizontally ──────── */
body.woocommerce-account .woocommerce-Address .woocommerce-Address-title,
body.woocommerce-account .woocommerce-Address > header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 0.85rem !important;
  margin: 0 0 0.9rem !important;
  padding: 0 !important;
  flex-wrap: wrap !important;
  width: 100% !important;
}

body.woocommerce-account .woocommerce-Address .woocommerce-Address-title h2,
body.woocommerce-account .woocommerce-Address .woocommerce-Address-title h3,
body.woocommerce-account .woocommerce-Address > header h2,
body.woocommerce-account .woocommerce-Address > header h3 {
  margin: 0 !important;
  padding: 0 !important;
  font-size: 1rem !important;
  font-weight: 700 !important;
  color: var(--sc-dark) !important;
  line-height: 1.3 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  flex: 0 1 auto !important;
}


/* ─── Add/Edit link as pill button ──────────────────────────── */
body.woocommerce-account .woocommerce-Address .woocommerce-Address-title a,
body.woocommerce-account .woocommerce-Address .woocommerce-Address-title .edit,
body.woocommerce-account .woocommerce-Address > header a,
body.woocommerce-account .woocommerce-Address > header .edit {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.35rem !important;
  padding: 0.4rem 0.85rem !important;
  font-size: 0.8rem !important;
  font-weight: 600 !important;
  color: var(--sc-sky) !important;
  background: white !important;
  border: 1.5px solid var(--sc-slate-200) !important;
  border-radius: var(--sc-radius) !important;
  text-decoration: none !important;
  transition: all 0.15s ease !important;
  white-space: nowrap !important;
  line-height: 1.2 !important;
  flex-shrink: 0 !important;
}

body.woocommerce-account .woocommerce-Address .woocommerce-Address-title a:hover,
body.woocommerce-account .woocommerce-Address > header a:hover {
  background: var(--sc-sky) !important;
  border-color: var(--sc-sky) !important;
  color: white !important;
}


/* ─── Address body (the <address> element) ───────────────────── */
body.woocommerce-account .woocommerce-Address address {
  display: block !important;
  margin: 0 !important;
  padding: 0.9rem 1rem !important;
  background: var(--sc-slate-50) !important;
  border-radius: var(--sc-radius) !important;
  border: 1px solid transparent !important;
  font-style: normal !important;
  font-size: 0.88rem !important;
  line-height: 1.6 !important;
  color: var(--sc-slate-700) !important;
  overflow-wrap: break-word !important;
  word-break: normal !important;
  white-space: pre-line !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

/* Empty state: "You have not set up this type of address yet."
   Detected via :not(:has(br)) — a saved address has <br> separators
   between lines; the empty-state text doesn't. */
body.woocommerce-account .woocommerce-Address address:not(:has(br)) {
  background: transparent !important;
  border: 1px dashed var(--sc-slate-200) !important;
  color: var(--sc-slate-500) !important;
  font-style: italic !important;
  text-align: center !important;
  padding: 1.25rem 1rem !important;
}


/* ─── Edit Account / Edit Address forms (minor polish) ────────── */

body.woocommerce-account form.woocommerce-EditAccountForm,
body.woocommerce-account form.edit-account,
body.woocommerce-account form.woocommerce-address-fields {
  display: block;
  max-width: 560px;
}

body.woocommerce-account form.woocommerce-EditAccountForm fieldset,
body.woocommerce-account form.edit-account fieldset,
body.woocommerce-account form.woocommerce-address-fields fieldset {
  margin: 1.5rem 0 0 !important;
  padding: 1.25rem !important;
  background: var(--sc-slate-50);
  border: 1px solid var(--sc-slate-200);
  border-radius: var(--sc-radius-xl);
}

body.woocommerce-account form.woocommerce-EditAccountForm fieldset legend,
body.woocommerce-account form.edit-account fieldset legend {
  font-size: 0.95rem !important;
  font-weight: 700 !important;
  color: var(--sc-dark) !important;
  padding: 0 !important;
  margin: 0 0 0.75rem !important;
  float: none !important;
  width: auto !important;
}

body.woocommerce-account form.woocommerce-EditAccountForm button[type="submit"],
body.woocommerce-account form.edit-account button[type="submit"],
body.woocommerce-account form.woocommerce-address-fields button[type="submit"] {
  margin-top: 0.75rem;
}

/* ═══════════════════════════════════════════════════════════════
   ShieldConsent — License card revoked state
   APPEND to assets/css/woocommerce.css
   ═══════════════════════════════════════════════════════════════ */

.sc-license-card.is-revoked {
  border-left: 3px solid var(--sc-slate-400);
  opacity: 0.7;
}

.sc-license-card.is-revoked .sc-license-card__plan {
  text-decoration: line-through;
  color: var(--sc-slate-500);
}

