/* =========================================================
   YTMAXING WooCommerce Experience — ytmx-woocommerce.css
   Loads on Cart / Checkout / order-pay / order-received only.
   Every rule is scoped to body.ytmx-wc, so nothing leaks to the rest of the site.
   Reuses the theme tokens (--bg, --border, --muted, --red, --red-dark, --green …)
   with fallbacks. Plain CSS, no libraries.
   ========================================================= */

/* ---------- 0. Tokens ---------- */
body.ytmx-wc {
  --ytmx-surface: #0a0a0c;
  --ytmx-surface-2: #111115;
  --ytmx-line: var(--border, rgba(255, 255, 255, .12));
  --ytmx-line-strong: var(--border-strong, rgba(255, 255, 255, .2));
  --ytmx-text: var(--white, #fff);
  --ytmx-muted: var(--muted, #a0a0a0);
  --ytmx-red: var(--red, #f52e3d);
  --ytmx-red-rgb: var(--red-rgb, 245, 46, 61);
  --ytmx-cta-1: #e02635;               /* darkened so white text passes WCAG AA */
  --ytmx-cta-2: var(--red-dark, #c71f2b);
  --ytmx-green: var(--green, #35d37a);
  --ytmx-danger: var(--danger, #ff5252);
  --ytmx-r-lg: 20px;
  --ytmx-r-md: 14px;
  --ytmx-ease: cubic-bezier(.2, .8, .2, 1);
}

/* ---------- 1. Page frame ---------- */
body.ytmx-wc main .ytm-section {
  padding: 120px 0 72px;
}
@media (min-width: 1024px) {
  body.ytmx-wc main .ytm-section { padding: 152px 0 96px; }
}
body.ytmx-wc main .ytm-section > h1 {
  font-size: clamp(1.75rem, 1.2rem + 2vw, 2.5rem);
  line-height: 1.15;
  margin: 0 0 28px;
  color: var(--ytmx-text);
}

body.ytmx-wc .woocommerce {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  color: var(--ytmx-text);
  background: none !important;
  border: 0 !important;
  box-shadow: none !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}
body.ytmx-wc .woocommerce *,
body.ytmx-wc .woocommerce *::before,
body.ytmx-wc .woocommerce *::after {
  box-sizing: border-box;
}
body.ytmx-wc .woocommerce .clear { display: none; }
body.ytmx-wc .woocommerce a:not(.button):not(.remove) { color: var(--ytmx-text); }

/* ---------- 2. Shared card look ---------- */
body.ytmx-cart .woocommerce-cart-form,
body.ytmx-cart .cart_totals,
body.ytmx-checkout form.woocommerce-checkout #customer_details,
body.ytmx-checkout form.woocommerce-checkout #order_review,
body.ytmx-checkout form.checkout_coupon,
body.ytmx-order-pay ul.order_details,
body.ytmx-order-pay form#order_review,
body.ytmx-order-received ul.order_details,
body.ytmx-order-received .woocommerce-order-details,
body.ytmx-order-received .woocommerce-customer-details {
  background: var(--ytmx-surface) !important;
  border: 1px solid var(--ytmx-line) !important;
  border-radius: var(--ytmx-r-lg) !important;
  box-shadow: none !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

body.ytmx-wc .ytmx-card-title,
body.ytmx-cart .cart_totals > h2,
body.ytmx-checkout .woocommerce-billing-fields > h3,
body.ytmx-order-received .woocommerce-order-details__title,
body.ytmx-order-received .woocommerce-column__title {
  margin: 0 0 18px;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -.01em;
  color: var(--ytmx-text);
}

/* ---------- 3. Buttons ---------- */
body.ytmx-wc .woocommerce .button,
body.ytmx-wc .woocommerce button.button,
body.ytmx-wc .woocommerce a.button,
body.ytmx-wc .woocommerce input[type="submit"].button,
body.ytmx-wc .woocommerce #place_order,
body.ytmx-order-pay #btn-razorpay,
body.ytmx-order-pay #btn-razorpay-cancel {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 26px;
  margin: 0;
  font: 700 1rem/1.2 var(--font, 'Inter', system-ui, sans-serif);
  text-align: center;
  text-decoration: none;
  text-shadow: none;
  white-space: normal;
  cursor: pointer;
  border-radius: 999px !important;
  transition: transform .2s var(--ytmx-ease), box-shadow .2s var(--ytmx-ease),
              background .2s var(--ytmx-ease), border-color .2s var(--ytmx-ease), filter .2s var(--ytmx-ease);
}

/* Secondary (default): quiet outline */
body.ytmx-wc .woocommerce .button,
body.ytmx-wc .woocommerce button.button,
body.ytmx-wc .woocommerce a.button,
body.ytmx-order-pay #btn-razorpay-cancel {
  color: var(--ytmx-text) !important;
  background: rgba(255, 255, 255, .05) !important;
  border: 1px solid var(--ytmx-line-strong) !important;
  box-shadow: none !important;
}
body.ytmx-wc .woocommerce .button:hover,
body.ytmx-wc .woocommerce button.button:hover,
body.ytmx-wc .woocommerce a.button:hover,
body.ytmx-order-pay #btn-razorpay-cancel:hover {
  background: rgba(255, 255, 255, .1) !important;
  border-color: rgba(255, 255, 255, .32) !important;
  transform: translateY(-1px);
}

/* Primary: brand red */
body.ytmx-wc .woocommerce .button.alt,
body.ytmx-wc .woocommerce a.checkout-button,
body.ytmx-wc .woocommerce #place_order,
body.ytmx-order-pay #btn-razorpay {
  color: #fff !important;
  background: linear-gradient(135deg, var(--ytmx-cta-1), var(--ytmx-cta-2)) !important;
  border: 1px solid transparent !important;
  box-shadow: 0 10px 26px rgba(var(--ytmx-red-rgb), .22) !important;
}
body.ytmx-wc .woocommerce .button.alt:hover,
body.ytmx-wc .woocommerce a.checkout-button:hover,
body.ytmx-wc .woocommerce #place_order:hover,
body.ytmx-order-pay #btn-razorpay:hover {
  transform: translateY(-1px);
  filter: brightness(1.06);
  box-shadow: 0 14px 32px rgba(var(--ytmx-red-rgb), .3) !important;
}
body.ytmx-wc .woocommerce .button:active,
body.ytmx-order-pay #btn-razorpay:active,
body.ytmx-order-pay #btn-razorpay-cancel:active { transform: translateY(0); }

/* Disabled / loading — obvious and never looks clickable */
body.ytmx-wc .woocommerce .button:disabled,
body.ytmx-wc .woocommerce .button[disabled],
body.ytmx-wc .woocommerce .button.disabled,
body.ytmx-order-pay #btn-razorpay:disabled {
  opacity: .5 !important;
  cursor: not-allowed;
  transform: none !important;
  filter: none;
}
body.ytmx-checkout form.checkout.processing #place_order,
body.ytmx-wc .woocommerce .button.loading {
  opacity: .75;
  cursor: progress;
  pointer-events: none;
}

body.ytmx-wc .woocommerce .button:focus-visible,
body.ytmx-wc .woocommerce #place_order:focus-visible,
body.ytmx-order-pay #btn-razorpay:focus-visible,
body.ytmx-order-pay #btn-razorpay-cancel:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

/* WooCommerce's loading overlay is white by default — keep it dark */
body.ytmx-wc .woocommerce .blockUI.blockOverlay {
  background: #050505 !important;
  opacity: .6 !important;
}
body.ytmx-wc .woocommerce .blockUI.blockOverlay::before {
  display: none !important;
}

/* ---------- 4. Notices ---------- */
body.ytmx-wc .woocommerce-notices-wrapper,
body.ytmx-wc .woocommerce-NoticeGroup {
  margin: 0 0 20px;
}
body.ytmx-wc .woocommerce-message,
body.ytmx-wc .woocommerce-info,
body.ytmx-wc .woocommerce-error {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin: 0 0 16px;
  padding: 14px 18px 14px 52px;
  list-style: none;
  color: var(--ytmx-text) !important;
  font-size: .95rem;
  line-height: 1.5;
  background: var(--ytmx-surface) !important;
  border: 1px solid var(--ytmx-line) !important;
  border-radius: var(--ytmx-r-md) !important;
  box-shadow: none !important;
}
body.ytmx-wc .woocommerce-message::before,
body.ytmx-wc .woocommerce-info::before,
body.ytmx-wc .woocommerce-error::before {
  content: "i";
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  font: 800 .8rem/1 var(--font, system-ui, sans-serif);
  font-style: normal;
  color: #050505;
  background: var(--ytmx-muted);
  border-radius: 50%;
}
body.ytmx-wc .woocommerce-message { border-color: rgba(53, 211, 122, .45) !important; }
body.ytmx-wc .woocommerce-message::before { content: "\2713"; background: var(--ytmx-green); }
body.ytmx-wc .woocommerce-error { border-color: rgba(255, 82, 82, .5) !important; background: rgba(255, 82, 82, .06) !important; }
body.ytmx-wc .woocommerce-error::before { content: "!"; background: var(--ytmx-danger); }
body.ytmx-wc .woocommerce-error li { margin: 0; padding: 2px 0; list-style: none; }
body.ytmx-wc .woocommerce-error li a { text-decoration: underline; text-underline-offset: 3px; }
body.ytmx-wc .woocommerce-message .button,
body.ytmx-wc .woocommerce-info .button {
  order: 2;
  min-height: 38px;
  padding: 8px 18px;
  font-size: .875rem;
  margin-left: auto;
}
body.ytmx-wc .woocommerce-info a.showcoupon,
body.ytmx-wc .woocommerce-info a.showlogin {
  color: var(--ytmx-text) !important;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(var(--ytmx-red-rgb), .9);
  background: none !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
}

/* ---------- 5. Form fields ---------- */
body.ytmx-wc .woocommerce form .form-row {
  margin: 0 0 18px;
  padding: 0;
  float: none;
  width: 100%;
}
body.ytmx-wc .woocommerce form .form-row label {
  display: block;
  margin: 0 0 8px;
  font-size: .875rem;
  font-weight: 600;
  line-height: 1.3;
  color: #e9e9ec;
}
body.ytmx-wc .woocommerce form .form-row .required {
  color: var(--ytmx-red);
  font-weight: 700;
  text-decoration: none;
  border: 0;
}
body.ytmx-wc .woocommerce form .form-row .optional {
  color: var(--ytmx-muted);
  font-weight: 400;
}

body.ytmx-wc .woocommerce input.input-text,
body.ytmx-wc .woocommerce input[type="text"],
body.ytmx-wc .woocommerce input[type="email"],
body.ytmx-wc .woocommerce input[type="tel"],
body.ytmx-wc .woocommerce input[type="number"],
body.ytmx-wc .woocommerce input[type="password"],
body.ytmx-wc .woocommerce textarea,
body.ytmx-wc .woocommerce select,
body.ytmx-wc .woocommerce .select2-container--default .select2-selection--single {
  display: block;
  width: 100%;
  min-height: 50px;
  padding: 12px 16px;
  margin: 0;
  font: 500 1rem/1.4 var(--font, 'Inter', system-ui, sans-serif);   /* 16px prevents iOS zoom */
  color: var(--ytmx-text) !important;
  background: var(--ytmx-surface-2) !important;
  border: 1px solid var(--ytmx-line-strong) !important;
  border-radius: 12px !important;
  box-shadow: none !important;
  -webkit-appearance: none;
  appearance: none;
  color-scheme: dark;
  transition: border-color .2s var(--ytmx-ease), box-shadow .2s var(--ytmx-ease), background .2s var(--ytmx-ease);
}
body.ytmx-wc .woocommerce ::placeholder { color: #7d7d85; opacity: 1; }
body.ytmx-wc .woocommerce input:hover,
body.ytmx-wc .woocommerce select:hover,
body.ytmx-wc .woocommerce textarea:hover {
  border-color: rgba(255, 255, 255, .3) !important;
}
body.ytmx-wc .woocommerce input.input-text:focus,
body.ytmx-wc .woocommerce input:focus,
body.ytmx-wc .woocommerce select:focus,
body.ytmx-wc .woocommerce textarea:focus,
body.ytmx-wc .woocommerce .select2-container--open .select2-selection--single,
body.ytmx-wc .woocommerce .select2-container--focus .select2-selection--single {
  outline: none;
  border-color: var(--ytmx-red) !important;
  box-shadow: 0 0 0 3px rgba(var(--ytmx-red-rgb), .28) !important;
}
/* Chrome/Safari autofill would otherwise paint fields white */
body.ytmx-wc .woocommerce input:-webkit-autofill,
body.ytmx-wc .woocommerce input:-webkit-autofill:focus {
  -webkit-text-fill-color: #fff;
  caret-color: #fff;
  -webkit-box-shadow: 0 0 0 1000px #111115 inset !important;
  transition: background-color 9999s ease-in-out 0s;
}
/* Native select arrow (fields that are not select2) */
body.ytmx-wc .woocommerce select {
  padding-right: 42px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23a0a0a0' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 16px center !important;
}

/* select2 (Country / State) */
body.ytmx-wc .woocommerce .select2-container { width: 100% !important; }
body.ytmx-wc .woocommerce .select2-container--default .select2-selection--single .select2-selection__rendered {
  padding: 0;
  line-height: 1.4;
  color: var(--ytmx-text);
}
body.ytmx-wc .woocommerce .select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 100%;
  right: 12px;
}
body.ytmx-wc .woocommerce .select2-container--default .select2-selection--single .select2-selection__arrow b {
  border-color: var(--ytmx-muted) transparent transparent transparent;
}
body.ytmx-wc .select2-dropdown {
  background: #111115 !important;
  color: #fff;
  border: 1px solid var(--ytmx-line-strong) !important;
  border-radius: 12px !important;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .5);
  z-index: 100000;
}
body.ytmx-wc .select2-search--dropdown { padding: 10px; }
body.ytmx-wc .select2-search--dropdown .select2-search__field {
  min-height: 42px;
  padding: 8px 12px;
  color: #fff;
  background: #0a0a0c;
  border: 1px solid var(--ytmx-line-strong);
  border-radius: 10px;
}
body.ytmx-wc .select2-results__option { padding: 10px 16px; color: #e9e9ec; }
body.ytmx-wc .select2-container--default .select2-results__option--highlighted[aria-selected],
body.ytmx-wc .select2-container--default .select2-results__option--highlighted[data-selected] {
  background: rgba(var(--ytmx-red-rgb), .22);
  color: #fff;
}
body.ytmx-wc .select2-container--default .select2-results__option[aria-selected="true"],
body.ytmx-wc .select2-container--default .select2-results__option[data-selected="true"] {
  background: rgba(255, 255, 255, .08);
}

/* Validation — colour AND icon AND message text, never colour alone */
body.ytmx-wc .woocommerce form .form-row.woocommerce-invalid input.input-text,
body.ytmx-wc .woocommerce form .form-row.woocommerce-invalid select,
body.ytmx-wc .woocommerce form .form-row.woocommerce-invalid .select2-selection--single {
  border-color: var(--ytmx-danger) !important;
  box-shadow: 0 0 0 3px rgba(255, 82, 82, .18) !important;
}
body.ytmx-wc .woocommerce form .form-row.woocommerce-invalid input.input-text {
  padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23ff5252' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v6M12 16.5v.01'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 14px center !important;
}
body.ytmx-wc .woocommerce form .form-row.woocommerce-invalid label { color: #ffb4b4; }
body.ytmx-wc .woocommerce form .form-row .ytmx-field-error,
body.ytmx-wc .woocommerce form .form-row .woocommerce-input-wrapper + .checkout-inline-error-message {
  margin-top: 6px;
  font-size: .8125rem;
  color: #ffb4b4;
}

/* Checkboxes & radios */
body.ytmx-wc .woocommerce input[type="checkbox"] {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  margin: 0;
  flex: none;
  cursor: pointer;
  background: var(--ytmx-surface-2);
  border: 1px solid var(--ytmx-line-strong);
  border-radius: 7px;
  transition: background .2s var(--ytmx-ease), border-color .2s var(--ytmx-ease), box-shadow .2s var(--ytmx-ease);
}
body.ytmx-wc .woocommerce input[type="checkbox"]:checked {
  background-color: var(--ytmx-cta-2);
  border-color: var(--ytmx-cta-2);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 15px;
}
body.ytmx-wc .woocommerce input[type="checkbox"]:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(var(--ytmx-red-rgb), .35);
}
body.ytmx-wc .woocommerce input[type="radio"] {
  accent-color: var(--ytmx-red);
  width: 20px;
  height: 20px;
  min-height: 0;
  margin: 0;
  flex: none;
  cursor: pointer;
}
body.ytmx-wc .woocommerce .woocommerce-form__label-checkbox,
body.ytmx-wc .woocommerce label.checkbox {
  position: relative;
  display: block !important;
  padding-left: 34px;
  font-weight: 500 !important;
  line-height: 1.5;
  cursor: pointer;
}
body.ytmx-wc .woocommerce .woocommerce-form__label-checkbox > input[type="checkbox"],
body.ytmx-wc .woocommerce label.checkbox > input[type="checkbox"] {
  position: absolute;
  left: 0;
  top: 1px;
}

/* ---------- 6. CART ---------- */
@media (min-width: 992px) {
  body.ytmx-cart .woocommerce {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 24px;
    align-items: start;
  }
  body.ytmx-cart .woocommerce > * { grid-column: 1 / -1; }
  body.ytmx-cart .woocommerce > .woocommerce-cart-form { grid-column: 1; }
  body.ytmx-cart .woocommerce > .cart-collaterals {
    grid-column: 2;
    position: sticky;
    top: 112px;
  }
}
body.ytmx-cart .woocommerce-cart-form { overflow: hidden; }
body.ytmx-cart .cart-collaterals { width: 100%; float: none; }
body.ytmx-cart .cart-collaterals .cross-sells { display: none; }
body.ytmx-cart .cart_totals {
  float: none !important;
  width: 100% !important;
  margin: 0;
  padding: 26px;
}

body.ytmx-cart table.shop_table.cart {
  width: 100%;
  margin: 0;
  border: 0 !important;
  border-collapse: separate;
  border-spacing: 0;
  background: transparent !important;
}
body.ytmx-cart table.cart thead th {
  padding: 16px 20px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ytmx-muted);
  text-align: left;
  background: transparent !important;
  border: 0 !important;
  border-bottom: 1px solid var(--ytmx-line) !important;
}
body.ytmx-cart table.cart td {
  padding: 22px 20px;
  vertical-align: middle;
  color: var(--ytmx-text);
  background: transparent !important;
  border: 0 !important;
  border-top: 1px solid var(--ytmx-line) !important;
}
body.ytmx-cart table.cart thead + tbody tr:first-child td { border-top: 0 !important; }
body.ytmx-cart table.cart .product-remove { width: 64px; padding-right: 0; text-align: center; }
body.ytmx-cart table.cart .product-thumbnail { width: 104px; padding-right: 0; }
body.ytmx-cart table.cart .product-price,
body.ytmx-cart table.cart .product-subtotal,
body.ytmx-cart table.cart thead .product-price,
body.ytmx-cart table.cart thead .product-subtotal { text-align: right; white-space: nowrap; }
body.ytmx-cart table.cart .product-quantity,
body.ytmx-cart table.cart thead .product-quantity { text-align: center; }
body.ytmx-cart table.cart .product-subtotal { font-weight: 800; }
body.ytmx-cart table.cart td.product-name { font-weight: 700; font-size: 1.05rem; line-height: 1.35; overflow-wrap: anywhere; }
body.ytmx-cart table.cart td.product-name a { color: var(--ytmx-text); text-decoration: none; }
body.ytmx-cart table.cart td.product-name a:hover { text-decoration: underline; text-underline-offset: 3px; }
body.ytmx-cart table.cart .product-price del,
body.ytmx-checkout .woocommerce-checkout-review-order-table del { color: var(--ytmx-muted); font-weight: 400; margin-right: 6px; }
body.ytmx-cart table.cart .product-price ins,
body.ytmx-checkout .woocommerce-checkout-review-order-table ins { text-decoration: none; }

/* Remove (×) — quiet, turns red on hover, 44px touch target */
body.ytmx-cart table.cart a.remove {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin: 0;
  font-size: 1.4rem;
  font-weight: 400;
  line-height: 1;
  color: var(--ytmx-muted) !important;
  background: transparent !important;
  border: 1px solid transparent;
  border-radius: 50% !important;
  transition: color .2s var(--ytmx-ease), border-color .2s var(--ytmx-ease), background .2s var(--ytmx-ease);
}
body.ytmx-cart table.cart a.remove:hover,
body.ytmx-cart table.cart a.remove:focus-visible {
  color: #fff !important;
  background: rgba(var(--ytmx-red-rgb), .85) !important;
}

/* Thumbnail. A missing image shows a branded tile instead of a blank white disc */
body.ytmx-cart table.cart .product-thumbnail a { display: block; width: 80px; height: 80px; }
body.ytmx-cart table.cart .product-thumbnail img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 14px !important;
  background: var(--ytmx-surface-2);
  border: 1px solid var(--ytmx-line);
}
body.ytmx-cart table.cart .product-thumbnail img.woocommerce-placeholder,
body.ytmx-cart table.cart .product-thumbnail img[src*="placeholder"] {
  opacity: 0;
}
body.ytmx-cart table.cart .product-thumbnail:has(img.woocommerce-placeholder) a,
body.ytmx-cart table.cart .product-thumbnail:has(img[src*="placeholder"]) a {
  position: relative;
  border-radius: 14px;
  background:
    radial-gradient(circle at 70% 25%, rgba(var(--ytmx-red-rgb), .38), transparent 55%),
    linear-gradient(145deg, #1b0d12, #09090b);
  border: 1px solid rgba(var(--ytmx-red-rgb), .28);
}
body.ytmx-cart table.cart .product-thumbnail:has(img.woocommerce-placeholder) a::after,
body.ytmx-cart table.cart .product-thumbnail:has(img[src*="placeholder"]) a::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0;
  height: 0;
  margin: -10px 0 0 -6px;
  border-style: solid;
  border-width: 10px 0 10px 17px;
  border-color: transparent transparent transparent #fff;
}

/* Quantity */
body.ytmx-wc .woocommerce .quantity { display: inline-flex; align-items: center; }
body.ytmx-wc .woocommerce .quantity input.qty {
  width: 76px;
  min-height: 46px;
  padding: 8px 10px;
  text-align: center;
  font-weight: 700;
  -moz-appearance: textfield;
  appearance: textfield;
}
body.ytmx-wc .woocommerce .quantity input.qty::-webkit-inner-spin-button,
body.ytmx-wc .woocommerce .quantity input.qty::-webkit-outer-spin-button { opacity: 1; }

/* Coupon + Update cart row.
   Keep the cell a real table-cell (colspan must keep working); lay children out with floats. */
body.ytmx-cart table.cart td.actions {
  padding: 18px 20px !important;
  text-align: right;
}
body.ytmx-cart table.cart td.actions::after { content: ""; display: table; clear: both; }
body.ytmx-cart table.cart td.actions .coupon {
  display: flex;
  float: left;
  width: min(100%, 460px);
  gap: 10px;
  margin: 0;
  padding: 0;
}
body.ytmx-cart table.cart td.actions .coupon label { display: none; }
body.ytmx-cart table.cart td.actions .coupon #coupon_code {
  flex: 1 1 auto;
  width: auto !important;
  min-width: 0;
  min-height: 46px;
  padding: 10px 16px !important;
  float: none;
  margin: 0;
}
body.ytmx-cart table.cart td.actions .button { min-height: 46px; padding: 10px 22px; margin: 0; }
body.ytmx-cart table.cart td.actions .coupon .button { float: none; flex: none; }
body.ytmx-cart table.cart td.actions > button[name="update_cart"] { float: right; }

/* Order summary (cart totals) */
body.ytmx-wc .cart_totals table,
body.ytmx-wc .woocommerce-checkout-review-order-table {
  width: 100%;
  margin: 0 0 22px;
  border: 0 !important;
  border-collapse: collapse;
  background: transparent !important;
  table-layout: auto;
}
body.ytmx-wc .cart_totals table th,
body.ytmx-wc .cart_totals table td,
body.ytmx-wc .woocommerce-checkout-review-order-table th,
body.ytmx-wc .woocommerce-checkout-review-order-table td {
  padding: 14px 0;
  font-size: .975rem;
  line-height: 1.45;
  vertical-align: top;
  color: var(--ytmx-text);
  background: transparent !important;
  border: 0 !important;
  border-top: 1px solid var(--ytmx-line) !important;
}
body.ytmx-wc .cart_totals table tr:first-child > *,
body.ytmx-wc .woocommerce-checkout-review-order-table tbody tr:first-child > * { border-top: 0 !important; }
body.ytmx-wc .cart_totals table th,
body.ytmx-wc .woocommerce-checkout-review-order-table tfoot th {
  width: auto;
  text-align: left;
  font-weight: 500;
  color: var(--ytmx-muted);
}
body.ytmx-wc .cart_totals table td,
body.ytmx-wc .woocommerce-checkout-review-order-table td.product-total,
body.ytmx-wc .woocommerce-checkout-review-order-table tfoot td {
  text-align: right;
  font-weight: 700;
  white-space: nowrap;
}
body.ytmx-wc .cart_totals .order-total th,
body.ytmx-wc .woocommerce-checkout-review-order-table .order-total th {
  padding-top: 18px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--ytmx-text);
  vertical-align: middle;
}
body.ytmx-wc .cart_totals .order-total td,
body.ytmx-wc .woocommerce-checkout-review-order-table .order-total td {
  padding-top: 18px;
  vertical-align: middle;
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -.02em;
}
body.ytmx-wc .cart_totals .order-total td strong,
body.ytmx-wc .woocommerce-checkout-review-order-table .order-total td strong { font-weight: 800; }
body.ytmx-wc .cart_totals .includes_tax,
body.ytmx-wc .woocommerce-checkout-review-order-table .includes_tax {
  display: block;
  margin-top: 2px;
  font-size: .78rem;
  font-weight: 400;
  color: var(--ytmx-muted);
}
body.ytmx-wc .cart-discount td,
body.ytmx-wc .cart-discount th { color: var(--ytmx-green); }
body.ytmx-wc .cart-discount td a { color: var(--ytmx-muted) !important; font-weight: 400; font-size: .8rem; }

body.ytmx-cart .wc-proceed-to-checkout { padding: 0; margin: 0; }
body.ytmx-cart .wc-proceed-to-checkout a.checkout-button {
  display: flex;
  width: 100%;
  min-height: 56px;
  margin: 0;
  padding: 16px 24px;
  font-size: 1.05rem;
}

/* Trust line under CTAs */
body.ytmx-wc .ytmx-secure-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 14px 0 0;
  font-size: .8125rem;
  line-height: 1.4;
  color: var(--ytmx-muted);
  text-align: center;
}
body.ytmx-wc .ytmx-secure-note svg { flex: none; color: var(--ytmx-green); }

/* Empty cart */
body.ytmx-cart .cart-empty { justify-content: center; text-align: center; padding: 28px 24px; }
body.ytmx-cart .return-to-shop { margin: 8px 0 0; }

/* ---------- 7. CHECKOUT ---------- */
body.ytmx-checkout .woocommerce-form-coupon-toggle { margin: 0 0 16px; }
body.ytmx-checkout form.checkout_coupon {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px;
  margin: 0 0 20px;
  padding: 20px;
}
body.ytmx-checkout form.checkout_coupon[style*="display: none"] { display: none !important; }
body.ytmx-checkout form.checkout_coupon > p:first-child { flex: 1 1 100%; margin: 0; color: var(--ytmx-muted); font-size: .9rem; }
body.ytmx-checkout form.checkout_coupon .form-row { width: auto; margin: 0; }
body.ytmx-checkout form.checkout_coupon .form-row-first { flex: 1 1 220px; }
body.ytmx-checkout form.checkout_coupon .form-row-last { flex: 0 0 auto; }

body.ytmx-checkout form.woocommerce-checkout { display: block; }
body.ytmx-checkout form.woocommerce-checkout #customer_details {
  float: none;
  width: 100%;
  padding: 28px;
  margin: 0 0 24px;
}
body.ytmx-checkout form.woocommerce-checkout #customer_details .col-1,
body.ytmx-checkout form.woocommerce-checkout #customer_details .col-2 {
  float: none;
  width: 100%;
  max-width: none;
  padding: 0;
  margin: 0;
}
body.ytmx-checkout form.woocommerce-checkout #customer_details .col-2:not(:has(*)) { display: none; }
body.ytmx-checkout #order_review_heading { display: none; }   /* replaced by the card title below */

body.ytmx-checkout form.woocommerce-checkout #order_review {
  float: none;
  width: 100%;
  padding: 28px;
  margin: 0;
}

/* Fields: 2-column grid, names side by side, State + PIN side by side */
body.ytmx-checkout .woocommerce-billing-fields__field-wrapper {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 16px;
}
body.ytmx-checkout .woocommerce-billing-fields__field-wrapper > .form-row { grid-column: 1 / -1; min-width: 0; }
body.ytmx-checkout .woocommerce-billing-fields__field-wrapper > #billing_first_name_field,
body.ytmx-checkout .woocommerce-billing-fields__field-wrapper > #billing_last_name_field,
body.ytmx-checkout .woocommerce-billing-fields__field-wrapper > #billing_state_field,
body.ytmx-checkout .woocommerce-billing-fields__field-wrapper > #billing_postcode_field { grid-column: span 1; }
@media (max-width: 479px) {
  body.ytmx-checkout .woocommerce-billing-fields__field-wrapper > .form-row { grid-column: 1 / -1 !important; }
}

/* Desktop: customer information left, sticky order summary right */
@media (min-width: 992px) {
  body.ytmx-checkout form.woocommerce-checkout {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(360px, .85fr);
    column-gap: 24px;
    align-items: start;
  }
  body.ytmx-checkout form.woocommerce-checkout > .woocommerce-NoticeGroup { grid-column: 1 / -1; }
  body.ytmx-checkout form.woocommerce-checkout #customer_details { grid-column: 1; margin: 0; }
  body.ytmx-checkout form.woocommerce-checkout #order_review {
    grid-column: 2;
    grid-row: 1 / span 2;
    position: sticky;
    top: 112px;
  }
}

/* Order review table */
body.ytmx-checkout .woocommerce-checkout-review-order-table thead { display: none; }
body.ytmx-checkout .woocommerce-checkout-review-order-table td.product-name {
  padding-right: 16px;
  font-weight: 600;
  overflow-wrap: anywhere;
}
body.ytmx-checkout .woocommerce-checkout-review-order-table .product-quantity {
  display: block;
  margin: 4px 0 0;
  font-size: .85rem;
  font-weight: 500;
  color: var(--ytmx-muted);
}

/* Payment */
body.ytmx-checkout #payment {
  background: transparent !important;
  border: 0 !important;
  border-radius: 0;
  padding: 0;
}
body.ytmx-checkout #payment ul.payment_methods,
body.ytmx-checkout #payment ul.wc_payment_methods {
  margin: 0 0 18px;
  padding: 0;
  border: 0;
  list-style: none;
}
body.ytmx-checkout #payment .wc_payment_method {
  position: relative;
  margin: 0 0 10px;
  padding: 16px 18px;
  list-style: none;
  background: var(--ytmx-surface-2);
  border: 1px solid var(--ytmx-line-strong);
  border-radius: var(--ytmx-r-md);
}
body.ytmx-checkout #payment .wc_payment_method:has(input:checked) {
  border-color: rgba(var(--ytmx-red-rgb), .6);
  box-shadow: none;
}
body.ytmx-checkout #payment .wc_payment_method > input[type="radio"] {
  position: absolute;
  left: 18px;
  top: 20px;
}
body.ytmx-checkout #payment .wc_payment_method > label {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  margin: 0 !important;
  padding-left: 34px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--ytmx-text);
  cursor: pointer;
}
body.ytmx-checkout #payment .wc_payment_method > label img {
  display: inline-block;
  max-height: 24px;
  width: auto;
  margin: 0;
  float: none;
}
body.ytmx-checkout #payment div.payment_box {
  margin: 12px 0 0;
  padding: 0 0 0 34px;
  font-size: .9rem;
  line-height: 1.55;
  color: var(--ytmx-muted);
  background: transparent !important;
  border: 0;
  border-radius: 0;
}
body.ytmx-checkout #payment div.payment_box::before,
body.ytmx-checkout #payment div.payment_box::after { display: none !important; }
body.ytmx-checkout #payment div.payment_box p { margin: 0; color: inherit; }

body.ytmx-checkout #payment .place-order { margin: 0; padding: 0; }
body.ytmx-checkout .woocommerce-terms-and-conditions-wrapper { margin: 0 0 18px; }
body.ytmx-checkout .woocommerce-privacy-policy-text p {
  margin: 0 0 16px;
  font-size: .8125rem;
  line-height: 1.55;
  color: var(--ytmx-muted);
}
body.ytmx-checkout .woocommerce-privacy-policy-text a,
body.ytmx-checkout .woocommerce-terms-and-conditions-checkbox-text a {
  color: var(--ytmx-text) !important;
  text-decoration: underline;
  text-underline-offset: 3px;
}
body.ytmx-checkout #payment #place_order {
  display: flex;
  float: none;
  width: 100%;
  min-height: 58px;
  margin: 0;
  padding: 16px 24px;
  font-size: 1.05rem;
}

/* ---------- 8. ORDER-PAY (Razorpay hand-off screen) ---------- */
body.ytmx-order-pay .woocommerce { max-width: 760px; }
body.ytmx-order-pay ul.order_details,
body.ytmx-order-received ul.order_details,
body.ytmx-order-received ul.woocommerce-order-overview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0;
  margin: 0 0 24px;
  padding: 8px;
  list-style: none;
  float: none;
}
body.ytmx-order-pay ul.order_details li,
body.ytmx-order-received ul.order_details li,
body.ytmx-order-received ul.woocommerce-order-overview li {
  float: none;
  margin: 0;
  padding: 16px 18px;
  font-size: .72rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ytmx-muted);
  border: 0 !important;
  border-right: 0 !important;
  overflow-wrap: anywhere;
}
body.ytmx-order-pay ul.order_details li strong,
body.ytmx-order-received ul.order_details li strong,
body.ytmx-order-received ul.woocommerce-order-overview li strong {
  display: block;
  margin-top: 6px;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ytmx-text);
}
body.ytmx-order-pay .woocommerce > p,
body.ytmx-order-pay .woocommerce #razorpay-form + p {
  margin: 0 0 20px;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ytmx-muted);
}
body.ytmx-order-pay .woocommerce #btn-razorpay,
body.ytmx-order-pay .woocommerce #btn-razorpay-cancel {
  min-width: 170px;
  min-height: 52px;
  margin: 0 12px 12px 0;
}

/* order-pay form for gateways that render the payment table */
body.ytmx-order-pay form#order_review { padding: 28px; }

/* ---------- 9. ORDER RECEIVED ---------- */
body.ytmx-order-received .woocommerce-thankyou-order-received {
  margin: 0 0 20px;
  padding: 18px 20px;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ytmx-text);
  background: rgba(53, 211, 122, .08);
  border: 1px solid rgba(53, 211, 122, .4);
  border-radius: var(--ytmx-r-md);
}
body.ytmx-order-received .woocommerce-order-details,
body.ytmx-order-received .woocommerce-customer-details {
  padding: 26px;
  margin: 0 0 24px;
}
body.ytmx-order-received table.shop_table {
  width: 100%;
  border: 0 !important;
  border-collapse: collapse;
  background: transparent !important;
}
body.ytmx-order-received table.shop_table th,
body.ytmx-order-received table.shop_table td {
  padding: 14px 0;
  text-align: left;
  color: var(--ytmx-text);
  background: transparent !important;
  border: 0 !important;
  border-top: 1px solid var(--ytmx-line) !important;
}
body.ytmx-order-received table.shop_table tfoot td,
body.ytmx-order-received table.shop_table .product-total { text-align: right; font-weight: 700; }
body.ytmx-order-received address { font-style: normal; line-height: 1.7; color: var(--ytmx-muted); }

@media (max-width: 991px) {
  body.ytmx-cart .woocommerce-cart-form { margin-bottom: 20px; }
}

/* ---------- 10. MOBILE (≤ 768px) ---------- */
@media (max-width: 768px) {
  body.ytmx-wc main .ytm-section { padding: 104px 0 56px; }
  body.ytmx-wc main .ytm-section > h1 { margin-bottom: 20px; }

  body.ytmx-checkout form.woocommerce-checkout #customer_details,
  body.ytmx-checkout form.woocommerce-checkout #order_review,
  body.ytmx-cart .cart_totals,
  body.ytmx-order-received .woocommerce-order-details,
  body.ytmx-order-received .woocommerce-customer-details { padding: 20px; }

  /* Cart table → stacked course card (undoes WooCommerce's responsive-table layout) */
  body.ytmx-cart table.shop_table.cart,
  body.ytmx-cart table.shop_table.cart tbody { display: block; width: 100%; }
  body.ytmx-cart table.shop_table.cart thead { display: none; }
  body.ytmx-cart table.shop_table.cart tr.cart_item {
    display: grid;
    grid-template-columns: 80px minmax(0, 1fr) 44px;
    grid-template-areas:
      "thumb name  remove"
      "thumb price price";
    gap: 6px 14px;
    align-items: center;
    padding: 20px 16px 18px;
    border-top: 1px solid var(--ytmx-line);
  }
  body.ytmx-cart table.shop_table.cart tr.cart_item:first-child { border-top: 0; }
  body.ytmx-cart table.shop_table.cart tr.cart_item td {
    display: block;
    width: auto;
    padding: 0 !important;
    border: 0 !important;
    text-align: left !important;
  }
  body.ytmx-cart table.shop_table.cart tr.cart_item td::before { content: none !important; }
  body.ytmx-cart tr.cart_item .product-thumbnail { grid-area: thumb; }
  body.ytmx-cart tr.cart_item .product-name { grid-area: name; font-size: 1rem; }
  body.ytmx-cart tr.cart_item .product-remove { grid-area: remove; align-self: start; text-align: right !important; }
  body.ytmx-cart tr.cart_item .product-price { grid-area: price; color: var(--ytmx-muted); font-size: .95rem; }
  /* Third row: quantity on the left, subtotal on the right (subtotal box shrinks to its text, so it never covers the input) */
  body.ytmx-cart tr.cart_item .product-quantity { grid-row: 3; grid-column: 1 / 3; margin-top: 8px; }
  body.ytmx-cart tr.cart_item .product-subtotal { grid-row: 3; grid-column: 2 / 4; justify-self: end; margin-top: 8px; text-align: right !important; font-size: 1.1rem; white-space: nowrap; }
  body.ytmx-cart table.shop_table.cart tr.cart_item td.product-quantity::before {
    content: "Qty" !important;
    display: inline-block !important;
    margin-right: 10px;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--ytmx-muted);
  }
  body.ytmx-cart tr.cart_item .product-quantity .quantity { vertical-align: middle; }

  body.ytmx-cart table.shop_table.cart tr:not(.cart_item) { display: block; }
  body.ytmx-cart table.cart td.actions { display: flex; flex-direction: column; align-items: stretch; gap: 12px; padding: 16px !important; border-top: 1px solid var(--ytmx-line) !important; }
  body.ytmx-cart table.cart td.actions::after { display: none; }
  body.ytmx-cart table.cart td.actions::before { content: none !important; }
  body.ytmx-cart table.cart td.actions .coupon { float: none; width: 100%; flex-direction: column; }
  body.ytmx-cart table.cart td.actions .coupon #coupon_code { flex: none; width: 100% !important; }
  body.ytmx-cart table.cart td.actions .coupon .button,
  body.ytmx-cart table.cart td.actions > button[name="update_cart"] { float: none; width: 100%; margin: 0; }

  /* WooCommerce makes every totals row a block on phones — put it back to a normal 2-column table */
  body.ytmx-wc .cart_totals table tr,
  body.ytmx-wc .woocommerce-checkout-review-order-table tr { display: table-row !important; }
  body.ytmx-wc .cart_totals table tbody,
  body.ytmx-wc .woocommerce-checkout-review-order-table tbody { display: table-row-group !important; }
  body.ytmx-wc .cart_totals table th,
  body.ytmx-wc .cart_totals table td,
  body.ytmx-wc .woocommerce-checkout-review-order-table th,
  body.ytmx-wc .woocommerce-checkout-review-order-table td { display: table-cell !important; }
  body.ytmx-wc .cart_totals table td,
  body.ytmx-wc .woocommerce-checkout-review-order-table td { text-align: right !important; }
  body.ytmx-wc .woocommerce-checkout-review-order-table td.product-name { text-align: left !important; }
  body.ytmx-wc .cart_totals table td::before,
  body.ytmx-wc .woocommerce-checkout-review-order-table td::before { content: none !important; }
  body.ytmx-wc .cart_totals table th,
  body.ytmx-wc .woocommerce-checkout-review-order-table th { text-align: left !important; }

  body.ytmx-wc .woocommerce-message .button,
  body.ytmx-wc .woocommerce-info .button { margin-left: 0; }
  body.ytmx-order-pay .woocommerce #btn-razorpay,
  body.ytmx-order-pay .woocommerce #btn-razorpay-cancel { width: 100%; margin-right: 0; }
}

/* Very small phones */
@media (max-width: 380px) {
  body.ytmx-wc main .ytm-section { padding-top: 98px; }
  body.ytmx-checkout form.woocommerce-checkout #customer_details,
  body.ytmx-checkout form.woocommerce-checkout #order_review,
  body.ytmx-cart .cart_totals { padding: 16px; }
  body.ytmx-cart table.shop_table.cart tr.cart_item { grid-template-columns: 64px minmax(0, 1fr) 44px; padding-inline: 12px; }
  body.ytmx-cart table.cart .product-thumbnail a,
  body.ytmx-cart table.cart .product-thumbnail img { width: 64px; height: 64px; }
  body.ytmx-wc .cart_totals .order-total td,
  body.ytmx-wc .woocommerce-checkout-review-order-table .order-total td { font-size: 1.35rem; }
}

/* Never allow sideways scroll from these pages */
body.ytmx-wc main { overflow-x: clip; }
body.ytmx-wc .woocommerce img { max-width: 100%; height: auto; }

/* ---------- 11. Motion preference ---------- */
@media (prefers-reduced-motion: reduce) {
  body.ytmx-wc .woocommerce *,
  body.ytmx-wc .woocommerce *::before,
  body.ytmx-wc .woocommerce *::after { transition: none !important; animation: none !important; }
}


/* Short course purchase flow — simple offer step above the cart. */
body.ytmx-cart .ytmx-course-offer{display:grid;grid-template-columns:minmax(150px,220px) minmax(0,1fr);gap:24px;align-items:center;margin:0 0 22px;padding:22px;background:var(--ytmx-card);border:1px solid var(--ytmx-border);border-radius:var(--ytmx-radius-md);box-shadow:var(--ytmx-shadow-card)}
body.ytmx-cart .ytmx-course-offer-media img{display:block;width:100%;aspect-ratio:16/10;object-fit:cover;border-radius:var(--ytmx-radius-sm);border:1px solid var(--ytmx-border)}
body.ytmx-cart .ytmx-course-offer-eyebrow{display:block;margin-bottom:7px;color:var(--ytmx-red);font-size:.68rem;font-weight:900;letter-spacing:.14em}
body.ytmx-cart .ytmx-course-offer-copy h2{margin:0 0 8px;color:var(--ytmx-white);font-size:clamp(1.2rem,2.4vw,1.65rem)}
body.ytmx-cart .ytmx-course-offer-heading{margin:0 0 6px;color:var(--ytmx-white);font-size:.95rem}body.ytmx-cart .ytmx-course-offer-description{color:var(--ytmx-muted);font-size:.9rem;line-height:1.6}
body.ytmx-cart .ytmx-course-offer-description p{margin:0}
body.ytmx-cart .ytmx-course-offer-step{margin:12px 0 0;padding-top:12px;border-top:1px solid var(--ytmx-line);color:var(--ytmx-muted);font-size:.78rem;line-height:1.5}
body.ytmx-cart .ytmx-course-offer-step strong{color:var(--ytmx-white)}
@media(max-width:700px){body.ytmx-cart .ytmx-course-offer{grid-template-columns:1fr;gap:16px;padding:16px}body.ytmx-cart .ytmx-course-offer-media img{aspect-ratio:16/9}}

/* =========================================================
   Direct-buy checkout (/checkout-2/ only): one wide box, reference-style layout.
   Every rule needs body.ytmx-checkout-2; the normal Checkout is untouched.
   ========================================================= */
body.ytmx-checkout-2 main,
body.ytmx-checkout-2 main .ytm-section { min-height: 0 !important; height: auto !important; }
body.ytmx-checkout-2 main .ytm-section { padding: 104px 0 40px; display: block; }
/* Remove any framed/bordered wrapper around the content */
body.ytmx-checkout-2 main .ytm-section > *,
body.ytmx-checkout-2 main .ytm-section .container,
body.ytmx-checkout-2 main .entry-content { border: 0 !important; background: none !important; box-shadow: none !important; }
body.ytmx-checkout-2 main .ytm-section > h1 { display: none; }
/* Remove the narrow inset: use almost the full screen width */
body.ytmx-checkout-2 main .ytm-section > *,
body.ytmx-checkout-2 main .ytm-section .container { width: 100%; max-width: 760px; margin-left: auto; margin-right: auto; padding-left: 16px; padding-right: 16px; box-sizing: border-box; }
body.ytmx-checkout-2 .woocommerce { max-width: none; padding: 0; }

/* Headline block */
body.ytmx-checkout-2 .ytmx-co2-intro { text-align: center; margin: 0 0 18px; }
body.ytmx-checkout-2 .ytmx-co2-promo { width: 100%; max-width: 720px; margin: 0 auto 22px; line-height: 0; }
body.ytmx-checkout-2 .ytmx-co2-promo img { display: block; width: 100%; max-width: 720px; height: auto; margin: 0 auto; border: 0; border-radius: 0; box-shadow: none; }
body.ytmx-checkout-2 .ytmx-co2-intro h2 { margin: 0 0 8px; font-size: clamp(1.45rem, 1.1rem + 1.6vw, 2rem); line-height: 1.2; color: var(--ytmx-text); }
body.ytmx-checkout-2 .ytmx-co2-trust { margin: 0; color: var(--ytmx-muted); font-size: .95rem; }
body.ytmx-checkout-2 .ytmx-co2-image { margin: 18px auto 0; max-width: 520px; }
body.ytmx-checkout-2 .ytmx-co2-image img { display: block; width: 100%; height: auto; border-radius: 14px; }

/* NO frame/box: fields sit directly on the page, full width */
body.ytmx-checkout.ytmx-checkout-2 form.woocommerce-checkout {
  display: block; padding: 0; background: none !important; border: 0 !important; box-shadow: none !important; border-radius: 0;
}
body.ytmx-checkout.ytmx-checkout-2 form.woocommerce-checkout #customer_details,
body.ytmx-checkout.ytmx-checkout-2 form.woocommerce-checkout #order_review,
body.ytmx-checkout-2 #customer_details .col-1,
body.ytmx-checkout-2 #customer_details .col-2,
body.ytmx-checkout-2 .woocommerce-billing-fields,
body.ytmx-checkout-2 .woocommerce-billing-fields__field-wrapper {
  position: static; float: none; width: 100%; max-width: none; margin: 0; padding: 0; background: none !important; border: 0 !important; box-shadow: none !important; border-radius: 0;
}
body.ytmx-checkout-2 form.woocommerce-checkout #customer_details::before,
body.ytmx-checkout-2 form.woocommerce-checkout #customer_details::after,
body.ytmx-checkout-2 form.woocommerce-checkout #order_review::before { display: none !important; }

body.ytmx-checkout-2 .ytmx-co2-cardtop { text-align: center; margin: 0 0 16px; color: var(--ytmx-muted); font-size: .95rem; }
body.ytmx-checkout-2 .ytmx-co2-cardtop::before { content: "\1F512\00a0"; }

/* Fields: placeholders only (labels stay for accessibility/validation, visually hidden) */
body.ytmx-checkout-2 .woocommerce-billing-fields > h3 { display: none; }
body.ytmx-checkout-2 #billing_country_field { display: none !important; }
body.ytmx-checkout-2 .woocommerce-billing-fields__field-wrapper > .form-row { grid-column: 1 / -1 !important; margin: 0 0 12px; }
body.ytmx-checkout-2 .woocommerce-billing-fields__field-wrapper label { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* PAYMENT divider */
body.ytmx-checkout-2 .ytmx-co2-divider { display: flex; align-items: center; gap: 12px; margin: 8px 0 14px; color: var(--ytmx-muted); font-size: .8rem; font-weight: 700; letter-spacing: .08em; }
body.ytmx-checkout-2 .ytmx-co2-divider::after { content: ""; flex: 1; height: 1px; background: var(--ytmx-line-strong); }

/* Order lines: Item | Price header, product row, Order Total */
body.ytmx-checkout.ytmx-checkout-2 .woocommerce-checkout-review-order-table thead { display: table-header-group !important; }
body.ytmx-checkout-2 .ytmx-card-title,
body.ytmx-checkout-2 #order_review_heading,
body.ytmx-checkout-2 .woocommerce-checkout-review-order-table tfoot tr:not(.order-total) { display: none !important; }

/* Payment method row stays; long description hidden */
body.ytmx-checkout-2 #payment div.payment_box { display: none !important; }
body.ytmx-checkout-2 .woocommerce-privacy-policy-text p { font-size: .78rem; margin: 0 0 10px; }

/* Big pay button with cart icon */
body.ytmx-checkout-2 #payment #place_order { width: 100%; }
body.ytmx-checkout-2 #payment #place_order::before {
  content: ""; display: inline-block; width: 1.2em; height: 1.2em; margin-right: .5em; vertical-align: -.2em; background: currentColor;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='9' cy='20' r='1.5'/><circle cx='18' cy='20' r='1.5'/><path d='M2 3h3l2.7 12.4a1 1 0 0 0 1 .8h9.2a1 1 0 0 0 1-.8L21 7H6'/></svg>") center / contain no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='9' cy='20' r='1.5'/><circle cx='18' cy='20' r='1.5'/><path d='M2 3h3l2.7 12.4a1 1 0 0 0 1 .8h9.2a1 1 0 0 0 1-.8L21 7H6'/></svg>") center / contain no-repeat;
}


/* =========================================================
   v2.6.0 — /checkout-2/: full-width fields + inline coupon box
   ========================================================= */
/* Only ONE outer gutter. Every wrapper inside it adds no extra side space. */
body.ytmx-checkout.ytmx-checkout-2 main .ytm-section .container .container,
body.ytmx-checkout.ytmx-checkout-2 main .entry-content,
body.ytmx-checkout.ytmx-checkout-2 main .entry-content > *,
body.ytmx-checkout.ytmx-checkout-2 .woocommerce,
body.ytmx-checkout.ytmx-checkout-2 .woocommerce-checkout,
body.ytmx-checkout.ytmx-checkout-2 form.woocommerce-checkout,
body.ytmx-checkout.ytmx-checkout-2 #customer_details,
body.ytmx-checkout.ytmx-checkout-2 #order_review,
body.ytmx-checkout.ytmx-checkout-2 .woocommerce-billing-fields,
body.ytmx-checkout.ytmx-checkout-2 .woocommerce-billing-fields__field-wrapper {
  width: 100% !important; max-width: none !important; margin-left: 0 !important; margin-right: 0 !important; padding-left: 0 !important; padding-right: 0 !important;
}
body.ytmx-checkout.ytmx-checkout-2 .form-row,
body.ytmx-checkout.ytmx-checkout-2 .form-row .woocommerce-input-wrapper { display: block; width: 100% !important; max-width: none !important; float: none !important; }
body.ytmx-checkout.ytmx-checkout-2 .woocommerce form .form-row input.input-text,
body.ytmx-checkout.ytmx-checkout-2 .woocommerce form .form-row input[type="text"],
body.ytmx-checkout.ytmx-checkout-2 .woocommerce form .form-row input[type="email"],
body.ytmx-checkout.ytmx-checkout-2 .woocommerce form .form-row input[type="tel"] {
  width: 100% !important; min-height: 54px; padding: 0 16px; border-radius: 12px; font-size: 1rem;
}
body.ytmx-checkout-2 .ytmx-co2-intro { margin-bottom: 22px; }
body.ytmx-checkout-2 .ytmx-co2-promo { max-width: 720px; margin-bottom: 18px; }
body.ytmx-checkout-2 .ytmx-co2-image { max-width: 100%; }
@media (max-width: 768px) {
  body.ytmx-checkout-2 .ytmx-co2-promo { max-width: 100%; margin-bottom: 16px; }
  body.ytmx-checkout-2 main .ytm-section > *,
  body.ytmx-checkout-2 main .ytm-section .container { max-width: 100%; padding-left: 14px; padding-right: 14px; }
}

/* Order table: tidy, full width, left/right aligned */
body.ytmx-checkout-2 .woocommerce-checkout-review-order-table { width: 100%; table-layout: auto; }
body.ytmx-checkout-2 .woocommerce-checkout-review-order-table thead th { text-align: left; padding: 12px 0; font-size: .95rem; }
body.ytmx-checkout-2 .woocommerce-checkout-review-order-table thead th:last-child { text-align: right; }
body.ytmx-checkout-2 .woocommerce-checkout-review-order-table tr.cart-discount { display: table-row !important; }
body.ytmx-checkout-2 .woocommerce-checkout-review-order-table tr.cart-discount th,
body.ytmx-checkout-2 .woocommerce-checkout-review-order-table tr.cart-discount td { color: var(--ytmx-green); }
body.ytmx-checkout-2 .woocommerce-checkout-review-order-table .woocommerce-remove-coupon { margin-left: 8px; font-size: .85rem; text-decoration: underline; color: var(--ytmx-muted); }

/* Coupon box: input + Apply on one line, full width */
body.ytmx-checkout tr.ytmx-coupon-row > td { padding: 14px 0 6px !important; border: 0 !important; text-align: left !important; }
body.ytmx-checkout .ytmx-coupon { display: flex; align-items: stretch; gap: 10px; width: 100%; }
body.ytmx-checkout .ytmx-coupon-input {
  flex: 1 1 auto; min-width: 0; min-height: 52px; padding: 0 16px; border-radius: 12px;
  border: 1px solid var(--ytmx-line-strong); background: var(--ytmx-surface-2); color: var(--ytmx-text); font-size: 1rem;
}
body.ytmx-checkout .ytmx-coupon-input::placeholder { color: var(--ytmx-muted); }
body.ytmx-checkout .ytmx-coupon-input:focus { outline: 0; border-color: var(--ytmx-red); box-shadow: 0 0 0 3px rgba(var(--ytmx-red-rgb), .25); }
body.ytmx-checkout .ytmx-coupon-apply {
  flex: 0 0 auto; min-height: 52px; padding: 0 26px; border-radius: 12px; cursor: pointer;
  border: 1px solid var(--ytmx-line-strong); background: transparent; color: var(--ytmx-text); font-size: 1rem; font-weight: 700;
}
body.ytmx-checkout .ytmx-coupon-apply:hover { border-color: var(--ytmx-red); }
body.ytmx-checkout .ytmx-coupon-apply:focus-visible { outline: 2px solid var(--ytmx-red); outline-offset: 2px; }
body.ytmx-checkout .ytmx-coupon-apply[disabled] { opacity: .6; cursor: progress; }
body.ytmx-checkout .ytmx-coupon-msg { margin: 8px 0 0; min-height: 0; font-size: .9rem; color: var(--ytmx-green); }
body.ytmx-checkout .ytmx-coupon-msg:empty { display: none; }
body.ytmx-checkout .ytmx-coupon-msg.is-error { color: var(--ytmx-danger); }


/* =========================================================
   v2.6.2 — /checkout-2/: remove the extra top gap under the sticky header.
   Content now starts just below the header instead of ~180px lower.
   Tune ONE number: --ytmx-co2-top (space between header bottom and the bonus image).
   ========================================================= */
body.ytmx-checkout-2 {
  --ytmx-co2-header: 84px;   /* sticky header height + its top offset (mobile) */
  --ytmx-co2-top: 12px;      /* breathing room under the header */
}
@media (min-width: 1024px) {
  body.ytmx-checkout-2 { --ytmx-co2-header: 104px; --ytmx-co2-top: 16px; }
}
body.ytmx-checkout-2 main,
body.ytmx-checkout-2 #main,
body.ytmx-checkout-2 .site-main,
body.ytmx-checkout-2 #primary,
body.ytmx-checkout-2 #content,
body.ytmx-checkout-2 .site-content {
  padding-top: 0 !important;
  margin-top: 0 !important;
}
body.ytmx-checkout-2 main .ytm-section {
  padding-top: calc(var(--ytmx-co2-header) + var(--ytmx-co2-top)) !important;
  margin-top: 0 !important;
}
body.ytmx-checkout-2 main .ytm-section > .container,
body.ytmx-checkout-2 main .ytm-section .entry-content,
body.ytmx-checkout-2 main .ytm-section .woocommerce,
body.ytmx-checkout-2 main .ytm-section .woocommerce-checkout,
body.ytmx-checkout-2 .woocommerce-notices-wrapper:empty {
  padding-top: 0 !important;
  margin-top: 0 !important;
}
body.ytmx-checkout-2 .ytmx-co2-intro,
body.ytmx-checkout-2 .ytmx-co2-promo { margin-top: 0 !important; padding-top: 0 !important; }

/* =========================================================
   v2.6.4 — show the coupon calculation in the order table.
   (Earlier rule hiding every tfoot row except Total was winning over the
   discount row; these selectors are stronger so the row is visible.)
   Result:  Product ₹2,499  →  Coupon: CODE  −₹2,249.10  →  Total ₹249.90
   ========================================================= */
body.ytmx-checkout.ytmx-checkout-2 .woocommerce-checkout-review-order-table tfoot tr.cart-discount {
  display: table-row !important;
}
body.ytmx-checkout.ytmx-checkout-2 .woocommerce-checkout-review-order-table tfoot tr.cart-discount th,
body.ytmx-checkout.ytmx-checkout-2 .woocommerce-checkout-review-order-table tfoot tr.cart-discount td {
  display: table-cell !important;
  padding: 14px 0 !important;
  color: var(--ytmx-green) !important;
  font-weight: 700;
  font-size: 1rem;
  border-top: 1px solid var(--ytmx-line) !important;
  vertical-align: middle;
}
body.ytmx-checkout.ytmx-checkout-2 .woocommerce-checkout-review-order-table tfoot tr.cart-discount th { text-align: left; }
body.ytmx-checkout.ytmx-checkout-2 .woocommerce-checkout-review-order-table tfoot tr.cart-discount td { text-align: right; white-space: nowrap; }
body.ytmx-checkout.ytmx-checkout-2 .woocommerce-checkout-review-order-table tfoot tr.cart-discount td .woocommerce-remove-coupon {
  display: block; margin: 2px 0 0; font-size: .8rem; font-weight: 400; color: var(--ytmx-muted) !important; text-decoration: underline;
}

/* =========================================================
   v2.7.0 — professional order summary (checkout-2 and checkout)
   Item  →  Subtotal  →  Discount [CODE]  →  Total  →  "You saved"
   ========================================================= */
/* Clean item header: hide the generic "Product / Subtotal" head row */
body.ytmx-checkout.ytmx-checkout-2 .woocommerce-checkout-review-order-table thead { display: none !important; }

body.ytmx-checkout .woocommerce-checkout-review-order-table { border-collapse: collapse; }

/* Subtotal row: visible only while a coupon is applied */
body.ytmx-checkout.ytmx-checkout-2 .woocommerce-checkout-review-order-table tfoot tr.cart-subtotal { display: none !important; }
body.ytmx-checkout.ytmx-checkout-2 .woocommerce-checkout-review-order-table:has(tr.cart-discount) tfoot tr.cart-subtotal { display: table-row !important; }
body.ytmx-checkout.ytmx-checkout-2 .woocommerce-checkout-review-order-table tfoot tr.cart-subtotal th,
body.ytmx-checkout.ytmx-checkout-2 .woocommerce-checkout-review-order-table tfoot tr.cart-subtotal td {
  padding: 16px 0 8px !important; border-top: 1px solid var(--ytmx-line) !important;
  font-size: .98rem; font-weight: 500; color: var(--ytmx-muted) !important;
}
body.ytmx-checkout.ytmx-checkout-2 .woocommerce-checkout-review-order-table tfoot tr.cart-subtotal td { color: var(--ytmx-text) !important; font-weight: 600; }

/* Discount row: label + code chip on the left, amount + Remove on the right */
body.ytmx-checkout.ytmx-checkout-2 .woocommerce-checkout-review-order-table tfoot tr.cart-discount th,
body.ytmx-checkout.ytmx-checkout-2 .woocommerce-checkout-review-order-table tfoot tr.cart-discount td {
  padding: 8px 0 !important; border-top: 0 !important; font-size: .98rem; vertical-align: middle;
}
body.ytmx-checkout.ytmx-checkout-2 .woocommerce-checkout-review-order-table tfoot tr.cart-discount th {
  color: var(--ytmx-muted) !important; font-weight: 500;
}
.ytmx-disc-title { margin-right: 10px; }
.ytmx-chip {
  display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px;
  background: rgba(53, 211, 122, .12); border: 1px solid rgba(53, 211, 122, .45);
  color: var(--ytmx-green); font-size: .78rem; font-weight: 800; letter-spacing: .06em; vertical-align: middle;
}
body.ytmx-checkout.ytmx-checkout-2 .woocommerce-checkout-review-order-table tfoot tr.cart-discount td { color: var(--ytmx-green) !important; font-weight: 700; }
/* "[Remove]" -> neat "Remove" link */
body.ytmx-checkout .woocommerce-checkout-review-order-table tr.cart-discount .woocommerce-remove-coupon {
  display: block; margin: 3px 0 0; font-size: 0 !important; line-height: 1; text-decoration: none !important;
}
body.ytmx-checkout .woocommerce-checkout-review-order-table tr.cart-discount .woocommerce-remove-coupon::after {
  content: "Remove"; font-size: .78rem; font-weight: 500; color: var(--ytmx-muted); text-decoration: underline; text-underline-offset: 2px;
}
body.ytmx-checkout .woocommerce-checkout-review-order-table tr.cart-discount .woocommerce-remove-coupon:hover::after { color: var(--ytmx-danger); }

/* Total row */
body.ytmx-checkout.ytmx-checkout-2 .woocommerce-checkout-review-order-table tfoot tr.order-total th,
body.ytmx-checkout.ytmx-checkout-2 .woocommerce-checkout-review-order-table tfoot tr.order-total td {
  padding: 18px 0 8px !important; border-top: 1px solid var(--ytmx-line-strong) !important;
}
body.ytmx-checkout.ytmx-checkout-2 .woocommerce-checkout-review-order-table tfoot tr.order-total th { font-size: 1.05rem; font-weight: 700; color: var(--ytmx-text) !important; }
body.ytmx-checkout.ytmx-checkout-2 .woocommerce-checkout-review-order-table tfoot tr.order-total td { font-size: 1.7rem; font-weight: 800; }

/* "You saved" banner */
body.ytmx-checkout .woocommerce-checkout-review-order-table tr.ytmx-saved-row > td { padding: 6px 0 14px !important; border: 0 !important; text-align: left !important; font-weight: 400; white-space: normal; }
body.ytmx-checkout .ytmx-saved {
  display: block; padding: 11px 14px; border-radius: 12px; text-align: center;
  background: rgba(53, 211, 122, .10); border: 1px dashed rgba(53, 211, 122, .45);
  color: var(--ytmx-green); font-size: .92rem; font-weight: 500;
}
body.ytmx-checkout .ytmx-saved strong { font-weight: 800; }
body.ytmx-checkout.ytmx-checkout-2 .woocommerce-checkout-review-order-table tfoot tr.ytmx-saved-row { display: table-row !important; }
