/* Checkout – Fighter Challenge (WooCommerce defaults disabled in PHP) */

body.woocommerce-checkout
  .wp-block-fighter-checkout.fighter-checkout.fighter-section,
.wp-block-fighter-checkout.fighter-checkout.fighter-section {
  position: relative;
  overflow: hidden;
  background: var(--fighter-black);
  padding-top: calc(
    var(--wp-admin--admin-bar--height, 0px) +
      var(--fighter-pre-header-height, 0px) + var(--fighter-header-height, 96px) +
      48px
  );
  padding-bottom: var(--fighter-section-y);
  padding-left: 0;
  padding-right: 0;
  margin-top: 0;
}

.fighter-checkout__glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.fighter-checkout__glow::before,
.fighter-checkout__glow::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(
    circle at 50% 54.75%,
    rgba(1, 213, 255, 0.4) 0%,
    rgba(1, 213, 255, 0) 70%
  );
  pointer-events: none;
}

.fighter-checkout__glow::before {
  width: min(520px, 70vw);
  height: min(520px, 70vw);
  left: -10%;
  top: 10%;
  opacity: 0.28;
  filter: blur(12px);
}

.fighter-checkout__glow::after {
  width: min(640px, 80vw);
  height: min(640px, 80vw);
  right: -18%;
  bottom: -10%;
  opacity: 0.22;
  filter: blur(20px);
}

.fighter-checkout__inner {
  position: relative;
  z-index: 1;
  width: min(100%, var(--fighter-design-width));
  max-width: var(--fighter-design-width);
  margin-inline: auto;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.fighter-checkout__header {
  width: 100%;
  position: relative;
  z-index: 1;
}

.fighter-checkout__header .fighter-section-title {
  margin-bottom: 0;
  gap: 12px;
}

.fighter-checkout__header .fighter-section-title__title {
  position: relative;
  z-index: 1;
}

.fighter-checkout__notice {
  padding: 32px;
  border-radius: var(--fighter-radius-lg);
  background: var(--fighter-gray-50);
  border: 1px solid var(--fighter-white-7);
  text-align: center;
}

.fighter-checkout__notice p {
  margin: 0;
  color: var(--fighter-white-80);
  font-size: 16px;
  line-height: 26px;
}

/* —— Kill leftover WC / page chrome —— */
body.woocommerce-checkout .entry-title,
body.woocommerce-checkout .wp-block-post-title,
body.woocommerce-order-received .entry-title,
body.woocommerce-order-received .wp-block-post-title,
body.woocommerce-checkout .woocommerce-products-header,
body.woocommerce-checkout .wp-block-site-title,
.wp-block-site-title,
.widget_shopping_cart,
.wc-block-mini-cart,
.wp-block-woocommerce-mini-cart,
.wc-block-mini-cart-insert,
.site-header-cart,
.woocommerce-store-notice {
  display: none !important;
}

/* —— Form shell —— */
.fighter-checkout__form-shell {
  width: 100%;
  color: var(--fighter-white);
}

.fighter-checkout__form-shell *,
.fighter-checkout__form-shell *::before,
.fighter-checkout__form-shell *::after {
  box-sizing: border-box;
}

.fighter-checkout__form-shell .woocommerce {
  color: var(--fighter-white);
  background: transparent;
}

.fighter-checkout__form-shell .woocommerce::before,
.fighter-checkout__form-shell .woocommerce::after,
.fighter-checkout__form-shell .col2-set::before,
.fighter-checkout__form-shell .col2-set::after,
.fighter-checkout__form-shell form.checkout::before,
.fighter-checkout__form-shell form.checkout::after {
  display: none !important;
  content: none !important;
}

/* Notices / coupon — only style real banners; empty wrappers stay invisible */
.woocommerce-notices-wrapper:empty,
.woocommerce-NoticeGroup:empty,
.fighter-checkout .woocommerce-notices-wrapper:empty {
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  min-height: 0 !important;
  background: transparent !important;
}

.woocommerce-notices-wrapper,
.woocommerce-NoticeGroup {
  margin: 0 0 24px !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.wc-block-components-notice-banner,
.fighter-checkout .wc-block-components-notice-banner,
body.woocommerce-checkout .woocommerce-error,
body.woocommerce-checkout .woocommerce-info,
body.woocommerce-checkout .woocommerce-message,
.fighter-checkout .woocommerce-error,
.fighter-checkout .woocommerce-info,
.fighter-checkout .woocommerce-message {
  display: flex !important;
  align-items: flex-start !important;
  gap: 12px !important;
  margin: 0 0 16px !important;
  padding: 16px 20px !important;
  border: 1px solid var(--fighter-white-7, rgba(255, 255, 255, 0.07)) !important;
  border-radius: 14px !important;
  background: var(--fighter-gray-100, #15171b) !important;
  background-color: var(--fighter-gray-100, #15171b) !important;
  color: var(--fighter-white, #f5f5f5) !important;
  list-style: none !important;
  box-shadow: none !important;
  outline: none !important;
}

.wc-block-components-notice-banner.is-info,
.wc-block-components-notice-banner.is-success,
.wc-block-components-notice-banner.is-error,
.wc-block-components-notice-banner.is-warning {
  background: var(--fighter-gray-100, #15171b) !important;
  border-color: var(--fighter-white-7, rgba(255, 255, 255, 0.07)) !important;
  color: var(--fighter-white, #f5f5f5) !important;
}

.wc-block-components-notice-banner.is-error,
body.woocommerce-checkout .woocommerce-error,
.fighter-checkout .woocommerce-error {
  border-color: rgba(255, 72, 31, 0.45) !important;
}

.wc-block-components-notice-banner > svg {
  display: none !important;
}

.wc-block-components-notice-banner__content,
.wc-block-components-notice-banner__content * {
  color: var(--fighter-white, #f5f5f5) !important;
}

body.woocommerce-checkout .woocommerce-info::before,
body.woocommerce-checkout .woocommerce-message::before,
body.woocommerce-checkout .woocommerce-error::before,
.fighter-checkout .woocommerce-info::before,
.fighter-checkout .woocommerce-message::before,
.fighter-checkout .woocommerce-error::before {
  content: none !important;
  display: none !important;
}

.wc-block-components-notice-banner a,
body.woocommerce-checkout .woocommerce-info a,
.fighter-checkout .woocommerce-info a,
.fighter-checkout .showcoupon {
  color: var(--fighter-brand, #ff481f) !important;
  text-decoration: underline;
}

.fighter-checkout .woocommerce-form-coupon-toggle {
  margin: 0 0 16px !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
}

/* Coupon inside order panel */
.fighter-checkout__coupon {
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-sizing: border-box;
}

.fighter-checkout__coupon .woocommerce-form-coupon-toggle {
  margin: 0 !important;
}

.fighter-checkout__coupon .woocommerce-form-coupon-toggle .woocommerce-info,
.fighter-checkout__coupon
  .woocommerce-form-coupon-toggle
  .wc-block-components-notice-banner {
  margin: 0 !important;
  padding: 12px 16px !important;
  background: transparent !important;
  border: 1px dashed var(--fighter-white-7) !important;
  border-radius: 10px !important;
}

.fighter-checkout__coupon form.checkout_coupon,
.fighter-checkout__coupon .woocommerce-form-coupon {
  margin: 0 !important;
}

.fighter-checkout__coupon form.checkout_coupon.is-open,
.fighter-checkout__coupon .woocommerce-form-coupon.is-open {
  margin: 0 !important;
}

.fighter-checkout .woocommerce-form-coupon,
.fighter-checkout form.checkout_coupon {
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  box-sizing: border-box;
  width: 100% !important;
  float: none !important;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  margin: 0 !important;
  padding: 0 20px !important;
  border: 1px solid transparent !important;
  border-radius: 14px !important;
  background: var(--fighter-gray-100) !important;
  pointer-events: none;
  visibility: hidden;
  transition:
    max-height 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.3s ease,
    margin 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    padding 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.3s ease,
    visibility 0.45s;
}

.fighter-checkout form.checkout_coupon.is-open,
.fighter-checkout .woocommerce-form-coupon.is-open {
  max-height: 200px;
  opacity: 1;
  margin: 0 0 24px !important;
  padding: 16px 20px !important;
  border-color: var(--fighter-white-7) !important;
  pointer-events: auto;
  visibility: visible;
}

.fighter-checkout .checkout_coupon .form-row,
.fighter-checkout .checkout_coupon .form-row-first,
.fighter-checkout .checkout_coupon .form-row-last {
  float: none !important;
  margin: 0 !important;
  padding: 0 !important;
  width: auto !important;
  position: relative;
}

.fighter-checkout .checkout_coupon .form-row-first {
  flex: 1 1 220px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.fighter-checkout .checkout_coupon .form-row-last {
  flex: 0 0 auto;
  align-self: flex-start;
}

.fighter-checkout .checkout_coupon .input-text {
  width: 100% !important;
  margin: 0 !important;
}

.fighter-checkout .checkout_coupon .input-text.has-error,
.fighter-checkout #coupon_code.has-error {
  border-color: rgba(255, 72, 31, 0.85) !important;
}

.fighter-checkout .coupon-error-notice,
.fighter-checkout__form-shell .checkout-inline-error-message {
  display: block !important;
  margin: 8px 0 0 !important;
  padding: 10px 12px !important;
  border-radius: 10px !important;
  border: 1px solid rgba(255, 72, 31, 0.45) !important;
  background: rgba(255, 72, 31, 0.12) !important;
  color: var(--fighter-white) !important;
  font-family: var(--fighter-font-body) !important;
  font-size: 13px !important;
  line-height: 1.4 !important;
  font-weight: 500 !important;
}

.fighter-checkout .coupon-error-notice {
  margin: 0 !important;
}

/* Field-level validation */
.fighter-checkout__form-shell .form-row.woocommerce-invalid > label,
.fighter-checkout__form-shell
  .form-row.woocommerce-invalid
  .checkout-inline-error-message {
  color: var(--fighter-brand, #ff481f) !important;
}

.fighter-checkout__form-shell
  .form-row.woocommerce-invalid
  .checkout-inline-error-message {
  color: var(--fighter-white) !important;
}

.fighter-checkout__form-shell .form-row.woocommerce-invalid input.input-text,
.fighter-checkout__form-shell .form-row.woocommerce-invalid textarea.input-text,
.fighter-checkout__form-shell .form-row.woocommerce-invalid select,
.fighter-checkout__form-shell .form-row.woocommerce-invalid .select2-selection,
.fighter-checkout__form-shell
  .form-row.woocommerce-invalid
  .select2-container
  .select2-selection--single {
  border-color: rgba(255, 72, 31, 0.85) !important;
}

.fighter-checkout .checkout_coupon button,
.fighter-checkout .checkout_coupon .button {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: auto !important;
  margin: 0 !important;
  padding: 14px 28px !important;
  border: none !important;
  border-radius: var(--fighter-radius-pill) !important;
  background: var(--fighter-white) !important;
  color: var(--fighter-gray-100) !important;
  font-family: var(--fighter-font-heading) !important;
  font-weight: 800 !important;
  font-size: 14px !important;
  text-transform: uppercase !important;
  cursor: pointer;
  white-space: nowrap;
}

/* Grid layout */
.fighter-checkout__form-shell form.checkout {
  display: grid !important;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 0 24px;
  align-items: start;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  float: none !important;
}

/* Validation summary spans full width so it never lands in the order column */
.fighter-checkout__form-shell
  form.checkout
  > .woocommerce-NoticeGroup-checkout {
  grid-column: 1 / -1;
  width: 100% !important;
  margin: 0 0 24px !important;
}

.fighter-checkout__form-shell #customer_details {
  grid-column: 1;
  width: 100% !important;
  margin: 0 !important;
  float: none !important;
  padding: 32px !important;
  border-radius: var(--fighter-radius-lg);
  background: var(--fighter-gray-50);
  border: 1px solid var(--fighter-white-7);
}

/* Single order column panel — avoids grid row gaps beside tall billing */
.fighter-checkout__form-shell .fighter-checkout__order-panel {
  grid-column: 2;
  display: flex;
  flex-direction: column;
  width: 100%;
  margin: 0;
  padding: 0;
  border-radius: var(--fighter-radius-lg);
  background: var(--fighter-gray-50);
  border: 1px solid var(--fighter-white-7);
  box-sizing: border-box;
  overflow: hidden;
}

.fighter-checkout__form-shell #order_review_heading {
  width: 100% !important;
  margin: 0 !important;
  padding: 32px 32px 12px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  font-family: var(--fighter-font-heading);
  font-weight: 800;
  font-size: 20px;
  line-height: 1.2;
  text-transform: uppercase;
  color: var(--fighter-white);
}

.fighter-checkout__form-shell .fighter-checkout__coupon {
  width: 100%;
  margin: 0;
  padding: 0 32px 12px;
  border: 0;
  background: transparent;
}

.fighter-checkout__form-shell #order_review {
  width: 100% !important;
  margin: 0 !important;
  float: none !important;
  padding: 8px 32px 32px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
}

.fighter-checkout__form-shell .col2-set {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100% !important;
  float: none !important;
}

.fighter-checkout__form-shell .col2-set .col-1,
.fighter-checkout__form-shell .col2-set .col-2 {
  width: 100% !important;
  float: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.fighter-checkout__form-shell .woocommerce-billing-fields > h3,
.fighter-checkout__form-shell .woocommerce-shipping-fields > h3,
.fighter-checkout__form-shell .woocommerce-additional-fields > h3 {
  margin: 0 0 24px;
  font-family: var(--fighter-font-heading);
  font-weight: 800;
  font-size: 20px;
  line-height: 1.2;
  text-transform: uppercase;
  color: var(--fighter-white);
}

/* Fields */
.fighter-checkout__form-shell .woocommerce-billing-fields__field-wrapper,
.fighter-checkout__form-shell .woocommerce-shipping-fields__field-wrapper,
.fighter-checkout__form-shell .woocommerce-account-fields .create-account {
  display: flex;
  flex-wrap: wrap;
  column-gap: 16px;
  align-items: flex-start;
}

.fighter-checkout__form-shell .form-row {
  margin: 0 0 16px !important;
  padding: 0 !important;
  float: none !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.fighter-checkout__form-shell .form-row.form-row-first,
.fighter-checkout__form-shell .form-row.form-row-last,
.fighter-checkout__form-shell #billing_first_name_field,
.fighter-checkout__form-shell #billing_last_name_field,
.fighter-checkout__form-shell #shipping_first_name_field,
.fighter-checkout__form-shell #shipping_last_name_field {
  width: calc(50% - 8px) !important;
  float: none !important;
  clear: none !important;
  margin-right: 0 !important;
}

.fighter-checkout__form-shell .form-row.form-row-wide {
  clear: none !important;
  width: 100% !important;
  float: none !important;
  flex: 1 1 100%;
}

.fighter-checkout__form-shell label {
  display: block;
  margin: 0 0 8px;
  font-family: var(--fighter-font-heading);
  font-weight: 800;
  font-size: 12px;
  line-height: 1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--fighter-white-50);
}

.fighter-checkout__form-shell label .required {
  color: var(--fighter-brand);
  text-decoration: none;
  border: 0;
}

.fighter-checkout__form-shell .woocommerce-input-wrapper {
  width: 100% !important;
  display: block;
  position: relative;
}

/* SelectWoo is disabled on checkout — style native selects like text inputs */
.fighter-checkout__form-shell input.input-text,
.fighter-checkout__form-shell textarea.input-text,
.fighter-checkout__form-shell select,
.fighter-checkout__form-shell input[type="email"],
.fighter-checkout__form-shell input[type="tel"],
.fighter-checkout__form-shell input[type="text"],
.fighter-checkout__form-shell input[type="password"],
.fighter-checkout__form-shell input[type="number"] {
  width: 100% !important;
  min-height: 52px !important;
  height: auto !important;
  padding: 14px 16px !important;
  border-radius: 14px !important;
  border: 1px solid var(--fighter-white-7) !important;
  background: var(--fighter-gray-100) !important;
  background-color: var(--fighter-gray-100) !important;
  color: var(--fighter-white) !important;
  font-family: var(--fighter-font-body) !important;
  font-size: 16px !important;
  line-height: 1.4 !important;
  box-shadow: none !important;
  appearance: none;
  -webkit-appearance: none;
}

.fighter-checkout__form-shell select {
  height: 52px !important;
  padding-right: 40px !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23f5f5f5' stroke-opacity='0.5' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 16px center !important;
  background-size: 12px 8px !important;
  cursor: pointer;
}

.fighter-checkout__form-shell select option {
  background: var(--fighter-gray-100);
  color: var(--fighter-white);
}

.fighter-checkout__form-shell textarea.input-text {
  min-height: 100px !important;
  resize: vertical;
}

.fighter-checkout__form-shell input.input-text:focus,
.fighter-checkout__form-shell textarea.input-text:focus,
.fighter-checkout__form-shell select:focus {
  outline: none !important;
  border-color: var(--fighter-brand) !important;
}

.fighter-checkout__form-shell input::placeholder,
.fighter-checkout__form-shell textarea::placeholder {
  color: var(--fighter-white-50) !important;
  opacity: 1;
}

/* Kill Select2 UI if anything re-inits it */
.fighter-checkout__form-shell .select2-container,
body.woocommerce-checkout .select2-dropdown {
  display: none !important;
}

/* Order table */
.fighter-checkout__form-shell .woocommerce-checkout-review-order-table {
  width: 100%;
  margin: 0 0 24px;
  border-collapse: collapse;
  border: 0 !important;
  color: var(--fighter-white);
  background: transparent !important;
}

.fighter-checkout__form-shell .woocommerce-checkout-review-order-table th,
.fighter-checkout__form-shell .woocommerce-checkout-review-order-table td {
  padding: 12px 0 !important;
  border: 0 !important;
  border-bottom: 1px solid var(--fighter-white-7) !important;
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  text-align: left;
  vertical-align: top;
  background: transparent !important;
  color: var(--fighter-white) !important;
}

.fighter-checkout__form-shell
  .woocommerce-checkout-review-order-table
  thead
  th {
  color: var(--fighter-white-50) !important;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.fighter-checkout__form-shell .woocommerce-checkout-review-order-table tfoot th,
.fighter-checkout__form-shell
  .woocommerce-checkout-review-order-table
  tfoot
  td {
  border-bottom: 0 !important;
  padding-top: 16px !important;
}

.fighter-checkout__form-shell
  .woocommerce-checkout-review-order-table
  .order-total
  th,
.fighter-checkout__form-shell
  .woocommerce-checkout-review-order-table
  .order-total
  td {
  font-family: var(--fighter-font-heading);
  font-weight: 800;
  font-size: 20px;
  text-transform: uppercase;
}

.fighter-checkout__form-shell
  .woocommerce-checkout-review-order-table
  .product-quantity,
.fighter-checkout__form-shell
  .woocommerce-checkout-review-order-table
  .quantity,
.fighter-checkout__form-shell .quantity {
  display: none !important;
}

.fighter-checkout__form-shell .woocommerce-checkout-review-order-table .amount {
  color: var(--fighter-brand) !important;
  font-weight: 700;
  background: none !important;
}

.fighter-checkout__form-shell
  .woocommerce-checkout-review-order-table
  .order-total
  .amount {
  background: var(--fighter-gradient-brand) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  color: transparent !important;
}

/* Payment */
.fighter-checkout__form-shell .woocommerce-checkout-payment {
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
}

.fighter-checkout__form-shell .woocommerce-checkout-payment .woocommerce-info,
.fighter-checkout__form-shell #payment .woocommerce-info {
  margin: 0 0 20px !important;
  padding: 16px 20px !important;
  border: 1px solid var(--fighter-white-7) !important;
  border-radius: 14px !important;
  background: var(--fighter-gray-100) !important;
  color: var(--fighter-white-80) !important;
}

.fighter-checkout__form-shell .wc_payment_methods {
  margin: 0 0 20px !important;
  padding: 0 !important;
  list-style: none !important;
  border: 1px solid var(--fighter-white-7) !important;
  border-radius: 14px;
  overflow: hidden;
  background: var(--fighter-gray-100) !important;
}

.fighter-checkout__form-shell .wc_payment_method {
  margin: 0 !important;
  padding: 0 !important;
  border-bottom: 1px solid var(--fighter-white-7) !important;
  background: transparent !important;
}

.fighter-checkout__form-shell .wc_payment_method:last-child {
  border-bottom: 0 !important;
}

.fighter-checkout__form-shell .wc_payment_method > label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 16px;
  cursor: pointer;
  text-transform: none;
  letter-spacing: 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--fighter-white);
}

.fighter-checkout__form-shell .payment_box {
  margin: 0 !important;
  padding: 0 16px 16px !important;
  background: transparent !important;
  color: var(--fighter-white-80) !important;
  font-size: 14px;
  line-height: 22px;
}

.fighter-checkout__form-shell .payment_box::before {
  display: none !important;
}

.fighter-checkout__form-shell #place_order,
.fighter-checkout__form-shell button#place_order {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 100% !important;
  margin: 0 !important;
  padding: 1rem 3rem !important;
  border: none !important;
  border-radius: var(--fighter-radius-pill) !important;
  background: var(--fighter-white) !important;
  color: var(--fighter-gray-100) !important;
  box-shadow: var(--fighter-shadow-brand) !important;
  font-family: var(--fighter-font-heading) !important;
  font-weight: 800 !important;
  font-size: 1.125rem !important;
  line-height: 1 !important;
  text-transform: uppercase !important;
  cursor: pointer;
  float: none !important;
}

.fighter-checkout__form-shell #place_order:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.fighter-checkout__form-shell .woocommerce-privacy-policy-text,
.fighter-checkout__form-shell .woocommerce-terms-and-conditions-wrapper {
  margin: 0 0 16px;
  color: var(--fighter-white-50);
  font-size: 13px;
  line-height: 20px;
}

.fighter-checkout__form-shell .woocommerce-privacy-policy-text a {
  color: var(--fighter-white);
  text-decoration: underline;
}

.fighter-checkout__form-shell .woocommerce-privacy-policy-text a:hover {
  color: var(--fighter-brand);
}

/* Checkboxes — Omnisend, terms, create-account, ship-to-different */
.fighter-checkout__form-shell .form-row.omnisend_newsletter_checkbox_field,
.fighter-checkout__form-shell .form-row.validate-required,
.fighter-checkout__form-shell .woocommerce-terms-and-conditions-wrapper .form-row,
.fighter-checkout__form-shell .woocommerce-account-fields .form-row,
.fighter-checkout__form-shell .woocommerce-shipping-fields .form-row {
  clear: both;
}

.fighter-checkout__form-shell .form-row label.checkbox,
.fighter-checkout__form-shell .woocommerce-form__label-for-checkbox,
.fighter-checkout__form-shell label.woocommerce-form__label-for-checkbox {
  display: flex !important;
  align-items: flex-start;
  gap: 12px;
  margin: 0 !important;
  padding: 14px 16px;
  border: 1px solid var(--fighter-white-7);
  border-radius: 14px;
  background: var(--fighter-gray-100);
  color: var(--fighter-white-80);
  font-family: var(--fighter-font-body) !important;
  font-weight: 400 !important;
  font-size: 14px !important;
  line-height: 1.45 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.fighter-checkout__form-shell .form-row label.checkbox:hover,
.fighter-checkout__form-shell .woocommerce-form__label-for-checkbox:hover {
  border-color: rgba(255, 72, 31, 0.45);
}

.fighter-checkout__form-shell .form-row label.checkbox .optional,
.fighter-checkout__form-shell .woocommerce-form__label-for-checkbox .optional {
  color: var(--fighter-white-50);
  font-weight: 400;
  text-transform: none;
}

.fighter-checkout__form-shell .form-row label.checkbox a,
.fighter-checkout__form-shell .woocommerce-form__label-for-checkbox a {
  color: var(--fighter-white);
  text-decoration: underline;
}

.fighter-checkout__form-shell .form-row label.checkbox a:hover,
.fighter-checkout__form-shell .woocommerce-form__label-for-checkbox a:hover {
  color: var(--fighter-brand);
}

.fighter-checkout__form-shell input.input-checkbox,
.fighter-checkout__form-shell input[type="checkbox"] {
  appearance: none !important;
  -webkit-appearance: none !important;
  flex: 0 0 auto;
  width: 20px !important;
  height: 20px !important;
  min-width: 20px !important;
  min-height: 20px !important;
  margin: 1px 0 0 !important;
  padding: 0 !important;
  border: 1.5px solid var(--fighter-white-50) !important;
  border-radius: 5px !important;
  background: transparent !important;
  background-color: transparent !important;
  box-shadow: none !important;
  cursor: pointer;
  position: relative;
  vertical-align: top;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.fighter-checkout__form-shell input.input-checkbox:hover,
.fighter-checkout__form-shell input[type="checkbox"]:hover {
  border-color: var(--fighter-brand) !important;
}

.fighter-checkout__form-shell input.input-checkbox:focus,
.fighter-checkout__form-shell input[type="checkbox"]:focus {
  outline: none !important;
  border-color: var(--fighter-brand) !important;
  box-shadow: 0 0 0 3px rgba(255, 72, 31, 0.25) !important;
}

.fighter-checkout__form-shell input.input-checkbox:checked,
.fighter-checkout__form-shell input[type="checkbox"]:checked {
  border-color: var(--fighter-brand) !important;
  background-color: var(--fighter-brand) !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M3.5 8.2 6.4 11.1 12.5 4.5' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  background-size: 12px 12px !important;
}

.fighter-checkout__form-shell #omnisend_newsletter_checkbox_field {
  margin-top: 8px !important;
  margin-bottom: 8px !important;
}

.fighter-checkout__form-shell #omnisend_newsletter_checkbox_field .woocommerce-input-wrapper {
  width: 100% !important;
}

/* —— Thank you / order received —— */
.fighter-checkout__form-shell--thankyou {
  width: 100%;
  max-width: 920px;
  margin-inline: auto;
}

.fighter-checkout__form-shell--thankyou .woocommerce-order,
.fighter-thankyou {
  display: flex;
  flex-direction: column;
  gap: 28px;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
  color: var(--fighter-white);
}

.fighter-thankyou__lead,
.fighter-checkout__form-shell--thankyou .woocommerce-thankyou-order-received,
.fighter-checkout__form-shell--thankyou .woocommerce-notice--success {
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  text-align: center;
  color: var(--fighter-white-80) !important;
  font-family: var(--fighter-font-body);
  font-weight: 400;
  font-size: 18px;
  line-height: 1.5;
  text-transform: none;
}

.fighter-thankyou__overview,
.fighter-checkout__form-shell--thankyou .woocommerce-order-overview {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
  list-style: none !important;
  margin: 0 !important;
  padding: 28px !important;
  border-radius: var(--fighter-radius-lg);
  background: var(--fighter-gray-50);
  border: 1px solid var(--fighter-white-7);
}

.fighter-thankyou__overview li,
.fighter-checkout__form-shell--thankyou .woocommerce-order-overview li {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  float: none !important;
  width: auto !important;
  text-align: left;
  font-size: 14px;
  line-height: 1.3;
  color: var(--fighter-white-50);
}

.fighter-thankyou__overview li::before,
.fighter-thankyou__overview li::after,
.fighter-checkout__form-shell--thankyou .woocommerce-order-overview li::before,
.fighter-checkout__form-shell--thankyou .woocommerce-order-overview li::after {
  display: none !important;
  content: none !important;
}

.fighter-thankyou__label {
  font-family: var(--fighter-font-heading);
  font-weight: 800;
  font-size: 12px;
  line-height: 1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--fighter-brand);
}

.fighter-thankyou__overview strong,
.fighter-checkout__form-shell--thankyou .woocommerce-order-overview strong {
  font-family: var(--fighter-font-heading);
  font-weight: 800;
  font-size: 16px;
  line-height: 1.25;
  text-transform: none;
  color: var(--fighter-white);
  word-break: break-word;
}

.fighter-thankyou__details,
.fighter-checkout__form-shell--thankyou .woocommerce-order-details,
.fighter-checkout__form-shell--thankyou .woocommerce-customer-details {
  margin: 0;
}

.fighter-checkout__form-shell--thankyou .woocommerce-order-details,
.fighter-checkout__form-shell--thankyou .woocommerce-customer-details {
  padding: 28px;
  border-radius: var(--fighter-radius-lg);
  background: var(--fighter-gray-50);
  border: 1px solid var(--fighter-white-7);
}

.fighter-checkout__form-shell--thankyou
  .woocommerce-order-details
  + .woocommerce-customer-details {
  margin-top: 16px;
}

.fighter-checkout__form-shell--thankyou .woocommerce-order-details__title,
.fighter-checkout__form-shell--thankyou .woocommerce-column__title,
.fighter-checkout__form-shell--thankyou .woocommerce-order-details h2,
.fighter-checkout__form-shell--thankyou .woocommerce-customer-details h2 {
  margin: 0 0 20px;
  font-family: var(--fighter-font-heading);
  font-weight: 800;
  font-size: 22px;
  line-height: 1.15;
  text-transform: uppercase;
  color: var(--fighter-white);
}

.fighter-checkout__form-shell--thankyou .woocommerce-table--order-details,
.fighter-checkout__form-shell--thankyou table.shop_table {
  width: 100%;
  margin: 0;
  border: 0;
  border-collapse: collapse;
}

.fighter-checkout__form-shell--thankyou .woocommerce-table--order-details th,
.fighter-checkout__form-shell--thankyou .woocommerce-table--order-details td,
.fighter-checkout__form-shell--thankyou table.shop_table th,
.fighter-checkout__form-shell--thankyou table.shop_table td {
  padding: 14px 0;
  border: 0;
  border-bottom: 1px solid var(--fighter-white-7);
  background: transparent;
  color: var(--fighter-white-80);
  font-size: 15px;
  line-height: 1.4;
  text-align: left;
  vertical-align: top;
}

.fighter-checkout__form-shell--thankyou
  .woocommerce-table--order-details
  th
  + th,
.fighter-checkout__form-shell--thankyou
  .woocommerce-table--order-details
  td
  + td,
.fighter-checkout__form-shell--thankyou table.shop_table th + th,
.fighter-checkout__form-shell--thankyou table.shop_table td + td {
  text-align: right;
}

.fighter-checkout__form-shell--thankyou
  .woocommerce-table--order-details
  thead
  th,
.fighter-checkout__form-shell--thankyou table.shop_table thead th {
  padding-top: 0;
  font-family: var(--fighter-font-heading);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--fighter-white-50);
}

.fighter-checkout__form-shell--thankyou
  .woocommerce-table--order-details
  tfoot
  tr:last-child
  th,
.fighter-checkout__form-shell--thankyou
  .woocommerce-table--order-details
  tfoot
  tr:last-child
  td,
.fighter-checkout__form-shell--thankyou table.shop_table tfoot tr:last-child th,
.fighter-checkout__form-shell--thankyou
  table.shop_table
  tfoot
  tr:last-child
  td {
  border-bottom: 0;
  padding-bottom: 0;
  font-family: var(--fighter-font-heading);
  font-weight: 800;
  text-transform: uppercase;
  color: var(--fighter-white);
}

.fighter-checkout__form-shell--thankyou .woocommerce-table--order-details a,
.fighter-checkout__form-shell--thankyou table.shop_table a {
  color: var(--fighter-white);
  text-decoration: none;
}

.fighter-checkout__form-shell--thankyou
  .woocommerce-table--order-details
  a:hover,
.fighter-checkout__form-shell--thankyou table.shop_table a:hover {
  color: var(--fighter-brand);
}

.fighter-checkout__form-shell--thankyou
  .woocommerce-table--order-details
  .product-quantity,
.fighter-checkout__form-shell--thankyou table.shop_table .product-quantity {
  color: var(--fighter-white-50);
  font-weight: 400;
}

.fighter-checkout__form-shell--thankyou .woocommerce-customer-details--email,
.fighter-checkout__form-shell--thankyou .woocommerce-customer-details--phone,
.fighter-checkout__form-shell--thankyou address {
  margin: 0;
  padding: 0;
  border: 0 !important;
  font-style: normal;
  font-size: 15px;
  line-height: 1.6;
  color: var(--fighter-white-80);
}

.fighter-checkout__form-shell--thankyou .woocommerce-customer-details--email,
.fighter-checkout__form-shell--thankyou .woocommerce-customer-details--phone {
  margin-top: 12px;
}

.fighter-checkout__form-shell--thankyou .order-again,
.fighter-checkout__form-shell--thankyou .woocommerce-info,
.fighter-checkout__form-shell--thankyou p.order-again {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--fighter-white-50);
  font-size: 14px;
  line-height: 1.5;
}

.fighter-thankyou__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin: 0;
}

.fighter-thankyou__failed {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 28px;
  border-radius: var(--fighter-radius-lg);
  background: var(--fighter-gray-50);
  border: 1px solid rgba(255, 72, 31, 0.35);
  text-align: center;
}

.fighter-thankyou__failed .woocommerce-notice--error {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--fighter-white);
  font-size: 16px;
  line-height: 1.5;
}

/* Fallback when thank-you renders outside the checkout block shell */
body.woocommerce-order-received .woocommerce,
body.woocommerce-order-received .entry-content > .woocommerce {
  position: relative;
  width: min(100%, var(--fighter-container-max, 1272px));
  max-width: var(--fighter-container-max, 1272px);
  margin: 0 auto;
  padding: 0;
  box-sizing: border-box;
  color: var(--fighter-white);
}

body.woocommerce-order-received .fighter-checkout .woocommerce,
body.woocommerce-order-received .fighter-checkout__form-shell .woocommerce {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

/* Editor preview */
.fighter-checkout__preview {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 24px;
  width: 100%;
}

.fighter-checkout__preview-card {
  padding: 32px;
  border-radius: var(--fighter-radius-lg);
  background: var(--fighter-gray-50);
  border: 1px solid var(--fighter-white-7);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.fighter-checkout__preview-label {
  margin: 0 0 8px;
  font-family: var(--fighter-font-heading);
  font-weight: 800;
  font-size: 20px;
  text-transform: uppercase;
  color: var(--fighter-white);
}

.fighter-checkout__preview-row {
  height: 52px;
  border-radius: 14px;
  background: var(--fighter-gray-100);
  border: 1px solid var(--fighter-white-7);
}

.fighter-checkout__preview-row--half {
  width: calc(50% - 8px);
  display: inline-block;
}

.fighter-checkout__preview-line {
  height: 18px;
  border-radius: 6px;
  background: var(--fighter-white-7);
}

.fighter-checkout__preview-line--total {
  height: 24px;
  width: 55%;
  background: linear-gradient(
    90deg,
    rgba(255, 72, 31, 0.45),
    rgba(255, 255, 105, 0.35)
  );
}

.fighter-checkout__preview-btn {
  margin-top: 8px;
  pointer-events: none;
}

.fighter-checkout__editor-hint {
  margin: 0;
  text-align: center;
  color: var(--fighter-white-50);
  font-size: 14px;
}

@media (max-width: 991px) {
  body.woocommerce-checkout
    .wp-block-fighter-checkout.fighter-checkout.fighter-section,
  .wp-block-fighter-checkout.fighter-checkout.fighter-section {
    padding-top: 130px;
  }

  body.woocommerce-order-received .woocommerce,
  body.woocommerce-order-received .entry-content > .woocommerce {
    padding: 0;
  }

  .fighter-thankyou__overview,
  .fighter-checkout__form-shell--thankyou .woocommerce-order-overview {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 20px !important;
    gap: 14px;
  }

  .fighter-checkout__form-shell--thankyou .woocommerce-order-details,
  .fighter-checkout__form-shell--thankyou .woocommerce-customer-details {
    padding: 20px;
  }

  .fighter-checkout__inner {
    gap: 32px;
  }

  .fighter-checkout__form-shell form.checkout,
  .fighter-checkout__preview {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .fighter-checkout__form-shell #customer_details,
  .fighter-checkout__form-shell .fighter-checkout__order-panel {
    grid-column: 1;
    grid-row: auto;
  }

  .fighter-checkout__form-shell #customer_details {
    padding: 20px !important;
  }

  .fighter-checkout__form-shell #order_review_heading {
    padding: 20px 20px 8px !important;
  }

  .fighter-checkout__form-shell .fighter-checkout__coupon {
    padding: 0 20px 8px;
  }

  .fighter-checkout__form-shell #order_review {
    padding: 4px 20px 20px !important;
  }

  .fighter-checkout__form-shell .form-row.form-row-first,
  .fighter-checkout__form-shell .form-row.form-row-last,
  .fighter-checkout__form-shell #billing_first_name_field,
  .fighter-checkout__form-shell #billing_last_name_field,
  .fighter-checkout__form-shell #shipping_first_name_field,
  .fighter-checkout__form-shell #shipping_last_name_field {
    width: 100% !important;
    margin-right: 0 !important;
  }

  .fighter-checkout__form-shell #place_order {
    padding: 14px clamp(12px, 6vw, 48px) !important;
    font-size: clamp(13px, 3.6vw, 16px) !important;
  }
}
