/* Optional analytics stay off until the visitor makes a choice. */
.cookie-banner {
  position: fixed;
  inset: auto 0 calc(24px + env(safe-area-inset-bottom, 0px));
  width: min(1280px, calc(100% - 48px));
  margin-inline: auto;
  z-index: 70;
  color: #10283f;
  background: #fff;
  border: 1px solid #d8dfe4;
  border-radius: 8px;
  box-shadow: 0 6px 32px rgb(16 40 63 / 12%);
  padding: 10px 20px;
}
.cookie-banner[hidden], .cookie-status:empty { display: none; }
.cookie-banner-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px 40px; width: 100%; max-width: none; margin: 0; }
.cookie-banner-copy { max-width: 720px; }
.cookie-banner-copy h2 { margin: 0 0 2px; font-size: 13px; font-weight: 600; line-height: 1.5; letter-spacing: -.02em; }
.cookie-banner-copy p { margin: 0; color: #4e5b66; font-size: 12px; font-weight: 400; line-height: 1.65; word-break: keep-all; overflow-wrap: anywhere; }
.cookie-text-link { display: inline-flex; align-items: center; min-height: 36px; color: #53616d; font-size: 13px; font-weight: 400; text-decoration: underline; text-underline-offset: 4px; }
.cookie-banner-actions, .cookie-page-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: 0; }
.cookie-banner-actions { flex: 0 0 auto; max-width: 380px; }
.cookie-banner-actions .cookie-button { min-width: 100px; min-height: 36px; padding: 7px 14px; font-size: 12px; }
.cookie-banner-settings { min-height: 36px; margin-right: 8px; font-size: 12px; white-space: nowrap; }
.cookie-button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 11px 22px; border: 1px solid transparent; border-radius: 5px; font: inherit; font-size: 14px; font-weight: 500; line-height: 20px; cursor: pointer; white-space: nowrap; transition: background .15s, border-color .15s; }
.cookie-button--primary { color: #fff; background: #10283f; border-color: #10283f; }
.cookie-button--secondary { color: #10283f; background: #fff; border-color: #aeb9c2; }
.cookie-button:disabled { cursor: wait; opacity: .65; }
.cookie-status { flex-basis: 100%; margin: 6px 0 0; color: #4e5b66; font-size: 13px; line-height: 1.6; word-break: keep-all; }
.cookie-status[data-error="true"] { color: #9f3030; }
.cookie-dialog { position: fixed; inset: 0; width: min(520px, calc(100% - 40px)); max-height: calc(100dvh - 40px); margin: auto; padding: 30px 32px 28px; overflow: auto; overscroll-behavior: contain; color: #10283f; background: #fff; border: 1px solid #d8dfe4; border-radius: 12px; box-shadow: 0 16px 60px rgb(10 29 46 / 18%); }
.cookie-dialog:not([open]) { display: none; }
.cookie-dialog::backdrop { background: rgb(10 25 38 / 42%); }
.cookie-dialog-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.cookie-dialog-header h2 { margin: 0; font-size: 24px; line-height: 1.35; font-weight: 650; letter-spacing: -.03em; }
/* The static title receives opening focus for screen readers, not an action ring. */
.cookie-dialog [data-cookie-dialog-heading][tabindex="-1"]:focus { outline: none; }
.cookie-close { display: grid; place-items: center; flex: 0 0 44px; width: 44px; height: 44px; margin: -6px -12px -6px 0; padding: 0; color: #53616d; background: none; border: 0; border-radius: 5px; cursor: pointer; }
.cookie-dialog-intro { margin: 0 0 24px; color: #53616d; font-size: 14px; line-height: 1.8; word-break: keep-all; }
.cookie-category { padding: 22px 0; border-top: 1px solid #e0e5e9; }
.cookie-category-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 32px; }
.cookie-category-heading h2, .cookie-category-heading h3 { margin: 0; font-size: 16px; line-height: 1.5; font-weight: 600; letter-spacing: -.02em; }
.cookie-category p { margin: 8px 0 0; color: #53616d; font-size: 14px; line-height: 1.8; word-break: keep-all; }
.cookie-required, .cookie-current { color: #63717c; font-size: 13px; font-weight: 400; white-space: nowrap; }
.cookie-toggle { position: relative; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 48px; min-height: 44px; cursor: pointer; }
.cookie-toggle input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.cookie-toggle-track { position: relative; display: block; width: 42px; height: 24px; border: 1px solid #8997a2; border-radius: 20px; background: #dce2e7; pointer-events: none; transition: background .15s, border-color .15s; }
.cookie-toggle-track::before { position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; background: #fff; border-radius: 50%; box-shadow: 0 1px 3px rgb(16 40 63 / 18%); content: ""; transition: transform .15s; }
.cookie-toggle input:checked + .cookie-toggle-track { background: #10283f; border-color: #10283f; }
.cookie-toggle input:checked + .cookie-toggle-track::before { transform: translateX(18px); }
.cookie-toggle input:disabled { cursor: not-allowed; }
.cookie-toggle input:disabled + .cookie-toggle-track { opacity: .6; }
.cookie-dialog-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 12px; border-top: 1px solid #e0e5e9; }
.cookie-signal-note { margin: 0 0 20px; color: #53616d; font-size: 13px; line-height: 1.8; word-break: keep-all; }
.cookie-settings-page { padding-block: 140px 100px; }
.cookie-settings-page > header { margin: 42px 0 36px; }
.cookie-settings-page h1 { margin: 0 0 20px; font-size: clamp(30px, 4vw, 44px); font-weight: 650; letter-spacing: -.04em; }
.cookie-settings-page > header p { margin: 0; color: #53616d; font-size: 16px; line-height: 1.8; word-break: keep-all; }
.cookie-settings-content { max-width: 720px; }
.cookie-settings-note { margin: 0 0 24px; color: #63717c; font-size: 14px; line-height: 1.8; word-break: keep-all; }
.cookie-page-actions { margin-bottom: 16px; }
.cookie-page-status { margin: 0 0 24px; padding: 12px 16px; color: #10283f; background: #edf2f4; font-size: 14px; line-height: 1.7; }
.cookie-page-status--error { color: #9f3030; background: #fff3f3; }
html.cookie-banner-visible body { padding-bottom: calc(var(--cookie-banner-height, 160px) + 48px); }
html.cookie-banner-visible .kakao-floating { bottom: calc(var(--cookie-banner-height, 160px) + 40px + env(safe-area-inset-bottom, 0px)); }
html.cookie-dialog-open { overflow: hidden; }
html.cookie-dialog-open .cookie-banner,
html.cookie-dialog-open .kakao-floating { visibility: hidden; pointer-events: none; }
html.menu-open .cookie-banner, html.brand-intro-enabled .cookie-banner { visibility: hidden; pointer-events: none; }
.cookie-button:focus-visible, .cookie-close:focus-visible, .cookie-text-link:focus-visible, .cookie-toggle input:focus-visible + .cookie-toggle-track { outline: 2px solid #347b96; outline-offset: 4px; }
@media (hover: hover) {
  .cookie-button--primary:not(:disabled):hover { background: #203d55; border-color: #203d55; }
  .cookie-button--secondary:not(:disabled):hover { background: #f1f4f6; border-color: #728391; }
  .cookie-close:hover { background: #f1f4f6; }
}
@media (max-width: 900px) {
  .cookie-banner-inner { gap: 20px; }
  .cookie-banner-actions { max-width: 360px; }
  .cookie-button { padding-inline: 18px; }
}
@media (max-width: 640px) {
  .cookie-banner { width: calc(100% - 32px); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); padding: 14px 16px; border-radius: 10px; }
  .cookie-banner-inner { display: block; }
  .cookie-banner-copy h2 { font-size: 14px; }
  .cookie-banner-copy p { font-size: 13px; line-height: 1.65; }
  .cookie-banner-actions { display: grid; grid-template-columns: auto 1fr 1fr; max-width: none; margin-top: 10px; gap: 8px; }
  .cookie-banner-actions .cookie-button { min-width: 0; min-height: 44px; padding-inline: 10px; font-size: 12px; }
  .cookie-banner-actions .cookie-status { grid-column: 1 / -1; }
  .cookie-banner-actions:has(button:only-of-type) { grid-template-columns: auto 1fr; }
  .cookie-banner-settings { min-height: 44px; margin: 0 2px 0 0; font-size: 12px; }
  .cookie-dialog { width: calc(100% - 32px); padding: 22px 22px 24px; max-height: calc(100dvh - 32px); border-radius: 10px; }
  .cookie-dialog-header h2 { font-size: 22px; }
  .cookie-dialog-intro { margin-bottom: 20px; }
  .cookie-category { padding-block: 18px; }
  .cookie-dialog-footer .cookie-button { padding-inline: 20px; }
  .cookie-settings-page { padding-block: 112px 72px; }
  .cookie-settings-page > header { margin-top: 28px; }
  .cookie-settings-page > header p { font-size: 15px; }
  .cookie-page-actions .cookie-button { flex: 1 1 0; }
}
@media (max-height: 500px) and (max-width: 900px) {
  .cookie-banner { padding-block: 10px; }
  .cookie-banner-inner { display: flex; gap: 16px; }
  .cookie-banner-copy h2 { display: none; }
  .cookie-banner-actions { flex: 0 0 auto; margin-top: 0; }
  .cookie-banner-actions .cookie-button { flex: none; }
  .cookie-dialog { max-height: calc(100dvh - 20px); }
}
@media (prefers-reduced-motion: reduce) {
  .cookie-button, .cookie-toggle-track, .cookie-toggle-track::before { transition: none; }
}
@media (forced-colors: active) {
  .cookie-button, .cookie-toggle-track, .cookie-dialog { border: 1px solid ButtonText; }
  .cookie-toggle input { position: static; width: 20px; height: 20px; opacity: 1; appearance: auto; }
  .cookie-toggle-track { display: none; }
}
