/**
 * Akşam Okulu — classic WC checkout / cart / thank-you (v2)
 *
 * Full-screen pay shell: mast · main (künye/billing) · sticky aside (özet + ödeme + CTA).
 * DNA: night · Gabarito/Instrument/JetBrains · mono künye · amber tek CTA.
 */

/* ── Tokens ── */

body.mup-ao-checkout {
  --ao-night-950: #0a0e1a;
  --ao-night-900: #101625;
  --ao-night-800: #1a2438;
  --ao-warm: #f5f3ee;
  --ao-amber-300: #ffd584;
  --ao-amber-400: #f5b94e;
  --ao-amber-500: #e09f2d;
  --ao-on-brand: #0a0e1a;
  --ao-fg: var(--ao-warm);
  /* WCAG AA: normal metin ≥4.5:1 koyu zemin üzerinde */
  --ao-fg-muted: #d4d0c8;
  --ao-fg-dim: #b8b3aa;
  --ao-fg-subtle: #8f8a82;
  --ao-line: color-mix(in srgb, var(--ao-warm) 14%, transparent);
  --ao-line-strong: color-mix(in srgb, var(--ao-warm) 24%, transparent);
  --ao-surface: color-mix(in srgb, var(--ao-night-900) 88%, var(--ao-warm) 4%);
  --ao-surface-input: color-mix(in srgb, var(--ao-night-900) 92%, var(--ao-warm) 6%);
  --ao-focus-ring: 0 0 0 2px var(--ao-night-950), 0 0 0 4px var(--ao-amber-300);
  --ao-brand: var(--ao-amber-400);
  --ao-font-display: "Gabarito", system-ui, sans-serif;
  --ao-font-body: "Instrument Sans", system-ui, sans-serif;
  --ao-font-mono: "JetBrains Mono", ui-monospace, monospace;
  --ao-mast-h: 3rem;
  --ao-pad-x: clamp(1rem, 4vw, 1.35rem);
  --ao-dock-h: 4.25rem;
  --ao-flow-max: min(100%, 32rem);
  --ao-shell-max: 40rem;

  color: var(--ao-fg) !important;
  background: var(--ao-night-950) !important;
  font-family: var(--ao-font-body);
  font-size: 1rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100dvh;
}

/* WCAG 2.4.7 — klavye odağı */
body.mup-ao-checkout :focus {
  outline: none;
}

body.mup-ao-checkout :focus-visible {
  outline: 2px solid var(--ao-amber-300);
  outline-offset: 2px;
}

body.mup-ao-checkout a:focus-visible,
body.mup-ao-checkout button:focus-visible,
body.mup-ao-checkout input:focus-visible,
body.mup-ao-checkout select:focus-visible,
body.mup-ao-checkout textarea:focus-visible {
  box-shadow: var(--ao-focus-ring);
}

body.mup-ao-checkout::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(58% 42% at 92% 0%, color-mix(in srgb, var(--ao-amber-400) 10%, transparent), transparent 55%),
    radial-gradient(40% 36% at 4% 100%, color-mix(in srgb, var(--ao-amber-400) 5%, transparent), transparent 60%),
    var(--ao-night-950);
}

/* TT5 / Coming Soon / MS chrome */
body.mup-ao-checkout .wp-site-blocks > header,
body.mup-ao-checkout .wp-site-blocks > footer,
body.mup-ao-checkout .wp-block-template-part,
body.mup-ao-checkout .woocommerce-coming-soon-banner,
body.mup-ao-checkout .wp-block-woocommerce-coming-soon,
body.mup-ao-checkout .woocommerce-coming-soon-store-only > header,
body.mup-ao-checkout .woocommerce-coming-soon-store-only > footer,
body.mup-ao-checkout .woocommerce-coming-soon-store-only > .wp-block-group:has(.wp-block-heading),
body.mup-ao-checkout .wp-block-woocommerce-coming-soon > .wp-block-group:has(.wp-block-heading),
body.mup-ao-checkout .masterstudy-authorization-modal,
body.mup-ao-checkout .stm_lms_user_float_menu,
body.mup-ao-checkout .wp-block-navigation,
body.mup-ao-checkout .wp-block-site-title,
body.mup-ao-checkout .wp-block-site-logo,
body.mup-ao-checkout .wp-block-woocommerce-customer-account,
body.mup-ao-checkout .wp-block-post-title,
body.mup-ao-checkout .entry-title,
body.mup-ao-checkout h1.wp-block-heading,
body.mup-ao-checkout .wp-block-spacer {
  display: none !important;
}

body.mup-ao-checkout .wp-site-blocks,
body.mup-ao-checkout .wp-block-group,
body.mup-ao-checkout .entry-content,
body.mup-ao-checkout .wp-block-post-content,
body.mup-ao-checkout main,
body.mup-ao-checkout .is-root-container,
body.mup-ao-checkout .woocommerce-page,
body.mup-ao-checkout .has-background,
body.mup-ao-checkout .has-base-background-color,
body.mup-ao-checkout .has-white-background-color {
  background: transparent !important;
  background-color: transparent !important;
  color: var(--ao-fg);
  box-shadow: none !important;
}

body.mup-ao-checkout .wp-site-blocks {
  padding: 0 !important;
  margin: 0 !important;
  min-height: 100dvh;
}

body.mup-ao-checkout {
  --wp--preset--color--base: var(--ao-night-950) !important;
  --wp--preset--color--contrast: var(--ao-warm) !important;
  --wp--preset--font-family--manrope: var(--ao-font-body) !important;
  --wp--preset--font-family--inter: var(--ao-font-body) !important;
  --wp--preset--font-family--cardo: var(--ao-font-display) !important;
}

/* ── Mast ── */

.mup-ao-checkout-mast {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid var(--ao-line);
  background: color-mix(in srgb, var(--ao-night-950) 92%, transparent);
  backdrop-filter: blur(12px);
}

.mup-ao-checkout-mast__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 0.5rem 1rem;
  width: 100%;
  max-width: none;
  min-height: var(--ao-mast-h);
  margin-inline: auto;
  padding: 0.55rem var(--ao-pad-x);
}

/* BrandLogo mono: warm words + amber colon — not global amber link color */
body.mup-ao-checkout a.mup-ao-checkout-mast__brand,
body.mup-ao-checkout a.mup-ao-checkout-mast__brand:hover,
body.mup-ao-checkout a.mup-ao-checkout-mast__brand:focus {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  text-decoration: none !important;
  color: var(--ao-fg) !important;
}

body.mup-ao-checkout .mup-ao-checkout-mast__logo.mup-ao-brand-logo.is-mono {
  color: var(--ao-fg) !important;
}

body.mup-ao-checkout .mup-ao-checkout-mast__logo .mup-ao-brand-logo__word {
  color: var(--ao-fg) !important;
}

body.mup-ao-checkout .mup-ao-checkout-mast__logo .mup-ao-brand-logo__colon span {
  background: var(--ao-amber-400) !important;
}

.mup-ao-checkout-mast__fallback {
  font-family: var(--ao-font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ao-fg);
}

.mup-ao-checkout-mast__title {
  margin: 0;
  justify-self: center;
  font-family: var(--ao-font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ao-fg-dim);
}

body.mup-ao-checkout a.mup-ao-checkout-mast__back,
body.mup-ao-checkout a.mup-ao-checkout-mast__back:visited {
  justify-self: end;
  font-family: var(--ao-font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none !important;
  color: var(--ao-fg-dim) !important;
  transition: color 0.15s ease;
}

body.mup-ao-checkout a.mup-ao-checkout-mast__back:hover {
  color: var(--ao-brand) !important;
}

/* Page lead */
.mup-ao-checkout-kunye {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0 0 0.65rem;
  padding: 0;
}

body.mup-ao-checkout--cart .mup-ao-checkout-kunye {
  max-width: var(--ao-flow-max);
  margin: 1rem auto 0;
  padding: 0 var(--ao-pad-x);
}

.mup-ao-checkout-kunye__title {
  margin: 0;
  min-width: 0;
  flex: 1 1 auto;
  font-family: var(--ao-font-display);
  font-size: clamp(1.25rem, 4.5vw, 1.5rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: var(--ao-fg);
}

.mup-ao-checkout-kunye__badge {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.65rem;
  height: 1.65rem;
  padding: 0 0.45rem;
  border-radius: 999px;
  font-family: var(--ao-font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ao-on-brand);
  background: var(--ao-brand);
}

/* Legacy meta — kaldırıldı */
.mup-ao-checkout-kunye__meta,
.mup-ao-checkout-kunye__rule,
.mup-ao-checkout-kunye__accent,
.mup-ao-checkout-kunye__count {
  display: none !important;
}

/* Hesap bilgilendirme — kompakt satır */
.mup-ao-checkout-account-deck {
  display: flex;
  align-items: center;
  margin: 0 0 1.25rem;
  padding: 0.55rem 0.75rem;
  border-radius: 0.5rem;
  border: 1px solid var(--ao-line);
  background: color-mix(in srgb, var(--ao-night-900) 72%, transparent);
}

body.mup-ao-checkout--cart .mup-ao-checkout-account-deck {
  max-width: var(--ao-flow-max);
  margin: 0.65rem auto 0;
  padding-inline: var(--ao-pad-x);
  border: 0;
  background: transparent;
}

.mup-ao-checkout-account-deck__text {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--ao-fg-muted);
}

.mup-ao-checkout-account-deck__kicker,
.mup-ao-checkout-account-deck__steps {
  display: none !important;
}

/* Autofill */
body.mup-ao-checkout input:-webkit-autofill,
body.mup-ao-checkout input:-webkit-autofill:hover,
body.mup-ao-checkout input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--ao-fg) !important;
  caret-color: var(--ao-fg);
  box-shadow: 0 0 0 1000px var(--ao-night-950) inset !important;
  transition: background-color 99999s ease-out 0s;
}

body.mup-ao-checkout--thanks .mup-ao-thanks-actions__hint {
  margin: 0.5rem 0 0;
  max-width: 28rem;
  font-size: 0.84rem;
  line-height: 1.4;
  color: var(--ao-fg-dim);
}

/* ══════════════════════════════════════════
   Embed (portal iframe) — tek sütun akış
   Paketler → Ödeme · misafir bilgileri CTA sonrası
   ══════════════════════════════════════════ */

body.mup-ao-checkout--embed {
  min-height: 100%;
  overflow-x: clip;
  background: var(--ao-night-950) !important;
}

body.mup-ao-checkout--embed .woocommerce,
body.mup-ao-checkout--embed .entry-content > .woocommerce,
body.mup-ao-checkout--embed #payment,
body.mup-ao-checkout--embed .mup-ao-checkout-shell--embed,
body.mup-ao-checkout--embed .mup-ao-checkout-shell {
  max-width: 100%;
  overflow-x: clip;
  box-sizing: border-box;
}

body.mup-ao-checkout--embed .mup-ao-checkout-kunye,
body.mup-ao-checkout--embed .mup-ao-checkout-account-deck {
  display: none !important;
}

body.mup-ao-checkout--embed .mup-ao-checkout-mast {
  display: none !important;
}

body.mup-ao-checkout--embed .woocommerce,
body.mup-ao-checkout--embed .entry-content > .woocommerce {
  max-width: none;
  margin: 0;
  padding: 0;
}

body.mup-ao-checkout--embed .mup-ao-checkout-shell--embed,
body.mup-ao-checkout--embed .mup-ao-checkout-shell {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
  max-width: 100%;
  min-height: auto;
  margin: 0;
  padding: 0.75rem 1rem calc(5.25rem + env(safe-area-inset-bottom, 0px));
  box-sizing: border-box;
}

body.mup-ao-checkout--embed .form-row-first,
body.mup-ao-checkout--embed .form-row-last,
body.mup-ao-checkout--embed .mup-ao-checkout-billing--membership .form-row-first,
body.mup-ao-checkout--embed .mup-ao-checkout-billing--membership .form-row-last {
  width: 100% !important;
  float: none !important;
}

body.mup-ao-checkout--embed input.input-text,
body.mup-ao-checkout--embed textarea.input-text,
body.mup-ao-checkout--embed select {
  min-height: 2.625rem;
  padding: 0.5rem 0.7rem !important;
  font-size: 16px !important; /* iOS zoom önleme */
}

body.mup-ao-checkout--embed .form-row {
  margin-bottom: 0.65rem !important;
}

body.mup-ao-checkout--embed table.mup-ao-checkout-summary {
  width: 100%;
  max-width: 100%;
  table-layout: fixed;
}

body.mup-ao-checkout--embed .mup-ao-checkout-coupon-wrap,
body.mup-ao-checkout--embed .mup-ao-checkout-payment .mup-ao-checkout-coupon {
  width: 100%;
  max-width: 100%;
  margin: 0.75rem 0 0;
  box-sizing: border-box;
}

body.mup-ao-checkout--embed .mup-ao-checkout-coupon-wrap .mup-ao-checkout-coupon {
  margin: 0;
  padding: 0.75rem;
  overflow: hidden;
}

body.mup-ao-checkout--embed .mup-ao-checkout-coupon__form {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.5rem;
  width: 100%;
  max-width: 100%;
}

body.mup-ao-checkout--embed .mup-ao-checkout-coupon__input {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
}

body.mup-ao-checkout--embed .mup-ao-checkout-coupon__apply {
  width: 100%;
  justify-self: stretch;
}

body.mup-ao-checkout--embed .mup-ao-checkout-consent {
  margin: 0 0 0.85rem;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--ao-line);
  border-radius: 0.5rem;
  background: color-mix(in srgb, var(--ao-night-900) 55%, transparent);
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

body.mup-ao-checkout--embed .mup-ao-checkout-consent__label {
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
  hyphens: auto;
}

body.mup-ao-checkout--embed .mup-ao-checkout-consent__label a {
  overflow-wrap: anywhere;
  word-break: break-word;
}

body.mup-ao-checkout--embed .woocommerce-error,
body.mup-ao-checkout--embed .woocommerce-NoticeGroup-checkout,
body.mup-ao-checkout--embed ul.woocommerce-error {
  position: relative;
  z-index: 2;
  margin-bottom: 0.85rem !important;
}

body.mup-ao-checkout--embed .mup-ao-checkout-guest-gate {
  gap: 0.75rem;
  padding: 0.85rem 0.9rem 0.95rem;
}

body.mup-ao-checkout--embed .mup-ao-checkout-aside--packages {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

body.mup-ao-checkout--embed .mup-ao-checkout-aside__heading {
  margin-bottom: 0.25rem !important;
  font-family: var(--ao-font-body) !important;
  font-size: 0.75rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
  color: var(--ao-fg-dim) !important;
}

body.mup-ao-checkout--embed .mup-ao-checkout-aside__hint {
  margin: 0 0 0.75rem;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--ao-fg-dim);
}

body.mup-ao-checkout--embed table.mup-ao-checkout-summary tfoot {
  display: none !important;
}

body.mup-ao-checkout--embed table.mup-ao-checkout-summary .product-total .amount {
  font-size: 0.875rem !important;
  font-weight: 600 !important;
  color: var(--ao-fg) !important;
}

body.mup-ao-checkout--embed .mup-ao-checkout-payblock {
  padding-top: 0;
  border-top: 1px solid var(--ao-line);
  margin-top: 0.25rem;
}

body.mup-ao-checkout--embed .mup-ao-checkout-payment__methods {
  border-top: 0;
  padding-top: 0;
  margin-bottom: 0;
}

body.mup-ao-checkout--embed ul.wc_payment_methods li,
body.mup-ao-checkout--embed .wc_payment_method {
  margin: 0 0 0.5rem !important;
  padding: 0.8rem 0.85rem !important;
  border: 1px solid var(--ao-line) !important;
  border-radius: 0.5rem !important;
  background: color-mix(in srgb, var(--ao-night-900) 55%, transparent) !important;
  overflow: hidden;
}

body.mup-ao-checkout--embed .wc_payment_method label {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

body.mup-ao-checkout--embed .wc_payment_method label img {
  max-width: 100%;
  height: auto;
  flex-shrink: 0;
}

body.mup-ao-checkout--embed .payment_box {
  position: relative;
  margin-top: 0.5rem !important;
  padding: 0 !important;
  font-size: 0.8125rem !important;
  line-height: 1.5 !important;
  color: var(--ao-fg-muted) !important;
}

body.mup-ao-checkout--embed .payment_box::before,
body.mup-ao-checkout--embed .payment_box::after {
  display: none !important;
  content: none !important;
}

body.mup-ao-checkout--embed .payment_box p {
  margin: 0;
}

body.mup-ao-checkout--embed .mup-ao-checkout-customer--prefilled {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

body.mup-ao-checkout--embed .mup-ao-checkout-guest-gate {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem 1.1rem 1.15rem;
  border: 1px solid color-mix(in srgb, var(--ao-brand) 35%, var(--ao-line));
  border-radius: 0.5rem;
  background: color-mix(in srgb, var(--ao-brand) 8%, var(--ao-night-900));
}

body.mup-ao-checkout--embed .mup-ao-checkout-guest-gate[hidden] {
  display: none !important;
}

body.mup-ao-checkout--embed .mup-ao-checkout-guest-gate__title {
  margin: 0 0 0.35rem;
  font-family: var(--ao-font-display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ao-fg);
}

body.mup-ao-checkout--embed .mup-ao-checkout-guest-gate__text {
  margin: 0;
  font-family: var(--ao-font-body);
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--ao-fg-muted);
}

body.mup-ao-checkout--embed .mup-ao-checkout-guest-gate .mup-ao-checkout-section-title {
  margin-top: 0.25rem;
}

body.mup-ao-checkout--embed table.mup-ao-checkout-summary {
  margin-bottom: 0 !important;
}

body.mup-ao-checkout--embed table.mup-ao-checkout-summary .product-name {
  font-size: 1rem !important;
  overflow-wrap: anywhere;
  word-break: break-word;
}

body.mup-ao-checkout--embed .mup-ao-checkout-summary__remove {
  margin-top: 0.45rem;
  padding: 0.2rem 0;
  color: var(--ao-fg-muted) !important;
  border-bottom: 1px solid transparent;
}

body.mup-ao-checkout--embed .mup-ao-checkout-summary__remove:hover {
  color: #f87171 !important;
  border-bottom-color: color-mix(in srgb, #f87171 55%, transparent);
}

body.mup-ao-checkout--embed .mup-ao-checkout-aside,
body.mup-ao-checkout--embed .mup-ao-checkout-main {
  grid-column: auto;
  width: 100%;
  position: relative;
  top: auto;
}

body.mup-ao-checkout--embed .mup-ao-checkout-aside__head {
  margin-bottom: 0;
}

body.mup-ao-checkout--embed .mup-ao-checkout-place--embed,
body.mup-ao-checkout--embed #payment .mup-ao-checkout-place--embed {
  display: none !important;
  visibility: hidden !important;
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
  pointer-events: none !important;
}

body.mup-ao-checkout--embed #place_order,
body.mup-ao-checkout--embed .mup-ao-checkout-place__btn--embed-trigger {
  display: none !important;
  visibility: hidden !important;
}

body.mup-ao-checkout--embed.mup-ao-checkout--thanks .mup-ao-thanks-actions__row {
  display: none !important;
}

@media (max-width: 767px) {
  body.mup-ao-checkout--embed .mup-ao-checkout-shell--embed,
  body.mup-ao-checkout--embed .mup-ao-checkout-shell {
    gap: 0.85rem;
    padding: 0.65rem 0.85rem calc(5.5rem + env(safe-area-inset-bottom, 0px));
  }

  body.mup-ao-checkout--embed .mup-ao-checkout-aside__heading {
    font-size: 0.6875rem !important;
  }

  body.mup-ao-checkout--embed table.mup-ao-checkout-summary .product-name {
    font-size: 0.9375rem !important;
  }

  body.mup-ao-checkout--embed ul.wc_payment_methods li,
  body.mup-ao-checkout--embed .wc_payment_method {
    padding: 0.65rem 0.7rem !important;
  }

  body.mup-ao-checkout--embed .mup-ao-checkout-guest-gate__title {
    font-size: 0.975rem;
  }

  body.mup-ao-checkout--embed .mup-ao-checkout-consent {
    padding: 0.65rem 0.7rem;
  }

  body.mup-ao-checkout--embed .mup-ao-checkout-consent__label {
    font-size: 0.8125rem !important;
    line-height: 1.45 !important;
  }

  body.mup-ao-checkout--embed .payment_box {
    overflow-wrap: anywhere;
    word-break: break-word;
  }
}

/* ══════════════════════════════════════════
   Full-page pay — tek sütun, alt sabit dock
   ══════════════════════════════════════════ */

body.mup-ao-checkout--pay .woocommerce,
body.mup-ao-checkout--pay .entry-content > .woocommerce {
  max-width: none;
  margin: 0;
  padding: 0;
}

body.mup-ao-checkout--pay form.checkout.woocommerce-checkout,
body.mup-ao-checkout--pay form.mup-ao-checkout-form {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

body.mup-ao-checkout--pay .mup-ao-checkout-shell--pay-flow {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  max-width: none;
  min-height: auto;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body.mup-ao-checkout--pay:not(.mup-ao-checkout--embed) .mup-ao-checkout-flow {
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
  max-width: var(--ao-flow-max);
  min-height: auto;
  margin: 0 auto;
  padding: 0 var(--ao-pad-x) calc(var(--ao-dock-h) + 1.35rem + env(safe-area-inset-bottom, 0px));
  box-sizing: border-box;
  flex: 1 1 auto;
}

body.mup-ao-checkout--pay:not(.mup-ao-checkout--embed) .mup-ao-checkout-packages,
body.mup-ao-checkout--pay:not(.mup-ao-checkout--embed) .mup-ao-checkout-main {
  display: block;
  visibility: visible;
  width: 100%;
  max-width: 100%;
}

body.mup-ao-checkout--pay .mup-ao-checkout-packages,
body.mup-ao-checkout--pay .mup-ao-checkout-main,
body.mup-ao-checkout--pay .mup-ao-checkout-payblock {
  width: 100%;
  min-width: 0;
}

body.mup-ao-checkout--pay .mup-ao-checkout-packages {
  padding-top: 1rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--ao-line);
}

body.mup-ao-checkout--pay .mup-ao-checkout-main {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--ao-line);
}

body.mup-ao-checkout--pay .mup-ao-checkout-payblock {
  padding: 1.15rem 0 0.5rem;
}

body.mup-ao-checkout--pay:not(.mup-ao-checkout--embed) .mup-ao-checkout-aside {
  display: none !important;
}

.mup-ao-checkout-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(16.5rem, 22rem);
  gap: 2rem 3.25rem;
  align-items: start;
  width: 100%;
  max-width: var(--ao-shell-max);
  min-height: calc(100dvh - var(--ao-mast-h));
  margin-inline: auto;
  padding: 1.35rem var(--ao-pad-x) 3.5rem;
  box-sizing: border-box;
}

.mup-ao-checkout-main {
  min-width: 0;
  grid-column: 1;
}

.mup-ao-checkout-aside {
  position: sticky;
  top: calc(var(--ao-mast-h) + 0.85rem);
  align-self: start;
  min-width: 0;
  grid-column: 2;
  padding: 0;
  margin: 0;
  border: 0;
  background: transparent;
}

.mup-ao-checkout-aside__heading,
body.mup-ao-checkout--pay #order_review_heading,
body.mup-ao-checkout .mup-ao-checkout-section-title,
body.mup-ao-checkout--pay .woocommerce-billing-fields h3,
body.mup-ao-checkout--pay .woocommerce-additional-fields h3,
body.mup-ao-checkout--pay .woocommerce-shipping-fields h3 {
  margin: 0 0 0.75rem !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  font-family: var(--ao-font-body) !important;
  font-size: 0.8125rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.04em !important;
  text-transform: uppercase !important;
  color: var(--ao-fg-muted) !important;
}

body.mup-ao-checkout .mup-ao-checkout-section-lead {
  margin: -0.35rem 0 1rem !important;
  font-family: var(--ao-font-body) !important;
  font-size: 0.8125rem !important;
  line-height: 1.45;
  color: var(--ao-fg-dim) !important;
}

body.mup-ao-checkout .mup-ao-checkout-billing--membership .form-row-first,
body.mup-ao-checkout .mup-ao-checkout-billing--membership .form-row-last {
  width: 48% !important;
}

body.mup-ao-checkout--pay .woocommerce-billing-fields h3,
body.mup-ao-checkout--pay .woocommerce-additional-fields h3,
body.mup-ao-checkout--pay .woocommerce-shipping-fields h3 {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

body.mup-ao-checkout--pay #customer_details,
body.mup-ao-checkout--pay .mup-ao-checkout-customer,
body.mup-ao-checkout--pay .col2-set,
body.mup-ao-checkout--pay .col2-set .col-1,
body.mup-ao-checkout--pay .col2-set .col-2,
body.mup-ao-checkout--pay #order_review,
body.mup-ao-checkout--pay .woocommerce-checkout-review-order,
body.mup-ao-checkout--pay #payment,
body.mup-ao-checkout--pay .woocommerce-checkout-payment {
  width: 100%;
  float: none !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

body.mup-ao-checkout--pay .col2-set::before,
body.mup-ao-checkout--pay .col2-set::after {
  display: none !important;
}

/* Gizli dijital alanlar */
body.mup-ao-checkout .mup-ao-checkout-field--hidden,
body.mup-ao-checkout p.form-row.mup-ao-checkout-field--hidden {
  display: none !important;
}

/* Tablo toplam — dock’ta göster */
body.mup-ao-checkout--pay:not(.mup-ao-checkout--embed) table.mup-ao-checkout-summary tr.order-total {
  display: none !important;
}

/* Alt sabit dock */
body.mup-ao-checkout--pay:not(.mup-ao-checkout--embed) .mup-ao-checkout-place--dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 45;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.85rem 1rem;
  margin: 0 !important;
  padding: 0.65rem var(--ao-pad-x) calc(0.65rem + env(safe-area-inset-bottom, 0px)) !important;
  border-top: 1px solid var(--ao-line-strong);
  background: color-mix(in srgb, var(--ao-night-950) 96%, transparent);
  backdrop-filter: blur(16px);
  box-sizing: border-box;
}

body.mup-ao-checkout--pay .mup-ao-checkout-dock__total {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

body.mup-ao-checkout--pay .mup-ao-checkout-dock__label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ao-fg-muted);
}

body.mup-ao-checkout--pay .mup-ao-checkout-dock__amount {
  font-family: var(--ao-font-display);
  font-size: clamp(1.125rem, 4.2vw, 1.35rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  color: var(--ao-brand);
  line-height: 1.1;
}

body.mup-ao-checkout--pay:not(.mup-ao-checkout--embed) .mup-ao-checkout-place--dock .mup-ao-checkout-place__btn,
body.mup-ao-checkout--pay:not(.mup-ao-checkout--embed) .mup-ao-checkout-place--dock #place_order {
  width: auto !important;
  min-width: 9.5rem;
  max-width: 14rem;
  flex-shrink: 0;
  min-height: 2.75rem !important;
  padding: 0.65rem 1.15rem !important;
  font-size: 0.9375rem !important;
  border-radius: 999px !important;
  white-space: nowrap;
}

body.mup-ao-checkout--pay .mup-ao-checkout-payment__methods {
  margin: 0;
  padding: 0;
  border: 0;
}

body.mup-ao-checkout--pay .mup-ao-checkout-payblock > .woocommerce-terms-and-conditions-wrapper,
body.mup-ao-checkout--pay .mup-ao-checkout-payblock > .woocommerce-privacy-policy-text {
  margin-bottom: 0.85rem;
}

@media (min-width: 640px) {
  body.mup-ao-checkout--pay:not(.mup-ao-checkout--embed) .mup-ao-checkout-place--dock {
    padding-inline: var(--ao-pad-x) !important;
  }
}

/* ── Tipografi ── */

body.mup-ao-checkout h1,
body.mup-ao-checkout h2,
body.mup-ao-checkout h3 {
  font-family: var(--ao-font-display) !important;
  font-weight: 600 !important;
  letter-spacing: -0.025em;
  color: var(--ao-fg) !important;
  background: transparent !important;
}

/* ── Form fields (classic) ── */

body.mup-ao-checkout .form-row {
  margin: 0 0 0.85rem !important;
  padding: 0 !important;
}

body.mup-ao-checkout .form-row-first,
body.mup-ao-checkout .form-row-last {
  width: 48% !important;
  max-width: 48%;
  float: left;
  box-sizing: border-box;
}

body.mup-ao-checkout .form-row-last {
  float: right;
}

body.mup-ao-checkout .form-row-wide {
  clear: both;
  width: 100% !important;
}

body.mup-ao-checkout .form-row label,
body.mup-ao-checkout .form-row label .required,
body.mup-ao-checkout .form-row abbr.required {
  color: var(--ao-fg) !important;
  font-family: var(--ao-font-body) !important;
  font-size: 0.875rem !important;
  font-weight: 500 !important;
  letter-spacing: 0;
  text-transform: none;
  line-height: 1.45;
  border: 0 !important;
  text-decoration: none !important;
}

body.mup-ao-checkout .form-row .optional {
  color: var(--ao-fg-dim) !important;
  font-weight: 400;
  opacity: 0.85;
}

body.mup-ao-checkout .form-row .description,
body.mup-ao-checkout small {
  display: block;
  margin-top: 0.4rem;
  font-family: var(--ao-font-body) !important;
  font-size: 0.8125rem !important;
  line-height: 1.45;
  color: var(--ao-fg-muted) !important;
  letter-spacing: 0;
  text-transform: none;
}

body.mup-ao-checkout input.input-text,
body.mup-ao-checkout textarea.input-text,
body.mup-ao-checkout select,
body.mup-ao-checkout .select2-container .select2-selection--single {
  background: var(--ao-surface-input) !important;
  color: var(--ao-fg) !important;
  border: 1px solid var(--ao-line-strong) !important;
  border-radius: 0.5rem !important;
  box-shadow: none !important;
  min-height: 2.75rem;
  padding: 0.55rem 0.75rem !important;
  font-family: var(--ao-font-body) !important;
  font-size: 1rem !important;
  width: 100%;
}

body.mup-ao-checkout .select2-container--default .select2-selection--single .select2-selection__rendered {
  color: var(--ao-fg) !important;
  line-height: 2.35rem;
  padding-left: 0 !important;
}

body.mup-ao-checkout .select2-dropdown {
  background: var(--ao-night-900) !important;
  border: 1px solid var(--ao-line-strong) !important;
  color: var(--ao-fg);
}

body.mup-ao-checkout input.input-text:focus,
body.mup-ao-checkout textarea.input-text:focus,
body.mup-ao-checkout select:focus {
  outline: none !important;
  border-color: var(--ao-brand) !important;
  box-shadow: var(--ao-focus-ring) !important;
}

body.mup-ao-checkout .woocommerce-form__label-for-checkbox {
  color: var(--ao-fg-muted) !important;
  font-family: var(--ao-font-body) !important;
  font-size: 0.8125rem !important;
  letter-spacing: 0;
  text-transform: none;
}

/* ── Sipariş özeti (classic table) ── */

body.mup-ao-checkout table.shop_table,
body.mup-ao-checkout table.shop_table th,
body.mup-ao-checkout table.shop_table td {
  background: transparent !important;
  color: var(--ao-fg) !important;
  border-color: var(--ao-line) !important;
  box-shadow: none !important;
}

body.mup-ao-checkout table.shop_table.woocommerce-checkout-review-order-table,
body.mup-ao-checkout table.mup-ao-checkout-summary {
  border: 0 !important;
  margin: 0 0 1.25rem !important;
}

body.mup-ao-checkout table.mup-ao-checkout-summary thead {
  display: none;
}

body.mup-ao-checkout table.mup-ao-checkout-summary th,
body.mup-ao-checkout table.mup-ao-checkout-summary td {
  padding: 0.7rem 0 !important;
  border: 0 !important;
  border-bottom: 1px solid var(--ao-line) !important;
  vertical-align: baseline;
}

body.mup-ao-checkout table.mup-ao-checkout-summary .product-name {
  font-family: var(--ao-font-body) !important;
  font-size: 1rem !important;
  font-weight: 600 !important;
  letter-spacing: -0.015em;
  line-height: 1.4;
  color: var(--ao-fg) !important;
}

body.mup-ao-checkout .mup-ao-checkout-summary__remove {
  display: inline-block;
  margin-top: 0.45rem;
  font-family: var(--ao-font-body) !important;
  font-size: 0.8125rem !important;
  font-weight: 500 !important;
  letter-spacing: 0;
  text-transform: none;
  text-decoration: underline !important;
  text-underline-offset: 2px;
  color: var(--ao-fg-muted) !important;
  transition: color 0.15s ease;
}

body.mup-ao-checkout .mup-ao-checkout-summary__remove:hover {
  color: #f87171 !important;
}

body.mup-ao-checkout table.mup-ao-checkout-summary .product-quantity,
body.mup-ao-checkout table.mup-ao-checkout-summary .variation,
body.mup-ao-checkout table.mup-ao-checkout-summary .variation dt,
body.mup-ao-checkout table.mup-ao-checkout-summary .variation dd {
  display: block;
  font-family: var(--ao-font-body) !important;
  font-size: 0.8125rem !important;
  font-weight: 500 !important;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ao-fg-muted) !important;
  margin: 0.3rem 0 0;
  padding: 0;
  border: 0;
}

body.mup-ao-checkout table.mup-ao-checkout-summary .variation dt {
  display: inline;
  font-weight: 600;
}

body.mup-ao-checkout table.mup-ao-checkout-summary .variation dd {
  display: inline;
  margin-left: 0.2rem;
}

body.mup-ao-checkout table.mup-ao-checkout-summary .product-total,
body.mup-ao-checkout table.mup-ao-checkout-summary tfoot th {
  font-family: var(--ao-font-body);
  font-size: 0.875rem;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ao-fg-muted) !important;
  font-weight: 500 !important;
}

body.mup-ao-checkout table.mup-ao-checkout-summary .product-total .amount,
body.mup-ao-checkout table.mup-ao-checkout-summary tfoot td .amount {
  font-family: var(--ao-font-body) !important;
  font-size: 1rem !important;
  font-weight: 600 !important;
  letter-spacing: -0.01em;
  text-transform: none;
  color: var(--ao-fg) !important;
  font-variant-numeric: tabular-nums;
}

/* Ara toplam / indirim / kupon satırları */
body.mup-ao-checkout table.mup-ao-checkout-summary tfoot tr.cart-subtotal th,
body.mup-ao-checkout table.mup-ao-checkout-summary tfoot tr.cart-subtotal td,
body.mup-ao-checkout table.mup-ao-checkout-summary tfoot tr.cart-discount th,
body.mup-ao-checkout table.mup-ao-checkout-summary tfoot tr.cart-discount td,
body.mup-ao-checkout table.mup-ao-checkout-summary tfoot tr.fee th,
body.mup-ao-checkout table.mup-ao-checkout-summary tfoot tr.fee td,
body.mup-ao-checkout table.mup-ao-checkout-summary tfoot tr.tax-rate th,
body.mup-ao-checkout table.mup-ao-checkout-summary tfoot tr.tax-rate td,
body.mup-ao-checkout table.mup-ao-checkout-summary tfoot tr.tax-total th,
body.mup-ao-checkout table.mup-ao-checkout-summary tfoot tr.tax-total td {
  padding: 0.55rem 0 !important;
  border-bottom: 1px solid var(--ao-line) !important;
  vertical-align: middle;
}

body.mup-ao-checkout table.mup-ao-checkout-summary tfoot tr.cart-discount td,
body.mup-ao-checkout table.mup-ao-checkout-summary tfoot tr.cart-discount td .amount,
body.mup-ao-checkout table.mup-ao-checkout-summary tfoot tr.fee td,
body.mup-ao-checkout table.mup-ao-checkout-summary tfoot tr.fee td .amount {
  color: #7dd3a8 !important;
}

body.mup-ao-checkout table.mup-ao-checkout-summary tfoot tr.cart-discount a {
  color: var(--ao-fg-muted) !important;
  font-size: 0.8125rem;
  text-decoration: underline;
  text-underline-offset: 2px;
}

body.mup-ao-checkout table.mup-ao-checkout-summary tr.order-total th,
body.mup-ao-checkout table.mup-ao-checkout-summary tr.order-total td {
  border-bottom: 0 !important;
  padding-top: 0.75rem !important;
}

body.mup-ao-checkout table.mup-ao-checkout-summary tr.order-total .amount,
body.mup-ao-checkout .order-total .woocommerce-Price-amount {
  font-family: var(--ao-font-display) !important;
  font-size: 1.125rem !important;
  font-weight: 600 !important;
  letter-spacing: -0.02em;
  color: var(--ao-brand) !important;
}

body.mup-ao-checkout table.mup-ao-checkout-summary tfoot th {
  width: 40%;
}

/* Cart classic fallback */
body.mup-ao-checkout--cart .woocommerce,
body.mup-ao-checkout--cart .cart-collaterals,
body.mup-ao-checkout--cart .cart_totals {
  max-width: var(--ao-shell-max);
  margin-inline: auto;
  padding: 1.25rem var(--ao-pad-x) 3.5rem;
  background: transparent !important;
  box-shadow: none !important;
}

/* ── Ödeme gateway ── */

body.mup-ao-checkout--pay .mup-ao-checkout-payment__methods {
  margin: 0 0 1rem;
  padding: 0 0 0.35rem;
  border-top: 1px solid var(--ao-line);
  padding-top: 1rem;
}

body.mup-ao-checkout--pay ul.wc_payment_methods,
body.mup-ao-checkout--pay ul.payment_methods {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
}

body.mup-ao-checkout--pay ul.wc_payment_methods li,
body.mup-ao-checkout--pay .wc_payment_method {
  margin: 0 0 0.5rem !important;
  padding: 0.85rem 0.9rem !important;
  border: 1px solid var(--ao-line) !important;
  border-radius: 0.5rem !important;
  background: color-mix(in srgb, var(--ao-night-900) 55%, transparent) !important;
  list-style: none !important;
}

body.mup-ao-checkout--pay ul.wc_payment_methods li:last-child,
body.mup-ao-checkout--pay .wc_payment_method:last-child {
  margin-bottom: 0 !important;
}

body.mup-ao-checkout--pay .wc_payment_method label {
  font-family: var(--ao-font-body);
  font-weight: 500;
  font-size: 0.9375rem;
  color: var(--ao-fg) !important;
  cursor: pointer;
}

body.mup-ao-checkout:not(.mup-ao-checkout--embed) .woocommerce-checkout-payment .wc_payment_method label,
body.mup-ao-checkout:not(.mup-ao-checkout--embed) .woocommerce-checkout-payment .wc_payment_method label * {
  color: var(--ao-fg) !important;
}

body.mup-ao-checkout--pay .payment_box {
  margin: 0.35rem 0 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  font-family: var(--ao-font-body) !important;
  font-size: 0.8125rem !important;
  line-height: 1.5;
  color: var(--ao-fg-muted) !important;
}

body.mup-ao-checkout:not(.mup-ao-checkout--embed) .woocommerce-checkout-payment .payment_box {
  margin: 0.55rem 0 0 !important;
  padding: 0.65rem 0.75rem !important;
  border: 1px solid var(--ao-line-strong) !important;
  border-radius: 0.45rem !important;
  background: color-mix(in srgb, var(--ao-night-900) 78%, transparent) !important;
  color: var(--ao-fg-muted) !important;
}

body.mup-ao-checkout:not(.mup-ao-checkout--embed) .woocommerce-checkout-payment .payment_box p,
body.mup-ao-checkout:not(.mup-ao-checkout--embed) .woocommerce-checkout-payment .payment_box li,
body.mup-ao-checkout:not(.mup-ao-checkout--embed) .woocommerce-checkout-payment .payment_box label,
body.mup-ao-checkout:not(.mup-ao-checkout--embed) .woocommerce-checkout-payment .payment_box span {
  color: var(--ao-fg-muted) !important;
}

body.mup-ao-checkout .payment_box::before,
body.mup-ao-checkout .payment_box::after {
  display: none !important;
  content: none !important;
}

body.mup-ao-checkout--pay .payment_box p {
  margin: 0 0 0.45rem;
  color: var(--ao-fg-muted) !important;
  font-size: inherit !important;
}

body.mup-ao-checkout--pay input[type="radio"] {
  accent-color: var(--ao-brand);
}

/* ── CTA ── */

body.mup-ao-checkout--pay .mup-ao-checkout-place,
body.mup-ao-checkout--pay #payment .place-order {
  margin: 0;
  padding: 0;
  float: none !important;
  width: 100% !important;
}

body.mup-ao-checkout--pay .mup-ao-checkout-place:not(.mup-ao-checkout-place--dock):not(.mup-ao-checkout-place--embed) {
  position: static;
}

body.mup-ao-checkout:not(.mup-ao-checkout--embed) #place_order,
body.mup-ao-checkout:not(.mup-ao-checkout--embed) button.button.alt,
body.mup-ao-checkout:not(.mup-ao-checkout--embed) .checkout-button,
body.mup-ao-checkout:not(.mup-ao-checkout--embed) a.checkout-button,
body.mup-ao-checkout:not(.mup-ao-checkout--embed) .mup-ao-checkout-place__btn {
  width: 100%;
  background: var(--ao-brand) !important;
  color: var(--ao-on-brand) !important;
  border: 0 !important;
  border-radius: 0.375rem !important;
  font-family: var(--ao-font-body) !important;
  font-size: 0.98rem !important;
  font-weight: 600 !important;
  letter-spacing: -0.01em;
  min-height: 2.85rem;
  padding: 0.7rem 1rem !important;
  box-shadow: none !important;
  transition: background 0.15s ease;
  cursor: pointer;
}

body.mup-ao-checkout:not(.mup-ao-checkout--embed) #place_order:hover,
body.mup-ao-checkout:not(.mup-ao-checkout--embed) button.button.alt:hover,
body.mup-ao-checkout:not(.mup-ao-checkout--embed) .mup-ao-checkout-place__btn:hover {
  background: var(--ao-amber-500) !important;
  color: var(--ao-on-brand) !important;
}

body.mup-ao-checkout--pay .woocommerce-terms-and-conditions-wrapper,
body.mup-ao-checkout--pay .woocommerce-privacy-policy-text,
body.mup-ao-checkout--pay .woocommerce-terms-and-conditions-checkbox-text {
  font-family: var(--ao-font-body) !important;
  font-size: 0.875rem !important;
  line-height: 1.5;
  color: var(--ao-fg-muted) !important;
  margin: 0 0 1rem;
}

body.mup-ao-checkout a {
  color: var(--ao-amber-300);
}

body.mup-ao-checkout a:hover {
  color: var(--ao-brand);
}

/* ── Notices — AO thin strip (no WC green/white panels) ── */

body.mup-ao-checkout:not(.mup-ao-checkout--embed) .woocommerce-form-coupon-toggle,
body.mup-ao-checkout:not(.mup-ao-checkout--embed) form.checkout_coupon:not([data-mup-coupon-form]),
body.mup-ao-checkout:not(.mup-ao-checkout--embed) #woocommerce-checkout-form-coupon,
body.mup-ao-checkout--pay .woocommerce-form-coupon-toggle,
body.mup-ao-checkout--pay form.checkout_coupon,
body.mup-ao-checkout--pay .checkout_coupon:not([data-mup-coupon-form]),
body.mup-ao-checkout--pay .woocommerce-form-login-toggle,
body.mup-ao-checkout--pay form.woocommerce-form-login {
  display: none !important;
}

/* Sabit hata toast — üstte, dock ile çakışmaz */
body.mup-ao-checkout:not(.mup-ao-checkout--embed) .mup-ao-checkout-toast,
body.mup-ao-checkout--pay:not(.mup-ao-checkout--embed) .mup-ao-checkout-toast,
body.mup-ao-checkout--portal:not(.mup-ao-checkout--embed) .mup-ao-checkout-toast {
  position: fixed;
  top: calc(var(--ao-mast-h, 3rem) + 0.65rem);
  bottom: auto;
  left: max(var(--ao-pad-x), 0.75rem);
  right: max(var(--ao-pad-x), 0.75rem);
  z-index: 120;
  max-width: 36rem;
  margin: 0 auto;
  padding: 0.85rem 1rem;
  box-sizing: border-box;
  border: 1px solid #f87171;
  border-radius: 0.625rem;
  background: rgba(69, 10, 10, 0.94);
  color: #fecaca;
  font-family: var(--ao-font-body);
  font-size: 0.9rem;
  line-height: 1.45;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  pointer-events: auto;
}

body.mup-ao-checkout--pay:not(.mup-ao-checkout--embed) .mup-ao-checkout-toast[hidden],
body.mup-ao-checkout--portal:not(.mup-ao-checkout--embed) .mup-ao-checkout-toast[hidden] {
  display: none !important;
}

body.mup-ao-checkout--pay .mup-ao-checkout-toast__line,
body.mup-ao-checkout--portal .mup-ao-checkout-toast__line {
  margin: 0;
}

body.mup-ao-checkout--pay .mup-ao-checkout-toast__line + .mup-ao-checkout-toast__line,
body.mup-ao-checkout--portal .mup-ao-checkout-toast__line + .mup-ao-checkout-toast__line {
  margin-top: 0.45rem;
}

body.mup-ao-checkout--pay .mup-ao-checkout-consent--invalid,
body.mup-ao-checkout--portal .mup-ao-checkout-consent--invalid {
  padding: 0.75rem;
  border: 1px solid #f87171;
  border-radius: 0.625rem;
  background: rgba(127, 29, 29, 0.18);
}

body.mup-ao-checkout--pay .mup-ao-checkout-consent__item--invalid .mup-ao-checkout-consent__label,
body.mup-ao-checkout--portal .mup-ao-checkout-consent__item--invalid .mup-ao-checkout-consent__label {
  color: #fecaca !important;
}

body.mup-ao-checkout--pay .woocommerce-NoticeGroup-checkout .woocommerce-error,
body.mup-ao-checkout--pay .woocommerce-NoticeGroup-checkout ul.woocommerce-error,
body.mup-ao-checkout--portal .woocommerce-NoticeGroup-checkout .woocommerce-error,
body.mup-ao-checkout--portal .woocommerce-NoticeGroup-checkout ul.woocommerce-error {
  background: rgba(127, 29, 29, 0.35) !important;
  color: #fecaca !important;
  border: 1px solid #f87171 !important;
  border-radius: 0.5rem !important;
  padding: 0.75rem 1rem !important;
}

body.mup-ao-checkout .woocommerce-info,
body.mup-ao-checkout .woocommerce-message,
body.mup-ao-checkout .woocommerce-error,
body.mup-ao-checkout .woocommerce-NoticeGroup,
body.mup-ao-checkout .woocommerce-notices-wrapper,
body.mup-ao-checkout .wc-block-components-notice-banner {
  background: transparent !important;
  background-color: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  color: var(--ao-fg-muted) !important;
}

body.mup-ao-checkout .woocommerce-info,
body.mup-ao-checkout .woocommerce-message,
body.mup-ao-checkout .woocommerce-error,
body.mup-ao-checkout ul.woocommerce-error {
  border-left: 2px solid var(--ao-line-strong) !important;
  padding: 0.55rem 0 0.55rem 0.75rem !important;
  margin: 0 0 0.85rem !important;
  font-family: var(--ao-font-body) !important;
  font-size: 0.875rem !important;
  line-height: 1.45;
  list-style: none !important;
}

body.mup-ao-checkout .woocommerce-info::before,
body.mup-ao-checkout .woocommerce-message::before,
body.mup-ao-checkout .woocommerce-error::before {
  display: none !important;
}

body.mup-ao-checkout .woocommerce-error,
body.mup-ao-checkout ul.woocommerce-error {
  border-left-color: #f87171 !important;
}

body.mup-ao-checkout .woocommerce-message {
  border-left-color: var(--ao-brand) !important;
}

body.mup-ao-checkout--pay .woocommerce-NoticeGroup-checkout,
body.mup-ao-checkout--pay .woocommerce-notices-wrapper,
body.mup-ao-checkout--pay .woocommerce > .woocommerce-notices-wrapper,
body.mup-ao-checkout--pay .woocommerce > .woocommerce-message,
body.mup-ao-checkout--pay .woocommerce > .woocommerce-info,
body.mup-ao-checkout--pay .woocommerce > .woocommerce-error {
  max-width: var(--ao-flow-max);
  width: 100%;
  margin-inline: auto;
  margin-top: 0.75rem;
  padding-inline: var(--ao-pad-x);
  box-sizing: border-box;
}

/* Block leftover (harmless if shortcode-only) */
body.mup-ao-checkout .wc-block-checkout,
body.mup-ao-checkout .wc-block-cart {
  max-width: var(--ao-shell-max);
  margin-inline: auto;
  padding: 1.25rem var(--ao-pad-x) 3.5rem;
}

/* ── Thank-you (AO composition) ── */

body.mup-ao-checkout--thanks .woocommerce {
  max-width: none;
  margin: 0;
  padding: 0;
}

body.mup-ao-checkout--thanks .mup-ao-thanks,
body.mup-ao-checkout--thanks .woocommerce-order {
  max-width: 28rem;
  margin: 0 auto;
  padding: 1.75rem clamp(1.1rem, 3vw, 1.75rem) 2.5rem;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.mup-ao-checkout--thanks .mup-ao-thanks__hero {
  margin-bottom: 1.5rem;
}

body.mup-ao-checkout--thanks .mup-ao-thanks__eyebrow {
  margin: 0 0 0.55rem;
  font-family: var(--ao-font-mono);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ao-brand);
}

body.mup-ao-checkout--thanks .mup-ao-thanks__title {
  margin: 0 0 0.45rem;
  font-family: var(--ao-font-display);
  font-size: clamp(2rem, 5vw, 2.65rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.05;
  color: var(--ao-fg);
}

body.mup-ao-checkout--thanks .mup-ao-thanks__lead {
  margin: 0;
  max-width: 26rem;
  font-family: var(--ao-font-body);
  font-size: 1rem;
  line-height: 1.45;
  color: var(--ao-fg-muted);
}

body.mup-ao-checkout--thanks .mup-ao-thanks__rule {
  display: block;
  width: 3.5rem;
  height: 2px;
  margin-top: 1.1rem;
  background: linear-gradient(90deg, var(--ao-brand), transparent);
}

body.mup-ao-checkout--thanks .mup-ao-thanks__meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem 0.75rem;
  margin: 0 0 1.5rem;
  padding: 1rem 0;
  border-top: 1px solid var(--ao-line);
  border-bottom: 1px solid var(--ao-line);
}

body.mup-ao-checkout--thanks .mup-ao-thanks__meta-item {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin: 0;
}

body.mup-ao-checkout--thanks .mup-ao-thanks__meta-item--wide {
  grid-column: 1 / -1;
}

body.mup-ao-checkout--thanks .mup-ao-thanks__meta-item dt {
  margin: 0;
  font-family: var(--ao-font-mono);
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ao-fg-dim);
}

body.mup-ao-checkout--thanks .mup-ao-thanks__meta-item dd {
  margin: 0;
  font-family: var(--ao-font-body);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ao-fg);
  word-break: break-word;
}

body.mup-ao-checkout--thanks .mup-ao-thanks__meta-item--total dd {
  color: var(--ao-brand);
  font-family: var(--ao-font-display);
  font-size: 1.05rem;
}

body.mup-ao-checkout--thanks .mup-ao-thanks__meta-item--total .includes_tax {
  display: block;
  margin-top: 0.2rem;
  font-family: var(--ao-font-body);
  font-size: 0.72rem;
  font-weight: 400;
  color: var(--ao-fg-dim);
}

body.mup-ao-checkout--thanks .mup-ao-thanks__section-label {
  margin: 0 0 0.65rem;
  font-family: var(--ao-font-mono);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ao-fg-dim);
}

body.mup-ao-checkout--thanks .mup-ao-thanks__package-list {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
}

body.mup-ao-checkout--thanks .mup-ao-thanks__package {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: baseline;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--ao-line);
}

body.mup-ao-checkout--thanks .mup-ao-thanks__package:first-child {
  border-top: 1px solid var(--ao-line);
}

body.mup-ao-checkout--thanks .mup-ao-thanks__package-name {
  font-family: var(--ao-font-body);
  font-size: 0.98rem;
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.35;
  color: var(--ao-fg);
}

body.mup-ao-checkout--thanks .mup-ao-thanks__package-total {
  font-family: var(--ao-font-display);
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ao-fg);
  white-space: nowrap;
}

body.mup-ao-checkout--thanks .woocommerce-order-overview,
body.mup-ao-checkout--thanks .woocommerce-order-details,
body.mup-ao-checkout--thanks .woocommerce-customer-details,
body.mup-ao-checkout--thanks .woocommerce-thankyou-order-received,
body.mup-ao-checkout--thanks .woocommerce-notice--success {
  display: none !important;
}

body.mup-ao-checkout--thanks .woocommerce-bacs-bank-details,
body.mup-ao-checkout--thanks section.woocommerce-bacs-bank-details {
  margin: 0 0 1.5rem !important;
  padding: 1rem 1.1rem !important;
  border: 1px solid var(--ao-line) !important;
  border-radius: 0.5rem;
  background: color-mix(in srgb, var(--ao-night-900) 88%, transparent) !important;
}

body.mup-ao-checkout--thanks .woocommerce-bacs-bank-details h2,
body.mup-ao-checkout--thanks .wc-bacs-bank-details-heading {
  margin: 0 0 0.65rem !important;
  font-family: var(--ao-font-mono) !important;
  font-size: 0.62rem !important;
  font-weight: 500 !important;
  letter-spacing: 0.14em !important;
  text-transform: uppercase !important;
  color: var(--ao-brand) !important;
}

body.mup-ao-checkout--thanks .woocommerce-bacs-bank-details ul {
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

body.mup-ao-checkout--thanks .woocommerce-bacs-bank-details li {
  display: grid;
  grid-template-columns: minmax(0, 8rem) minmax(0, 1fr);
  gap: 0.5rem;
  margin: 0 !important;
  padding: 0.4rem 0 !important;
  font-size: 0.875rem;
  color: var(--ao-fg-muted);
  border: 0 !important;
}

body.mup-ao-checkout--thanks .mup-ao-thanks-actions {
  margin-top: 0.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--ao-line);
}

body.mup-ao-checkout--thanks .mup-ao-thanks-actions__deck {
  margin: 0 0 0.55rem;
  max-width: 30rem;
  font-size: 0.95rem;
  line-height: 1.45;
  color: var(--ao-fg);
}

body.mup-ao-checkout--thanks .mup-ao-thanks-actions__hint {
  margin: 0 0 1rem;
  max-width: 30rem;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--ao-fg-dim);
}

body.mup-ao-checkout--thanks .mup-ao-thanks-actions__row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

body.mup-ao-checkout--thanks .mup-ao-thanks-actions__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.65rem;
  padding: 0.55rem 1.1rem;
  border-radius: 0.375rem;
  font-family: var(--ao-font-body);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none !important;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

body.mup-ao-checkout--thanks .mup-ao-thanks-actions__btn--primary {
  background: var(--ao-brand);
  color: var(--ao-on-brand) !important;
}

body.mup-ao-checkout--thanks .mup-ao-thanks-actions__btn--primary:hover {
  background: var(--ao-amber-500);
  color: var(--ao-on-brand) !important;
}

body.mup-ao-checkout--thanks .mup-ao-thanks-actions__btn--ghost {
  border: 1px solid var(--ao-line-strong);
  background: transparent;
  color: var(--ao-fg) !important;
}

body.mup-ao-checkout--thanks .mup-ao-thanks-actions__btn--ghost:hover {
  border-color: var(--ao-brand);
  color: var(--ao-brand) !important;
}

body.mup-ao-checkout--embed.mup-ao-checkout--thanks .mup-ao-thanks,
body.mup-ao-checkout--embed.mup-ao-checkout--thanks .woocommerce-order {
  max-width: 26rem;
  padding-top: 1.25rem;
  padding-bottom: 1.5rem;
}

@media (max-width: 640px) {
  .mup-ao-checkout-mast__inner {
    grid-template-columns: 1fr auto;
  }

  .mup-ao-checkout-mast__title {
    grid-column: 1 / -1;
    justify-self: start;
    order: 3;
  }

  .mup-ao-checkout-kunye {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.45rem;
  }

  .mup-ao-checkout-kunye__meta {
    max-width: none;
    width: 100%;
    justify-content: flex-start;
  }

  body.mup-ao-checkout .form-row-first,
  body.mup-ao-checkout .form-row-last {
    width: 100% !important;
    float: none;
  }

  body.mup-ao-checkout--thanks .mup-ao-thanks-actions__btn {
    flex: 1 1 100%;
  }
}

/* ══════════════════════════════════════════
   Full-page checkout — mup-ao-checkout-page (v3)
   Sepet → Bilgiler → Ödeme · grid/shell yok
   ══════════════════════════════════════════ */

body.mup-ao-checkout--pay:not(.mup-ao-checkout--embed) .mup-ao-checkout-page {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  max-width: var(--ao-flow-max);
  min-height: auto;
  margin: 0 auto;
  padding: 0 var(--ao-pad-x) calc(var(--ao-dock-h) + 1.35rem + env(safe-area-inset-bottom, 0px));
  box-sizing: border-box;
}

body.mup-ao-checkout--pay:not(.mup-ao-checkout--embed) .mup-ao-checkout-page .mup-ao-checkout-kunye {
  margin-top: 1rem;
  margin-bottom: 0.65rem;
}

body.mup-ao-checkout--pay:not(.mup-ao-checkout--embed) .mup-ao-checkout-page .mup-ao-checkout-account-deck {
  margin-bottom: 1.25rem;
}

body.mup-ao-checkout--pay:not(.mup-ao-checkout--embed) .mup-ao-checkout-step {
  display: block !important;
  visibility: visible !important;
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

body.mup-ao-checkout--pay:not(.mup-ao-checkout--embed) .mup-ao-checkout-step--cart {
  padding: 0 0 1.25rem;
  border-bottom: 1px solid var(--ao-line);
}

body.mup-ao-checkout--pay:not(.mup-ao-checkout--embed) .mup-ao-checkout-step--billing {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--ao-line);
}

body.mup-ao-checkout--pay:not(.mup-ao-checkout--embed) .mup-ao-checkout-step--pay {
  padding: 1.15rem 0 0.5rem;
}

body.mup-ao-checkout--pay:not(.mup-ao-checkout--embed) .mup-ao-checkout-step__title {
  margin: 0 0 0.75rem !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  font-family: var(--ao-font-body) !important;
  font-size: 0.8125rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.04em !important;
  text-transform: uppercase !important;
  color: var(--ao-fg-muted) !important;
}

body.mup-ao-checkout--pay:not(.mup-ao-checkout--embed) .mup-ao-checkout-step__hint {
  margin: -0.35rem 0 0.85rem;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--ao-fg-dim);
}

body.mup-ao-checkout--pay:not(.mup-ao-checkout--embed) .mup-ao-checkout-step #order_review,
body.mup-ao-checkout--pay:not(.mup-ao-checkout--embed) .mup-ao-checkout-step #customer_details,
body.mup-ao-checkout--pay:not(.mup-ao-checkout--embed) .mup-ao-checkout-step table.mup-ao-checkout-summary,
body.mup-ao-checkout--pay:not(.mup-ao-checkout--embed) .mup-ao-checkout-step .woocommerce-billing-fields {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  width: 100%;
  max-width: 100%;
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
  clip: auto !important;
  position: static !important;
}

body.mup-ao-checkout--pay:not(.mup-ao-checkout--embed) .mup-ao-checkout-step #payment {
  display: block !important;
  visibility: visible !important;
  width: 100%;
  max-width: 100%;
  overflow: visible !important;
}

body.mup-ao-checkout--pay:not(.mup-ao-checkout--embed) .mup-ao-checkout-step .form-row:not(.mup-ao-checkout-place--dock) {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  width: 100%;
  max-width: 100%;
  position: static !important;
}

body.mup-ao-checkout--pay:not(.mup-ao-checkout--embed) .mup-ao-checkout-place--dock {
  position: fixed !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  z-index: 45 !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.85rem 1rem;
  margin: 0 !important;
  padding: 0.65rem var(--ao-pad-x) calc(0.65rem + env(safe-area-inset-bottom, 0px)) !important;
  border-top: 1px solid var(--ao-line-strong);
  background: color-mix(in srgb, var(--ao-night-950) 96%, transparent);
  backdrop-filter: blur(16px);
  box-sizing: border-box;
  width: 100% !important;
  max-width: none !important;
  clip: auto !important;
  overflow: visible !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* Onay kutuları */
body.mup-ao-checkout--pay .mup-ao-checkout-consent {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 0 0 1.15rem;
  padding: 0;
}

body.mup-ao-checkout--pay .mup-ao-checkout-consent__item {
  margin: 0 !important;
  padding: 0 !important;
}

body.mup-ao-checkout--pay .mup-ao-checkout-consent__label {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-family: var(--ao-font-body) !important;
  font-size: 0.875rem !important;
  line-height: 1.5 !important;
  color: var(--ao-fg-muted) !important;
  letter-spacing: 0;
  text-transform: none;
  cursor: pointer;
}

body.mup-ao-checkout--pay .mup-ao-checkout-consent__label input[type="checkbox"] {
  flex-shrink: 0;
  margin: 0.15rem 0 0 !important;
  accent-color: var(--ao-brand);
}

body.mup-ao-checkout--pay .mup-ao-checkout-consent__label a {
  color: var(--ao-amber-300);
  text-decoration: underline;
  text-underline-offset: 2px;
}

body.mup-ao-checkout--pay .mup-ao-checkout-consent__label .required {
  color: var(--ao-brand);
}

/* ══════════════════════════════════════════
   WooCommerce Blocks checkout — dark AO tema
   (sayfa block editor ile oluşturulmuşsa)
   ══════════════════════════════════════════ */

body.mup-ao-checkout .wc-block-checkout,
body.mup-ao-checkout .wc-block-cart {
  color: var(--ao-fg);
  font-family: var(--ao-font-body);
  font-size: 1rem;
  line-height: 1.5;
}

body.mup-ao-checkout .wc-block-components-panel,
body.mup-ao-checkout .wc-block-components-sidebar,
body.mup-ao-checkout .wc-block-components-main {
  background: transparent !important;
  color: var(--ao-fg) !important;
}

body.mup-ao-checkout .wc-block-components-panel__button,
body.mup-ao-checkout .wc-block-components-panel__button:hover,
body.mup-ao-checkout .wc-block-components-totals-coupon-link {
  color: var(--ao-fg) !important;
  font-size: 0.875rem !important;
  font-weight: 500;
}

body.mup-ao-checkout .wc-block-components-panel__button {
  border-color: var(--ao-line-strong) !important;
  background: var(--ao-surface) !important;
  border-radius: 0.5rem !important;
  min-height: 2.75rem;
  padding: 0.65rem 0.85rem !important;
}

body.mup-ao-checkout .wc-block-components-order-summary-item__description,
body.mup-ao-checkout .wc-block-components-product-name,
body.mup-ao-checkout .wc-block-components-order-summary-item__individual-prices,
body.mup-ao-checkout .wc-block-components-totals-item__label,
body.mup-ao-checkout .wc-block-components-totals-item__value,
body.mup-ao-checkout .wc-block-components-form .wc-block-components-text-input label,
body.mup-ao-checkout .wc-block-components-checkbox__label {
  color: var(--ao-fg) !important;
  font-size: 0.9375rem !important;
  line-height: 1.45 !important;
}

body.mup-ao-checkout .wc-block-components-order-summary-item__individual-prices,
body.mup-ao-checkout .wc-block-components-product-metadata {
  color: var(--ao-fg-muted) !important;
  font-size: 0.8125rem !important;
}

body.mup-ao-checkout .wc-block-components-totals-item,
body.mup-ao-checkout .wc-block-components-totals-footer-item {
  border-color: var(--ao-line) !important;
}

body.mup-ao-checkout .wc-block-components-totals-footer-item .wc-block-components-totals-item__label,
body.mup-ao-checkout .wc-block-components-totals-footer-item .wc-block-components-totals-item__value {
  font-size: 1.0625rem !important;
  font-weight: 600 !important;
  color: var(--ao-fg) !important;
}

body.mup-ao-checkout .wc-block-components-totals-footer-item .wc-block-components-totals-item__value {
  color: var(--ao-brand) !important;
}

body.mup-ao-checkout .wc-block-components-totals-coupon .wc-block-components-chip {
  background: var(--ao-surface) !important;
  border: 1px solid var(--ao-line-strong) !important;
  color: var(--ao-fg) !important;
  font-size: 0.8125rem !important;
}

body.mup-ao-checkout .wc-block-components-text-input input,
body.mup-ao-checkout .wc-block-components-combobox .wc-block-components-combobox-control input,
body.mup-ao-checkout .wc-block-components-select .wc-block-components-select__select {
  background: var(--ao-surface-input) !important;
  border: 1px solid var(--ao-line-strong) !important;
  border-radius: 0.5rem !important;
  color: var(--ao-fg) !important;
  font-size: 1rem !important;
  min-height: 2.75rem;
  padding: 0.55rem 0.75rem !important;
}

body.mup-ao-checkout .wc-block-components-text-input input:focus,
body.mup-ao-checkout .wc-block-components-combobox .wc-block-components-combobox-control input:focus {
  border-color: var(--ao-brand) !important;
  box-shadow: var(--ao-focus-ring) !important;
}

body.mup-ao-checkout .wc-block-components-radio-control__option,
body.mup-ao-checkout .wc-block-components-radio-control-accordion-option {
  border: 1px solid var(--ao-line-strong) !important;
  border-radius: 0.5rem !important;
  background: var(--ao-surface) !important;
  color: var(--ao-fg) !important;
  margin-bottom: 0.5rem !important;
}

body.mup-ao-checkout .wc-block-components-radio-control__option-checked,
body.mup-ao-checkout .wc-block-components-radio-control-accordion-option--checked {
  border-color: color-mix(in srgb, var(--ao-brand) 55%, var(--ao-line-strong)) !important;
  background: color-mix(in srgb, var(--ao-brand) 10%, var(--ao-surface)) !important;
}

body.mup-ao-checkout .wc-block-components-radio-control__label,
body.mup-ao-checkout .wc-block-components-radio-control-accordion-option__label {
  color: var(--ao-fg) !important;
  font-size: 0.9375rem !important;
  font-weight: 500;
}

body.mup-ao-checkout .wc-block-components-radio-control__description,
body.mup-ao-checkout .wc-block-components-radio-control-accordion-option__content {
  color: var(--ao-fg-muted) !important;
  font-size: 0.875rem !important;
  line-height: 1.5 !important;
}

body.mup-ao-checkout .wc-block-checkout__actions .wc-block-components-button,
body.mup-ao-checkout .wc-block-cart__submit-button {
  background: var(--ao-brand) !important;
  color: var(--ao-on-brand) !important;
  border: 0 !important;
  border-radius: 0.5rem !important;
  font-size: 1rem !important;
  font-weight: 600 !important;
  min-height: 2.85rem;
}

body.mup-ao-checkout .wc-block-components-notice-banner {
  background: var(--ao-surface) !important;
  border: 1px solid var(--ao-line-strong) !important;
  border-radius: 0.5rem !important;
  color: var(--ao-fg) !important;
  font-size: 0.875rem !important;
  line-height: 1.5 !important;
  padding: 0.75rem 0.9rem !important;
}

body.mup-ao-checkout .wc-block-components-notice-banner.is-error {
  border-color: color-mix(in srgb, #f87171 45%, var(--ao-line-strong)) !important;
}

body.mup-ao-checkout .wc-block-components-notice-banner.is-success {
  border-color: color-mix(in srgb, var(--ao-brand) 45%, var(--ao-line-strong)) !important;
}

/* Dijital üyelik — Blocks checkout yedek: yalnızca iletişim alanları */
body.mup-ao-checkout--digital .wc-block-components-address-form .wc-block-components-address-form__country,
body.mup-ao-checkout--digital .wc-block-components-address-form .wc-block-components-address-form__address_1,
body.mup-ao-checkout--digital .wc-block-components-address-form .wc-block-components-address-form__address_2,
body.mup-ao-checkout--digital .wc-block-components-address-form .wc-block-components-address-form__postcode,
body.mup-ao-checkout--digital .wc-block-components-address-form .wc-block-components-address-form__city,
body.mup-ao-checkout--digital .wc-block-components-address-form .wc-block-components-address-form__state {
  display: none !important;
}

body.mup-ao-checkout--digital .wc-block-components-address-form .wc-block-components-address-card__edit,
body.mup-ao-checkout--digital .wc-block-components-address-form .wc-block-components-address-card__edit-mode {
  display: none !important;
}

/* Ödeme bloğu — kupon ödeme yöntemi ile CTA arasında */
body.mup-ao-checkout--pay .mup-ao-checkout-coupon-wrap {
  margin: 0.85rem 0 0;
}

body.mup-ao-checkout--pay:not(.mup-ao-checkout--embed) .mup-ao-checkout-coupon-wrap {
  margin-bottom: 0.35rem;
}

body.mup-ao-checkout--pay .mup-ao-checkout-coupon-wrap .mup-ao-checkout-coupon {
  margin: 0;
}

body.mup-ao-checkout--edenred-gift .mup-ao-checkout-coupon-wrap {
  display: none !important;
}

body.mup-ao-checkout--pay [data-mup-gift-discount-note] {
  margin: 0.85rem 0 0.35rem;
}

/* ══════════════════════════════════════════
   Portal fallback — --pay eksik olsa bile
   ══════════════════════════════════════════ */

body.mup-ao-checkout:not(.mup-ao-checkout--embed):not(.mup-ao-checkout--thanks) .woocommerce-checkout-payment .wc_payment_method > label,
body.mup-ao-checkout:not(.mup-ao-checkout--embed):not(.mup-ao-checkout--thanks) .woocommerce-checkout-payment .wc_payment_method label,
body.mup-ao-checkout:not(.mup-ao-checkout--embed):not(.mup-ao-checkout--thanks) .woocommerce-checkout-payment .wc_payment_method label * {
  color: var(--ao-fg) !important;
  opacity: 1 !important;
}

body.mup-ao-checkout:not(.mup-ao-checkout--embed):not(.mup-ao-checkout--thanks) .mup-ao-checkout-page {
  padding-bottom: calc(var(--ao-dock-h) + 1.75rem + env(safe-area-inset-bottom, 0px)) !important;
}

body.mup-ao-checkout:not(.mup-ao-checkout--embed):not(.mup-ao-checkout--thanks) .mup-ao-checkout-place--dock {
  position: fixed !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  z-index: 90 !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.85rem 1rem;
  margin: 0 !important;
  padding: 0.75rem var(--ao-pad-x) calc(0.75rem + env(safe-area-inset-bottom, 0px)) !important;
  border-top: 1px solid var(--ao-line-strong);
  background: color-mix(in srgb, var(--ao-night-950) 98%, transparent);
  backdrop-filter: blur(16px);
  box-sizing: border-box;
  width: 100% !important;
  max-width: none !important;
}

body.mup-ao-checkout:not(.mup-ao-checkout--embed):not(.mup-ao-checkout--thanks) .mup-ao-checkout-dock__total {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

body.mup-ao-checkout:not(.mup-ao-checkout--embed):not(.mup-ao-checkout--thanks) .mup-ao-checkout-dock__label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ao-fg-muted) !important;
  line-height: 1.2;
}

body.mup-ao-checkout:not(.mup-ao-checkout--embed):not(.mup-ao-checkout--thanks) .mup-ao-checkout-dock__amount,
body.mup-ao-checkout:not(.mup-ao-checkout--embed):not(.mup-ao-checkout--thanks) .mup-ao-checkout-dock__amount .woocommerce-Price-amount,
body.mup-ao-checkout:not(.mup-ao-checkout--embed):not(.mup-ao-checkout--thanks) .mup-ao-checkout-dock__amount .amount {
  font-family: var(--ao-font-display) !important;
  font-size: clamp(1.125rem, 4.2vw, 1.4rem) !important;
  font-weight: 600 !important;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  color: var(--ao-brand) !important;
  line-height: 1.15 !important;
}

body.mup-ao-checkout:not(.mup-ao-checkout--embed):not(.mup-ao-checkout--thanks) .mup-ao-checkout-place--dock .mup-ao-checkout-place__btn,
body.mup-ao-checkout:not(.mup-ao-checkout--embed):not(.mup-ao-checkout--thanks) .mup-ao-checkout-place--dock #place_order {
  width: auto !important;
  min-width: 9.5rem;
  max-width: 14rem;
  min-height: 2.75rem !important;
  padding: 0.65rem 1.15rem !important;
  font-size: 0.9375rem !important;
  border-radius: 999px !important;
  white-space: nowrap;
  background: var(--ao-brand) !important;
  color: var(--ao-on-brand) !important;
}

body.mup-ao-checkout:not(.mup-ao-checkout--embed):not(.mup-ao-checkout--thanks) .mup-ao-checkout-inline-errors {
  margin: 0.85rem 0 0;
  padding: 0.75rem 1rem;
  border: 1px solid #f87171;
  border-radius: 0.5rem;
  background: rgba(69, 10, 10, 0.92);
  color: #fecaca;
  font-family: var(--ao-font-body);
  font-size: 0.9rem;
  line-height: 1.45;
}

body.mup-ao-checkout:not(.mup-ao-checkout--embed):not(.mup-ao-checkout--thanks) .mup-ao-checkout-inline-errors[hidden] {
  display: none !important;
}

body.mup-ao-checkout:not(.mup-ao-checkout--embed):not(.mup-ao-checkout--thanks) .mup-ao-checkout-inline-errors__line {
  margin: 0;
}

body.mup-ao-checkout:not(.mup-ao-checkout--embed):not(.mup-ao-checkout--thanks) .mup-ao-checkout-inline-errors__line + .mup-ao-checkout-inline-errors__line {
  margin-top: 0.4rem;
}

body.mup-ao-checkout:not(.mup-ao-checkout--embed):not(.mup-ao-checkout--thanks) .mup-ao-checkout-coupon__apply.button {
  background: var(--ao-brand) !important;
  color: var(--ao-on-brand) !important;
  border: 0 !important;
}

/* Tek /odeme — yatay taşmayı kes, dock yalnızca Toplam + CTA */
html:has(body.mup-ao-checkout.mup-ao-checkout--pay),
body.mup-ao-checkout.mup-ao-checkout--pay,
body.mup-ao-checkout.mup-ao-checkout--pay .wp-site-blocks,
body.mup-ao-checkout.mup-ao-checkout--pay .woocommerce {
  max-width: 100%;
  overflow-x: clip;
}

body.mup-ao-checkout.mup-ao-checkout--pay .mup-ao-checkout-mast,
body.mup-ao-checkout.mup-ao-checkout--pay .mup-ao-checkout-mast__inner {
  max-width: 100%;
  overflow-x: clip;
  box-sizing: border-box;
}

body.mup-ao-checkout.mup-ao-checkout--pay a.mup-ao-checkout-mast__back {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.mup-ao-checkout.mup-ao-checkout--pay:not(.mup-ao-checkout--embed):not(.mup-ao-checkout--thanks) .mup-ao-checkout-place.mup-ao-checkout-place--dock {
  display: block !important;
  grid-template-columns: none !important;
  align-items: stretch;
  gap: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  left: 0 !important;
  right: 0 !important;
  margin: 0 !important;
  padding: 0.65rem var(--ao-pad-x) calc(0.65rem + env(safe-area-inset-bottom, 0px)) !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
}

body.mup-ao-checkout.mup-ao-checkout--pay:not(.mup-ao-checkout--embed):not(.mup-ao-checkout--thanks) .mup-ao-checkout-place--dock > :not(.mup-ao-checkout-dock) {
  position: absolute !important;
  inset: 0 auto auto 0 !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  clip-path: inset(50%) !important;
  border: 0 !important;
  white-space: nowrap !important;
}

body.mup-ao-checkout.mup-ao-checkout--pay:not(.mup-ao-checkout--thanks) .mup-ao-checkout-dock {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem 1rem;
  width: 100%;
  max-width: var(--ao-flow-max);
  min-width: 0;
  margin-inline: auto;
  box-sizing: border-box;
}

body.mup-ao-checkout.mup-ao-checkout--pay:not(.mup-ao-checkout--thanks) .mup-ao-checkout-dock .mup-ao-checkout-place__btn,
body.mup-ao-checkout.mup-ao-checkout--pay:not(.mup-ao-checkout--thanks) .mup-ao-checkout-dock #place_order {
  width: auto !important;
  min-width: 9.5rem;
  max-width: min(16rem, 52%);
  flex: 0 0 auto;
}

body.mup-ao-checkout.mup-ao-checkout--pay:not(.mup-ao-checkout--thanks) .mup-ao-checkout-dock .mup-ao-checkout-dock__total {
  flex: 1 1 auto;
  text-align: left;
  min-width: 0;
}

body.mup-ao-checkout.mup-ao-checkout--pay .mup-ao-checkout-dock .includes_tax,
body.mup-ao-checkout.mup-ao-checkout--pay .mup-ao-checkout-dock small,
body.mup-ao-checkout.mup-ao-checkout--pay .mup-ao-checkout-dock__amount .includes_tax,
body.mup-ao-checkout.mup-ao-checkout--pay .mup-ao-checkout-dock__amount small {
  display: none !important;
}

body.mup-ao-checkout.mup-ao-checkout--pay table.mup-ao-checkout-summary {
  table-layout: fixed;
  width: 100% !important;
  max-width: 100% !important;
}

body.mup-ao-checkout.mup-ao-checkout--pay table.mup-ao-checkout-summary th,
body.mup-ao-checkout.mup-ao-checkout--pay table.mup-ao-checkout-summary td {
  overflow-wrap: anywhere;
  word-break: break-word;
}
