/* Checkout keeps the existing monochrome purchase surface and native modal focus. */
.evolved #checkout-dialog .checkout-progress { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; margin: 0; padding: 0 0 16px; border-bottom: 1px solid #ddd; list-style: none; color: #616161; font-size: 12px; line-height: 1.7; }
.evolved #checkout-dialog .checkout-progress li + li::before { content: '›'; margin-right: 10px; color: #888; }
.evolved #checkout-dialog .checkout-progress [aria-current="step"] { color: #111; font-weight: 700; }
.evolved #checkout-dialog { inset: 0; width: min(900px, calc(100% - 48px)); max-width: none; max-height: 90dvh; margin: auto; padding: 0; border: 0; border-radius: 14px; background: #fff; color: #111; overflow: auto; overscroll-behavior: contain; scrollbar-color: #999 #eee; scrollbar-width: thin; }
.evolved #checkout-dialog::backdrop { background: rgb(0 0 0 / .5); }
.evolved #checkout-dialog .dialog-header { position: sticky; top: 0; z-index: 2; min-height: 75px; padding: 20px 28px; background: #fff; border-bottom: 1px solid #e0e0e0; }
.evolved #checkout-dialog .dialog-header h2 { font-size: 25px; line-height: 1.3; letter-spacing: -.025em; }
.evolved #checkout-dialog .checkout-body { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 32px; padding: 28px; }
.evolved #checkout-dialog .checkout-body > section { min-width: 0; padding: 0; }
.evolved #checkout-dialog .checkout-section-title, .evolved #checkout-dialog .checkout-method-fieldset > legend { padding: 0; margin: 0 0 22px; color: #111; font-size: 18px; font-weight: 700; line-height: 1.5; letter-spacing: -.02em; }
.evolved #checkout-dialog .checkout-product { display: grid; grid-template-columns: 80px minmax(0, 1fr); gap: 18px; padding: 0 0 24px; margin-bottom: 24px; border-bottom: 1px solid #e2e2e2; }
.evolved #checkout-dialog .checkout-product:last-child { margin-bottom: 0; }
.evolved #checkout-dialog .checkout-product > img { display: block; width: 80px; height: 108px; border-radius: 8px; background: #eee; object-fit: cover; }
.evolved #checkout-dialog .checkout-product-copy { min-width: 0; }
.evolved #checkout-dialog .checkout-product-copy h3 { margin: 0; font-size: 15px; font-weight: 700; line-height: 1.6; letter-spacing: -.02em; }
.evolved #checkout-dialog .checkout-product-copy > p { margin-top: 6px; color: #5b5b5b; font-size: 12px; line-height: 1.7; }
.evolved #checkout-dialog .checkout-product-copy > strong { display: block; margin-top: 9px; font-size: 17px; line-height: 1.5; font-variant-numeric: tabular-nums; }
.evolved #checkout-dialog .checkout-quantity { display: inline-flex; align-items: stretch; max-width: 150px; margin-top: 14px; border: 1px solid #d0d0d0; border-radius: 4px; overflow: hidden; }
.evolved #checkout-dialog .checkout-quantity > button { flex: 0 0 44px; min-width: 44px; min-height: 44px; padding: 7px; border: 0; background: #fff; color: #111; font: inherit; font-size: 18px; line-height: 1; cursor: pointer; }
.evolved #checkout-dialog .checkout-quantity > input { width: 48px; min-width: 0; min-height: 44px; padding: 7px 0; border: 0; border-inline: 1px solid #e6e6e6; border-radius: 0; background: #fff; color: #111; text-align: center; font: inherit; font-size: 14px; font-variant-numeric: tabular-nums; appearance: textfield; }
.evolved #checkout-dialog .checkout-quantity > input::-webkit-inner-spin-button, .evolved #checkout-dialog .checkout-quantity > input::-webkit-outer-spin-button { appearance: none; margin: 0; }
.evolved #checkout-dialog .checkout-shipping-rule { max-width: 40ch; margin: 18px 0 0; color: #515151; font-size: 12px; line-height: 1.7; }
.evolved #checkout-dialog .checkout-method-fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.evolved #checkout-dialog .checkout-methods { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 9px; }
.evolved #checkout-dialog .checkout-method { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-width: 0; min-height: 54px; padding: 12px; border: 1px solid #c7c7c7; border-radius: 5px; background: #fff; color: #111; font: inherit; font-size: 13px; font-weight: 600; line-height: 1.5; text-align: left; cursor: pointer; }
.evolved #checkout-dialog .checkout-method > svg { flex: 0 0 18px; opacity: 0; }
.evolved #checkout-dialog .checkout-method[aria-pressed="true"] { border-color: #111; background: #111; color: #fff; }
.evolved #checkout-dialog .checkout-method[aria-pressed="true"] > svg { opacity: 1; }
.evolved #checkout-dialog .checkout-totals { margin-top: 29px; }
.evolved #checkout-dialog .checkout-totals > div { display: flex; align-items: baseline; justify-content: space-between; gap: 18px; margin-top: 15px; color: #414141; font-size: 13px; line-height: 1.7; font-variant-numeric: tabular-nums; }
.evolved #checkout-dialog .checkout-totals small { margin-left: 4px; color: #616161; font-size: 11px; white-space: nowrap; }
.evolved #checkout-dialog .checkout-totals del { color: #616161; }
.evolved #checkout-dialog .checkout-totals .checkout-discount { color: #111; }
.evolved #checkout-dialog .checkout-totals .checkout-amount { align-items: baseline; margin-top: 22px; padding-top: 20px; border-top: 1px solid #aaa; color: #111; font-size: 14px; font-weight: 700; }
.evolved #checkout-dialog .checkout-amount strong { font-size: 28px; line-height: 1.3; letter-spacing: -.025em; }
.evolved #checkout-dialog .checkout-test-note, .evolved #checkout-dialog .checkout-message { margin: 17px 0 0; color: #515151; font-size: 12px; line-height: 1.8; }
.evolved #checkout-dialog .checkout-message[data-state="error"] { color: #111; font-weight: 600; }
.evolved #checkout-dialog .checkout-test-note[hidden], .evolved #checkout-dialog .checkout-message[hidden] { display: none; }
.evolved #checkout-dialog .checkout-launch { width: 100%; min-height: 54px; margin-top: 24px; padding: 14px 20px; border-radius: 6px; font-size: 15px; }
.evolved #checkout-dialog .checkout-return { display: block; width: 100%; min-height: 44px; margin-top: 10px; padding: 12px; border: 0; background: transparent; color: #515151; font: inherit; font-size: 12px; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.evolved #checkout-dialog button:disabled { opacity: .45; cursor: default; }
.evolved #checkout-dialog :is(button,input):focus-visible { outline: 2px solid #111; outline-offset: 3px; }
@media (hover: hover) {
  .evolved #checkout-dialog .checkout-method:not([aria-pressed="true"]):hover { border-color: #111; }
  .evolved #checkout-dialog .checkout-launch:hover { background: #333; }
}

/* The redirect pages only show completion after the server confirms the payment. */
.payment-return-page { margin: 0; min-height: 100dvh; background: #f5f5f5; color: #111; font-family: Arial, 'Noto Sans KR', sans-serif; }
.payment-return-page * { box-sizing: border-box; }
.payment-return-header { padding: 24px max(24px, calc((100vw - 1100px) / 2)); background: #111; }
.payment-return-header a { color: #fff; font-size: 18px; font-weight: 700; text-decoration: none; }
.payment-return-card { width: min(560px, calc(100% - 40px)); margin: clamp(40px, 12vh, 120px) auto; padding: clamp(25px, 6vw, 44px); border: 1px solid #dedede; border-radius: 14px; background: #fff; }
.payment-return-label { margin: 0 0 18px; color: #616161; font-size: 12px; letter-spacing: .12em; }
.payment-return-card h1 { margin: 0; font-size: clamp(25px, 5vw, 32px); line-height: 1.4; letter-spacing: -.035em; word-break: keep-all; }
.payment-return-card > p:not(.payment-return-label) { margin: 20px 0 0; color: #414141; font-size: 16px; line-height: 1.8; overflow-wrap: anywhere; }
.payment-return-card .payment-return-details:empty { display: none; }
.payment-return-card button, .payment-return-home { display: block; width: 100%; min-height: 50px; margin-top: 26px; padding: 14px; border: 1px solid #111; border-radius: 6px; background: #111; color: #fff; font: inherit; font-size: 15px; line-height: 1.6; text-align: center; text-decoration: none; cursor: pointer; }
.payment-return-card button[hidden] { display: none; }
.payment-return-card button + .payment-return-home { margin-top: 12px; }
.payment-return-card :is(button,a):focus-visible { outline: 2px solid #111; outline-offset: 4px; }
@media (max-width: 760px) {
  .evolved #checkout-dialog { top: auto; right: 0; bottom: 0; left: 0; width: 100%; max-height: 92dvh; margin: auto 0 0; border-radius: 16px 16px 0 0; }
  .evolved #checkout-dialog .dialog-header { min-height: 67px; padding: 15px 20px; }
  .evolved #checkout-dialog .dialog-header h2 { font-size: 21px; }
  .evolved #checkout-dialog .checkout-body { grid-template-columns: minmax(0, 1fr); gap: 28px; padding: 22px 20px calc(23px + env(safe-area-inset-bottom, 0px)); }
  .evolved #checkout-dialog .checkout-section-title, .evolved #checkout-dialog .checkout-method-fieldset > legend { margin-bottom: 18px; font-size: 17px; }
  .evolved #checkout-dialog .checkout-product { padding-bottom: 20px; margin-bottom: 20px; }
  .evolved #checkout-dialog .checkout-method { min-height: 52px; padding: 11px 14px; font-size: 13px; }
  .evolved #checkout-dialog .checkout-totals { margin-top: 23px; }
  .evolved #checkout-dialog .checkout-totals > div { font-size: 13px; }
  .evolved #checkout-dialog .checkout-launch { min-height: 53px; margin-top: 22px; font-size: 15px; }
}
