/* Motta — Storefront iyzico Checkout Flow Polish
 * v2800 Faz 3 Agent M4
 *
 * Premium ödeme modal UX:
 *   - Backdrop + blur
 *   - 2 sütunlu grid (form | sipariş özeti)
 *   - Spinner + loading state
 *   - Hata banner + tekrar dene
 *   - iyzico iframe wrapper
 *   - Kapıda ödeme success card
 *   - Mobile responsive (768px breakpoint)
 *   - prefers-reduced-motion: animasyon kapatma
 *   - Premium UI: docs/56 + docs/37 (gold accent #c9a24d)
 */

/* ─── Modal Shell ─── */

.mc-checkout-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.mc-checkout-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.72);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  cursor: pointer;
  animation: mc-checkout-fade 200ms ease-out;
}

.mc-checkout-panel {
  position: relative;
  background: #fff;
  border-radius: 14px;
  width: 100%;
  max-width: 1000px;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  animation: mc-checkout-rise 240ms cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes mc-checkout-fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes mc-checkout-rise {
  from { opacity: 0; transform: translateY(20px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0)    scale(1);    }
}

/* ─── Header ─── */

.mc-checkout-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 1px solid #e5e7eb;
  background: #fff;
}

.mc-checkout-head h2 {
  font: 600 19px/1.2 Georgia, 'Times New Roman', serif;
  margin: 0;
  color: #0f172a;
  letter-spacing: -0.01em;
}

.mc-checkout-close {
  background: none;
  border: none;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  color: #6b7280;
  padding: 4px 12px;
  border-radius: 6px;
  transition: background-color 160ms, color 160ms;
}

.mc-checkout-close:hover,
.mc-checkout-close:focus-visible {
  background: #f3f4f6;
  color: #0f172a;
  outline: none;
}

/* ─── Body Grid ─── */

.mc-checkout-body {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 24px;
  padding: 24px;
  overflow-y: auto;
  flex: 1;
  background: #fafafa;
}

.mc-checkout-main {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0; /* prevent grid overflow */
}

/* ─── Method Radio Pills ─── */

.mc-checkout-method {
  display: flex;
  gap: 12px;
}

.mc-checkout-radio {
  flex: 1;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border: 2px solid #e5e7eb;
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  transition: border-color 200ms, background-color 200ms, box-shadow 200ms;
}

.mc-checkout-radio:hover {
  border-color: #d1d5db;
}

.mc-checkout-radio input[type="radio"] {
  margin: 3px 0 0;
  accent-color: #c9a24d;
  cursor: pointer;
}

.mc-checkout-radio input[type="radio"]:focus-visible {
  outline: 2px solid #c9a24d;
  outline-offset: 2px;
}

.mc-checkout-radio:has(input:checked) {
  border-color: #c9a24d;
  background: rgba(201, 162, 77, 0.06);
  box-shadow: 0 0 0 3px rgba(201, 162, 77, 0.08);
}

.mc-checkout-radio-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.3;
}

.mc-checkout-radio-text strong {
  font-weight: 600;
  color: #0f172a;
  font-size: 14px;
}

.mc-checkout-radio-text small {
  color: #6b7280;
  font-size: 12px;
}

/* ─── Stage (loading | error | iframe | success) ─── */

.mc-checkout-stage {
  min-height: 420px;
  background: #fff;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  overflow: hidden;
  position: relative;
}

/* ─── Loading ─── */

.mc-checkout-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 20px;
  color: #6b7280;
  min-height: 420px;
}

.mc-checkout-loading p {
  margin: 16px 0 0;
  font-size: 14px;
  font-weight: 500;
}

.mc-checkout-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid #e5e7eb;
  border-top-color: #c9a24d;
  border-radius: 50%;
  animation: mc-checkout-spin 800ms linear infinite;
}

@keyframes mc-checkout-spin {
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .mc-checkout-spinner { animation: none; }
  .mc-checkout-panel,
  .mc-checkout-backdrop { animation: none; }
}

/* ─── Error ─── */

.mc-checkout-error {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 60px 20px;
  background: rgba(239, 68, 68, 0.04);
  min-height: 420px;
  justify-content: center;
}

.mc-checkout-error-icon {
  color: #dc2626;
  margin-bottom: 16px;
}

.mc-checkout-error p {
  color: #b91c1c;
  margin: 0 0 20px;
  font-size: 15px;
  font-weight: 500;
  max-width: 380px;
  line-height: 1.5;
}

.mc-checkout-retry {
  padding: 10px 28px;
  background: #b45309;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 160ms, transform 160ms;
}

.mc-checkout-retry:hover {
  background: #92400e;
}

.mc-checkout-retry:active {
  transform: scale(0.98);
}

.mc-checkout-retry:focus-visible {
  outline: 2px solid #c9a24d;
  outline-offset: 2px;
}

/* ─── iyzico iframe ─── */

.mc-checkout-iyzico-wrap {
  width: 100%;
  min-height: 500px;
  background: #fff;
}

.mc-checkout-iyzico-iframe {
  width: 100%;
  min-height: 500px;
  border: none;
  display: block;
}

.mc-checkout-iyzico-embed {
  padding: 20px;
  min-height: 500px;
}

/* ─── Kapıda Ödeme Success ─── */

.mc-checkout-cod-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 60px 24px;
  background: rgba(5, 150, 105, 0.04);
  min-height: 420px;
  justify-content: center;
}

.mc-checkout-success-icon {
  color: #059669;
  margin-bottom: 18px;
}

.mc-checkout-cod-success h4 {
  font: 600 22px/1.2 Georgia, serif;
  color: #064e3b;
  margin: 0 0 10px;
}

.mc-checkout-cod-success p {
  color: #374151;
  font-size: 14px;
  margin: 0 0 8px;
  max-width: 420px;
  line-height: 1.55;
}

.mc-checkout-cod-fee {
  margin-top: 12px !important;
  padding: 10px 16px;
  background: #fff;
  border-radius: 8px;
  border: 1px solid #d1fae5;
  font-size: 13px !important;
}

.mc-checkout-cod-fee strong {
  color: #059669;
  font-weight: 700;
}

.mc-checkout-success-close {
  margin-top: 24px;
  padding: 12px 36px;
  background: #059669;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: background-color 160ms, transform 160ms;
}

.mc-checkout-success-close:hover {
  background: #047857;
}

.mc-checkout-success-close:active {
  transform: scale(0.98);
}

.mc-checkout-success-close:focus-visible {
  outline: 2px solid #c9a24d;
  outline-offset: 2px;
}

/* ─── Sipariş Özeti (sağda) ─── */

.mc-checkout-summary {
  background: #fff;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  padding: 18px 16px;
  align-self: start;
  position: sticky;
  top: 0;
  max-height: calc(92vh - 100px);
  overflow-y: auto;
}

.mc-checkout-summary h3 {
  font: 600 12px/1.2 Georgia, serif;
  margin: 0 0 14px;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding-bottom: 10px;
  border-bottom: 1px solid #e5e7eb;
}

.mc-checkout-summary-empty {
  color: #9ca3af;
  font-size: 13px;
  text-align: center;
  padding: 20px 0;
  margin: 0;
}

.mc-checkout-summary-list {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
}

.mc-checkout-summary-list li {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 8px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #f3f4f6;
  font-size: 13px;
}

.mc-checkout-summary-list li:last-child {
  border-bottom: none;
}

.mc-checkout-summary-list strong {
  font-weight: 600;
  color: #0f172a;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mc-checkout-summary-list .qty {
  color: #6b7280;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.mc-checkout-summary-list .price {
  color: #0f172a;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.mc-checkout-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 13px;
  color: #6b7280;
  font-variant-numeric: tabular-nums;
}

.mc-checkout-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 2px solid #0f172a;
  font-variant-numeric: tabular-nums;
}

.mc-checkout-total span {
  font: 600 13px/1 Georgia, serif;
  color: #0f172a;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.mc-checkout-total strong {
  font: 700 18px/1 Georgia, serif;
  color: #0f172a;
}

/* ─── Mobile (≤ 768px) ─── */

@media (max-width: 768px) {
  .mc-checkout-modal {
    padding: 0;
    align-items: stretch;
  }
  .mc-checkout-panel {
    max-width: 100%;
    max-height: 100vh;
    border-radius: 0;
  }
  .mc-checkout-body {
    grid-template-columns: 1fr;
    padding: 16px;
    gap: 16px;
  }
  .mc-checkout-summary {
    order: -1;
    position: static;
    max-height: none;
  }
  .mc-checkout-method {
    flex-direction: column;
    gap: 8px;
  }
  .mc-checkout-stage {
    min-height: 360px;
  }
  .mc-checkout-iyzico-iframe,
  .mc-checkout-iyzico-wrap {
    min-height: 460px;
  }
}

/* ─── Dark theme (body[data-theme=dark]) ─── */

body[data-theme="dark"] .mc-checkout-panel {
  background: #0f172a;
  color: #e5e7eb;
}

body[data-theme="dark"] .mc-checkout-head {
  background: #0f172a;
  border-bottom-color: #1f2937;
}

body[data-theme="dark"] .mc-checkout-head h2,
body[data-theme="dark"] .mc-checkout-radio-text strong,
body[data-theme="dark"] .mc-checkout-summary-list strong,
body[data-theme="dark"] .mc-checkout-summary-list .price,
body[data-theme="dark"] .mc-checkout-total span,
body[data-theme="dark"] .mc-checkout-total strong {
  color: #f9fafb;
}

body[data-theme="dark"] .mc-checkout-body {
  background: #020617;
}

body[data-theme="dark"] .mc-checkout-radio,
body[data-theme="dark"] .mc-checkout-stage,
body[data-theme="dark"] .mc-checkout-summary,
body[data-theme="dark"] .mc-checkout-iyzico-wrap {
  background: #111827;
  border-color: #1f2937;
}

body[data-theme="dark"] .mc-checkout-close,
body[data-theme="dark"] .mc-checkout-radio-text small,
body[data-theme="dark"] .mc-checkout-summary h3,
body[data-theme="dark"] .mc-checkout-row,
body[data-theme="dark"] .mc-checkout-loading {
  color: #9ca3af;
}

body[data-theme="dark"] .mc-checkout-total {
  border-top-color: #f9fafb;
}

/* === D40-B-CART-CHECKOUT START === */
/* D40-B — Premium checkout 2-col layout + form + iyzico iframe + order success.
   D1.5 iyzico flow KORUNUR; bu paket sadece görsel polish. mc-prem-* token reuse.
   Yeni token grupları: .mcb-* (checkout body), .mcb-form-*, .mcb-summary-*, .mcb-iyzico-*,
   .mcb-success-*, .mcb-timeline-*, .mcb-trust-*. */

/* Checkout body — premium 2-col with sticky summary */
.mc-checkout-body {
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 28px;
  padding: 28px;
  background:
    radial-gradient(ellipse at top right, rgba(195, 155, 58, 0.04) 0%, transparent 50%),
    #fafafa;
}
.mc-checkout-main {
  gap: 22px;
}

/* Form section heading */
.mcb-section {
  background: #ffffff;
  border: 1px solid rgba(15, 17, 25, 0.06);
  border-radius: 14px;
  padding: 22px 24px;
  box-shadow: 0 1px 3px rgba(15, 17, 25, 0.02);
}
.mcb-section + .mcb-section {
  margin-top: 0;
}
.mcb-section-title {
  margin: 0 0 18px;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #0f1119;
  display: flex;
  align-items: center;
  gap: 10px;
}
.mcb-section-title::before {
  content: "";
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(195, 155, 58, 0.16) 0%, rgba(168, 127, 42, 0.10) 100%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #a87f2a;
  flex-shrink: 0;
}
.mcb-section[data-step="delivery"] .mcb-section-title::before {
  background-image:
    linear-gradient(135deg, rgba(195, 155, 58, 0.16) 0%, rgba(168, 127, 42, 0.10) 100%),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23a87f2a' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'><path d='M8 14s-5-4-5-8a5 5 0 0 1 10 0c0 4-5 8-5 8z'/><circle cx='8' cy='6' r='2'/></svg>");
  background-position: center, center;
  background-size: cover, 14px 14px;
  background-repeat: no-repeat;
}

/* Premium form grid */
.mcb-form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.mcb-form-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.mcb-form-row--full {
  grid-column: 1 / -1;
}
.mcb-form-row label {
  font-size: 12px;
  font-weight: 600;
  color: #4b5563;
  letter-spacing: 0.005em;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.mcb-form-row label[data-required="1"]::after {
  content: "*";
  color: #dc2626;
  font-weight: 700;
}
.mcb-form-row input,
.mcb-form-row select,
.mcb-form-row textarea {
  height: 44px;
  padding: 0 14px;
  border-radius: 8px;
  border: 1px solid rgba(15, 17, 25, 0.10);
  background: #ffffff;
  font-size: 14px;
  color: #0f1119;
  font-family: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.mcb-form-row textarea {
  min-height: 92px;
  padding: 12px 14px;
  resize: vertical;
  line-height: 1.5;
}
.mcb-form-row input:hover,
.mcb-form-row select:hover,
.mcb-form-row textarea:hover {
  border-color: rgba(15, 17, 25, 0.18);
}
.mcb-form-row input:focus,
.mcb-form-row select:focus,
.mcb-form-row textarea:focus {
  outline: none;
  border-color: #c39b3a;
  box-shadow: 0 0 0 3px rgba(195, 155, 58, 0.22);
  background: #fdfbf6;
}
.mcb-form-row input[aria-invalid="true"],
.mcb-form-row select[aria-invalid="true"] {
  border-color: #dc2626;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.16);
}
.mcb-form-row .mcb-form-hint {
  font-size: 11.5px;
  color: #6b7280;
  letter-spacing: 0.005em;
}
.mcb-form-row .mcb-form-error {
  font-size: 11.5px;
  color: #b91c1c;
  font-weight: 600;
}

/* Billing toggle (corporate/individual) */
.mcb-billing-toggle {
  display: inline-flex;
  background: #f6f7fa;
  border-radius: 10px;
  padding: 4px;
  border: 1px solid rgba(15, 17, 25, 0.06);
  margin-bottom: 14px;
}
.mcb-billing-toggle button {
  flex: 1;
  height: 36px;
  padding: 0 18px;
  border: 0;
  background: transparent;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: #6b7280;
  border-radius: 7px;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}
.mcb-billing-toggle button[aria-pressed="true"] {
  background: #ffffff;
  color: #0f1119;
  box-shadow: 0 1px 3px rgba(15, 17, 25, 0.08);
}

/* Consent checkboxes — D21-AjanE compat */
.mcb-consent-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.mcb-consent-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 10px;
  background: #fbfaf6;
  border: 1px solid rgba(195, 155, 58, 0.12);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.mcb-consent-row:hover {
  border-color: rgba(195, 155, 58, 0.32);
  background: #fdfbf6;
}
.mcb-consent-row input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  accent-color: #c39b3a;
  cursor: pointer;
  flex-shrink: 0;
}
.mcb-consent-text {
  font-size: 12.5px;
  color: #374151;
  line-height: 1.5;
}
.mcb-consent-text a {
  color: #a87f2a;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Sticky order summary card */
.mcb-summary {
  position: sticky;
  top: 16px;
  align-self: start;
  background: #ffffff;
  border: 1px solid rgba(15, 17, 25, 0.06);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(15, 17, 25, 0.04);
}
.mcb-summary-head {
  padding: 18px 22px 14px;
  background: linear-gradient(180deg, #fbf6ea 0%, #ffffff 100%);
  border-bottom: 1px solid rgba(195, 155, 58, 0.12);
}
.mcb-summary-head h3 {
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #0f1119;
}
.mcb-summary-head .mcb-summary-meta {
  font-size: 11.5px;
  color: #6b7280;
  letter-spacing: 0.005em;
}
.mcb-summary-items {
  padding: 14px 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 280px;
  overflow-y: auto;
}
.mcb-summary-item {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  gap: 12px;
  align-items: center;
  font-size: 12.5px;
}
.mcb-summary-item__thumb {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: #f6f7fa;
  overflow: hidden;
  border: 1px solid rgba(15, 17, 25, 0.04);
}
.mcb-summary-item__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.mcb-summary-item__name {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.mcb-summary-item__title {
  font-size: 12.5px;
  font-weight: 600;
  color: #0f1119;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mcb-summary-item__qty {
  font-size: 11px;
  color: #6b7280;
}
.mcb-summary-item__price {
  font-size: 12.5px;
  font-weight: 700;
  color: #a87f2a;
  font-variant-numeric: tabular-nums;
}
.mcb-summary-divider {
  border: 0;
  border-top: 1px dashed rgba(15, 17, 25, 0.10);
  margin: 0 22px;
}

/* Coupon */
.mcb-summary-coupon {
  padding: 14px 22px;
  display: flex;
  gap: 8px;
}
.mcb-summary-coupon input {
  flex: 1;
  height: 40px;
  padding: 0 12px;
  border: 1px solid rgba(15, 17, 25, 0.10);
  border-radius: 8px;
  font-size: 12.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-family: inherit;
  background: #ffffff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.mcb-summary-coupon input:focus {
  outline: none;
  border-color: #c39b3a;
  box-shadow: 0 0 0 3px rgba(195, 155, 58, 0.22);
}
.mcb-summary-coupon button {
  height: 40px;
  padding: 0 16px;
  border: 1px solid rgba(195, 155, 58, 0.32);
  border-radius: 8px;
  background: #ffffff;
  font-size: 12px;
  font-weight: 700;
  color: #a87f2a;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.mcb-summary-coupon button:hover {
  background: linear-gradient(135deg, #c39b3a 0%, #a87f2a 100%);
  color: #ffffff;
  border-color: transparent;
}

/* Summary total footer */
.mcb-summary-totals {
  padding: 16px 22px 20px;
  border-top: 1px solid rgba(15, 17, 25, 0.06);
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-variant-numeric: tabular-nums;
}
.mcb-summary-totals-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  font-size: 12.5px;
  color: #6b7280;
}
.mcb-summary-totals-row strong {
  color: #0f1119;
  font-weight: 600;
}
.mcb-summary-totals-row--grand {
  margin-top: 8px;
  padding-top: 12px;
  border-top: 1px solid rgba(15, 17, 25, 0.08);
  font-size: 14px;
  color: #0f1119;
  font-weight: 700;
}
.mcb-summary-totals-row--grand strong {
  font-size: 20px;
  font-weight: 800;
  color: #a87f2a;
  letter-spacing: -0.01em;
}

/* Trust badges */
.mcb-trust {
  padding: 12px 22px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 10.5px;
  color: #6b7280;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.mcb-trust span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.mcb-trust span::before {
  content: "";
  width: 10px;
  height: 10px;
  background: #15803d;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10' fill='none' stroke='%23000' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'><path d='M5 1.2l3 1.4v3.2c0 1.6-1.3 2.7-3 3.4-1.7-.7-3-1.8-3-3.4V2.6L5 1.2z'/><path d='M3.6 5l1 1L7 4'/></svg>") center/contain no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10' fill='none' stroke='%23000' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'><path d='M5 1.2l3 1.4v3.2c0 1.6-1.3 2.7-3 3.4-1.7-.7-3-1.8-3-3.4V2.6L5 1.2z'/><path d='M3.6 5l1 1L7 4'/></svg>") center/contain no-repeat;
}

/* Iyzico iframe wrap polish */
.mcb-iyzico {
  background: #ffffff;
  border: 1px solid rgba(195, 155, 58, 0.24);
  border-radius: 12px;
  padding: 4px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 4px 14px rgba(168, 127, 42, 0.08);
}
.mcb-iyzico iframe {
  display: block;
  width: 100%;
  min-height: 540px;
  border: 0;
  border-radius: 10px;
  background: #fafafa;
}
.mcb-iyzico-skeleton {
  position: absolute;
  inset: 4px;
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(250, 250, 250, 0.92) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #6b7280;
  font-size: 13px;
  letter-spacing: 0.02em;
  pointer-events: none;
}
.mcb-iyzico-skeleton[hidden] {
  display: none;
}
.mcb-iyzico-skeleton::before {
  content: "";
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background:
    repeating-linear-gradient(90deg, rgba(195, 155, 58, 0.12) 0 8px, rgba(195, 155, 58, 0.06) 8px 16px);
  border: 1px dashed rgba(195, 155, 58, 0.32);
}
.mcb-iyzico-error {
  padding: 16px 18px;
  border-radius: 10px;
  background: #fffbeb;
  border: 1px solid #fcd34d;
  color: #92400e;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.mcb-iyzico-error button {
  height: 36px;
  padding: 0 14px;
  border: 0;
  border-radius: 8px;
  background: #b45309;
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: background 0.15s ease;
}
.mcb-iyzico-error button:hover {
  background: #92400e;
}

/* Mobile */
@media (max-width: 768px) {
  .mc-checkout-body {
    grid-template-columns: 1fr;
    padding: 18px;
    gap: 18px;
  }
  .mcb-form-grid {
    grid-template-columns: 1fr;
  }
  .mcb-summary {
    position: static;
  }
  .mcb-section {
    padding: 18px 18px;
  }
}

/* === D40-B-CART-CHECKOUT END === */

/* === D51-CHECKOUT-MODAL-POLISH START === */
/* D51 — Iyzico checkout modal polish: 3-method support hook + premium success state +
   havale instructions card + skeleton shimmer. D1.5 + D40-B chain'i bozulmaz. */

/* Method radio premium upgrade — supports up to 3 methods (Kart / Havale / COD) */
.mc-checkout-method {
  flex-wrap: wrap;
}
.mc-checkout-radio {
  flex: 1 1 calc(33% - 8px);
  min-width: 160px;
  position: relative;
  transition:
    border-color 200ms,
    background-color 200ms,
    box-shadow 200ms,
    transform 160ms;
}
.mc-checkout-radio:has(input:checked) {
  transform: translateY(-1px);
}
.mc-checkout-radio:has(input:checked)::after {
  content: "";
  position: absolute;
  top: 10px;
  right: 10px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background:
    linear-gradient(135deg, #c39b3a 0%, #a87f2a 100%),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14' fill='none' stroke='%23ffffff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'><polyline points='3 7 6 10 11 4'/></svg>") center/10px no-repeat;
  box-shadow: 0 2px 6px rgba(168, 127, 42, 0.32);
}

/* COD success — gold accent variant */
.mc-checkout-cod-success h4 {
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 600;
  letter-spacing: -0.005em;
}
.mc-checkout-success-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 45%, rgba(5, 150, 105, 0.14) 0%, rgba(5, 150, 105, 0) 70%),
    rgba(5, 150, 105, 0.06);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Skeleton shimmer for iyzico iframe boot */
.mc-checkout-iyzico-wrap {
  position: relative;
}
.mc-checkout-iyzico-wrap.is-loading::before {
  content: "Ödeme sayfası yükleniyor…";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94) 0%, rgba(250, 250, 250, 0.94) 100%);
  color: #6b7280;
  font-size: 13px;
  letter-spacing: 0.02em;
  font-weight: 500;
  z-index: 2;
  pointer-events: none;
}
.mc-checkout-iyzico-wrap.is-loading::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent 0%, #c39b3a 50%, transparent 100%);
  animation: mcCheckoutShimmer 1.4s linear infinite;
  z-index: 3;
}
@keyframes mcCheckoutShimmer {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}
@media (prefers-reduced-motion: reduce) {
  .mc-checkout-iyzico-wrap.is-loading::after { animation: none; }
}

/* Havale (bank transfer) instructions card — surfaced if backend returns bankAccounts */
.mc-checkout-havale {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 24px 22px;
  background: linear-gradient(180deg, #ffffff 0%, #fdfbf6 100%);
  border: 1px solid rgba(195, 155, 58, 0.20);
  border-radius: 12px;
  min-height: 420px;
  justify-content: center;
}
.mc-checkout-havale h4 {
  margin: 0;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 19px;
  font-weight: 600;
  color: #0f1119;
  letter-spacing: -0.005em;
}
.mc-checkout-havale p {
  margin: 0;
  font-size: 13.5px;
  color: #4b5563;
  line-height: 1.6;
}
.mc-checkout-havale-accounts {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 4px;
}
.mc-checkout-havale-acc {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 18px;
  background: #ffffff;
  border: 1px solid rgba(195, 155, 58, 0.16);
  border-radius: 10px;
}
.mc-checkout-havale-acc-bank {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #a87f2a;
}
.mc-checkout-havale-acc-iban {
  font-size: 13.5px;
  font-family: 'Menlo', 'Consolas', monospace;
  color: #0f1119;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.mc-checkout-havale-acc-owner {
  font-size: 12px;
  color: #6b7280;
}

/* Mobile — 3 methods stack */
@media (max-width: 480px) {
  .mc-checkout-radio {
    flex: 1 1 100%;
  }
  .mc-checkout-radio:has(input:checked)::after {
    width: 16px;
    height: 16px;
  }
}
/* === D51-CHECKOUT-MODAL-POLISH END === */
