/* Cart, Checkout, Downloads — additional styles */

/* ===== Page header (sub-pages) ===== */
.page-hero {
  background: var(--navy-900);
  color: #fff;
  padding: 64px 0 80px;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 80% 30%, rgba(45,107,255,0.18), transparent 50%);
}
.page-hero__inner { position: relative; }
.page-hero h1 { color:#fff; font-size: 44px; line-height: 1.1; margin-bottom: 12px; }
.page-hero p { color: rgba(255,255,255,0.7); font-size: 17px; max-width: 620px; }
.crumbs {
  font-family: var(--font-head);
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  margin-bottom: 16px;
  letter-spacing: 0.04em;
}
.crumbs a { color: rgba(255,255,255,0.7); }
.crumbs span { margin: 0 8px; opacity: 0.5; }

/* ===== Cart ===== */
.cart-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 40px;
  align-items: start;
}
.cart-table {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 14px 40px rgba(11,27,61,.06);
}
.cart-row {
  display: grid;
  grid-template-columns: 80px 1fr 130px 130px 100px 32px;
  align-items: center;
  gap: 20px;
  padding: 22px 24px;
  border-top: 1px solid var(--line);
}
.cart-row:first-child { border-top: none; }
.cart-row--head {
  background: var(--surface);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding: 14px 24px;
}
.cart-thumb {
  width: 72px; height: 72px;
  border-radius: 8px;
  background: var(--surface-2);
  overflow: hidden;
  display: grid; place-items: center;
  color: var(--blue-500);
}
.cart-name {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--navy-900);
  font-size: 15.5px;
  margin-bottom: 4px;
}
.cart-meta { font-size: 13px; color: var(--ink-3); }
.qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  overflow: hidden;
}
.qty button {
  width: 32px; height: 36px;
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 16px;
  color: var(--ink-2);
}
.qty button:hover { background: var(--surface); color: var(--navy-900); }
.qty input {
  width: 44px; height: 36px;
  border: none; outline: none;
  text-align: center;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 14px;
  color: var(--navy-900);
}
.cart-price {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--navy-900);
  font-size: 15px;
}
.icon-btn {
  width: 32px; height: 32px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink-3);
  cursor: pointer;
  display: grid; place-items: center;
  transition: all .15s;
}
.icon-btn:hover { color: #c33; border-color: #c33; }

.cart-actions {
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 24px;
  background: var(--surface);
  border-top: 1px solid var(--line);
  gap: 16px;
  flex-wrap: wrap;
}
.coupon { display: flex; gap: 8px; }
.coupon input {
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: var(--font-body);
  width: 200px;
}
.coupon input:focus { outline: none; border-color: var(--blue-500); }

.summary {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  position: sticky;
  top: 96px;
  box-shadow: 0 14px 40px rgba(11,27,61,.06);
}
.summary h3 { font-size: 18px; margin-bottom: 20px; }
.summary__row {
  display: flex; justify-content: space-between;
  padding: 10px 0;
  font-size: 14.5px;
  color: var(--ink-2);
}
.summary__row--total {
  border-top: 2px solid var(--navy-900);
  margin-top: 10px;
  padding-top: 16px;
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--navy-900);
  font-size: 18px;
}
.summary__note {
  margin-top: 18px;
  padding: 12px 14px;
  background: var(--surface);
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--ink-2);
  display: flex; align-items: start; gap: 10px;
}

/* ===== Checkout ===== */
.checkout-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  align-items: start;
}
.checkout-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  margin-bottom: 24px;
  box-shadow: 0 14px 40px rgba(11,27,61,.06);
}
.checkout-card h3 {
  font-size: 18px;
  margin-bottom: 4px;
  display: flex; align-items: center; gap: 12px;
}
.checkout-card .step-badge {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--blue-500);
  color: #fff;
  font-size: 13px;
  display: grid; place-items: center;
  font-family: var(--font-head);
  font-weight: 700;
}
.checkout-card__sub {
  font-size: 13.5px;
  color: var(--ink-3);
  margin-bottom: 22px;
  margin-left: 38px;
}

.pay-options { display: grid; gap: 10px; }
.pay-option {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  cursor: pointer;
  background: #fff;
  transition: all .15s;
}
.pay-option:hover { border-color: var(--ink-3); }
.pay-option.is-active {
  border-color: var(--blue-500);
  background: rgba(45,107,255,0.04);
  box-shadow: 0 0 0 3px rgba(45,107,255,0.08);
}
.pay-option__radio {
  width: 18px; height: 18px;
  border: 2px solid var(--line);
  border-radius: 50%;
  flex-shrink: 0;
  position: relative;
}
.pay-option.is-active .pay-option__radio { border-color: var(--blue-500); }
.pay-option.is-active .pay-option__radio::after {
  content: '';
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--blue-500);
}
.pay-option__label {
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--navy-900);
  font-size: 14.5px;
  flex: 1;
}
.pay-option__icons { display: flex; gap: 6px; }
.card-brand {
  height: 22px; padding: 0 8px;
  border-radius: 4px;
  background: var(--surface-2);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 11px;
  display: grid; place-items: center;
  color: var(--ink);
}

.order-summary {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  position: sticky;
  top: 96px;
  box-shadow: 0 14px 40px rgba(11,27,61,.06);
}
.order-summary h3 { font-size: 17px; margin-bottom: 18px; }
.order-line {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  align-items: center;
}
.order-line__thumb {
  width: 44px; height: 44px;
  background: #fff;
  border-radius: 6px;
  border: 1px solid var(--line);
  display: grid; place-items: center;
  color: var(--blue-500);
  position: relative;
}
.order-line__qty {
  position: absolute; top: -6px; right: -6px;
  background: var(--navy-900); color: #fff;
  font-size: 10px; font-weight: 700;
  width: 18px; height: 18px;
  border-radius: 50%;
  display: grid; place-items: center;
}
.order-line__name { font-family: var(--font-head); font-weight: 600; color: var(--navy-900); font-size: 14px; }
.order-line__sub  { font-size: 12px; color: var(--ink-3); }
.order-line__price { font-family: var(--font-head); font-weight: 700; color: var(--navy-900); font-size: 14px; }

.trust-badges {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.trust-badge {
  display: flex; align-items: center; gap: 8px;
  font-size: 12.5px; color: var(--ink-2);
}
.trust-badge svg { color: var(--blue-500); flex-shrink: 0; }

.checkout-caution {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0 0 24px;
  padding: 16px 18px;
  border: 1px solid rgba(220,38,38,.28);
  border-left: 4px solid #dc2626;
  border-radius: 12px;
  background: rgba(220,38,38,.08);
  color: var(--ink-2);
  box-shadow: 0 14px 34px rgba(220,38,38,.10);
  animation: nx-checkout-caution-pulse 1.35s ease-in-out infinite;
}
.checkout-caution::before {
  content: '!';
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #dc2626;
  color: #fff;
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 900;
  animation: nx-checkout-caution-badge 1.35s ease-in-out infinite;
}
.checkout-caution strong {
  display: block;
  color: #991b1b;
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: .01em;
  margin-bottom: 3px;
}
.checkout-caution span {
  display: block;
  font-size: 14px;
  line-height: 1.55;
}
@keyframes nx-checkout-caution-pulse {
  0%, 100% {
    background: rgba(220,38,38,.08);
    box-shadow: 0 14px 34px rgba(220,38,38,.10);
  }
  50% {
    background: rgba(220,38,38,.16);
    box-shadow: 0 16px 42px rgba(220,38,38,.20);
  }
}
@keyframes nx-checkout-caution-badge {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.14);
  }
}
@media (prefers-reduced-motion: reduce) {
  .checkout-caution,
  .checkout-caution::before {
    animation: none;
  }
}

.woocommerce-checkout-payment,
.woocommerce-checkout-payment #payment,
.woocommerce-checkout-payment .payment_methods,
.woocommerce-checkout-payment .payment_box,
.woocommerce-checkout-payment .payment_box > *,
.woocommerce-checkout-payment .form-row {
  position: relative;
  overflow: visible !important;
}
.woocommerce-checkout-payment .payment_box,
.woocommerce-checkout-payment .payment_box iframe,
.woocommerce-checkout-payment .payment_box input,
.woocommerce-checkout-payment .payment_box select,
.woocommerce-checkout-payment .payment_box textarea,
.woocommerce-checkout-payment .payment_box button,
.woocommerce-checkout-payment .StripeElement,
.woocommerce-checkout-payment .wc-stripe-elements-field,
.woocommerce-checkout-payment .wcpay-upe-element,
.woocommerce-checkout-payment .ppcp-credit-card-gateway,
.woocommerce-checkout-payment .ppcp-credit-card-gateway iframe,
.woocommerce-checkout-payment [class*="card-field"],
.woocommerce-checkout-payment [id*="card"],
.woocommerce-checkout-payment [id*="paypal"],
.woocommerce-checkout-payment [id*="stripe"] {
  pointer-events: auto !important;
  position: relative;
  z-index: 5;
}
.woocommerce-checkout-payment .payment_box iframe {
  display: block;
  width: 100%;
  min-height: 44px;
  border: 0;
}

/* ===== WooCommerce Blocks cart / checkout ===== */
.nx-wc-block-page {
  background: var(--surface);
  padding: clamp(36px, 5vw, 72px) 0 clamp(56px, 7vw, 96px);
}
.nx-wc-block-page__inner {
  max-width: var(--container);
}
.nx-wc-block-page *,
.nx-wc-block-page *::before,
.nx-wc-block-page *::after {
  box-sizing: border-box;
}
.nx-wc-block-page .wp-block-woocommerce-cart,
.nx-wc-block-page .wp-block-woocommerce-checkout,
.nx-wc-block-page .wp-block-woocommerce-filled-cart-block,
.nx-wc-block-page .wp-block-woocommerce-filled-checkout-block {
  margin: 0;
  max-width: none;
}
.nx-wc-block-page .wc-block-components-sidebar-layout {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 392px);
  gap: 36px;
  align-items: start;
}
.nx-wc-block-page .wc-block-components-main,
.nx-wc-block-page .wc-block-components-sidebar {
  width: auto !important;
  padding: 0 !important;
  float: none !important;
}
.nx-wc-block-page .wc-block-components-main {
  display: grid;
  gap: 18px;
}
.nx-wc-block-page .wc-block-components-sidebar {
  position: sticky;
  top: 96px;
  align-self: start;
}
.nx-wc-block-page .wc-block-components-checkout-step,
.nx-wc-block-page .wc-block-components-express-payment,
.nx-wc-block-page .wc-block-cart__main,
.nx-wc-block-page .wc-block-cart__sidebar,
.nx-wc-block-page .wc-block-components-sidebar .wc-block-components-order-summary,
.nx-wc-block-page .wp-block-woocommerce-cart-order-summary-block {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 14px 40px rgba(11,27,61,.06);
}
.nx-wc-block-page .wc-block-components-checkout-step,
.nx-wc-block-page .wc-block-components-express-payment {
  margin: 0 !important;
  padding: 24px !important;
}
.nx-wc-block-page .wc-block-components-checkout-step__heading {
  margin: 0 0 16px !important;
  padding: 0 !important;
}
.nx-wc-block-page .wc-block-components-title,
.nx-wc-block-page .wc-block-components-checkout-step__title,
.nx-wc-block-page .wc-block-cart__totals-title,
.nx-wc-block-page .wp-block-woocommerce-checkout-order-summary-block .wc-block-components-order-summary__title {
  color: var(--navy-900);
  font-family: var(--font-head);
  font-weight: 800;
  letter-spacing: -.01em;
}
.nx-wc-block-page .wc-block-components-checkout-step__description,
.nx-wc-block-page .wc-block-components-checkout-step__heading-content,
.nx-wc-block-page .wc-block-components-checkbox__label,
.nx-wc-block-page .wc-block-components-formatted-money-amount,
.nx-wc-block-page .wc-block-components-product-metadata,
.nx-wc-block-page .wc-block-components-product-metadata__description {
  color: var(--ink-2);
}
.nx-wc-block-page .wc-block-components-text-input input,
.nx-wc-block-page .wc-block-components-combobox .wc-block-components-combobox-control input,
.nx-wc-block-page .wc-block-components-form .wc-block-components-text-input input,
.nx-wc-block-page .wc-block-components-address-form input,
.nx-wc-block-page .wc-block-components-address-form select,
.nx-wc-block-page .wc-block-components-textarea {
  min-height: 50px;
  border: 1px solid var(--line) !important;
  border-radius: 8px !important;
  background: #fff !important;
  color: var(--navy-900);
  font-family: var(--font-body);
  box-shadow: none !important;
}
.nx-wc-block-page .wc-block-components-text-input input:focus,
.nx-wc-block-page .wc-block-components-combobox .wc-block-components-combobox-control input:focus,
.nx-wc-block-page .wc-block-components-address-form input:focus,
.nx-wc-block-page .wc-block-components-address-form select:focus,
.nx-wc-block-page .wc-block-components-textarea:focus {
  border-color: var(--blue-500) !important;
  box-shadow: 0 0 0 3px rgba(45,107,255,.12) !important;
  outline: none !important;
}
.nx-wc-block-page .wc-block-components-express-payment__event-buttons,
.nx-wc-block-page .wc-block-components-express-payment__content {
  display: grid;
  gap: 12px;
}
.nx-wc-block-page .wc-block-components-express-payment,
.nx-wc-block-page .wc-block-components-express-payment__content,
.nx-wc-block-page .wc-block-components-express-payment__event-buttons,
.nx-wc-block-page .wc-block-components-express-payment__event-buttons > *,
.nx-wc-block-page .wc-block-components-express-payment .wc-block-components-payment-method-icons,
.nx-wc-block-page .wc-block-components-express-payment .wc-block-components-express-payment__event-buttons {
  overflow: visible !important;
  pointer-events: auto !important;
  position: relative;
  z-index: 30;
}
.nx-wc-block-page .wc-block-components-express-payment iframe,
.nx-wc-block-page .wc-block-components-express-payment input,
.nx-wc-block-page .wc-block-components-express-payment select,
.nx-wc-block-page .wc-block-components-express-payment textarea,
.nx-wc-block-page .wc-block-components-express-payment button,
.nx-wc-block-page .wc-block-components-express-payment [role="button"],
.nx-wc-block-page .wc-block-components-express-payment [tabindex],
.nx-wc-block-page .wc-block-components-express-payment .paypal-buttons,
.nx-wc-block-page .wc-block-components-express-payment .paypal-buttons iframe,
.nx-wc-block-page .wc-block-components-express-payment .paypal-button,
.nx-wc-block-page .wc-block-components-express-payment .paypal-button iframe,
.nx-wc-block-page .wc-block-components-express-payment .paypal-card-fields,
.nx-wc-block-page .wc-block-components-express-payment .paypal-card-fields iframe,
.nx-wc-block-page .wc-block-components-express-payment .ppcp-card-fields,
.nx-wc-block-page .wc-block-components-express-payment .ppcp-card-fields iframe,
.nx-wc-block-page .wc-block-components-express-payment .ppcp-hosted-fields,
.nx-wc-block-page .wc-block-components-express-payment .ppcp-hosted-fields iframe,
.nx-wc-block-page .wc-block-components-express-payment .ppcp-credit-card-gateway,
.nx-wc-block-page .wc-block-components-express-payment .ppcp-credit-card-gateway iframe,
.nx-wc-block-page .wc-block-components-express-payment [class*="paypal"],
.nx-wc-block-page .wc-block-components-express-payment [id*="paypal"],
.nx-wc-block-page .wc-block-components-express-payment [class*="ppcp"],
.nx-wc-block-page .wc-block-components-express-payment [id*="ppcp"],
.nx-wc-block-page .wc-block-components-express-payment [class*="card"],
.nx-wc-block-page .wc-block-components-express-payment [id*="card"] {
  pointer-events: auto !important;
  position: relative;
  z-index: 40;
}
.nx-wc-block-page .wc-block-components-express-payment iframe {
  border: 0;
  max-width: 100%;
}
.nx-wc-block-page .wc-block-components-express-payment *::before,
.nx-wc-block-page .wc-block-components-express-payment *::after {
  pointer-events: none !important;
}
.nx-wc-block-page .wc-block-components-radio-control,
.nx-wc-block-page .wc-block-checkout__payment-method {
  border-radius: 12px;
  overflow: visible !important;
  position: relative;
}
.nx-wc-block-page .wc-block-checkout__payment-method {
  border: 0 !important;
  background: transparent !important;
}
.nx-wc-block-page .wc-block-checkout__payment-method .wc-block-components-radio-control {
  display: grid;
  gap: 12px;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
.nx-wc-block-page .wc-block-components-radio-control__option {
  border: 1px solid var(--line);
  border-radius: 10px;
  margin-bottom: 10px;
  padding: 16px !important;
  background: #fff;
  overflow: visible !important;
  position: relative;
}
.nx-wc-block-page .wc-block-checkout__payment-method .wc-block-components-radio-control__option {
  min-height: 74px;
  margin: 0 !important;
  padding: 18px 20px !important;
  border-color: rgba(11,27,61,.12);
  border-radius: 14px;
  box-shadow: 0 10px 28px rgba(11,27,61,.04);
}
.nx-wc-block-page .wc-block-components-radio-control__option::before,
.nx-wc-block-page .wc-block-components-radio-control__option::after {
  pointer-events: none;
}
.nx-wc-block-page .wc-block-components-radio-control__option-checked {
  border-color: var(--blue-500);
  box-shadow: 0 0 0 3px rgba(45,107,255,.08);
}
.nx-wc-block-page .wc-block-checkout__payment-method .wc-block-components-radio-control__option-checked {
  border-color: rgba(45,107,255,.45) !important;
  box-shadow: 0 0 0 3px rgba(45,107,255,.09), 0 16px 34px rgba(11,27,61,.06);
}
.nx-wc-block-page .wc-block-components-radio-control__input {
  width: 20px !important;
  height: 20px !important;
  margin: 0 14px 0 0 !important;
  accent-color: var(--blue-500);
}
.nx-wc-block-page .wc-block-components-radio-control__option-layout {
  display: flex !important;
  align-items: center !important;
  gap: 12px;
  width: 100%;
}
.nx-wc-block-page .wc-block-components-radio-control__label {
  color: var(--navy-900);
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 800;
}
.nx-wc-block-page .wc-block-components-radio-control__secondary-label,
.nx-wc-block-page .wc-block-components-payment-method-icons {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  margin-left: auto;
}
.nx-wc-block-page .wc-block-components-payment-method-icons img,
.nx-wc-block-page .wc-block-components-payment-method-icon {
  max-height: 24px;
  border-radius: 4px;
  box-shadow: 0 0 0 1px rgba(11,27,61,.08);
}
.nx-wc-block-page .wc-block-components-radio-control-accordion-content {
  margin: -6px 0 0 !important;
  padding: 0 18px 20px 52px !important;
  border: 1px solid rgba(45,107,255,.16);
  border-top: 0;
  border-radius: 0 0 14px 14px;
  background: #fff;
  box-shadow: 0 16px 34px rgba(11,27,61,.045);
  overflow: visible !important;
}
.nx-wc-block-page .wc-block-checkout__payment-method .wc-block-components-text-input,
.nx-wc-block-page .wc-block-checkout__payment-method .wc-block-components-validation-error {
  margin-top: 12px;
}
.nx-wc-block-page .wc-block-checkout__payment-method .wc-block-components-text-input input,
.nx-wc-block-page .wc-block-checkout__payment-method .wc-block-components-combobox-control input,
.nx-wc-block-page .wc-block-checkout__payment-method .wc-block-components-address-form input,
.nx-wc-block-page .wc-block-checkout__payment-method .wc-block-components-address-form select {
  min-height: 56px;
  border-radius: 12px !important;
  font-size: 15px;
}
.nx-wc-block-page .wc-block-checkout__payment-method .wc-block-components-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  color: var(--ink-2);
}
.nx-wc-block-page .wc-block-checkout__payment-method .wc-block-components-checkbox__input {
  width: 20px !important;
  height: 20px !important;
  border-radius: 5px !important;
  accent-color: var(--blue-500);
}
.nx-wc-block-page .wc-block-checkout__add-note,
.nx-wc-block-page .wc-block-checkout__order-notes {
  margin-top: 16px;
  padding: 18px 20px !important;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 14px 32px rgba(11,27,61,.045);
}
.nx-wc-block-page .wc-block-checkout__add-note .wc-block-components-checkbox {
  margin: 0;
}
.nx-wc-block-page .wc-block-components-radio-control__input,
.nx-wc-block-page .wc-block-components-radio-control__label,
.nx-wc-block-page .wc-block-components-radio-control__option-layout,
.nx-wc-block-page .wc-block-components-radio-control-accordion-content,
.nx-wc-block-page .wc-block-checkout__payment-method,
.nx-wc-block-page .wc-block-checkout__payment-method *,
.nx-wc-block-page .wc-block-checkout__payment-method iframe,
.nx-wc-block-page .wc-block-checkout__payment-method input,
.nx-wc-block-page .wc-block-checkout__payment-method select,
.nx-wc-block-page .wc-block-checkout__payment-method textarea,
.nx-wc-block-page .wc-block-checkout__payment-method button,
.nx-wc-block-page .StripeElement,
.nx-wc-block-page .wc-stripe-elements-field,
.nx-wc-block-page .wcpay-upe-element,
.nx-wc-block-page .ppcp-credit-card-gateway,
.nx-wc-block-page .ppcp-credit-card-gateway iframe,
.nx-wc-block-page [class*="card-field"],
.nx-wc-block-page [id*="card"],
.nx-wc-block-page [id*="paypal"],
.nx-wc-block-page [id*="stripe"] {
  pointer-events: auto !important;
  position: relative;
  z-index: 5;
}
.nx-wc-block-page .wc-block-checkout__payment-method iframe {
  display: block;
  width: 100%;
  min-height: 44px;
  border: 0;
}
.nx-wc-block-page .wc-block-cart__main {
  overflow: hidden;
  padding: 0 !important;
}
.nx-wc-block-page .wc-block-cart-items {
  margin: 0 !important;
  border: 0 !important;
}
.nx-wc-block-page .wc-block-cart-items__header th {
  padding: 16px 20px !important;
  background: var(--surface);
  color: var(--ink-3);
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.nx-wc-block-page .wc-block-cart-items__row td {
  padding: 22px 20px !important;
  border-top: 1px solid var(--line) !important;
  vertical-align: middle;
}
.nx-wc-block-page .wc-block-cart-item__image img,
.nx-wc-block-page .wc-block-components-order-summary-item__image img {
  border-radius: 8px;
  background: var(--surface-2);
}
.nx-wc-block-page .wc-block-cart-item__product,
.nx-wc-block-page .wc-block-components-order-summary-item__description {
  padding-left: 14px;
}
.nx-wc-block-page .wc-block-cart-item__wrap,
.nx-wc-block-page .wc-block-components-product-name {
  color: var(--navy-900);
  font-family: var(--font-head);
  font-weight: 700;
}
.nx-wc-block-page .wc-block-cart__sidebar,
.nx-wc-block-page .wc-block-components-sidebar .wc-block-components-order-summary,
.nx-wc-block-page .wp-block-woocommerce-cart-order-summary-block {
  padding: 24px !important;
}
.nx-wc-block-page .wc-block-components-totals-wrapper {
  padding: 14px 0 !important;
  border-top: 1px solid var(--line) !important;
}
.nx-wc-block-page .wc-block-components-totals-wrapper:first-child {
  border-top: 0 !important;
}
.nx-wc-block-page .wc-block-components-totals-footer-item {
  color: var(--navy-900);
  font-family: var(--font-head);
  font-weight: 800;
}
.nx-wc-block-page .wc-block-components-button:not(.is-link),
.nx-wc-block-page .wc-block-cart__submit-button,
.nx-wc-block-page .wc-block-checkout__actions_row .wc-block-components-button {
  min-height: 52px;
  border: 0 !important;
  border-radius: 8px !important;
  background: var(--blue-500) !important;
  color: #fff !important;
  font-family: var(--font-head);
  font-weight: 800;
  box-shadow: 0 12px 26px rgba(45,107,255,.18);
}
.nx-wc-block-page .wc-block-components-button:not(.is-link):hover,
.nx-wc-block-page .wc-block-cart__submit-button:hover,
.nx-wc-block-page .wc-block-checkout__actions_row .wc-block-components-button:hover {
  filter: brightness(.96);
  transform: translateY(-1px);
}
.nx-wc-block-page .wc-block-components-button.is-link,
.nx-wc-block-page a {
  color: var(--blue-500);
}
.nx-wc-block-page .wc-block-cart__payment-options {
  margin-top: 18px;
}
.nx-wc-block-page .wc-block-components-panel,
.nx-wc-block-page .wc-block-components-panel__button {
  border-color: var(--line) !important;
}
.nx-wc-block-page .wc-block-checkout__actions,
.nx-wc-block-page .wc-block-cart__submit-container {
  padding-top: 18px;
}

/* ===== Order received / payment success ===== */
.nxai-thankyou {
  background: var(--surface);
}
.nxai-thankyou-hero {
  background: var(--navy-900);
  color: #fff;
  padding: 72px 0 88px;
  position: relative;
  overflow: hidden;
}
.nxai-thankyou-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 75% 25%, rgba(45,107,255,.22), transparent 46%),
    linear-gradient(135deg, rgba(255,255,255,.08), transparent 35%);
  pointer-events: none;
}
.nxai-thankyou-hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: 72px minmax(0, 760px);
  gap: 24px;
  align-items: start;
}
.nxai-thankyou-hero__icon {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: rgba(45,107,255,.16);
  color: #fff;
  border: 1px solid rgba(255,255,255,.18);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.06), var(--shadow-lg);
}
.nxai-thankyou-hero.is-failed .nxai-thankyou-hero__icon {
  background: rgba(198,40,40,.18);
}
.nxai-thankyou-hero .kicker {
  color: rgba(255,255,255,.72);
}
.nxai-thankyou-hero h1 {
  color: #fff;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.02;
  margin-bottom: 14px;
}
.nxai-thankyou-hero p {
  color: rgba(255,255,255,.74);
  font-size: 18px;
  line-height: 1.7;
  max-width: 760px;
}
.nxai-thankyou-section {
  padding-top: 0;
  margin-top: -42px;
  position: relative;
}
.nxai-thankyou-overview {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  margin-bottom: 28px;
}
.nxai-thankyou-overview div {
  padding: 22px 24px;
  border-left: 1px solid var(--line);
}
.nxai-thankyou-overview div:first-child {
  border-left: 0;
}
.nxai-thankyou-overview span {
  display: block;
  color: var(--ink-3);
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .11em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.nxai-thankyou-overview strong {
  display: block;
  color: var(--navy-900);
  font-family: var(--font-head);
  font-size: 15px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}
.nxai-thankyou-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, .75fr);
  gap: 28px;
  align-items: start;
}
.nxai-thankyou-main,
.nxai-thankyou-card,
.nxai-thankyou-main .woocommerce-order-details,
.nxai-thankyou-main .woocommerce-customer-details,
.nxai-thankyou-main .nxai-license-panel,
.nxai-thankyou-main .woocommerce-bacs-bank-details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
}
.nxai-thankyou-main {
  padding: 0;
  overflow: hidden;
}
.nxai-thankyou-main > * {
  margin: 0;
}
.nxai-thankyou-main .woocommerce-order-details,
.nxai-thankyou-main .woocommerce-customer-details,
.nxai-thankyou-main .nxai-license-panel,
.nxai-thankyou-main .woocommerce-bacs-bank-details {
  border-width: 0 0 1px;
  border-radius: 0;
  box-shadow: none;
  padding: 30px;
}
.nxai-thankyou-main .woocommerce-order-details:last-child,
.nxai-thankyou-main .woocommerce-customer-details:last-child,
.nxai-thankyou-main .nxai-license-panel:last-child {
  border-bottom: 0;
}
.nxai-thankyou-main h2,
.nxai-thankyou-main .woocommerce-order-details__title,
.nxai-thankyou-main .woocommerce-column__title,
.nxai-thankyou-card h2 {
  font-size: 22px;
  line-height: 1.2;
  margin: 0 0 18px;
  color: var(--navy-900);
}
.nxai-thankyou-main table.shop_table,
.nxai-thankyou-main .woocommerce-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  margin: 0;
}
.nxai-thankyou-main table.shop_table th,
.nxai-thankyou-main table.shop_table td,
.nxai-thankyou-main .woocommerce-table th,
.nxai-thankyou-main .woocommerce-table td {
  padding: 16px 18px;
  border: 0;
  border-top: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}
.nxai-thankyou-main table.shop_table thead th,
.nxai-thankyou-main .woocommerce-table thead th {
  border-top: 0;
  background: var(--surface);
  color: var(--ink-3);
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.nxai-thankyou-main table.shop_table td,
.nxai-thankyou-main .woocommerce-table td {
  color: var(--ink-2);
}
.nxai-thankyou-main table.shop_table td a,
.nxai-thankyou-main .woocommerce-table td a {
  font-family: var(--font-head);
  font-weight: 700;
}
.nxai-thankyou-main table.shop_table tfoot th,
.nxai-thankyou-main table.shop_table tfoot td {
  background: #fff;
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--navy-900);
}
.nxai-thankyou-main .woocommerce-customer-details address {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 18px;
  background: var(--surface);
  color: var(--ink-2);
  line-height: 1.8;
  font-style: normal;
}
.nxai-thankyou-main .woocommerce-customer-details--phone,
.nxai-thankyou-main .woocommerce-customer-details--email {
  margin-top: 8px;
}
.nxai-license-panel p {
  color: var(--ink-2);
  margin-bottom: 16px;
}
.nxai-license-panel__keys {
  display: grid;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.nxai-license-panel__keys code {
  display: block;
  padding: 12px 14px;
  background: var(--navy-900);
  color: #fff;
  border-radius: 8px;
  font-size: 13px;
  white-space: normal;
  overflow-wrap: anywhere;
}
.nxai-thankyou-side {
  display: grid;
  gap: 18px;
  position: sticky;
  top: 96px;
}
.nxai-thankyou-card {
  padding: 26px;
}
.nxai-next-steps {
  counter-reset: nx-step;
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 16px;
}
.nxai-next-steps li {
  position: relative;
  padding-left: 44px;
}
.nxai-next-steps li::before {
  counter-increment: nx-step;
  content: counter(nx-step);
  position: absolute;
  left: 0;
  top: 2px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(45,107,255,.1);
  color: var(--blue-500);
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 13px;
}
.nxai-next-steps strong {
  display: block;
  color: var(--navy-900);
  font-family: var(--font-head);
  font-size: 14px;
  margin-bottom: 2px;
}
.nxai-next-steps span,
.nxai-thankyou-card p {
  color: var(--ink-2);
  font-size: 14.5px;
}
.nxai-status-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 14px;
}
.nxai-status-pill.is-success {
  background: rgba(20,160,88,.1);
  color: #148a50;
}
.nxai-status-pill.is-pending {
  background: rgba(45,107,255,.1);
  color: var(--blue-500);
}
.nxai-status-pill.is-danger {
  background: rgba(198,40,40,.1);
  color: #b3261e;
}
.nxai-thankyou-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 22px;
}
.nxai-thankyou-actions--stacked {
  display: grid;
}
.nxai-thankyou-actions--stacked .btn {
  width: 100%;
  justify-content: center;
}
.nxai-thankyou-failed {
  max-width: 760px;
  margin: 0 auto;
}
.nxai-thankyou-failed .woocommerce-notice {
  color: var(--ink-2);
  margin: 0;
}

/* ===== Downloads ===== */
.dl-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.dl-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 40px 32px 32px;
  text-align: center;
  transition: all .2s;
  position: relative;
}
.dl-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: transparent; }
.dl-card--recommended {
  border-color: var(--blue-500);
  box-shadow: 0 0 0 3px rgba(45,107,255,0.08);
}
.dl-card__tag {
  position: absolute;
  top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--blue-500);
  color: #fff;
  padding: 5px 14px;
  border-radius: 999px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.dl-os {
  width: 80px; height: 80px;
  margin: 8px auto 20px;
  border-radius: 18px;
  background: var(--surface);
  display: grid; place-items: center;
  color: var(--navy-900);
}
.dl-card h3 { font-size: 22px; margin-bottom: 4px; }
.dl-card__ver {
  font-size: 13px;
  color: var(--ink-3);
  font-family: var(--font-head);
  margin-bottom: 22px;
}
.dl-card__meta {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
  margin: 22px 0;
  padding: 16px;
  background: var(--surface);
  border-radius: var(--radius-sm);
  text-align: left;
}
.dl-card__meta div { font-size: 12.5px; }
.dl-card__meta strong { display: block; color: var(--ink-3); font-weight: 600; font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 2px; }
.dl-card__meta span { color: var(--navy-900); font-family: var(--font-head); font-weight: 600; }
.dl-card__button {
  margin-top: 2px;
}

.dl-arch {
  display: flex; gap: 8px; justify-content: center; flex-wrap: wrap;
  margin-top: 14px;
}
.dl-arch a {
  font-size: 12.5px;
  color: var(--navy-900);
  padding: 5px 12px;
  border-radius: 4px;
  border: 1px solid var(--line);
  background: #fff;
  font-family: var(--font-head);
  font-weight: 600;
}
.dl-arch a:hover { border-color: var(--blue-500); color: var(--blue-500); }

.dl-extras {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 60px;
}
.dl-extra {
  display: flex; gap: 16px;
  padding: 24px;
  background: var(--surface);
  border-radius: var(--radius);
}
.dl-extra__icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: #fff;
  color: var(--blue-500);
  display: grid; place-items: center;
  flex-shrink: 0;
}
.dl-extra h4 { font-size: 15px; margin-bottom: 4px; }
.dl-extra p { color: var(--ink-2); font-size: 13.5px; }
.dl-extra a { font-family: var(--font-head); font-weight: 600; font-size: 13.5px; }

.dl-changelog {
  margin-top: 60px;
  background: var(--surface);
  border-radius: var(--radius);
  padding: 32px 36px;
}
.dl-changelog h3 { font-size: 20px; margin-bottom: 18px; }
.dl-changelog__entry { padding: 16px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 140px 1fr; gap: 24px; }
.dl-changelog__entry:first-of-type { border-top: none; padding-top: 0; }
.dl-changelog__ver { font-family: var(--font-head); font-weight: 700; color: var(--navy-900); font-size: 14.5px; }
.dl-changelog__ver span { display: block; font-weight: 500; color: var(--ink-3); font-size: 12.5px; margin-top: 2px; }
.dl-changelog__list { color: var(--ink-2); font-size: 14.5px; line-height: 1.7; }
.dl-changelog__list b { color: var(--blue-500); font-family: var(--font-head); font-size: 11px; padding: 1px 8px; border-radius: 3px; background: rgba(45,107,255,0.1); margin-right: 8px; letter-spacing: 0.04em; vertical-align: 1px; }

/* ===== Page chooser ===== */
.page-chooser {
  position: fixed;
  top: 16px; left: 50%; transform: translateX(-50%);
  z-index: 100;
  background: #fff;
  border-radius: 999px;
  padding: 4px;
  display: flex;
  gap: 2px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--line);
}
.page-chooser button {
  border: none;
  background: transparent;
  padding: 8px 16px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 13px;
  color: var(--ink-2);
  border-radius: 999px;
  cursor: pointer;
  transition: all .15s;
}
.page-chooser button.is-active {
  background: var(--navy-900);
  color: #fff;
}

@media (max-width: 960px) {
  .cart-grid, .checkout-grid { grid-template-columns: 1fr; }
  .nx-wc-block-page { padding: 28px 0 56px; }
  .nx-wc-block-page .wc-block-components-sidebar-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .nx-wc-block-page .wc-block-components-sidebar {
    position: static;
  }
  .nx-wc-block-page .wc-block-components-checkout-step,
  .nx-wc-block-page .wc-block-components-express-payment,
  .nx-wc-block-page .wc-block-cart__sidebar,
  .nx-wc-block-page .wc-block-components-sidebar .wc-block-components-order-summary,
  .nx-wc-block-page .wp-block-woocommerce-cart-order-summary-block {
    padding: 18px !important;
  }
  .nx-wc-block-page .wc-block-cart-items__header th,
  .nx-wc-block-page .wc-block-cart-items__row td {
    padding: 16px !important;
  }
  .dl-grid, .dl-extras { grid-template-columns: 1fr; }
  .nxai-thankyou-hero__inner,
  .nxai-thankyou-layout,
  .nxai-thankyou-overview { grid-template-columns: 1fr; }
  .nxai-thankyou-overview div { border-left: 0; border-top: 1px solid var(--line); }
  .nxai-thankyou-overview div:first-child { border-top: 0; }
  .nxai-thankyou-side { position: static; }
  .cart-row { grid-template-columns: 64px 1fr; gap: 14px; }
  .cart-row > *:nth-child(n+3) { grid-column: 2; }
  .cart-row--head { display: none; }
  .summary, .order-summary { position: static; }
  .page-hero h1 { font-size: 32px; }
}

@media (max-width: 600px) {
  .nx-wc-block-page {
    padding-top: 20px;
  }
  .nx-wc-block-page__inner {
    width: calc(100% - 28px);
  }
  .nx-wc-block-page .wc-block-components-button:not(.is-link),
  .nx-wc-block-page .wc-block-cart__submit-button,
  .nx-wc-block-page .wc-block-checkout__actions_row .wc-block-components-button {
    width: 100%;
  }
  .nx-wc-block-page .wc-block-cart-item__product,
  .nx-wc-block-page .wc-block-components-order-summary-item__description {
    padding-left: 0;
  }
}
