/* How to buy: a card from the studio that opens over the page. Korea (Naver), outside Korea (Instagram), companies. */
.buy-dialog { position: fixed; inset: 0; margin: auto; width: min(620px, calc(100% - 32px)); max-height: calc(100dvh - 40px); padding: 0; border: 0; border-radius: 12px; background: var(--card); color: var(--ink); font: 400 15px/1.7 var(--book); box-shadow: 0 1px 1px rgba(40,30,20,.1), 0 40px 90px -30px rgba(9,14,26,.6); overflow: auto; overscroll-behavior: contain; text-align: left; }
.buy-dialog:not([open]) { display: none; }
.buy-dialog::backdrop { background: rgba(9,14,26,.62); }
.buy-dialog[open] { animation: buyIn .45s ease both; }
@keyframes buyIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.buy-dialog * { box-sizing: border-box; }
.buy-dialog [hidden] { display: none !important; }
.buy-content { padding: 46px 42px 32px; }
.buy-close { position: absolute; top: 10px; right: 12px; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; background: none; color: var(--brown); font: 400 28px/1 var(--book); cursor: pointer; }
.buy-eyebrow { margin: 0 0 16px; font: 400 11.5px/1.3 var(--ui); letter-spacing: .24em; text-transform: uppercase; color: var(--red); }
.buy-dialog h2 { margin: 0 0 10px; font: 400 32px/1.25 var(--book); }
.buy-dialog #buy-intro { margin: 0 0 24px; font-size: 15.5px; color: var(--text); }
.buy-dialog h3 { margin: 0 0 12px; font: 400 24px/1.3 var(--book); }
.buy-selection { display: flex; align-items: center; gap: 18px; padding-bottom: 22px; }
.buy-selection img { flex-shrink: 0; width: 74px; height: 74px; object-fit: cover; border-radius: 3px; background: var(--navy); box-shadow: 0 8px 16px -8px rgba(40,30,20,.5); }
.buy-selection p { margin: 0; min-width: 0; overflow-wrap: anywhere; font-size: 16px; line-height: 1.5; }
.buy-selection span { display: block; margin-bottom: 4px; font: 400 11px/1.3 var(--ui); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.buy-selection strong { font-weight: 400; }
.buy-choices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px; margin-bottom: 28px; padding: 3px; border: 1px solid rgba(58,47,40,.3); border-radius: 999px; }
.buy-choices button { min-height: 42px; padding: 9px 8px; border: 0; border-radius: 999px; background: none; color: var(--brown); font: 400 12.5px/1.3 var(--ui); letter-spacing: .04em; cursor: pointer; transition: background .3s, color .3s; }
.buy-choices button[aria-pressed="true"] { background: var(--navy); color: #fff; }
.buy-route > p { margin: 0 0 22px; font-size: 15.5px; line-height: 1.8; color: var(--text); }
.buy-route > .buy-price { margin: -8px 0 22px; font: 400 12.5px/1.6 var(--ui); letter-spacing: .08em; color: var(--ink); font-variant-numeric: tabular-nums; }
.buy-action { display: flex; align-items: center; justify-content: space-between; gap: 20px; width: 100%; padding: 15px 24px; border: 1px solid var(--navy); border-radius: 999px; background: var(--navy); color: #fff; font: 400 12.5px/1.4 var(--ui); letter-spacing: .14em; text-transform: uppercase; text-decoration: none; transition: background .3s, color .3s; }
.buy-action:hover { background: transparent; color: var(--navy); }
.buy-link { display: block; width: fit-content; margin-top: 18px; padding-bottom: 5px; border-bottom: 1px solid rgba(58,47,40,.4); font: 400 12px/1.4 var(--ui); letter-spacing: .14em; text-transform: uppercase; text-decoration: none; color: var(--brown); }
.buy-link span { margin-left: 8px; }
.buy-note { margin: 22px 0 0; padding-top: 16px; border-top: 1px dashed rgba(58,47,40,.25); font-size: 13px; line-height: 1.7; color: var(--muted); }
.buy-dialog :focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
body:has(.buy-dialog[open]) { overflow: hidden; }
html[lang="ko"] :is(.buy-eyebrow, .buy-selection span, .buy-action, .buy-link, .buy-route > .buy-price) { letter-spacing: .06em; }
@media (max-width: 600px) {
  .buy-dialog { width: calc(100% - 24px); max-height: calc(100dvh - 24px); }
  .buy-content { padding: 42px 22px 24px; }
  .buy-dialog h2 { font-size: 28px; }
  .buy-dialog h3 { font-size: 22px; }
  .buy-choices { border-radius: 14px; }
  .buy-choices button { border-radius: 11px; font-size: 11.5px; padding-inline: 4px; }
  .buy-selection { gap: 13px; }
  .buy-selection img { width: 64px; height: 64px; }
}
@media (prefers-reduced-motion: reduce) { .buy-dialog[open] { animation: none; } }
