/* H티켓 — P2P-like chrome (logo H tone). Load after yk-upgrade.css */

:root {
  --g: #611EFA;
  --gd: #4A10D0;
  --gl: #A078FC;
  --soft: #F6F2FF;
  --ink: #0B1220;
  --txt: #1F2937;
  --muted: #6B7280;
  --muted2: #9CA3AF;
  --line: rgba(15,23,42,.07);
  --line2: rgba(15,23,42,.12);
  --r: 20px;
  --rs: 14px;
  --gift: #F59E0B;
  --gift-d: #D97706;
  --c: #611EFA;
  --cd: #4A10D0;
}

html { scroll-padding-top: 66px; }

body {
  padding-top: 66px !important;
  font-family: "Pretendard", -apple-system, BlinkMacSystemFont, system-ui, sans-serif !important;
}

/* Hide leftover eStore header if a page still renders it */
body > header.header.mg-site-header { display: none !important; }
.mobile-nav-toggle, .mobile-nav-active .mobile-nav-toggle { display: none !important; }

/* ========== NAVBAR ========== */
.hx-navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 9990;
  border-bottom: 1px solid rgba(15,23,42,.07);
  box-shadow: 0 2px 20px rgba(11,18,32,.05);
  font-family: "Pretendard", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
}
.hx-navbar::before {
  content: "";
  position: absolute; inset: 0;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: -1;
}
.hx-navbar__inner {
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
  height: 66px;
  display: flex;
  align-items: center;
}
.hx-navbar__logo { flex-shrink: 0; position: relative; z-index: 2; }
.hx-navbar__logo img { height: 40px; width: auto; max-width: min(240px, 62vw); object-fit: contain; display: block; }
.hx-navbar__logo-text {
  font-size: 20px; font-weight: 900; letter-spacing: -.04em;
  background: linear-gradient(135deg, #611EFA, #4A10D0);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hx-navbar__menu {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0 0 0 36px;
  padding: 0;
  flex: 1;
  min-width: 0;
}
.hx-navbar__menu > li { position: relative; }
.hx-navbar__menu > li > a {
  display: flex; align-items: center; gap: 4px;
  padding: 8px 10px; border-radius: 10px;
  font-size: 13px; font-weight: 600; color: #4B5563;
  white-space: nowrap; text-decoration: none; transition: all .18s;
}
.hx-navbar__menu > li > a .bi { font-size: 14px; opacity: .55; }
.hx-navbar__menu > li > a:hover,
.hx-navbar__menu > li > a.is-active {
  color: #611EFA; background: rgba(97,30,250,.08); font-weight: 700;
}
.hx-navbar__menu > li > a:hover .bi,
.hx-navbar__menu > li > a.is-active .bi { opacity: .95; }
.hx-navbar__menu > li.is-key > a { color: #611EFA; font-weight: 700; }

.hx-navbar__drop {
  position: absolute; top: calc(100% + 10px); left: 0;
  min-width: 210px;
  background: #fff;
  border: 1px solid rgba(15,23,42,.08);
  border-radius: 14px;
  box-shadow: 0 8px 30px rgba(11,18,32,.10), 0 2px 8px rgba(11,18,32,.06);
  padding: 6px;
  opacity: 0; visibility: hidden;
  transform: translateY(-6px) scale(.98);
  transform-origin: top left;
  transition: all .2s cubic-bezier(.22,1,.36,1);
  z-index: 100;
}
.hx-navbar__drop--wide { min-width: 228px; max-height: 70vh; overflow-y: auto; }
.hx-navbar__menu > li:hover .hx-navbar__drop {
  opacity: 1; visibility: visible; transform: translateY(0) scale(1);
}
.hx-navbar__drop a {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px; border-radius: 9px;
  font-size: 13px; font-weight: 600; color: #1F2937;
  text-decoration: none;
}
.hx-navbar__drop a:hover { background: rgba(97,30,250,.07); color: #611EFA; }
.hx-navbar__drop a .bi { color: #611EFA; }
.hx-navbar__drop .drop-divider { height: 1px; background: rgba(15,23,42,.07); margin: 5px 6px; }
.hx-drop-label {
  padding: 8px 12px 4px;
  font-size: 10px; font-weight: 800; letter-spacing: .06em;
  color: #9CA3AF; text-transform: uppercase;
}

.hx-navbar__actions {
  display: flex; align-items: center; gap: 8px;
  margin-left: auto; flex-shrink: 0; z-index: 2;
}
.hx-nav-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 16px; border-radius: 999px;
  font-size: 13px; font-weight: 700;
  text-decoration: none; transition: all .18s;
  white-space: nowrap; border: 1px solid transparent;
}
.hx-nav-btn--outline {
  color: #611EFA;
  border-color: rgba(97,30,250,.32);
  background: transparent;
}
.hx-nav-btn--outline:hover { background: rgba(97,30,250,.07); color: #611EFA; }
.hx-nav-btn--solid {
  background: linear-gradient(135deg, #611EFA, #4A10D0);
  color: #fff !important;
  box-shadow: 0 4px 14px rgba(97,30,250,.28);
}
.hx-nav-btn--solid:hover { box-shadow: 0 6px 20px rgba(97,30,250,.40); transform: translateY(-1px); color: #fff !important; }
.hx-nav-btn--ghost {
  color: #374151;
  background: #fff;
  border-color: rgba(15,23,42,.10);
}
.hx-nav-btn--ghost:hover { color: #611EFA; border-color: rgba(97,30,250,.32); }
.hx-cart-badge {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 999px; background: #611EFA; color: #fff;
  font-size: 10px; font-weight: 800;
}

.hx-mob-menu {
  display: none; position: fixed;
  top: 66px; left: 0; right: 0; bottom: 0;
  width: 100%;
  height: calc(100dvh - 66px);
  background: #fff; z-index: 9989;
  overflow-x: hidden; overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 16px 20px calc(48px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid rgba(15,23,42,.06);
  box-sizing: border-box;
}
.hx-mob-menu.is-open { display: block; }
html.hx-mob-menu-lock,
html.hx-mob-menu-lock body { overflow: hidden !important; overscroll-behavior: none; }
body.hx-mob-menu-lock { position: fixed !important; width: 100% !important; left: 0; right: 0; }
.hx-mob-menu ul { list-style: none; padding: 0; margin: 0; }
.hx-mob-menu ul li { border-bottom: 1px solid rgba(15,23,42,.07); }
.hx-mob-menu ul li a {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 8px; font-size: 15px; font-weight: 600;
  color: #111827; text-decoration: none;
}
.hx-mob-menu ul li a:hover { color: #611EFA; }
.hx-mob-menu ul li a .bi { font-size: 18px; color: #611EFA; }
.hx-mob-menu__sub { padding: 0 0 8px 36px; }
.hx-mob-menu__sub a { padding: 10px 8px; font-size: 13px; color: #6B7280; border: none; }
.hx-mob-menu__actions {
  display: flex; gap: 10px;
  margin-bottom: 16px; padding-bottom: 16px;
  border-bottom: 1px solid rgba(15,23,42,.08);
}
.hx-mob-menu__actions a { flex: 1; justify-content: center; }
.hx-mob-quick-auth { display: none; }

@media (max-width: 1199px) {
  .hx-navbar__menu { margin-left: 16px; gap: 0; }
  .hx-navbar__menu > li > a { padding: 8px 7px; font-size: 12px; }
  .hx-nav-btn { padding: 8px 12px; font-size: 12px; }
  .hx-nav-btn--ghost span { display: none; }
}
@media (max-width: 991px) {
  .hx-navbar__menu,
  .hx-navbar__actions { display: none !important; }
  .hx-navbar__inner { padding: 0 16px; }
  .hx-navbar__logo img { height: 44px; width: auto; max-width: min(210px, 58vw); }
  .hx-mob-quick-auth {
    display: flex; align-items: center; justify-content: center;
    gap: 6px;
    position: fixed; top: 13px; right: 62px; z-index: 99998;
    height: 40px;
    box-sizing: border-box;
  }
  .hx-mob-quick-auth .hx-nav-btn {
    height: 32px; padding: 0 12px; font-size: 12px; font-weight: 800;
    box-shadow: 0 4px 12px rgba(0,0,0,.06);
  }
  .hx-mob-quick-auth .hx-nav-btn--outline { background: #fff; }
  .hx-mob-quick-auth .hx-nav-btn i { display: none; }
  .hx-my-fab {
    width: 32px; height: 32px; padding: 0; border: 0; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    background: linear-gradient(145deg, #C8B0FD 0%, #5514E8 62%, #4A10D0 100%);
    box-shadow: 0 6px 14px rgba(85,20,232,.28);
    cursor: pointer;
  }
  .hx-my-fab__ring {
    width: 24px; height: 24px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,.16);
    color: #fff; font-size: 15px;
  }
  .hx-my-fab.is-open { box-shadow: 0 0 0 3px rgba(85,20,232,.18), 0 8px 18px rgba(85,20,232,.30); }
  .hx-my-layer {
    position: fixed; top: 58px; right: 16px; left: auto;
    width: min(240px, calc(100vw - 32px));
    padding: 8px;
    border: 1px solid rgba(15,23,42,.08);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 18px 40px rgba(15,23,42,.16);
    z-index: 99999;
  }
  .hx-my-layer[hidden] { display: none !important; }
  .hx-my-layer__head {
    padding: 8px 12px 10px;
    font-size: 11px; font-weight: 800; color: #64748B;
    letter-spacing: .04em;
  }
  .hx-my-layer a {
    display: flex; align-items: center; gap: 10px;
    min-height: 46px; padding: 10px 12px; border-radius: 12px;
    color: #0F172A; font-size: 14px; font-weight: 800;
    text-decoration: none; word-break: keep-all;
  }
  .hx-my-layer a i { flex-shrink: 0; color: #5514E8; font-size: 16px; }
  .hx-my-layer a span { min-width: 0; }
  .hx-my-layer a:hover,
  .hx-my-layer a:focus-visible { background: #F6F2FF; color: #4A10D0; outline: none; }
}
@media (min-width: 992px) {
  .hx-mob-menu { display: none !important; }
  .hx-mob-quick-auth { display: none !important; }
}

/* ========== FOOTER ========== */
.ft-wrap {
  background: #fff;
  border-top: 1px solid rgba(15,23,42,.08);
}
.ft-main { padding: 56px 0 48px; border-bottom: 1px solid rgba(15,23,42,.07); }
.ft-col-divider { border-left: 1px solid rgba(15,23,42,.07); padding-left: 36px; }
.ft-eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 11px; border-radius: 999px;
  background: rgba(97,30,250,.07);
  border: 1px solid rgba(97,30,250,.18);
  font-size: 10px; font-weight: 800;
  color: #611EFA; letter-spacing: .06em;
  text-transform: uppercase; margin-bottom: 14px;
}
.ft-eyebrow .dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: #A078FC; animation: hx-pulse 1.6s infinite;
}
@keyframes hx-pulse { 0%,100%{opacity:1} 50%{opacity:.35} }
.ft-brand-title {
  font-size: clamp(16px, 1.8vw, 20px);
  font-weight: 900; letter-spacing: -.03em;
  line-height: 1.3; margin: 0 0 8px;
  background: linear-gradient(135deg, #611EFA 0%, #A078FC 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.ft-brand-sub { font-size: 12px; color: #9CA3AF; margin: 0 0 18px; line-height: 1.65; word-break: keep-all; }
.ft-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ft-chip {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 10px; border-radius: 999px;
  background: #fff; border: 1px solid rgba(15,23,42,.09);
  font-size: 11px; font-weight: 600; color: #4B5563;
}
.ft-chip .bi { font-size: 12px; color: #611EFA; }
.ft-col-title {
  font-size: 11px; font-weight: 800; color: #1F2937;
  letter-spacing: .07em; text-transform: uppercase; margin: 0 0 16px;
}
.ft-link-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.ft-link-list li a { font-size: 13px; font-weight: 500; color: #6B7280; text-decoration: none; }
.ft-link-list li a:hover { color: #611EFA; }
.ft-biz-col { padding-left: 36px; border-left: 1px solid rgba(15,23,42,.07); }
.ft-biz-name { font-size: 14px; font-weight: 800; color: #111827; margin: 0 0 12px; display: flex; align-items: center; gap: 6px; }
.ft-biz-name i { color: #611EFA; }
.ft-biz-info { display: flex; flex-direction: column; gap: 6px; }
.ft-biz-row { display: flex; align-items: flex-start; gap: 8px; font-size: 12px; line-height: 1.5; color: #6B7280; }
.ft-biz-dt { flex-shrink: 0; font-weight: 700; color: #4B5563; width: 76px; }
.ft-biz-dd { flex: 1; min-width: 0; word-break: keep-all; }
.ft-biz-dd a { color: #6B7280; text-decoration: none; }
.ft-biz-dd a:hover { color: #611EFA; }
.ft-bottom { padding: 18px 0; background: #F8FAFC; }
.ft-bottom__inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.ft-copy { font-size: 12px; color: #9CA3AF; margin: 0; }
.ft-copy a { color: #6B7280; font-weight: 700; text-decoration: none; }
.ft-legal { display: flex; gap: 14px; }
.ft-legal a { font-size: 12px; color: #6B7280; text-decoration: none; font-weight: 600; }
.ft-legal a:hover { color: #611EFA; }

@media (max-width: 991px) {
  .ft-main { padding: 44px 0 36px; }
  .ft-col-divider, .ft-biz-col { border-left: none; padding-left: 15px; }
  .ft-main .row > [class*="col-"] { margin-bottom: 36px; }
  .ft-main .row > [class*="col-"]:last-child { margin-bottom: 0; }
}
@media (max-width: 767px) {
  .ft-main { padding: 40px 0 32px; }
  .ft-main .row > [class*="col-"] {
    width: 100%; padding-left: 20px; padding-right: 20px;
    text-align: center; border: none; margin-bottom: 32px;
  }
  .ft-brand-title br { display: none; }
  .ft-chips { justify-content: center; }
  .ft-biz-col {
    background: #F8FAFC; border-radius: 16px;
    padding: 24px 20px !important; text-align: left !important;
    margin: 0 15px; width: calc(100% - 30px) !important;
  }
  .ft-biz-name { justify-content: center; }
  .ft-bottom__inner { flex-direction: column; text-align: center; }
}
@media (max-width: 420px) {
  .ft-biz-row { flex-direction: column; gap: 2px; align-items: center; text-align: center; }
  .ft-biz-dt { width: auto; color: #9CA3AF; font-size: 11px; }
  .ft-biz-dd { font-size: 13px; color: #374151; font-weight: 600; }
}

/* ========== PAGE TITLE → P2P bar ========== */
.mg-page-title,
.page-title.mg-page-title,
.page-title.yk-hero-title {
  background: #fff !important;
  border-bottom: 1px solid var(--line) !important;
  padding: 14px 0 !important;
  margin: 0 !important;
}
.mg-page-title__inner,
.page-title.yk-hero-title .container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  border: 0 !important;
}
.mg-page-title__inner > div {
  display: flex !important;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex-wrap: nowrap;
}
.mg-page-title__tag,
.yk-brand-mark {
  display: inline-flex !important;
  align-items: center;
  flex-shrink: 0;
  height: 24px;
  padding: 0 11px !important;
  border-radius: 999px;
  background: var(--soft) !important;
  border: 1px solid rgba(97,30,250,.22);
  color: var(--g) !important;
  font-size: 10px !important;
  font-weight: 800 !important;
  letter-spacing: .07em;
  margin: 0 !important;
}
.mg-page-title h1,
.page-title.yk-hero-title h1,
.mg-page-title__inner > div h1 {
  margin: 0 !important;
  min-width: 0;
  font-size: 17px !important;
  font-weight: 800 !important;
  color: var(--ink) !important;
  line-height: 1.3 !important;
  word-break: keep-all;
}
.mg-page-title p { display: none; }
.mg-page-title .breadcrumbs ol,
.page-title .breadcrumbs ol {
  display: flex; gap: 8px; list-style: none; padding: 0; margin: 0;
  font-size: 12px; color: #9CA3AF;
}
.mg-page-title .breadcrumbs a { color: #6B7280; text-decoration: none; }
@media (max-width: 767px) {
  .mg-page-title__inner,
  .page-title.yk-hero-title .container { padding: 0 16px; }
  .mg-page-title .breadcrumbs { display: none; }
}

/* ========== INDEX HERO (P2P grid) ========== */
body.index-page .mg-hero {
  position: relative;
  overflow: hidden;
  background: #fff;
  padding: 56px 0 48px !important;
}
body.index-page .mg-hero::before {
  content: "";
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 0%, transparent 70%);
}
body.index-page .mg-hero__copy { position: relative; min-height: 0 !important; }
@media (max-width: 767px) {
  body.index-page .mg-hero { padding: 28px 0 28px !important; }
  body.index-page .mg-hero h1 { font-size: 26px !important; word-break: keep-all; }
  body.index-page .mg-hero__sub { font-size: 14px !important; word-break: keep-all; }
  body.index-page .mg-cta-row { width: 100%; }
  body.index-page .mg-cta-row .mg-btn:only-child { flex: 0 1 auto; }
  body.index-page .mg-btn { flex: 1; min-width: 0; padding: 12px 16px; }
  body.index-page .mg-trust { width: 100%; gap: 8px !important; }
  body.index-page .mg-trust__item { min-width: 0 !important; flex: 1; padding: 12px 8px !important; }
}

/* Product cards */
body.index-page .mg-product,
body.category-page .mg-product {
  border-radius: 20px !important;
  border: 1px solid rgba(15,23,42,.08) !important;
  box-shadow: 0 1px 3px rgba(0,0,0,.05), 0 6px 20px rgba(0,0,0,.05) !important;
  overflow: hidden;
}
body.index-page .mg-product__media,
body.category-page .mg-product__media {
  position: relative !important;
  width: 100% !important;
  height: auto !important;
  max-width: none !important;
  max-height: none !important;
  aspect-ratio: 2.4 / 1 !important;
  padding: 8px !important;
  box-sizing: border-box !important;
}
body.index-page .mg-product__media img,
body.category-page .mg-product__media img {
  position: absolute !important;
  inset: 8px !important;
  width: calc(100% - 16px) !important;
  height: calc(100% - 16px) !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: contain !important;
  object-position: center center !important;
}
body.product-details-page.is-sw-gift .product-details .product-images .image-zoom-container {
  height: auto !important;
  aspect-ratio: 2.4 / 1 !important;
  min-height: 0 !important;
  max-height: none !important;
  padding: 10px !important;
}
body.index-page .mg-product__meta,
body.category-page .mg-product__meta {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}
body.index-page .mg-product__price,
body.category-page .mg-product__price {
  min-width: 0;
  white-space: nowrap;
}
body.index-page .mg-product__meta .mg-product__btn,
body.category-page .mg-product__meta .mg-product__btn {
  flex: 0 0 auto;
  min-height: 32px;
  padding: 5px 14px !important;
  border-radius: 999px !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  white-space: nowrap;
}
body.index-page .mg-product__stock,
body.category-page .mg-product__stock,
body.index-page .mg-product__actions,
body.category-page .mg-product__actions { display: none !important; }
@media (max-width: 390px) {
  body.index-page .mg-product__title,
  body.category-page .mg-product__title { word-break: keep-all; }
}

/* ========== PRODUCT DETAILS ========== */
body.product-details-page .product-details .product-info,
body.product-details-page .product-details .product-images {
  border: 1px solid rgba(15,23,42,.08);
  border-radius: 20px;
  box-shadow: 0 1px 3px rgba(0,0,0,.05), 0 8px 24px rgba(15,23,42,.05);
  padding: 22px;
}
body.product-details-page .product-details .product-title {
  font-size: clamp(20px, 3vw, 28px) !important;
  word-break: keep-all;
}
body.product-details-page .current-price {
  font-size: 28px !important;
  font-weight: 900 !important;
  color: #4A10D0 !important;
}
body.product-details-page .product-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
body.product-details-page .product-actions .btn {
  border-radius: 999px !important;
  font-weight: 800 !important;
  padding: 12px 20px !important;
  min-height: 48px;
}
body.product-details-page .product-actions .btn-primary,
body.product-details-page .product-actions .add-to-cart-btn {
  background: linear-gradient(135deg, #611EFA, #4A10D0) !important;
  border: 0 !important;
  box-shadow: 0 6px 18px rgba(74,16,208,.24);
}
body.product-details-page .product-actions .btn-outline-primary,
body.product-details-page .product-actions .buy-now-btn {
  color: #611EFA !important;
  border-color: rgba(97,30,250,.35) !important;
  background: #fff !important;
}
body.product-details-page .wishlist-btn { display: none !important; }
body.product-details-page .quantity-selector {
  display: inline-flex; align-items: center;
  border: 1px solid rgba(15,23,42,.12);
  border-radius: 999px;
  overflow: hidden;
}
body.product-details-page .quantity-btn {
  width: 40px; height: 40px; border: 0; background: #F8FAFC;
}
body.product-details-page .quantity-input {
  width: 56px; height: 40px; border: 0; text-align: center; font-weight: 800;
}
body.product-details-page .size-option {
  border-radius: 999px !important;
  padding: 8px 14px !important;
  border: 1px solid rgba(15,23,42,.12);
}
body.product-details-page .size-option.active {
  background: var(--soft) !important;
  border-color: rgba(97,30,250,.35) !important;
  color: #4A10D0 !important;
  font-weight: 800;
}
@media (max-width: 767px) {
  body.product-details-page .product-details .product-info,
  body.product-details-page .product-details .product-images { padding: 16px; }
  body.product-details-page .product-actions { position: sticky; bottom: 12px; z-index: 20; }
  body.product-details-page .product-actions .btn { flex: 1; min-width: 0; }
  body.product-details-page .product-short-description p { word-break: keep-all; }
  body.product-details-page.has-mg-paybar { padding-bottom: 128px !important; }
  body.product-details-page.has-mg-paybar .hx-mobile-bar { display: block; }
  body.product-details-page.has-mg-paybar .product-actions { display: none; }
}

/* ========== AUTH ========== */
body.login-register-page .login-register-wraper {
  max-width: 480px;
  margin: 0 auto;
}
body.login-register-page .yk-auth-panel {
  background: transparent;
  box-shadow: none;
  border: 0;
  padding: 8px 8px 16px;
}
body.login-register-page .nav-tabs .nav-link {
  border-radius: 999px !important;
  font-weight: 800;
}
body.login-register-page .nav-tabs .nav-link.active {
  background: var(--soft) !important;
  color: #4A10D0 !important;
  border-color: rgba(97,30,250,.22) !important;
}
body.login-register-page .btn-primary {
  border-radius: 999px !important;
  background: linear-gradient(135deg, #611EFA, #4A10D0) !important;
  border: 0 !important;
  font-weight: 800 !important;
  min-height: 48px;
}
body.login-register-page .form-control {
  border-radius: 14px !important;
  min-height: 48px;
}

/* ========== CART / CHECKOUT / ACCOUNT cards ========== */
body.cart-page .mg-cart,
body.checkout-page .checkout,
body.account-page .account,
body.notice-page .notice,
body.contact-page .contact,
body.csList-page .mg-cslist {
  word-break: keep-all;
}
@media (max-width: 767px) {
  body.cart-page .mg-cart__item,
  body.cart-page .cart-item.mg-cart__item {
    border-radius: 16px;
    padding: 14px 12px;
  }
  body.cart-page .mg-cart__toolbar {
    flex-wrap: wrap;
    gap: 10px;
  }
}
body.cart-page .btn-primary,
body.checkout-page .btn-primary,
body.account-page .btn-primary {
  border-radius: 999px !important;
  background: linear-gradient(135deg, #611EFA, #4A10D0) !important;
  border: 0 !important;
  font-weight: 800 !important;
}

/* Mobile: keep phone/account numbers intact */
@media (max-width: 390px) {
  .ft-biz-dd,
  .contact-item span,
  .hx-navbar__logo img { max-width: 100%; }
  body { overflow-x: hidden; }
  .mg-page-title h1 { font-size: 16px !important; }
}

/* Scroll top: stay in the page body, never sit on the mobile pay bar */
#scroll-top.scroll-top,
#scroll-top.scroll-top.active { z-index: 70; }
@media (max-width: 767px) {
  #scroll-top.scroll-top,
  #scroll-top.scroll-top.active {
    right: 14px;
    bottom: 18px;
    z-index: 70;
  }
  body.checkout-page #scroll-top.scroll-top,
  body.checkout-page #scroll-top.scroll-top.active,
  body.product-details-page.has-mg-paybar #scroll-top.scroll-top,
  body.product-details-page.has-mg-paybar #scroll-top.scroll-top.active,
  body:has(.hx-mobile-bar) #scroll-top.scroll-top,
  body:has(.hx-mobile-bar) #scroll-top.scroll-top.active {
    bottom: calc(132px + env(safe-area-inset-bottom, 0px));
    z-index: 70;
  }
}

/* ========== P2P mode tabs (본인 구매 / 선물하기) ========== */
.hx-mode-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 18px; }
.hx-mode-tab {
  position: relative; padding: 24px 16px 20px; border-radius: 18px;
  border: 1.5px solid var(--line2); background: linear-gradient(180deg,#fff,#FAFAFA);
  cursor: pointer; text-align: center; transition: all .22s cubic-bezier(.22,1,.36,1);
  font-family: inherit; overflow: hidden; box-shadow: 0 2px 8px rgba(15,23,42,.05);
}
.hx-mode-tab__check {
  position: absolute; right: 12px; top: 12px; width: 20px; height: 20px;
  border-radius: 50%; border: 2px solid var(--line2); background: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; color: transparent;
}
.hx-mode-tab__ico-wrap {
  width: 50px; height: 50px; margin: 0 auto 10px; border-radius: 15px;
  display: flex; align-items: center; justify-content: center; background: #F1F5F9;
}
.hx-mode-tab__ico { font-size: 25px; color: var(--muted2); }
.hx-mode-tab__label { font-size: 17px; font-weight: 900; letter-spacing: -.35px; color: var(--muted); display: block; word-break: keep-all; }
.hx-mode-tab__sub { font-size: 11px; color: var(--muted2); margin-top: 4px; display: block; word-break: keep-all; }
.hx-mode-tab.is-buy {
  border-color: rgba(97,30,250,.36);
  background: linear-gradient(150deg, var(--soft) 0%, #E9E0FE 100%);
  transform: translateY(-3px);
  box-shadow: 0 0 0 3px rgba(97,30,250,.10), 0 14px 30px rgba(97,30,250,.18);
}
.hx-mode-tab.is-buy .hx-mode-tab__ico-wrap { background: linear-gradient(135deg, #611EFA, #4A10D0); box-shadow: 0 8px 18px rgba(97,30,250,.36); }
.hx-mode-tab.is-buy .hx-mode-tab__ico { color: #fff; }
.hx-mode-tab.is-buy .hx-mode-tab__label { color: #4A10D0; }
.hx-mode-tab.is-buy .hx-mode-tab__check { background: #611EFA; border-color: #611EFA; color: #fff; }
.hx-mode-tab.is-gift {
  border-color: rgba(217,119,6,.36);
  background: linear-gradient(150deg, rgba(217,119,6,.08) 0%, rgba(255,251,235,.92) 100%);
  transform: translateY(-3px);
  box-shadow: 0 0 0 3px rgba(217,119,6,.10), 0 14px 30px rgba(217,119,6,.18);
}
.hx-mode-tab.is-gift .hx-mode-tab__ico-wrap { background: linear-gradient(135deg, #F59E0B, #D97706); box-shadow: 0 8px 18px rgba(217,119,6,.36); }
.hx-mode-tab.is-gift .hx-mode-tab__ico { color: #fff; }
.hx-mode-tab.is-gift .hx-mode-tab__label { color: #D97706; }
.hx-mode-tab.is-gift .hx-mode-tab__check { background: #F59E0B; border-color: #F59E0B; color: #fff; }
.hx-mode-tab.is-disabled { opacity: .45; cursor: not-allowed; transform: none !important; box-shadow: none !important; }
.hx-mode-selected { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 13px; margin-bottom: 16px; }
.hx-mode-selected--buy { background: linear-gradient(135deg, var(--soft), #E9E0FE); border: 1.5px solid rgba(97,30,250,.30); color: #4A10D0; }
.hx-mode-selected--gift { background: linear-gradient(135deg, rgba(217,119,6,.09), rgba(217,119,6,.03)); border: 1.5px solid rgba(217,119,6,.32); color: #D97706; }
.hx-mode-selected__ico { width: 34px; height: 34px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 17px; flex-shrink: 0; }
.hx-mode-selected--buy .hx-mode-selected__ico { background: #611EFA; color: #fff; }
.hx-mode-selected--gift .hx-mode-selected__ico { background: #F59E0B; color: #fff; }
.hx-mode-selected__text { font-size: 13px; font-weight: 700; line-height: 1.5; word-break: keep-all; }
.hx-info-notice { padding: 11px 14px; border-radius: 11px; background: var(--soft); border: 1px solid rgba(97,30,250,.16); border-left: 3px solid #611EFA; font-size: 12px; color: var(--txt); line-height: 1.7; margin-bottom: 16px; word-break: keep-all; }
.hx-gift-notice { padding: 11px 14px; border-radius: 11px; background: rgba(217,119,6,.05); border: 1px solid rgba(217,119,6,.18); border-left: 3px solid #F59E0B; font-size: 12px; color: var(--txt); line-height: 1.7; margin-bottom: 16px; word-break: keep-all; }
.hx-field-group { margin-bottom: 15px; }
.hx-field-label { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--muted); margin-bottom: 6px; }
.hx-field-label i { color: #611EFA; }
.hx-field-label .required { display: inline-flex; align-items: center; height: 19px; padding: 0 8px; border-radius: 999px; font-size: 10px; font-weight: 900; color: #fff; background: linear-gradient(135deg, #F87171, #DC2626); }
.hx-input, body.checkout-page .hx-input {
  width: 100%; padding: 0 14px; height: 48px; border-radius: 11px;
  border: 1.5px solid var(--line2); background: #fff; font-size: 14px; font-weight: 700; color: var(--ink);
}
.hx-input[readonly] { background: #F3F4F6; color: var(--muted); }
.hx-input-gift {
  height: 58px; padding: 0 18px; font-size: 18px; font-weight: 800;
  background: linear-gradient(180deg, #fff 0%, #FFFBF0 100%);
  border: 2px solid rgba(217,119,6,.34); border-radius: 15px;
}
.hx-field-label--gift-lg { font-size: 17px; font-weight: 900; color: #D97706; }
.hx-field-tip { font-size: 11px; color: var(--muted2); margin-top: 5px; display: flex; gap: 5px; word-break: keep-all; }
.hx-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 767px) {
  .hx-2col { grid-template-columns: 1fr; }
  .hx-mode-tab { padding: 18px 10px 16px; }
  .hx-mode-tab__label { font-size: 15px; }
  .hx-input-gift { height: 52px; font-size: 16px; }
}

/* checkout_last receipt chrome */
body.checkout-page #shipping-address.checkout-section {
  background: #fff; border: 1px solid var(--line2); border-radius: 20px;
  box-shadow: 0 8px 30px rgba(11,18,32,.06); padding: 22px 20px; margin-bottom: 20px;
}
body.checkout-page #shipping-address .section-header { border: 0; margin-bottom: 16px; }
body.checkout-page #shipping-address .section-number {
  background: linear-gradient(135deg, #611EFA, #4A10D0) !important;
}
body.checkout-page .hx-radio-keep { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
body.checkout-page #shipping-address .form-check.single-checkbox,
body.checkout-page label[for="save-address"],
body.checkout-page label[for="save-address2"],
body.checkout-page #save-address,
body.checkout-page #save-address2 { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }

/* ========== NOTICE as P2P cards ========== */
body.notice-page .faq-list { display: flex; flex-direction: column; gap: 12px; }
body.notice-page .faq-list .faq-item {
  background: #fff !important;
  border: 1px solid var(--line2) !important;
  border-radius: 20px !important;
  box-shadow: 0 1px 3px rgba(0,0,0,.05), 0 8px 24px rgba(15,23,42,.05) !important;
  overflow: hidden;
  padding: 0 !important;
}
body.notice-page .faq-list .faq-item h3 {
  padding: 16px 18px !important;
  font-size: 15px !important;
  font-weight: 800 !important;
  color: var(--ink) !important;
  word-break: keep-all;
}
body.notice-page .faq-list .faq-item.faq-active,
body.notice-page .faq-list .faq-item:hover {
  border-color: rgba(97,30,250,.28) !important;
  box-shadow: 0 10px 28px rgba(74,16,208,.08) !important;
}
body.notice-page .faq-list .faq-item .faq-content,
body.notice-page .faq-list .faq-item.faq-active .faq-content {
  padding: 0 18px 18px !important;
}
body.notice-page .col-lg-4 { margin-top: 8px; }

/* ========== CONTACT / CSLIST ========== */
body.contact-page .mg-contact__channel,
body.contact-page .mg-contact__panel,
body.contact-page .mg-contact__aside,
body.csList-page .mg-cslist__list {
  background: #fff;
  border: 1px solid var(--line2);
  border-radius: 18px;
  box-shadow: 0 1px 3px rgba(0,0,0,.05), 0 8px 24px rgba(15,23,42,.04);
}
body.csList-page .mg-cslist__toolbar {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
}
body.csList-page .mg-cslist__summary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: center;
  width: auto;
  max-width: 100%;
  min-height: 44px;
  margin: 0;
  padding: 6px 14px 6px 6px;
  background: #fff;
  border: 1px solid var(--line2);
  border-radius: 999px;
  box-shadow: 0 1px 2px rgba(15,23,42,.04);
}
body.csList-page .mg-cslist__summary strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  min-width: 32px;
  height: 32px;
  margin: 0;
  padding: 0 8px;
  border-radius: 999px;
  background: #EFF6FF;
  color: #1D4ED8;
  font-size: 15px;
  font-weight: 900;
  line-height: 1;
}
body.csList-page .mg-cslist__summary-label {
  min-width: 0;
  font-size: 14px;
  font-weight: 800;
  color: #0F172A;
  line-height: 1;
  word-break: keep-all;
}
body.csList-page .mg-cslist__summary-range {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  margin: 0;
  padding-left: 8px;
  border-left: 1px solid #E2E8F0;
  color: #64748B;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  word-break: keep-all;
}
body.contact-page .mg-contact__channel { padding: 16px; }
body.contact-page .mg-contact__channel i { color: #611EFA !important; }
body.contact-page .mg-contact__btn,
body.csList-page .mg-cslist__write {
  border-radius: 999px !important;
  font-weight: 800 !important;
}
body.contact-page .mg-contact__btn--primary,
body.csList-page .mg-cslist__write:not(.is-off) {
  background: linear-gradient(135deg, #611EFA, #4A10D0) !important;
  color: #fff !important;
  border: 0 !important;
}
body.contact-page .form-control,
body.csList-page .form-control {
  border-radius: 14px !important;
  min-height: 46px;
}
body.csList-page .mg-cslist__q {
  border-radius: 16px;
  word-break: keep-all;
}

/* ========== ACCOUNT / MYPAGE ========== */
body.account-page .mg-account__aside {
  background: #fff !important;
  border: 1px solid var(--line2) !important;
  border-radius: 20px !important;
  box-shadow: 0 8px 30px rgba(11,18,32,.06) !important;
  padding: 18px !important;
}
body.account-page .mg-account__avatar {
  background: linear-gradient(135deg, #611EFA, #4A10D0) !important;
  color: #fff !important;
}
body.account-page .mg-account__nav .nav-link {
  border-radius: 12px !important;
  font-weight: 700 !important;
}
body.account-page .mg-account__nav .nav-link.active {
  background: var(--soft) !important;
  color: #4A10D0 !important;
}
body.account-page .mg-account__main,
body.account-page .mg-account__panel-head {
  background: #fff;
  border-radius: 20px;
}
body.account-page .mg-account__tabs {
  display: flex; gap: 6px; padding: 10px 12px; background: #fff;
  border-bottom: 1px solid var(--line); position: sticky; top: 66px; z-index: 20;
}
body.account-page .mg-account__tabs button {
  flex: 1; min-width: 0; border-radius: 999px; border: 1px solid var(--line2);
  background: #fff; font-size: 12px; font-weight: 800; padding: 8px 6px; word-break: keep-all;
}
body.account-page .mg-account__tabs button.is-active {
  background: linear-gradient(135deg, #611EFA, #4A10D0); color: #fff; border-color: transparent;
}

/* ========== CHECKOUT CONSENT ========== */
body.checkout-page .mg-checkout-agree .agree-container,
body.checkout-page .integrated-safe-box {
  background: #fff;
  border: 1px solid var(--line2);
  border-radius: 20px;
  box-shadow: 0 8px 30px rgba(11,18,32,.06);
}
body.checkout-page .agree-submit-btn,
body.checkout-page .place-order-btn {
  border-radius: 999px !important;
  background: linear-gradient(135deg, #611EFA, #4A10D0) !important;
  border: 0 !important;
  font-weight: 800 !important;
  min-height: 50px;
}
body.checkout-page .question-options label {
  border-radius: 14px !important;
  word-break: keep-all;
}

/* ========== LEGAL / CART ========== */
body.tos-page .container,
body.privacy-page .container { word-break: keep-all; }
body.cart-page .mg-cart__layout,
body.cart-page .mg-cart__aside {
  background: #fff;
  border: 1px solid var(--line2);
  border-radius: 20px;
}

/* ========== MOBILE PAY BAR ========== */
.hx-mobile-bar {
  display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 80;
  background: rgba(255,255,255,.96); backdrop-filter: blur(16px);
  border-top: 1px solid var(--line);
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
}
.hx-mobile-bar__label { font-size: 11px; color: var(--muted); font-weight: 600; }
.hx-mobile-bar__val { font-size: 20px; font-weight: 900; color: var(--ink); margin-bottom: 8px; }
.hx-mobile-bar__btns { display: flex; gap: 8px; }
.hx-mobile-bar__btns .hx-nav-btn { flex: 1; justify-content: center; min-height: 46px; }
@media (max-width: 767px) {
  body.checkout-page .hx-mobile-bar { display: block; }
  body.checkout-page { padding-bottom: 120px !important; }
}

/* ========== CHECKOUT MOBILE POLISH (2026-09-08) ========== */
body.checkout-page #thumb-method .hx-thumb-install {
  width: 100%;
  border-color: rgba(97,30,250,.22);
  background: linear-gradient(145deg, #F6F2FF 0%, #FFFFFF 72%);
  box-shadow: 0 10px 28px rgba(74,16,208,.07);
}
body.checkout-page #thumb-method .hx-thumb-install__title i,
body.checkout-page #thumb-method .hx-thumb-install-guide__title i {
  color: #5514E8;
}
body.checkout-page #thumb-method .hx-thumb-install-guide {
  border-color: rgba(97,30,250,.20);
  background: linear-gradient(145deg, #FFFFFF, #F8FAFF);
}
body.checkout-page #thumb-method .hx-thumb-install-step__num {
  color: #5514E8;
}
body.checkout-page #thumb-method .hx-thumb-store {
  max-width: 320px;
}
body.checkout-page #thumb-method .hx-thumb-store__btn {
  min-height: 56px;
  border: 1px solid rgba(15,23,42,.10);
  background: #111827;
  box-shadow: 0 6px 16px rgba(15,23,42,.14);
}
.hx-store-badge {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  min-height: 56px;
  padding: 8px 15px;
  color: #fff;
  line-height: 1;
}
.hx-store-badge > i {
  flex: 0 0 auto;
  font-size: 27px;
  color: #fff;
}
.hx-store-badge__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  gap: 3px;
}
.hx-store-badge__copy small {
  color: rgba(255,255,255,.76);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .01em;
}
.hx-store-badge__copy strong {
  color: #fff;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -.02em;
  white-space: nowrap;
}
body.checkout-page #thumb-method .hx-thumb-store__download {
  background: linear-gradient(135deg, #611EFA, #4A10D0);
  box-shadow: 0 6px 16px rgba(74,16,208,.25);
}
body.checkout-page #thumb-method .hx-thumb-app-notice {
  border-color: rgba(97,30,250,.30);
}
body.checkout-page #thumb-method .hx-thumb-app-notice__text {
  color: #4A10D0;
}

@media (max-width: 767.98px) {
  body.checkout-page .mg-checkout {
    padding: 14px 0 36px !important;
  }
  body.checkout-page .mg-checkout > .container {
    width: 100%;
    max-width: none;
    padding-right: 10px !important;
    padding-left: 10px !important;
  }
  body.checkout-page .mg-checkout > .container > .row {
    margin-right: 0 !important;
    margin-left: 0 !important;
  }
  body.checkout-page .mg-checkout > .container > .row > [class*="col-"] {
    width: 100%;
    max-width: 100%;
    padding-right: 0 !important;
    padding-left: 0 !important;
  }
  body.checkout-page .checkout-container {
    width: 100%;
    margin-bottom: 12px !important;
  }
  body.checkout-page .checkout-section,
  body.checkout-page #shipping-address.checkout-section {
    width: 100%;
    margin-bottom: 12px !important;
    border-radius: 16px !important;
    padding: 0 !important;
  }
  body.checkout-page .checkout-section .section-header,
  body.checkout-page #shipping-address .section-header {
    padding: 13px 14px !important;
    margin: 0 !important;
    gap: 10px;
  }
  body.checkout-page .checkout-section .section-header h3 {
    min-width: 0;
    font-size: 15px !important;
    line-height: 1.35;
    word-break: keep-all;
  }
  body.checkout-page .checkout-section .section-number {
    width: 27px !important;
    height: 27px !important;
    font-size: 12px !important;
  }
  body.checkout-page .checkout-section .section-content {
    width: 100%;
    padding: 15px 12px !important;
  }
  body.checkout-page .hx-mode-tabs {
    width: 100%;
    gap: 8px;
    margin-bottom: 14px;
  }
  body.checkout-page .hx-mode-tab {
    min-width: 0;
    min-height: 158px;
    padding: 20px 8px 15px;
    border-radius: 17px;
  }
  body.checkout-page .hx-mode-tab__check {
    top: 9px;
    right: 9px;
    width: 19px;
    height: 19px;
  }
  body.checkout-page .hx-mode-tab__ico-wrap {
    width: 48px;
    height: 48px;
    margin-bottom: 10px;
  }
  body.checkout-page .hx-mode-tab__label {
    font-size: 15px;
    line-height: 1.35;
  }
  body.checkout-page .hx-mode-tab__sub {
    max-width: 110px;
    margin: 6px auto 0;
    font-size: 11px;
    line-height: 1.45;
  }
  body.checkout-page .hx-mode-selected,
  body.checkout-page .hx-info-notice,
  body.checkout-page .hx-gift-notice {
    width: 100%;
    margin-bottom: 13px;
    padding: 12px;
  }
  body.checkout-page .hx-mode-selected__text {
    min-width: 0;
    font-size: 12px;
  }
  body.checkout-page .hx-2col {
    width: 100%;
    gap: 15px;
  }
  body.checkout-page .hx-input,
  body.checkout-page .form-control.hx-input {
    width: 100% !important;
    min-width: 0;
    height: 50px;
    padding-right: 13px !important;
    padding-left: 13px !important;
    font-size: 15px;
  }
  body.checkout-page .hx-input-gift,
  body.checkout-page .form-control.hx-input-gift {
    height: 54px;
    font-size: 15px;
  }
  body.checkout-page #thumb-method .hx-thumb-install {
    padding: 14px 12px;
    border-radius: 15px;
  }
  body.checkout-page #thumb-method .hx-thumb-install-guide {
    padding: 12px;
  }
  body.checkout-page #thumb-method .hx-thumb-install-step {
    grid-template-columns: 54px minmax(0,1fr);
    gap: 6px;
    font-size: 12px;
  }
  body.checkout-page #thumb-method .hx-thumb-store {
    width: 100%;
    max-width: none;
    margin-top: 12px;
  }
  body.checkout-page #thumb-method .hx-thumb-store__row {
    grid-template-columns: minmax(0,1fr) 52px;
    gap: 8px;
  }
  body.checkout-page #thumb-method .hx-thumb-store__download {
    min-width: 52px;
    min-height: 56px;
  }
  body.checkout-page .order-summary {
    width: 100%;
    margin-top: 4px;
    border-radius: 16px !important;
  }
  body.checkout-page .order-summary .order-summary-header,
  body.checkout-page .order-summary .order-summary-content {
    padding-right: 14px !important;
    padding-left: 14px !important;
  }
  body.checkout-page .place-order-container {
    display: none !important;
  }
  body.checkout-page .hx-mobile-bar {
    padding-right: 12px;
    padding-left: 12px;
  }
  body.checkout-page .hx-mobile-bar__btns .hx-nav-btn:first-child {
    flex: 0 0 96px;
  }
}

@media (max-width: 359.98px) {
  body.checkout-page .mg-checkout > .container {
    padding-right: 6px !important;
    padding-left: 6px !important;
  }
  body.checkout-page .checkout-section .section-content {
    padding-right: 9px !important;
    padding-left: 9px !important;
  }
  body.checkout-page .hx-mode-tab {
    min-height: 150px;
    padding-right: 5px;
    padding-left: 5px;
  }
  body.checkout-page .hx-mode-tab__label {
    font-size: 14px;
  }
  .hx-store-badge {
    padding-right: 10px;
    padding-left: 10px;
  }
  .hx-store-badge__copy strong {
    font-size: 15px;
  }
}

/* ========== NOTICE — P2P CARD LAYOUT (2026-09-08) ========== */
body.notice-page {
  background: #F8FAFC !important;
}
.mg-must-bar {
  position: relative;
  z-index: 5;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.mg-must-bar__track {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 10px;
  padding: 12px 0;
}
.mg-must-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
  min-height: 66px;
  padding: 10px 13px;
  border: 1px solid var(--line2);
  border-radius: 14px;
  background: #fff;
  color: var(--txt);
  text-decoration: none;
  transition: transform .18s, border-color .18s, box-shadow .18s;
}
.mg-must-item:hover {
  transform: translateY(-2px);
  border-color: rgba(97,30,250,.34);
  box-shadow: 0 8px 20px rgba(74,16,208,.08);
  color: #4A10D0;
}
.mg-must-item__ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--soft);
  color: #5514E8;
  font-size: 18px;
}
.mg-must-item--app .mg-must-item__ico {
  background: linear-gradient(135deg,#611EFA,#4A10D0);
  color: #fff;
  box-shadow: 0 5px 14px rgba(74,16,208,.24);
}
.mg-must-item--cms .mg-must-item__ico {
  background: linear-gradient(135deg,#10B981,#047857);
  color: #fff;
  box-shadow: 0 5px 14px rgba(4,120,87,.24);
}
.mg-must-item--cms .mg-must-item__body small { color: #059669; }
.mg-must-item__badge--new { background: #5514E8; }
.mg-must-item__body {
  display: flex;
  flex: 1;
  min-width: 0;
  flex-direction: column;
  gap: 2px;
}
.mg-must-item__body small {
  color: #611EFA;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.mg-must-item__body strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mg-must-item > .bi-chevron-right {
  flex: 0 0 auto;
  color: #94A3B8;
  font-size: 12px;
}
.mg-must-item__badge {
  position: absolute;
  top: 5px;
  right: 8px;
  padding: 1px 6px;
  border-radius: 999px;
  background: #EF4444;
  color: #fff;
  font-size: 8px;
  font-weight: 900;
}

body.notice-page .mg-notice-wrap {
  padding: 34px 0 76px !important;
  background: transparent !important;
}
.mg-notice-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 17px;
}
.mg-notice-head h2 {
  margin: 0;
  color: var(--ink);
  font-size: 18px;
  font-weight: 900;
  letter-spacing: -.02em;
}
.mg-notice-head > span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}
.mg-notice-head strong {
  color: #5514E8;
  font-weight: 900;
}

body.notice-page .mg-notice-wrap .faq-list {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0,1fr));
  align-items: start;
  gap: 16px !important;
}
body.notice-page .mg-notice-wrap .faq-list .faq-item {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden;
  border: 1px solid var(--line2) !important;
  border-radius: 20px !important;
  background: #fff !important;
  box-shadow: 0 1px 3px rgba(15,23,42,.04), 0 8px 24px rgba(15,23,42,.05) !important;
  transition: transform .2s, border-color .2s, box-shadow .2s;
}
body.notice-page .mg-notice-wrap .faq-list .faq-item:hover {
  transform: translateY(-3px);
  border-color: rgba(97,30,250,.30) !important;
  box-shadow: 0 14px 32px rgba(74,16,208,.10) !important;
}
body.notice-page .mg-notice-wrap .faq-list .faq-item.faq-active {
  grid-column: 1 / -1;
  transform: none;
  border-color: rgba(97,30,250,.32) !important;
}
.mg-notice-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 132px;
  overflow: hidden;
  cursor: pointer;
  background:
    radial-gradient(circle at 15% 18%, rgba(255,255,255,.75) 0 5px, transparent 6px),
    linear-gradient(140deg, #F6F2FF, #E9E0FE);
}
.mg-notice-visual::before,
.mg-notice-visual::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(255,255,255,.65);
  border-radius: 50%;
}
.mg-notice-visual::before {
  top: -42px;
  right: -18px;
  width: 138px;
  height: 138px;
  background: rgba(255,255,255,.26);
}
.mg-notice-visual::after {
  bottom: -70px;
  left: -36px;
  width: 154px;
  height: 154px;
  background: rgba(255,255,255,.20);
}
.mg-notice-visual--policy { background: linear-gradient(145deg,#F6F2FF,#DCCEFE); }
.mg-notice-visual--bank { background: linear-gradient(145deg,#ECFEFF,#CFFAFE); }
.mg-notice-visual--transfer { background: linear-gradient(145deg,#F0F9FF,#BAE6FD); }
.mg-notice-visual--app { background: linear-gradient(145deg,#F6F2FF,#DCCEFE); }
.mg-notice-visual--pass { background: linear-gradient(145deg,#F5F3FF,#DDD6FE); }
.mg-notice-visual--guide { background: linear-gradient(145deg,#F6F2FF,#E9E0FE); }
.mg-notice-visual--cms { background: linear-gradient(145deg,#ECFDF5,#A7F3D0); }
.mg-notice-visual--cms .mg-notice-visual__ico { background: linear-gradient(135deg,#10B981,#047857); box-shadow: 0 12px 26px rgba(4,120,87,.24); }
.mg-notice-visual--cms .mg-notice-visual__cat { background: rgba(4,120,87,.88); }
.mg-notice-more {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; min-height: 40px; padding: 0 16px; border-radius: 12px;
  background: linear-gradient(135deg,#611EFA,#4A10D0); color: #fff !important; font-size: 13px; font-weight: 850; text-decoration: none !important;
  box-shadow: 0 8px 18px rgba(74,16,208,.18);
}
.mg-notice-more:hover { filter: brightness(1.05); }
.mg-notice-visual__ico {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 18px;
  background: linear-gradient(135deg,#611EFA,#4A10D0);
  color: #fff;
  font-size: 27px;
  box-shadow: 0 12px 26px rgba(74,16,208,.24);
}
.mg-notice-visual--bank .mg-notice-visual__ico,
.mg-notice-visual--transfer .mg-notice-visual__ico {
  background: linear-gradient(135deg,#06B6D4,#0284C7);
}
.mg-notice-visual--pass .mg-notice-visual__ico {
  background: linear-gradient(135deg,#8B5CF6,#6D28D9);
}
.mg-notice-visual__cat {
  position: absolute;
  z-index: 2;
  top: 11px;
  left: 11px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(74,16,208,.88);
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .04em;
  backdrop-filter: blur(7px);
}
body.notice-page .mg-notice-wrap .faq-list .faq-item > h3 {
  min-height: 70px;
  margin: 0 !important;
  padding: 17px 48px 10px 18px !important;
  color: var(--ink) !important;
  font-size: 15px !important;
  font-weight: 900 !important;
  line-height: 1.45;
  word-break: keep-all;
}
.mg-notice-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding: 10px 18px 13px;
  border-top: 1px solid var(--line);
  color: #94A3B8;
  font-size: 11px;
  font-weight: 600;
}
.mg-notice-card-meta span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.mg-notice-card-meta i {
  color: #611EFA;
}
body.notice-page .mg-notice-wrap .faq-list .faq-item > .faq-toggle {
  top: 157px !important;
  right: 17px !important;
  color: #611EFA !important;
}
body.notice-page .mg-notice-wrap .faq-list .faq-item > .faq-content {
  order: 4;
  width: auto;
  margin: 0 18px 18px !important;
  padding: 18px !important;
  border: 1px solid rgba(97,30,250,.12);
  border-radius: 14px;
  background: #F8FAFC;
  color: #475569;
  line-height: 1.75;
  word-break: keep-all;
}
body.notice-page .mg-notice-wrap .faq-list .faq-item.faq-active > .faq-content {
  margin-top: 4px !important;
}
body.notice-page .mg-notice-wrap .faq-list .faq-item.faq-active > .mg-notice-visual {
  min-height: 104px;
}
body.notice-page .mg-notice-wrap .faq-list .faq-item.faq-active > .faq-toggle {
  top: 129px !important;
}

.mg-notice-sidebar {
  position: sticky;
  top: 82px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.mg-notice-side-card,
.mg-notice-help-card {
  padding: 18px;
  border: 1px solid var(--line2);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(15,23,42,.04), 0 8px 24px rgba(15,23,42,.04);
}
.mg-notice-side-card > h3 {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 13px;
  padding-bottom: 11px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
}
.mg-notice-side-card > h3 i {
  color: #611EFA;
}
.mg-notice-quick {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.mg-notice-quick a {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 43px;
  padding: 9px 11px;
  border: 1px solid transparent;
  border-radius: 11px;
  background: #F8FAFC;
  color: #475569;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
}
.mg-notice-quick a:hover {
  border-color: rgba(97,30,250,.20);
  background: var(--soft);
  color: #4A10D0;
}
.mg-notice-quick a > i:first-child {
  flex: 0 0 auto;
  color: #611EFA;
  font-size: 16px;
}
.mg-notice-quick a > span {
  flex: 1;
  min-width: 0;
}
.mg-notice-quick a > i:last-child {
  color: #94A3B8;
  font-size: 11px;
}
.mg-notice-app-card {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 15px;
  border: 1px solid rgba(97,30,250,.22);
  border-radius: 16px;
  background: linear-gradient(145deg,#F6F2FF,#fff);
  color: var(--ink);
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(74,16,208,.06);
}
.mg-notice-app-card__ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  border-radius: 13px;
  background: linear-gradient(135deg,#611EFA,#4A10D0);
  color: #fff;
  font-size: 20px;
}
.mg-notice-app-card > span:nth-child(2) {
  display: flex;
  flex: 1;
  min-width: 0;
  flex-direction: column;
  gap: 2px;
}
.mg-notice-app-card small {
  color: #611EFA;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .06em;
}
.mg-notice-app-card strong {
  font-size: 13px;
  font-weight: 900;
}
.mg-notice-app-card em {
  color: var(--muted);
  font-size: 10px;
  font-style: normal;
}
.mg-notice-app-card > i {
  color: #611EFA;
  font-size: 11px;
}
.mg-notice-help-card {
  text-align: center;
}
.mg-notice-help-card__ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 10px;
  border-radius: 15px;
  background: var(--soft);
  color: #611EFA;
  font-size: 22px;
}
.mg-notice-help-card h3 {
  margin: 0 0 6px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 900;
}
.mg-notice-help-card p {
  margin: 0 0 13px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
  word-break: keep-all;
}
.mg-notice-help-card a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 15px;
  border-radius: 999px;
  background: linear-gradient(135deg,#611EFA,#4A10D0);
  color: #fff;
  text-decoration: none;
  font-size: 12px;
  font-weight: 800;
}

@media (max-width: 991.98px) {
  .mg-notice-sidebar {
    position: static;
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
  .mg-notice-help-card {
    grid-column: 1 / -1;
  }
}
@media (min-width: 768px) and (max-width: 991.98px) {
  /* 태블릿: 4열 한 줄 유지 · 제목 말줄임 대신 2줄 허용 */
  .mg-must-item { gap: 9px; padding: 10px 10px 10px 11px; }
  .mg-must-item__ico { flex-basis: 36px; width: 36px; height: 36px; font-size: 16px; }
  .mg-must-item__body strong { overflow: visible; white-space: normal; text-overflow: clip; font-size: 12.5px; line-height: 1.3; word-break: keep-all; }
  .mg-must-item > .bi-chevron-right { display: none; }
}
@media (max-width: 767.98px) {
  .mg-must-bar .container,
  body.notice-page .mg-notice-wrap > .container {
    max-width: none;
    padding-right: 12px;
    padding-left: 12px;
  }
  /* 모바일: 가로 스크롤 없이 2x2 카드 (상단 2 · 하단 2) */
  .mg-must-bar__track {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 8px;
    padding: 10px 0 12px;
    overflow: visible;
  }
  .mg-must-item {
    min-height: 62px;
    padding: 10px 10px 10px 11px;
    gap: 9px;
  }
  .mg-must-item__ico {
    flex-basis: 36px;
    width: 36px;
    height: 36px;
    border-radius: 11px;
    font-size: 16px;
  }
  .mg-must-item__body small { font-size: 8.5px; }
  .mg-must-item__body strong {
    overflow: visible;
    white-space: normal;
    text-overflow: clip;
    font-size: 12.5px;
    line-height: 1.3;
    word-break: keep-all;
  }
  .mg-must-item > .bi-chevron-right { display: none; }
  .mg-must-item__badge { top: 4px; right: 6px; }
  body.notice-page .mg-notice-wrap {
    padding: 24px 0 58px !important;
  }
  body.notice-page .mg-notice-wrap .faq-list {
    grid-template-columns: 1fr;
    gap: 13px !important;
  }
  body.notice-page .mg-notice-wrap .faq-list .faq-item.faq-active {
    grid-column: auto;
  }
  .mg-notice-visual {
    min-height: 118px;
  }
  body.notice-page .mg-notice-wrap .faq-list .faq-item > h3 {
    min-height: 64px;
    padding: 15px 43px 9px 15px !important;
    font-size: 14px !important;
  }
  .mg-notice-card-meta {
    padding: 9px 15px 12px;
  }
  body.notice-page .mg-notice-wrap .faq-list .faq-item > .faq-toggle {
    top: 140px !important;
    right: 14px !important;
  }
  body.notice-page .mg-notice-wrap .faq-list .faq-item.faq-active > .faq-toggle {
    top: 126px !important;
  }
  body.notice-page .mg-notice-wrap .faq-list .faq-item > .faq-content {
    margin-right: 12px !important;
    margin-left: 12px !important;
    padding: 14px !important;
    font-size: 13px;
    overflow-x: auto !important;
  }
  body.notice-page .nx-policy-table {
    min-width: 520px;
  }
  .mg-notice-sidebar {
    grid-template-columns: 1fr;
  }
  .mg-notice-help-card {
    grid-column: auto;
  }
}

/* ========== Gift picker modal (product-details) ========== */
.mg-gift-modal {
  position: fixed; inset: 0; z-index: 10040; display: none;
  align-items: flex-end; justify-content: center;
  background: rgba(15,23,42,.48);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.mg-gift-modal.is-open { display: flex; }
.mg-gift-modal__box {
  width: min(100%, 560px); max-height: 88vh;
  display: flex; flex-direction: column;
  background: #fff; border-radius: 22px 22px 0 0;
  box-shadow: 0 -18px 50px rgba(15,23,42,.18);
}
@media (min-width: 768px) {
  .mg-gift-modal { align-items: center; padding: 20px; }
  .mg-gift-modal__box { border-radius: 22px; max-height: 82vh; }
}
.mg-gift-modal__head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
  padding: 20px 20px 14px; border-bottom: 1px solid var(--line);
}
.mg-gift-modal__title { font-size: 17px; font-weight: 900; color: var(--ink); letter-spacing: -.03em; }
.mg-gift-modal__sub { margin-top: 4px; font-size: 12px; color: var(--muted); word-break: keep-all; }
.mg-gift-modal__close {
  flex: 0 0 36px; width: 36px; height: 36px; border: 0; border-radius: 10px;
  background: #F1F5F9; color: #64748B; font-size: 22px; line-height: 1; cursor: pointer;
}
.mg-gift-modal__body { min-height: 0; overflow-y: auto; padding: 8px 16px 12px; }
.mg-gift-modal__row {
  display: grid; grid-template-columns: 64px minmax(0,1fr) auto;
  gap: 12px; align-items: center;
  padding: 12px 8px; border-bottom: 1px solid #F1F5F9;
}
.mg-gift-modal__row img {
  width: 64px; height: 42px; object-fit: contain; border-radius: 8px; background: #F8FAFC;
}
.mg-gift-modal__name { font-size: 14px; font-weight: 850; color: var(--ink); word-break: keep-all; }
.mg-gift-modal__price { margin-top: 3px; font-size: 12px; font-weight: 800; color: #4A10D0; }
.mg-gift-modal__qty {
  display: flex; align-items: center; gap: 6px;
  height: 40px; padding: 3px; border: 1.5px solid #DCE5F2; border-radius: 12px; background: #fff;
}
.mg-gift-modal__qty button {
  width: 34px; height: 34px; border: 0; border-radius: 9px; background: #F1F5F9; color: #4A10D0;
  font-size: 16px; font-weight: 800; cursor: pointer;
}
.mg-gift-modal__qty span {
  min-width: 22px; text-align: center; font-size: 15px; font-weight: 900; color: #0F172A;
}
.mg-gift-modal__foot {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 18px calc(14px + env(safe-area-inset-bottom,0px));
  border-top: 1px solid var(--line); background: #fff;
}
.mg-gift-modal__sum { font-size: 12px; color: var(--muted); word-break: keep-all; }
.mg-gift-modal__sum strong { display: block; margin-top: 2px; font-size: 18px; color: #4A10D0; }
.mg-gift-modal__apply {
  min-height: 48px; padding: 0 20px; border: 0; border-radius: 14px;
  background: linear-gradient(135deg,#611EFA,#5514E8); color: #fff;
  font-size: 14px; font-weight: 850; cursor: pointer;
  box-shadow: 0 10px 22px rgba(85,20,232,.22);
}
.mg-selected-block { margin: 0 0 16px; }
.mg-selected-head {
  margin: 0 0 8px;
  font-size: 12px; font-weight: 800; color: #64748B;
  letter-spacing: .02em; word-break: keep-all;
}
.mg-extra-list { display: flex; flex-direction: column; gap: 8px; margin: 0; }
.mg-extra-chip {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  min-width: 0;
  padding: 10px 12px; border: 1px solid #E2E8F0; border-radius: 13px; background: #F8FAFC;
}
.mg-extra-chip.is-current {
  border-color: rgba(97,30,250,.28);
  background: #F8FBFF;
}
.mg-extra-chip strong { min-width: 0; font-size: 13px; color: #0F172A; word-break: keep-all; }
.mg-extra-chip span { flex-shrink: 0; font-size: 12px; font-weight: 800; color: #4A10D0; white-space: nowrap; }
.hx-mode-tabs.is-locked { display: none !important; }
.mg-more-gift-btn {
  position: relative;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; min-height: 48px; margin: 0 0 16px; padding: 10px 14px;
  border: 2px solid #5514E8; border-radius: 999px;
  background: linear-gradient(135deg, #F6F2FF, #E9E0FE);
  color: #4A10D0; font-size: 13px; font-weight: 850; cursor: pointer;
  box-shadow: 0 4px 14px rgba(85,20,232,.2);
  word-break: keep-all;
}
.mg-more-gift-btn > * { position: relative; z-index: 1; }
.mg-more-gift-btn i { flex-shrink: 0; }
.mg-more-gift-btn__label { min-width: 0; }
.mg-more-gift-btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 42%;
  height: 100%;
  background: linear-gradient(105deg, transparent 0%, rgba(255,255,255,.2) 38%, rgba(255,255,255,.8) 50%, rgba(255,255,255,.2) 62%, transparent 100%);
  transform: translateX(-180%) skewX(-18deg);
  animation: mgBtnSheen 2.8s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}
@keyframes mgBtnSheen {
  0%, 20% { transform: translateX(-180%) skewX(-18deg); }
  55%, 100% { transform: translateX(320%) skewX(-18deg); }
}
@media (prefers-reduced-motion: reduce) {
  .mg-more-gift-btn::after { animation: none; display: none; }
}
@media (max-width: 390px) {
  .mg-more-gift-btn { font-size: 12.5px; gap: 6px; padding: 10px 12px; }
}

/* ========== Pay method cards ========== */
.mg-pay-page { padding: 18px 0 48px; background: #F8FAFC; }
.mg-pay-wrap { max-width: 560px; }
.mg-pay-hero { margin: 0 0 14px; }
.mg-pay-hero__tag {
  display: inline-flex; align-items: center; height: 22px; padding: 0 10px;
  border-radius: 999px; background: var(--soft); border: 1px solid rgba(97,30,250,.22);
  color: #4A10D0; font-size: 10px; font-weight: 800; letter-spacing: .06em;
}
.mg-pay-hero h1 {
  margin: 8px 0 0; font-size: 22px; font-weight: 900; letter-spacing: -.03em;
  color: var(--ink); line-height: 1.25; word-break: keep-all;
}
.mg-pay-steps { display: flex; gap: 6px; margin: 0 0 16px; }
.mg-pay-step {
  flex: 1; min-width: 0; min-height: 32px;
  display: flex; align-items: center; justify-content: center;
  padding: 6px 4px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line2);
  color: #94A3B8; font-size: 11px; font-weight: 800; letter-spacing: -.02em;
  word-break: keep-all; text-align: center;
}
.mg-pay-step.is-on {
  background: var(--soft); border-color: rgba(97,30,250,.28); color: #4A10D0;
}
.mg-pay-card {
  background: #fff; border: 1px solid var(--line2); border-radius: 20px;
  padding: 16px; margin: 0 0 12px;
  box-shadow: 0 8px 24px rgba(15,23,42,.04);
}
.mg-pay-card__title {
  margin: 0 0 12px; font-size: 12px; font-weight: 800; color: #64748B; letter-spacing: -.01em;
}
.mg-order-row {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 0; border-bottom: 1px solid var(--line);
}
.mg-order-row:last-of-type { border-bottom: 0; }
.mg-order-row__name {
  flex: 1; min-width: 0; font-size: 14px; font-weight: 800; color: var(--ink); word-break: keep-all;
}
.mg-order-row__meta {
  flex-shrink: 0; font-size: 12px; font-weight: 700; color: #64748B; white-space: nowrap;
}
.mg-order-row__amt {
  flex-shrink: 0; font-size: 14px; font-weight: 900; color: var(--ink); white-space: nowrap;
}
.mg-order-total {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin-top: 12px; padding: 12px 14px; border-radius: 14px; background: var(--soft);
}
.mg-order-total span { font-size: 13px; font-weight: 800; color: #64748B; }
.mg-order-total strong { font-size: 20px; font-weight: 900; color: #4A10D0; white-space: nowrap; }
.mg-pd-crumb {
  display: flex; align-items: center; gap: 8px;
  min-height: 36px; margin: 0; padding: 8px 0;
  list-style: none; font-size: 12px; font-weight: 700;
}
.mg-pd-crumb a { color: #64748B; text-decoration: none; }
.mg-pd-crumb [aria-current="page"] { color: #0F172A; }
.mg-pay-grid { display: flex; flex-direction: column; gap: 10px; }
.mg-pay-opt {
  display: grid;
  grid-template-columns: 20px 38px minmax(0,1fr);
  column-gap: 12px; align-items: center;
  padding: 14px 16px; border: 2px solid var(--line2); border-radius: 13px;
  background: #fff; cursor: pointer; text-align: left; width: 100%; min-width: 0;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.mg-pay-opt.is-sel {
  border-color: var(--c);
  background: var(--soft);
  box-shadow: 0 0 0 3px rgba(97,30,250,.12);
}
.mg-pay-opt.is-off { opacity: .45; cursor: not-allowed; }
.mg-pay-opt__radio {
  width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line2);
  flex-shrink: 0; display: flex; align-items: center; justify-content: center;
}
.mg-pay-opt.is-sel .mg-pay-opt__radio { border-color: var(--c); }
.mg-pay-opt.is-sel .mg-pay-opt__radio::after {
  content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--c);
}
.mg-pay-opt__ico {
  width: 38px; height: 38px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  background: var(--soft); color: var(--c); font-size: 18px; flex-shrink: 0;
}
.mg-pay-opt.is-sel .mg-pay-opt__ico { background: linear-gradient(135deg,#611EFA,#5514E8); color: #fff; }
.mg-pay-opt__name {
  min-width: 0; font-size: 14px; font-weight: 900; color: var(--ink); word-break: keep-all;
}
.mg-pay-opt__label { display: block; font-size: 15px; font-weight: 850; color: var(--ink); }
.mg-pay-opt__sub { display: block; margin-top: 3px; font-size: 12px; color: var(--muted); word-break: keep-all; }
.mg-inline-safe {
  margin-top: 0;
  padding: 16px;
  border: 1px solid rgba(97,30,250,.18);
  border-radius: 20px;
  background: linear-gradient(145deg, #F8FBFF 0%, #FFFFFF 78%);
}
.hx-safe-question__divider { height: 1px; background: var(--line2); margin: 14px 0; }
.mg-inline-safe .hx-safe-checklist {
  list-style: none; display: flex; flex-direction: column; gap: 7px;
  margin: 0; padding: 0;
}
.mg-inline-safe .hx-safe-checklist li {
  position: relative; padding-left: 18px; margin: 0;
  color: #334155; font-size: 12.5px; font-weight: 600; line-height: 1.55; word-break: keep-all;
}
.mg-inline-safe .hx-safe-checklist li::before {
  content: ""; position: absolute; left: 2px; top: 7px;
  width: 5px; height: 5px; border-radius: 50%; background: #94A3B8;
}
.mg-inline-safe .hx-safe-question__stitle {
  display: flex; align-items: flex-start; gap: 6px;
  font-size: 13.5px; font-weight: 900; color: var(--ink); line-height: 1.4;
  margin-bottom: 10px; word-break: keep-all;
}
.mg-inline-safe .hx-safe-question__desc {
  font-size: 12px; font-weight: 600; color: var(--muted); line-height: 1.7; word-break: keep-all;
}
.mg-inline-safe .hx-safe-question__confirm {
  margin-top: 8px; padding: 12px 14px; border-radius: 12px;
  background: var(--soft); border: 1px solid rgba(97,30,250,.20);
  color: #4A10D0; font-size: 12.5px; font-weight: 800; line-height: 1.6;
  word-break: keep-all; display: flex; align-items: flex-start; gap: 7px;
}
.mg-inline-safe .hx-safe-options {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px;
}
.mg-inline-safe .hx-safe-opt {
  min-height: 50px; min-width: 0; padding: 10px 8px;
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  border-radius: 14px; border: 1.5px solid var(--line2); background: #fff;
  color: var(--muted); font-size: 13.5px; font-weight: 800; cursor: pointer;
  word-break: keep-all; text-align: center;
}
.hx-safe-opt.is-yes {
  border-color: #15803D; background: linear-gradient(180deg,#22C55E,#15803D); color: #fff;
}
.hx-safe-opt.is-no {
  border-color: #B91C1C; background: linear-gradient(180deg,#F87171,#DC2626); color: #fff;
}
@media (max-width: 390px) {
  .mg-inline-safe .hx-safe-options,
  .hx-thumb-ask__btns { grid-template-columns: 1fr; }
  .mg-pay-hero h1 { font-size: 20px; }
  .mg-pay-step { font-size: 10.5px; }
  .mg-order-row { flex-wrap: wrap; }
  .mg-order-row__name { flex: 1 1 100%; }
  .hx-thumb-ask__q { font-size: 16px; }
}
.mg-pay-next {
  width: 100%; min-height: 52px; margin-top: 8px; border: 0; border-radius: 14px;
  background: linear-gradient(135deg,#611EFA,#5514E8); color: #fff;
  font-size: 15px; font-weight: 850; cursor: pointer;
  box-shadow: 0 12px 26px rgba(85,20,232,.22);
}
.mg-pay-next:disabled,
.hx-nav-btn:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }
.hx-mobile-bar--pay .hx-mobile-bar__amt { min-width: 0; }
.hx-mobile-bar--pay .hx-mobile-bar__val { margin-bottom: 0; white-space: nowrap; }
@media (max-width: 767px) {
  body.checkout-page .mg-pd-crumbbar { display: none; }
  body.checkout-auth-page,
  body.cms-result-page { padding-bottom: 24px !important; }
  body.checkout-auth-page .hx-mobile-bar,
  body.cms-result-page .hx-mobile-bar { display: none !important; }
}
.hx-thumb-box {
  border-radius: 16px;
  border: 1px solid rgba(97,30,250,.16);
  background: linear-gradient(135deg, #F6F2FF, #FFFFFF);
  padding: 18px;
}
.hx-thumb-ask { margin-top: 4px; text-align: center; }
.hx-thumb-ask__ico {
  width: 64px; height: 64px; margin: 4px auto 14px; border-radius: 20px;
  background: linear-gradient(160deg,#611EFA,#4A10D0); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 30px;
  box-shadow: 0 12px 28px rgba(85,20,232,.28);
}
.hx-thumb-ask__q {
  font-size: 17px; font-weight: 950; color: var(--ink);
  letter-spacing: -.03em; line-height: 1.4; word-break: keep-all;
}
.hx-thumb-ask__q:focus,
.hx-thumb-ask__q:focus-visible {
  outline: none;
}
.hx-thumb-ask__q em { font-style: normal; color: #4A10D0; }
.hx-thumb-ask__sub {
  margin-top: 8px; font-size: 13px; font-weight: 700;
  color: var(--muted); line-height: 1.65; word-break: keep-all;
}
.hx-thumb-ask__btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
.hx-thumb-ask__btn {
  min-height: 52px; padding: 12px 10px; border-radius: 16px; border: 1.5px solid var(--line2);
  background: #fff; color: var(--muted); font-size: 14px; font-weight: 900;
  letter-spacing: -.02em; cursor: pointer; word-break: keep-all; line-height: 1.3;
  box-shadow: 0 4px 12px rgba(15,23,42,.06);
}
.hx-thumb-ask__btn.is-yes {
  border-color: #86EFAC; background: #F0FDF4; color: #166534; box-shadow: none; opacity: .48;
}
.hx-thumb-ask__btn.is-no {
  border-color: #CBD5E1; background: #F8FAFC; color: #475569; box-shadow: none; opacity: .55;
}
.hx-thumb-ask.is-settled .hx-thumb-ask__btn:not(.is-yes):not(.is-no) { opacity: .38; }
.hx-thumb-install-wrap { display: none; margin-top: 16px; }
.hx-thumb-install-wrap.is-open { display: block; }
.hx-thumb-start-wrap { display: none; margin-top: 18px; }
.hx-thumb-start-wrap.is-open { display: block; }
.hx-thumb-go-lead {
  margin: 0 0 10px; text-align: center; font-size: 13px; font-weight: 800;
  color: #4A10D0; letter-spacing: -.02em; word-break: keep-all;
}
.hx-thumb-go,
#thumbStartPanel #btnThumb {
  display: flex !important; align-items: center; justify-content: center; gap: 10px;
  width: 100%; min-height: 60px; padding: 14px 16px; border: none; border-radius: 18px;
  cursor: pointer; font-size: 17px; font-weight: 950; letter-spacing: -.03em; color: #fff;
  background: linear-gradient(180deg,#A078FC 0%,#5514E8 42%,#4A10D0 100%);
  box-shadow: 0 4px 0 #2A0878, 0 16px 32px rgba(85,20,232,.40);
  word-break: keep-all;
}

/* ========== Secure pay layer ========== */
.hx-secure-layer {
  position: fixed; inset: 0; z-index: 10050; display: none;
  align-items: center; justify-content: center; padding: 16px;
  background: rgba(15,23,42,.55); backdrop-filter: blur(5px);
}
.hx-secure-layer.is-open { display: flex; }
html.hx-modal-open, body.hx-modal-open { overflow: hidden; height: 100%; }
.hx-secure-modal {
  width: min(94vw, 620px); max-height: calc(100dvh - 28px);
  display: flex; flex-direction: column; overflow: hidden;
  background: #fff; border-radius: 22px;
  box-shadow: 0 28px 80px rgba(15,23,42,.22);
}
.hx-secure-modal__head {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 20px 22px 14px; border-bottom: 1px solid var(--line); flex-shrink: 0;
}
.hx-secure-modal__ico {
  flex: 0 0 44px; width: 44px; height: 44px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg,#611EFA,#4A10D0); color: #fff; font-size: 20px;
}
.hx-secure-modal__title { font-size: 18px; font-weight: 900; color: var(--ink); }
.hx-secure-modal__body { min-height: 0; overflow-y: auto; padding: 18px 22px 22px; }
.hx-secure-step { display: none; }
.hx-secure-step.is-active { display: block; }
.hx-secure-progress { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 16px; }
.hx-secure-progress__item { height: 7px; border-radius: 999px; background: #E5E7EB; }
.hx-secure-progress__item.is-active,
.hx-secure-progress__item.is-done { background: linear-gradient(90deg,#611EFA,#4A10D0); }
.hx-safe-question:not(.mg-inline-safe) { border: 1px solid var(--line2); background: #F8FAFC; border-radius: 14px; padding: 14px; }
.hx-safe-question__stitle { font-size: 13px; font-weight: 850; color: var(--ink); margin-bottom: 10px; word-break: keep-all; }
.hx-safe-question__num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; margin-right: 6px; border-radius: 7px;
  background: var(--soft); color: #5514E8; font-size: 11px; font-weight: 900;
}
.hx-safe-checklist { margin: 0 0 14px; padding-left: 18px; color: #475569; font-size: 12px; line-height: 1.7; word-break: keep-all; }
.hx-safe-question__desc { color: #475569; font-size: 12px; line-height: 1.7; word-break: keep-all; }
.hx-safe-question__desc p { margin: 0 0 8px; word-break: keep-all; }
.hx-safe-question__desc p:last-child { margin-bottom: 0; }
.hx-safe-question__confirm {
  display: flex; align-items: flex-start; gap: 8px; margin: 14px 0 12px;
  color: #0F172A; font-size: 13px; font-weight: 800; word-break: keep-all;
}
.hx-safe-options { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.hx-safe-opt {
  min-height: 46px; border: 1.5px solid var(--line2); border-radius: 12px;
  background: #fff; color: #334155; font-size: 13px; font-weight: 800; cursor: pointer;
}
.hx-safe-opt[data-answer="yes"]:not(.is-yes):not(.is-no) { border-color: rgba(97,30,250,.3); color: #4A10D0; }
.hx-secure-alert { display: none; margin-top: 10px; padding: 10px 12px; border-radius: 12px; font-size: 12px; font-weight: 750; word-break: keep-all; }
.hx-secure-alert.is-on { display: block; }
.hx-secure-alert--danger { background: #FEF2F2; color: #B91C1C; }
.hx-secure-alert--ok { background: #ECFDF5; color: #047857; }
.hx-secure-actions { display: flex; gap: 8px; margin-top: 14px; }
.hx-secure-btn {
  flex: 1; min-height: 48px; border: 0; border-radius: 13px;
  font-size: 14px; font-weight: 850; cursor: pointer;
}
.hx-secure-btn--main { background: linear-gradient(135deg,#611EFA,#5514E8); color: #fff; }
.hx-secure-btn--ghost { background: #F1F5F9; color: #475569; }
.hx-thumb-box__title { display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 900; color: var(--ink); }
.hx-thumb-box__text { margin: 8px 0 14px; font-size: 13px; color: #64748B; word-break: keep-all; }
.hx-thumb-install-step { display: flex; gap: 8px; margin-bottom: 8px; font-size: 13px; color: #334155; word-break: keep-all; }
.hx-thumb-install-step__num { flex-shrink: 0; color: #5514E8; font-weight: 900; font-size: 11px; }
.hx-thumb-store { display: flex; flex-direction: column; gap: 8px; margin: 14px 0; }
.hx-thumb-store a {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 42px; border: 1px solid #E2E8F0; border-radius: 11px;
  background: #fff; color: #0F172A; text-decoration: none; font-size: 13px; font-weight: 800;
}
.hx-thumb-status { margin-top: 12px; text-align: center; font-size: 12px; font-weight: 750; color: #64748B; }
@media (max-width: 390px) {
  .mg-gift-modal__row { grid-template-columns: 52px minmax(0,1fr); }
  .mg-gift-modal__qty { grid-column: 1 / -1; justify-content: flex-end; }
  .hx-safe-options { grid-template-columns: 1fr; }
}

/* ========== ABOUT / 상품권 매입 ========== */
body.about-page .mg-buyin {
  padding: 22px 0 48px;
}
body.about-page .mg-buyin__intro {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0 0 16px;
  padding: 14px 16px;
  background: var(--soft);
  border: 1px solid rgba(97,30,250,.16);
  border-left: 3px solid #611EFA;
  border-radius: 14px;
}
body.about-page .mg-buyin__intro i {
  flex-shrink: 0;
  color: #5514E8;
  font-size: 18px;
  margin-top: 1px;
}
body.about-page .mg-buyin__intro p {
  margin: 0;
  color: #334155;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.7;
  word-break: keep-all;
}
body.about-page .mg-buyin__step,
body.about-page .mg-buyin-gate {
  background: #fff;
  border: 1px solid var(--line2);
  border-radius: 20px;
  box-shadow: 0 8px 30px rgba(11,18,32,.06);
  padding: 20px;
  margin-bottom: 16px;
}
body.about-page .mg-buyin__step-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}
body.about-page .mg-buyin__num {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg,#611EFA,#4A10D0);
  color: #fff;
  font-size: 13px;
  font-weight: 900;
}
body.about-page .mg-buyin__step-head h2 {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 850;
  color: var(--ink);
  word-break: keep-all;
}
body.about-page .mg-buyin__step-head p {
  margin: 0;
  font-size: 13px;
  color: #64748B;
  line-height: 1.6;
  word-break: keep-all;
}
body.about-page .mg-buyin__gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
body.about-page .mg-buyin-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1.5px solid var(--line2);
  border-radius: 16px;
  background: #fff;
  overflow: hidden;
  cursor: pointer;
  user-select: none;
}
body.about-page .mg-buyin-tile:focus {
  outline: 3px dashed rgba(85,20,232,.35);
  outline-offset: 2px;
}
body.about-page .mg-buyin-tile.selected {
  border-color: #22C55E;
  box-shadow: 0 0 0 3px rgba(34,197,94,.16);
}
body.about-page .mg-buyin-tile.preparing {
  cursor: default;
  filter: grayscale(.28);
  opacity: .84;
  pointer-events: none;
}
body.about-page .mg-buyin-tile__img {
  height: 148px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 12px 8px;
  background: #F8FAFC;
}
body.about-page .mg-buyin-tile__img img {
  max-width: 72%;
  max-height: 118px;
  width: auto;
  height: auto;
  object-fit: contain;
}
body.about-page .mg-buyin-tile__label,
body.about-page .mg-buyin-tile .label {
  width: 100%;
  padding: 10px 12px;
  text-align: center;
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  background: #5514E8;
  word-break: keep-all;
  line-height: 1.4;
}
body.about-page .mg-buyin-tile.preparing .mg-buyin-tile__label,
body.about-page .mg-buyin-tile.preparing .label {
  background: #9CA3AF;
}
body.about-page .mg-buyin-tile__ribbon {
  position: absolute;
  top: 14px;
  left: -36px;
  width: 140px;
  padding: 4px 0;
  background: rgba(100,116,139,.9);
  color: #fff;
  text-align: center;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .04em;
  transform: rotate(-45deg);
  z-index: 2;
  pointer-events: none;
}
body.about-page .checkmark {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 3;
  pointer-events: none;
}
body.about-page .mg-buyin-tile.selected .checkmark { display: flex; }
body.about-page .check-svg { width: 100%; height: 100%; display: block; }
body.about-page .check-bg { fill: #fff; stroke: #22C55E; stroke-width: 1; }
body.about-page .check-path { stroke: #22C55E; stroke-width: 2.2; fill: none; }
body.about-page .mg-buyin-upload {
  display: flex;
  gap: 14px;
  align-items: stretch;
}
body.about-page .mg-buyin-drop {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 220px;
  border: 2px dashed rgba(97,30,250,.28);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(97,30,250,.04), transparent);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px 16px;
}
body.about-page .mg-buyin-drop.dragover {
  border-color: #5514E8;
  background: #F6F2FF;
}
body.about-page .mg-buyin-drop .dz-content { pointer-events: none; }
body.about-page .mg-buyin-drop .dz-icon { width: 44px; height: 44px; margin-bottom: 8px; }
body.about-page .mg-buyin-drop .dz-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--ink);
  word-break: keep-all;
}
body.about-page .mg-buyin-drop .dz-sub {
  margin-top: 4px;
  font-size: 12px;
  color: #64748B;
  word-break: keep-all;
}
body.about-page .mg-buyin-files {
  width: 300px;
  flex-shrink: 0;
  min-width: 0;
  max-height: 360px;
  overflow-y: auto;
  padding: 10px;
  border: 1px solid var(--line2);
  border-radius: 16px;
  background: #F8FAFC;
}
body.about-page .mg-buyin-empty {
  padding: 18px 8px;
  color: #94A3B8;
  font-size: 13px;
  text-align: center;
  word-break: keep-all;
}
body.about-page .file-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  padding: 10px;
  margin-bottom: 8px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--line);
}
body.about-page .file-item .thumb {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  border-radius: 8px;
  overflow: hidden;
  background: #F1F5F9;
  display: flex;
  align-items: center;
  justify-content: center;
}
body.about-page .file-item .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
body.about-page .file-item .fi-info {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
body.about-page .file-item .fi-name {
  font-size: 13px;
  font-weight: 700;
  color: #1F2937;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
body.about-page .file-item .fi-size,
body.about-page .file-item .fi-status {
  font-size: 11px;
  color: #64748B;
}
body.about-page .file-item .fi-remove {
  flex: 0 0 auto;
  background: #fff;
  border: 1px solid rgba(239,68,68,.25);
  color: #DC2626;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 8px;
  white-space: nowrap;
}
body.about-page .file-item .fi-remove:disabled { opacity: .4; cursor: not-allowed; }
body.about-page .file-item .fi-progress {
  width: 100%;
  height: 4px;
  background: #E2E8F0;
  border-radius: 99px;
  overflow: hidden;
  margin-top: 3px;
}
body.about-page .file-item .fi-progress i {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg,#611EFA,#4A10D0);
}
body.about-page .file-item .fi-barcode {
  font-size: 11px;
  display: flex;
  align-items: center;
  gap: 4px;
}
body.about-page .fi-barcode.scanning { color: #5514E8; }
body.about-page .fi-barcode.ok { color: #16A34A; }
body.about-page .fi-barcode.warn { color: #D97706; }
body.about-page .file-item.barcode-ok { border-left: 3px solid #16A34A; }
body.about-page .file-item.barcode-warn { border-left: 3px solid #F59E0B; }
body.about-page .mg-buyin-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
}
body.about-page .mg-buyin-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 46px;
  padding: 0 18px;
  border: 0;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 850;
  cursor: pointer;
}
body.about-page .mg-buyin-btn--main {
  background: #5514E8;
  color: #fff;
  text-decoration: none;
}
body.about-page .mg-buyin-btn--main:disabled,
body.about-page .mg-buyin-btn--ghost:disabled {
  opacity: .5;
  cursor: not-allowed;
}
body.about-page .mg-buyin-btn--ghost {
  background: #F1F5F9;
  color: #334155;
  text-decoration: none;
}
body.about-page .mg-buyin-btn--cs {
  background: #0F172A;
  color: #fff;
}
body.about-page .mg-buyin-counter {
  margin-left: auto;
  font-size: 13px;
  color: #64748B;
  font-weight: 700;
}
body.about-page .mg-buyin-lock {
  width: 100%;
  color: #B91C1C;
  font-size: 13px;
  font-weight: 750;
  word-break: keep-all;
}
body.about-page .mg-buyin-bulk {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}
body.about-page .mg-buyin-bulk p {
  margin: 6px 0 0;
  font-size: 13px;
  color: #64748B;
  word-break: keep-all;
}
body.about-page .mg-buyin-gate {
  max-width: 520px;
  margin: 36px auto 48px;
  text-align: center;
  padding: 40px 28px 32px;
}
body.about-page .mg-buyin-gate__ico {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #F6F2FF;
  color: #5514E8;
}
body.about-page .mg-buyin-gate i.bi-building-lock {
  font-size: 24px;
  color: #5514E8;
}
body.about-page .mg-buyin-gate h2 {
  margin: 0 0 10px;
  font-size: 22px;
  font-weight: 800;
  color: #0F172A;
  letter-spacing: -.02em;
  word-break: keep-all;
}
body.about-page .mg-buyin-gate > p {
  margin: 0 auto 22px;
  max-width: 36em;
  font-size: 14px;
  font-weight: 500;
  color: #64748B;
  line-height: 1.75;
  word-break: keep-all;
}
@media (max-width: 767px) {
  body.about-page .mg-buyin-gate > p { max-width: none; }
  body.about-page .mg-buyin-gate__break { display: none; }
}
body.about-page .mg-buyin-gate__tel {
  margin: 0 auto 22px;
  padding: 16px 18px;
  border-radius: 16px;
  background: #F8FAFC;
  border: 1px solid #EEF2F7;
}
body.about-page .mg-buyin-gate__tel span {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: #94A3B8;
  word-break: keep-all;
}
body.about-page .mg-buyin-gate__tel a {
  display: inline-block;
  margin: 6px 0 4px;
  color: #5514E8;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -.02em;
  text-decoration: none;
  white-space: nowrap;
}
body.about-page .mg-buyin-gate__tel em {
  display: block;
  font-style: normal;
  font-size: 13px;
  font-weight: 600;
  color: #64748B;
  word-break: keep-all;
}
body.about-page .mg-buyin-gate__acts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}
body.about-page .mg-buyin-gate__acts .mg-buyin-btn {
  min-width: 120px;
  border-radius: 999px;
}
body.about-page .upload-success-toast {
  position: fixed;
  bottom: 20px;
  right: 16px;
  left: auto;
  max-width: min(420px, calc(100vw - 24px));
  background: #4A10D0;
  color: #fff;
  padding: 12px 16px;
  border-radius: 12px;
  z-index: 9999;
  box-shadow: 0 10px 28px rgba(74,16,208,.28);
  font-size: 13px;
  display: flex;
  gap: 12px;
  align-items: center;
  word-break: keep-all;
}
body.about-page .upload-success-toast .count { font-weight: 800; min-width: 22px; }
body.about-page .upload-success-toast button {
  flex-shrink: 0;
  background: rgba(255,255,255,.14);
  color: #fff;
  border: 0;
  padding: 6px 10px;
  border-radius: 8px;
  cursor: pointer;
}
@media (max-width: 880px) {
  body.about-page .mg-buyin__gallery { grid-template-columns: 1fr; }
  body.about-page .mg-buyin-tile__img { height: 128px; }
  body.about-page .mg-buyin-upload { flex-direction: column; }
  body.about-page .mg-buyin-files { width: 100%; max-height: 280px; }
  body.about-page .mg-buyin-bulk { flex-direction: column; align-items: stretch; }
  body.about-page .mg-buyin-btn--cs { width: 100%; }
}
@media (max-width: 390px) {
  body.about-page .mg-buyin { padding: 16px 0 36px; }
  body.about-page .mg-buyin__step,
  body.about-page .mg-buyin-gate { padding: 22px 16px 20px; border-radius: 16px; }
  body.about-page .mg-buyin-actions { flex-direction: column; align-items: stretch; }
  body.about-page .mg-buyin-btn { width: 100%; }
  body.about-page .mg-buyin-counter { margin-left: 0; text-align: right; }
  body.about-page .mg-buyin-gate__acts { flex-direction: column; }
  body.about-page .upload-success-toast { left: 12px; right: 12px; }
}

/* ========== CHECKOUT 공용 컴포넌트 (2026-09-12 · P2P sub/pay 동일 흐름 + CMS) ========== */
@keyframes mgWizIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.mg-pay-ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 20px; border-radius: 14px; border: 1.5px solid var(--line2);
  background: #fff; color: #475569; font-size: 14px; font-weight: 850; cursor: pointer;
  text-decoration: none; word-break: keep-all; transition: border-color .15s, color .15s;
}
.mg-pay-ghost:hover { color: #4A10D0; border-color: rgba(97,30,250,.35); }
.mg-summary-card {
  position: relative; overflow: hidden; padding: 22px 20px; border-radius: 22px; color: #fff;
  background: linear-gradient(160deg, #5514E8 0%, #4A10D0 55%, #2A0878 100%);
  box-shadow: 0 22px 44px rgba(74,16,208,.28);
}
.mg-summary-card::after {
  content: ""; position: absolute; right: -40px; top: -40px; width: 160px; height: 160px;
  border-radius: 50%; background: rgba(255,255,255,.10);
}
.mg-summary-card__items { display: flex; flex-direction: column; gap: 8px; }
.mg-summary-item { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; font-weight: 700; }
.mg-summary-item__label { min-width: 0; opacity: .88; word-break: keep-all; }
.mg-summary-item__val { flex-shrink: 0; white-space: nowrap; font-weight: 800; }
.mg-summary-card__divider { margin: 14px 0; border: 0; border-top: 1px solid rgba(255,255,255,.25); opacity: 1; }
.mg-summary-card__total-label { font-size: 12px; font-weight: 800; opacity: .82; }
.mg-summary-card__total-val { margin-top: 4px; font-size: 30px; font-weight: 900; letter-spacing: -.03em; white-space: nowrap; }
.mg-summary-card__total-sub { margin-top: 8px; font-size: 12px; font-weight: 700; opacity: .85; word-break: break-all; }
.mg-order-row__thumb {
  flex-shrink: 0; width: 46px; height: 46px; border-radius: 12px; overflow: hidden;
  background: #F1F5F9; border: 1px solid var(--line);
}
.mg-order-row__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mg-order-row__body { flex: 1; min-width: 0; }
.mg-order-row__body .mg-order-row__name { flex: none; }
.mg-order-row__body .mg-order-row__meta { white-space: normal; word-break: keep-all; margin-top: 2px; }
.mg-pay-card__hint { margin-left: 8px; font-size: 11px; font-weight: 700; color: #94A3B8; }
.mg-pay-card__title i { color: #611EFA; margin-right: 4px; }
.mg-pay-opt__label { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.mg-pay-opt__badge {
  display: inline-flex; align-items: center; height: 18px; padding: 0 7px; border-radius: 999px;
  background: linear-gradient(135deg,#F59E0B,#EF4444); color: #fff; font-size: 9.5px; font-weight: 900; letter-spacing: .04em;
}
/* 수령 방식 탭 */
.mg-mode-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mg-mode-tab {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px;
  min-height: 108px; padding: 16px 10px 14px; border-radius: 16px; border: 2px solid var(--line2);
  background: #fff; cursor: pointer; text-align: center; transition: border-color .15s, background .15s, box-shadow .15s;
}
.mg-mode-tab__check {
  position: absolute; top: 10px; right: 10px; width: 20px; height: 20px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--line2); background: #fff; color: transparent; font-size: 11px;
}
.mg-mode-tab__ico-wrap {
  width: 44px; height: 44px; border-radius: 14px; display: flex; align-items: center; justify-content: center;
  background: #F1F5F9; color: #64748B; font-size: 21px;
}
.mg-mode-tab__label { font-size: 14px; font-weight: 900; color: var(--ink); word-break: keep-all; }
.mg-mode-tab__sub { font-size: 11.5px; font-weight: 700; color: #94A3B8; word-break: keep-all; }
.mg-mode-tab.is-buy, .mg-mode-tab.is-gift {
  border-color: var(--c); background: var(--soft); box-shadow: 0 0 0 3px rgba(97,30,250,.12);
}
.mg-mode-tab.is-buy .mg-mode-tab__check, .mg-mode-tab.is-gift .mg-mode-tab__check {
  border-color: var(--c); background: var(--c); color: #fff;
}
.mg-mode-tab.is-buy .mg-mode-tab__ico-wrap, .mg-mode-tab.is-gift .mg-mode-tab__ico-wrap {
  background: linear-gradient(135deg,#611EFA,#4A10D0); color: #fff;
}
.mg-mode-tab.is-gift .mg-mode-tab__ico-wrap { background: linear-gradient(135deg,#EC4899,#DB2777); }
.mg-mode-tab.is-gift { border-color: #EC4899; background: #FDF2F8; box-shadow: 0 0 0 3px rgba(236,72,153,.12); }
.mg-mode-tab.is-gift .mg-mode-tab__check { border-color: #EC4899; background: #EC4899; }
.mg-mode-body { margin-top: 12px; }
.mg-mode-selected {
  display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border-radius: 14px;
  background: var(--soft); border: 1px solid rgba(97,30,250,.18);
}
.mg-mode-selected__ico {
  flex-shrink: 0; width: 32px; height: 32px; border-radius: 10px; display: flex; align-items: center; justify-content: center;
  background: #fff; color: #5514E8; font-size: 16px;
}
.mg-mode-selected__text { min-width: 0; font-size: 12.5px; font-weight: 700; color: #334155; line-height: 1.6; word-break: keep-all; }
.mg-mode-selected__text strong { color: #4A10D0; font-weight: 900; white-space: nowrap; }
/* 입력 */
.mg-field-group { margin-bottom: 12px; min-width: 0; }
.mg-field-label {
  display: flex; align-items: center; gap: 6px; margin: 0 0 6px;
  font-size: 12px; font-weight: 800; color: #475569; word-break: keep-all;
}
.mg-field-label i { color: #611EFA; }
.mg-field-label .required { color: #EF4444; }
.mg-field-label--gift { font-size: 13px; color: var(--ink); }
.mg-field-label__ico {
  width: 26px; height: 26px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center;
  background: #FDF2F8; color: #DB2777; font-size: 14px;
}
.mg-field-label--gift .mg-field-label__ico i { color: #DB2777; }
.mg-input {
  width: 100%; min-height: 48px; padding: 0 14px; border-radius: 13px; border: 1.5px solid var(--line2);
  background: #fff; color: var(--ink); font-size: 15px; font-weight: 700; outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.mg-input:focus { border-color: var(--c); box-shadow: 0 0 0 3px rgba(97,30,250,.14); }
.mg-input[readonly] { background: #F8FAFC; color: #64748B; }
.mg-input--gift:focus { border-color: #EC4899; box-shadow: 0 0 0 3px rgba(236,72,153,.14); }
.mg-select {
  appearance: none; -webkit-appearance: none; padding-right: 38px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 16 16'><path fill='%2364748B' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/></svg>");
  background-repeat: no-repeat; background-position: right 14px center;
}
/* 안내 문구: flex 금지 — 텍스트 노드·<strong>·<a>가 각각 flex item으로 갈라져 모바일에서 세로 찢김.
   block + 아이콘 absolute 로 텍스트가 한 단락으로 흐르게 한다. */
.mg-field-tip {
  display: block; position: relative; padding-left: 19px; margin-top: 8px;
  font-size: 11.5px; font-weight: 700; color: #64748B; line-height: 1.6;
  word-break: keep-all; overflow-wrap: normal; text-align: left;
}
.mg-field-tip > i { position: absolute; left: 0; top: 2px; color: #611EFA; font-size: 13px; line-height: 1; }
.mg-field-tip strong { color: #4A10D0; white-space: nowrap; }
.mg-cms-acc-head {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
  gap: 6px 10px; margin-bottom: 6px;
}
.mg-cms-acc-head .mg-field-label { margin-bottom: 0; flex: 0 0 auto; }
.mg-cms-acc-warn {
  display: flex; align-items: center; gap: 5px; margin: 0; min-width: 0;
  padding: 4px 8px; border-radius: 8px; background: #FEF2F2; border: 1px solid #FECACA;
  color: #B91C1C; font-size: 12.5px; font-weight: 850; line-height: 1.35;
  word-break: keep-all; overflow-wrap: break-word;
}
.mg-cms-acc-warn > i { flex-shrink: 0; color: #DC2626; font-size: 13px; line-height: 1; }
.mg-cms-acc-warn > span { min-width: 0; }
.mg-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 480px) { .mg-2col { grid-template-columns: 1fr; gap: 10px; } }
/* CMS 출금 계좌 패널 */
.mg-cms-panel {
  margin-top: 12px; padding: 16px; border-radius: 16px;
  border: 1px solid rgba(97,30,250,.2); background: linear-gradient(145deg,#F8FBFF 0%,#FFFFFF 70%);
  animation: mgWizIn .22s ease;
}
.mg-cms-panel { display: flex; flex-direction: column; gap: 12px; }
.mg-cms-form:not([hidden]) { display: contents; }
.mg-cms-form[hidden] { display: none !important; }
#cmsRegView { order: 0; }
#cmsGuide { order: 1; }
.mg-cms-step--acc { order: 2; }
.mg-cms-step--rf { order: 3; }
#cmsKakaoTip { order: 4; }
.mg-cms-regdock { order: 5; }
.mg-cms-panel > .mg-cms-info {
  margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent;
}
.mg-cms-lead {
  display: flex; align-items: center; gap: 8px;
  margin: 0 0 10px; padding: 10px 12px; border-radius: 12px;
  background: #F8FAFC; border: 1px solid var(--line2);
  color: #334155; font-size: 13px; font-weight: 700; line-height: 1.5; word-break: keep-all;
}
.mg-cms-lead i { flex-shrink: 0; display: inline-flex; align-items: center; margin: 0; line-height: 1; color: var(--c); }
.mg-cms-lead span { min-width: 0; }
.mg-cms-lead b { color: var(--ink); }
.mg-cms-open {
  display: flex; align-items: center; gap: 12px;
  padding: 14px; border-radius: 16px;
  background: linear-gradient(180deg, #FFF7ED 0%, #FFFBEB 100%);
  border: 1px solid #FDBA74;
}
.mg-cms-open__mark {
  flex-shrink: 0; width: 52px; height: 52px; border-radius: 14px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: #fff; border: 1px solid #FED7AA; line-height: 1;
}
.mg-cms-open__body { flex: 1; min-width: 0; }
.mg-cms-open__body > strong {
  display: block; margin: 0 0 10px;
  color: #9A3412; font-size: 14px; font-weight: 850; line-height: 1.45; word-break: keep-all;
}
.mg-cms-open .mg-cms-info__stores { margin-top: 0; }
.mg-cms-step {
  padding: 16px; border-radius: 18px; background: #fff;
  border: 1px solid var(--line2); box-shadow: 0 8px 22px rgba(15,23,42,.04);
}
.mg-cms-step__hd { display: flex; align-items: center; gap: 8px; margin: 0 0 14px; }
.mg-cms-step__n {
  flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--c); color: #fff; font-size: 13px; font-weight: 900; line-height: 1;
}
.mg-cms-step__t { min-width: 0; font-size: 15px; font-weight: 900; color: var(--ink); letter-spacing: -.02em; word-break: keep-all; }
.mg-cms-step__once {
  flex-shrink: 0; margin-left: auto; display: inline-flex; align-items: center; height: 22px; padding: 0 8px;
  border-radius: 999px; background: #F5F3FF; color: #6D28D9; font-size: 11px; font-style: normal; font-weight: 800;
}
.mg-cms-step .mg-cms-rf { margin: 0; padding: 0; background: none; }
.mg-cms-step .mg-rf-form { margin: 0; padding: 18px 16px 16px; border: 0; background: transparent; box-shadow: none; }
.mg-cms-step .mg-rf-form__desc { margin: 0 0 14px; padding: 0; }
.mg-cms-step .mg-field-label { display: flex; align-items: center; gap: 6px; }
.mg-cms-step .mg-field-label i { flex-shrink: 0; display: inline-flex; align-items: center; margin: 0; line-height: 1; }
.mg-cms-step .mg-field-tip { display: block; padding-left: 36px; padding-right: 4px; }
.mg-cms-step .mg-field-tip > i { position: absolute; left: 16px; top: 2px; margin: 0; line-height: 1; }
.mg-cms-step .mg-rf-form .mg-field-tip { padding-left: 19px; padding-right: 0; }
.mg-cms-step .mg-rf-form .mg-field-tip > i { left: 0; }
.mg-cms-step__pair .mg-input { min-width: 0; }
.mg-cms-signline {
  display: flex; align-items: center; gap: 8px;
  margin: 0 0 12px; padding: 12px 14px; border-radius: 14px;
  background: #FFFBEB; border: 1px solid #FDE68A;
  color: #92400E; font-size: 13.5px; font-weight: 800; line-height: 1.45; word-break: keep-all;
}
.mg-cms-signline i { flex-shrink: 0; display: inline-flex; align-items: center; margin: 0; line-height: 1; color: #D97706; }
.mg-cms-signline > span:not(.mg-cms-kakao) { min-width: 0; flex: 1; }
.mg-cms-kakao {
  flex: 0 0 28px; width: 28px; height: 28px; min-width: 28px; max-width: 28px;
  border-radius: 50%; align-self: center;
  display: inline-flex; align-items: center; justify-content: center;
  background: #FEE500; color: #191919;
}
.mg-cms-kakao i { display: block; margin: 0; line-height: 1; font-size: 15px; color: #191919; }
.mg-cms-signck {
  flex: 0 0 22px; position: relative; width: 22px; height: 22px; margin-left: 8px;
  display: inline-flex; align-items: center; justify-content: center;
}
.mg-cms-signck input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.mg-cms-signck span {
  width: 20px; height: 20px; border-radius: 4px; border: 2px solid #94A3B8; background: #fff;
  display: inline-flex; align-items: center; justify-content: center;
}
.mg-cms-signck input:checked + span { background: var(--c); border-color: var(--c); }
.mg-cms-signck input:checked + span::after {
  content: ""; width: 5px; height: 9px; margin-top: -2px;
  border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.mg-cms-form__btn--sign {
  display: block; width: 100%; min-height: 52px; padding: 0; border: 0; overflow: hidden;
  background: var(--c);
}
.mg-cms-split { display: grid; grid-template-columns: 1.2fr .8fr; width: 100%; min-height: 52px; }
.mg-cms-split__l, .mg-cms-split__r {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  min-width: 0; padding: 8px 10px; color: #fff; font-size: 13.5px; font-weight: 850;
  line-height: 1.3; word-break: keep-all;
}
.mg-cms-split__l > span:last-child { min-width: 0; }
.mg-cms-split__r { border-left: 1px solid rgba(255,255,255,.35); }
.mg-cms-step .mg-cms-copy-open { margin-top: 10px; }
@media (max-width: 390px) {
  .mg-cms-split { grid-template-columns: 1fr; }
  .mg-cms-split__r { border-left: 0; border-top: 1px solid rgba(255,255,255,.35); }
  .mg-cms-split__l, .mg-cms-split__r { min-height: 46px; }
}
.mg-cms-doc {
  display: flex; align-items: center; gap: 10px; width: 100%;
  min-height: 58px; padding: 10px 12px; border-radius: 14px;
  border: 1px solid #FDBA74; background: #fff; text-align: left; cursor: pointer;
}
.mg-cms-doc > i {
  flex-shrink: 0; width: 36px; height: 36px; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  margin: 0; line-height: 1; background: #FFF7ED; color: #C2410C; font-size: 18px;
}
.mg-cms-doc__txt { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 2px; }
.mg-cms-doc__line { min-width: 0; display: flex; flex-direction: row; align-items: center; flex-wrap: wrap; gap: 6px; }
.mg-cms-doc b { font-size: 14px; font-weight: 850; color: var(--ink); line-height: 1.35; word-break: keep-all; text-decoration: none; }
.mg-cms-doc small { font-size: 12px; font-weight: 650; color: #64748B; line-height: 1.45; word-break: keep-all; text-decoration: none; }
.mg-cms-step__foot {
  display: flex; align-items: center; gap: 8px;
  margin: 12px 0 0; padding: 10px 12px; border-radius: 12px;
  background: #ECFDF5; color: #047857; font-size: 12.5px; font-weight: 750; line-height: 1.5; word-break: keep-all;
}
.mg-cms-step__foot i { flex-shrink: 0; display: inline-flex; align-items: center; margin: 0; line-height: 1; }
.mg-cms-step__foot span { min-width: 0; }
.mg-cms-regdock .mg-field-tip { display: block; padding-left: 36px; margin: 0 0 10px; }
.mg-cms-regdock .mg-field-tip > i { position: absolute; left: 16px; top: 2px; margin: 0; line-height: 1; }
.mg-cms-regdock .mg-cms-form__btn { margin-top: 0; }
#cmsKakaoTip.mg-cms-step { margin: 0; }
@media (max-width: 390px) {
  .mg-cms-open { flex-wrap: wrap; padding: 12px; }
  .mg-cms-open__body > strong { font-size: 13px; }
  .mg-cms-open .mg-cms-info__stores { display: flex; flex-wrap: wrap; }
  .mg-cms-step { padding: 14px 12px; }
  .mg-cms-step__t { font-size: 14px; }
  .mg-cms-doc small { font-size: 11.5px; }
}
.mg-cms-panel__head { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 14px; }
.mg-cms-panel__ico {
  flex-shrink: 0; width: 38px; height: 38px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg,#611EFA,#4A10D0); color: #fff; font-size: 18px;
}
.mg-cms-panel__title { font-size: 14px; font-weight: 900; color: var(--ink); }
.mg-cms-panel__desc { margin-top: 2px; font-size: 12px; font-weight: 700; color: #64748B; line-height: 1.55; word-break: keep-all; }
.mg-cms-reg__row {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px;
  border-radius: 14px; background: #fff; border: 1.5px solid #86EFAC;
}
.mg-cms-reg__ok { flex-shrink: 0; color: #16A34A; font-size: 22px; line-height: 1; }
.mg-cms-reg__body { flex: 1; min-width: 0; }
.mg-cms-reg__bank { font-size: 12px; font-weight: 800; color: #64748B; }
.mg-cms-reg__acc-row {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px; min-width: 0;
}
.mg-cms-reg__acc {
  flex: 0 1 auto; min-width: 0;
  font-size: 15px; font-weight: 900; color: var(--ink); letter-spacing: .02em;
  white-space: nowrap;
}
.mg-cms-reg__copy {
  flex-shrink: 0; min-height: 28px; padding: 0 10px; border-radius: 8px;
  border: 1.5px solid rgba(85,20,232,.35); background: #F6F2FF; color: #4A10D0;
  font-size: 12px; font-weight: 800; cursor: pointer; white-space: nowrap;
}
.mg-cms-reg__copy:hover { background: #E9E0FE; }
.mg-cms-reg__copy.is-done { color: #15803D; border-color: #86EFAC; background: #F0FDF4; }
.mg-cms-reg__holder { font-size: 12px; font-weight: 700; color: #475569; }
.mg-cms-reg__change {
  flex-shrink: 0; min-height: 36px; padding: 0 12px; border-radius: 10px; border: 1.5px solid var(--line2);
  background: #fff; color: #475569; font-size: 12px; font-weight: 800; cursor: pointer; white-space: nowrap;
}
.mg-cms-reg__change:hover { color: #4A10D0; border-color: rgba(97,30,250,.35); }
.mg-cms-reg__wait {
  display: flex; align-items: center; gap: 10px;
  margin: 10px 0 0; padding: 12px;
  border-radius: 14px; background: #FFF7ED; border: 1px solid #FDBA74; color: #9A3412;
}
.mg-cms-reg__wait[hidden] { display: none !important; }
.mg-cms-reg__wait-ico {
  flex-shrink: 0; width: 36px; height: 36px; border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  margin: 0; background: #FFEDD5; color: #C2410C;
}
.mg-cms-reg__wait-ico i {
  flex-shrink: 0; display: inline-flex; align-items: center; margin: 0; line-height: 1; font-size: 16px;
}
.mg-cms-reg__wait-copy { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.mg-cms-reg__wait-copy strong {
  font-size: 13.5px; font-weight: 800; line-height: 1.4; word-break: keep-all; color: #9A3412;
}
.mg-cms-reg__wait-copy span {
  min-width: 0; font-size: 13px; font-weight: 650; line-height: 1.45; word-break: keep-all; color: #7C2D12;
}
.mg-cms-reg__wait.is-bad { background: #FEF2F2; border-color: #FECACA; }
.mg-cms-reg__wait.is-bad .mg-cms-reg__wait-ico { background: #FEE2E2; color: #B91C1C; }
.mg-cms-reg__wait.is-bad .mg-cms-reg__wait-copy strong,
.mg-cms-reg__wait.is-bad .mg-cms-reg__wait-copy span { color: #991B1B; }
.mg-cms-form__btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; min-height: 50px; margin-top: 12px; border: 0; border-radius: 14px;
  background: linear-gradient(135deg,#611EFA,#5514E8); color: #fff; font-size: 14.5px; font-weight: 850; cursor: pointer;
  box-shadow: 0 10px 22px rgba(85,20,232,.20);
}
a.mg-cms-form__btn:link,
a.mg-cms-form__btn:visited,
a.mg-cms-form__btn:hover,
a.mg-cms-form__btn:focus,
a.mg-cms-form__btn:active {
  color: #fff;
  text-decoration: none;
}
a.mg-cms-reg__change {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
.mg-cms-form__btn:disabled { opacity: .6; cursor: wait; box-shadow: none; }
.mg-cms-form__btn.is-locked,
.mg-cms-form__btn.is-locked:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; pointer-events: none; }
.mg-cms-form__btn--sign {
  flex-direction: column;
  gap: 2px;
  min-height: 64px;
  padding: 8px 14px 9px;
  border: 5px solid #DDD4FE;
  border-radius: 16px;
  background: #5B35E0;
  box-shadow: none;
}
.mg-cms-regbtn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-width: 0;
}
.mg-cms-regbtn__t {
  font-size: 15px;
  font-weight: 850;
  line-height: 1.25;
  letter-spacing: -.02em;
}
.mg-cms-regbtn__s {
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -.02em;
  word-break: keep-all;
}
.mg-cms-regbtn__s u { text-decoration: underline; text-underline-offset: 2px; }
.mg-cms-rf {
  margin: 18px 0 2px;
  padding-top: 18px;
  background-image: radial-gradient(circle, #A78BFA 1.25px, transparent 1.4px);
  background-size: 10px 3px;
  background-repeat: repeat-x;
  background-position: left top;
}
.mg-cms-rf .mg-rf-form {
  padding: 18px 16px 16px;
  border: 1px solid #DDD6FE;
  background: #F5F3FF;
  box-shadow: none;
}
.mg-cms-rf .mg-rf-form__title i { color: #611EFA; }
.mg-cms-rf .mg-field-label i { flex-shrink: 0; display: inline-flex; align-items: center; margin: 0; line-height: 1; }
.mg-cms-rf__ok {
  display: flex; align-items: center; gap: 8px; margin: 12px 0 0;
  font-size: 13px; font-weight: 800; line-height: 1.5; color: #047857; word-break: keep-all;
}
.mg-cms-rf__ok[hidden] { display: none !important; }
.mg-cms-rf__ok i { flex-shrink: 0; display: inline-flex; align-items: center; margin: 0; line-height: 1; color: #16A34A; }
.mg-cms-rf__ok span { min-width: 0; }
.mg-cms-step--rf .mg-input:disabled { background: #f1f5f9; color: #0f172a; opacity: 1; -webkit-text-fill-color: #0f172a; cursor: not-allowed; }
.ui-layer-msg .mg-rf-chg { display: flex; align-items: center; gap: 12px; text-align: left; }
.ui-layer-msg .mg-rf-chg i {
  flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; margin: 0; border-radius: 14px;
  background: #F5F3FF; color: #611EFA; font-size: 20px; line-height: 1;
}
.ui-layer-msg .mg-rf-chg p {
  margin: 0; min-width: 0; font-size: 15px; font-weight: 800; line-height: 1.55; color: #0F172A; word-break: keep-all;
}
.mg-cms-form__status { display: none; margin-top: 10px; padding: 10px 12px; border-radius: 12px; font-size: 12px; font-weight: 750; word-break: keep-all; }
.mg-cms-form__status.is-wait { display: block; background: var(--soft); color: #4A10D0; }
.mg-cms-form__status.is-bad { display: block; background: #FEF2F2; color: #B91C1C; }
.mg-cms-form__status.is-ok { display: block; background: #ECFDF5; color: #047857; }
/* ── 결제단 CMS 안내 인포그래픽 (제목 → 4단계 카드 → 하단 3개 안내) ── */
.mg-cms-info {
  margin: 0 0 14px;
  padding: 18px 16px 14px;
  border: 1px solid var(--line2);
  border-radius: 16px;
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(97,30,250,.07) 0%, rgba(97,30,250,0) 55%),
    linear-gradient(180deg, #FBFCFE 0%, #fff 100%);
}
.mg-cms-info__head {
  margin: 0 0 14px;
  text-align: center;
}
.mg-cms-info__title {
  margin: 0 0 6px;
  color: #2A0878;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: -.02em;
  line-height: 1.3;
  word-break: keep-all;
}
.mg-cms-info__title em {
  color: #5514E8;
  font-style: normal;
}
.mg-cms-info__lead {
  margin: 0;
  color: #475569;
  font-size: 12.5px;
  font-weight: 650;
  line-height: 1.65;
  word-break: keep-all;
}
.mg-cms-info__lead strong { color: var(--ink); font-weight: 850; }
/* 4단계 카드 */
.mg-cms-info__steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
}
.mg-cms-info__step {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  padding: 26px 12px 14px;
  border: 1px solid var(--step-line, #E9E0FE);
  border-radius: 16px;
  background: linear-gradient(180deg, #fff 0%, var(--step-bg, #F6F2FF) 100%);
  text-align: center;
  box-shadow: 0 1px 2px rgba(15,23,42,.03);
}
.mg-cms-info__step.is-1 { --step-bg: #EAF1FF; --step-line: #C7D7FE; --step-num: #5514E8; --step-ico: #4A10D0; --step-ring: rgba(85,20,232,.14); }
.mg-cms-info__step.is-2 { --step-bg: #FFEFEF; --step-line: #FECACA; --step-num: #E11D48; --step-ico: #5514E8; --step-ring: rgba(225,29,72,.12); }
.mg-cms-info__step.is-3 { --step-bg: #FFF7CC; --step-line: #FDE68A; --step-num: #D97706; --step-ico: #191919; --step-ring: rgba(254,229,0,.45); }
.mg-cms-info__step.is-4 { --step-bg: #E8FBEF; --step-line: #BBF7D0; --step-num: #16A34A; --step-ico: #15803D; --step-ring: rgba(22,163,74,.14); }
/* 단계 사이 연결 화살표 (PC/태블릿 1행일 때만) */
.mg-cms-info__step:not(:last-child)::after {
  content: "\F285";
  font-family: "bootstrap-icons";
  position: absolute;
  top: 50%;
  right: -17px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  margin-top: -10px;
  border-radius: 50%;
  background: #fff;
  color: #94A3B8;
  font-size: 10px;
  font-weight: 900;
  box-shadow: 0 0 0 1px var(--line2), 0 2px 6px rgba(15,23,42,.08);
}
.mg-cms-info__num {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--step-num);
  color: #fff;
  font-size: 12.5px;
  font-weight: 900;
  box-shadow: 0 0 0 3px #fff, 0 4px 10px rgba(15,23,42,.12);
}
.mg-cms-info__ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin-bottom: 10px;
  border-radius: 18px;
  background: #fff;
  color: var(--step-ico);
  font-size: 26px;
  line-height: 1;
  box-shadow: 0 0 0 4px var(--step-ring), 0 8px 18px rgba(15,23,42,.08);
}
/* 카카오톡 말풍선 타일 */
.mg-cms-info__ico--talk { background: #fff; }
.mg-cms-info__talk {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 27px;
  border-radius: 10px;
  background: #FEE500;
  color: #191919;
  font-size: 10.5px;
  font-weight: 900;
  letter-spacing: .04em;
  line-height: 1;
  box-shadow: 0 2px 6px rgba(120,100,0,.18);
}
.mg-cms-info__talk::after {
  content: "";
  position: absolute;
  left: 7px;
  bottom: -5px;
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid #FEE500;
  transform: skewX(-18deg);
}
.mg-cms-info__st {
  display: block;
  margin-bottom: 5px;
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 900;
  line-height: 1.35;
  word-break: keep-all;
}
.mg-cms-info__desc {
  display: block;
  color: #475569;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.55;
  word-break: keep-all;
}
.mg-cms-info__warn {
  display: block;
  width: 100%;
  margin-top: 8px;
  padding: 6px 8px;
  border-radius: 8px;
  background: #fff;
  color: #DC2626;
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
  line-height: 1.45;
  word-break: keep-all;
  box-shadow: inset 0 0 0 1px #FECACA;
}
/* 하단 안내 (출금한도 · 안전거래) */
.mg-cms-info__notes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 10px;
}
.mg-cms-info__note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
  padding: 12px 12px 12px 11px;
  border: 1px solid var(--note-line, #E2E8F0);
  border-radius: 12px;
  background: var(--note-bg, #F8FAFC);
}
.mg-cms-info__note.is-info { --note-bg: #F6F2FF; --note-line: #DCCEFE; --note-ico-bg: #5514E8; }
.mg-cms-info__note.is-safe { --note-bg: #ECFDF3; --note-line: #BBF7D0; --note-ico-bg: #16A34A; }
.mg-cms-info__note-ico {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--note-ico-bg);
  color: #fff;
  font-size: 14px;
  line-height: 1;
  box-shadow: 0 0 0 3px #fff, 0 2px 6px rgba(15,23,42,.10);
}
.mg-cms-info__note-ico i { display: block; line-height: 1; }
.mg-cms-info__note-body { min-width: 0; padding-top: 3px; }
.mg-cms-info__note-t {
  display: block;
  margin-bottom: 2px;
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 900;
  line-height: 1.35;
  word-break: keep-all;
}
.mg-cms-info__note-d {
  display: block;
  color: #475569;
  font-size: 11.5px;
  font-weight: 650;
  line-height: 1.55;
  word-break: keep-all;
}
.mg-cms-info__note-d b { color: var(--ink); font-weight: 900; }
/* 경남은행 앱 다운로드 카드 */
.mg-cms-info__app {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  margin: 2px 0 10px;
  padding: 16px 16px 15px;
  overflow: hidden;
  border-radius: 16px;
  border: 1.5px solid #F97316;
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(249,115,22,.20) 0%, rgba(249,115,22,0) 55%),
    linear-gradient(180deg, #FFF7ED 0%, #fff 72%);
  box-shadow: 0 0 0 4px rgba(249,115,22,.16), 0 10px 22px rgba(194,65,12,.16);
  animation: mgCmsAppGlow 2.4s ease-in-out infinite;
}
.mg-cms-info__app::after {
  content: "";
  position: absolute;
  top: -40%;
  left: -30%;
  width: 42%;
  height: 180%;
  background: linear-gradient(105deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.55) 48%, rgba(255,255,255,0) 100%);
  transform: skewX(-18deg);
  pointer-events: none;
  animation: mgCmsAppShine 3.2s ease-in-out infinite;
}
@keyframes mgCmsAppGlow {
  0%, 100% { box-shadow: 0 0 0 4px rgba(249,115,22,.14), 0 10px 22px rgba(194,65,12,.14); }
  50% { box-shadow: 0 0 0 7px rgba(249,115,22,.28), 0 14px 28px rgba(220,38,38,.18); }
}
@keyframes mgCmsAppShine {
  0% { transform: translateX(-40%) skewX(-18deg); opacity: 0; }
  18% { opacity: .9; }
  42% { transform: translateX(280%) skewX(-18deg); opacity: 0; }
  100% { transform: translateX(280%) skewX(-18deg); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .mg-cms-info__app { animation: none; }
  .mg-cms-info__app::after { animation: none; display: none; }
}
.mg-cms-info__app-mark {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 15px;
  background: linear-gradient(160deg, #FB923C 0%, #EA580C 62%, #DC2626 100%);
  color: #fff;
  box-shadow: 0 6px 14px rgba(220,38,38,.28), inset 0 0 0 1px rgba(255,255,255,.22);
}
.mg-cms-info__app-bnk {
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .04em;
  line-height: 1;
}
.mg-cms-info__app-bank {
  margin-top: 3px;
  font-size: 8.5px;
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1;
  opacity: .92;
  white-space: nowrap;
}
.mg-cms-info__app-body { flex: 1 1 auto; min-width: 0; }
.mg-cms-info__app-t {
  display: block;
  color: #C2410C;
  font-size: 15px;
  font-weight: 900;
  line-height: 1.3;
  word-break: keep-all;
}
.mg-cms-info__app-d {
  display: block;
  margin-top: 2px;
  color: #475569;
  font-size: 11.5px;
  font-weight: 650;
  line-height: 1.5;
  word-break: keep-all;
}
.mg-cms-info__stores {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
/* 스토어 배지: 흰 바탕 · 얇은 테두리 · 아이콘 + 2줄 텍스트 (공식 배지 형태) */
.mg-cms-info__store {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  flex-shrink: 0;
  min-height: 42px;
  padding: 5px 15px 5px 11px;
  border-radius: 12px;
  border: 1px solid #D7E6E2;
  background: #fff;
  color: #0F172A;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 1px 2px rgba(15,23,42,.04), 0 4px 12px rgba(0,122,108,.06);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.mg-cms-info__store:hover {
  color: #0F172A;
  text-decoration: none;
  transform: translateY(-1px);
  border-color: #EA580C;
  box-shadow: 0 1px 2px rgba(15,23,42,.04), 0 8px 18px rgba(234,88,12,.16);
}
.mg-cms-info__store:focus-visible { outline: 3px solid rgba(15,118,110,.35); outline-offset: 2px; }
.mg-cms-info__store-ico {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  line-height: 1;
}
.mg-cms-info__store-ico i { font-size: 22px; line-height: 1; }
.mg-cms-info__store.is-play .mg-cms-info__store-ico i { color: #01875F; }
.mg-cms-info__store.is-ios .mg-cms-info__store-ico i { color: #0F172A; font-size: 24px; margin-top: -2px; }
.mg-cms-info__store-txt {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
}
.mg-cms-info__store-txt small {
  color: #64748B;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .03em;
  line-height: 1.1;
}
.mg-cms-info__store-txt strong {
  color: #0F172A;
  font-size: 13.5px;
  font-weight: 900;
  letter-spacing: -.01em;
  line-height: 1.2;
}
/* 브랜드 문구 */
.mg-cms-info__foot-t {
  margin: 0;
  padding-top: 10px;
  border-top: 1px dashed var(--line2);
  color: #64748B;
  font-size: 11.5px;
  font-weight: 650;
  text-align: center;
  word-break: keep-all;
}
.mg-cms-info__brand {
  color: #5514E8;
  font-weight: 900;
  letter-spacing: -.01em;
}
.mg-cms-next {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 14px;
  padding: 16px 16px 14px;
  border: 1px solid #FDE68A;
  border-radius: 16px;
  background: linear-gradient(180deg, #FFFDF3 0%, #FFFBEB 100%);
  box-shadow: 0 8px 20px rgba(250,204,21,.12);
}
.mg-cms-next[hidden] { display: none !important; }
#cmsKakaoTip.mg-cms-next {
  margin-top: 0; gap: 0;
  border: 1px solid var(--line2); border-radius: 18px;
  background: #fff; box-shadow: 0 8px 22px rgba(15,23,42,.04);
}
.mg-cms-next__top {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.mg-cms-next__ico {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #FEE500;
  color: #191919;
  font-size: 14px;
  box-shadow: 0 0 0 3px rgba(254,229,0,.28);
}
.mg-cms-next__head {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
}
.mg-cms-next__title {
  margin: 0;
  color: #191919;
  font-size: 15px;
  font-weight: 900;
  line-height: 1.4;
  letter-spacing: -.02em;
  word-break: keep-all;
}
.mg-cms-next__once {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #111827;
  color: #FFFBEB;
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
  letter-spacing: -.01em;
  white-space: nowrap;
}
.mg-cms-next__lead {
  margin: 0;
  color: #3F3F46;
  font-size: 13.5px;
  font-weight: 650;
  line-height: 1.65;
  word-break: keep-all;
}
.mg-cms-next__lead b { color: #191919; font-weight: 850; }
.mg-cms-next__docs {
  margin: 4px 0 0;
  color: #E11D48;
  font-size: 16.5px;
  font-weight: 900;
  line-height: 1.45;
  letter-spacing: -.03em;
  word-break: keep-all;
}
.mg-cms-next__docs span {
  color: #BE123C;
  font-weight: 850;
}
.mg-cms-next__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.mg-cms-next__list--notice {
  margin: 10px 0 0;
}
.mg-cms-next__list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid #F3E8C8;
  border-radius: 12px;
  background: #fff;
  cursor: default;
}
.mg-cms-next__n {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  border-radius: 50%;
  background: #FFF7CC;
  color: #B45309;
  font-size: 12px;
  font-weight: 900;
}
.mg-cms-next__li {
  flex: 1 1 auto;
  min-width: 0;
  color: #1F2937;
  font-size: 13.5px;
  font-weight: 800;
  line-height: 1.55;
  word-break: keep-all;
}
.mg-cms-next__hint {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}
.mg-cms-next__hint-t {
  flex: 1 1 auto;
  min-width: 0;
  color: #C2410C;
  font-size: 14px;
  font-weight: 850;
  line-height: 1.5;
  word-break: keep-all;
}
.mg-cms-next__hint-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 6px 10px;
  border: 1px solid #FB923C;
  border-radius: 999px;
  background: #FFF7ED;
  color: #C2410C;
  font-size: 12.5px;
  font-weight: 850;
  line-height: 1.3;
  letter-spacing: -.02em;
  word-break: keep-all;
  white-space: nowrap;
  cursor: pointer;
}
.mg-cms-next__hint-btn:hover {
  background: #FFEDD5;
}
.mg-cms-next__doc {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 6px 10px;
  border: 1px solid #FB923C;
  border-radius: 999px;
  background: #FFF7ED;
  color: #C2410C;
  font-size: 12.5px;
  font-weight: 850;
  line-height: 1.3;
  letter-spacing: -.02em;
  word-break: keep-all;
  white-space: nowrap;
  font-family: inherit;
  cursor: pointer;
}
.mg-cms-next__doc:hover {
  background: #FFF7ED;
  cursor: pointer;
}
.mg-cms-next__hint-btn,
.mg-cms-next__doc {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  animation: mgCmsDocGlow 1.05s ease-in-out infinite;
}
.mg-cms-next__hint-btn::after,
.mg-cms-next__doc::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -40%;
  width: 46%;
  height: 200%;
  background: linear-gradient(105deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.95) 46%, rgba(254,249,195,.35) 54%, rgba(255,255,255,0) 100%);
  transform: skewX(-18deg);
  pointer-events: none;
  animation: mgCmsDocShine 1.35s ease-in-out infinite;
}
@keyframes mgCmsDocGlow {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(251,146,60,0), 0 0 0 0 rgba(250,204,21,0);
    border-color: #FB923C;
    background: #FFF7ED;
  }
  50% {
    box-shadow: 0 0 0 4px rgba(251,146,60,.5), 0 0 18px 2px rgba(250,204,21,.95);
    border-color: #F59E0B;
    background: #FEF3C7;
  }
}
@keyframes mgCmsDocShine {
  0% { transform: translateX(-30%) skewX(-18deg); opacity: 0; }
  12% { opacity: 1; }
  38% { transform: translateX(320%) skewX(-18deg); opacity: 0; }
  100% { transform: translateX(320%) skewX(-18deg); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .mg-cms-next__hint-btn,
  .mg-cms-next__doc { animation: none; }
  .mg-cms-next__hint-btn::after,
  .mg-cms-next__doc::after { animation: none; display: none; }
}
.mg-cms-copy-open {
  align-self: flex-start;
  margin-top: 8px;
  max-width: 100%;
  white-space: normal;
  word-break: keep-all;
}
.mg-cms-copy-layer {
  position: fixed;
  inset: 0;
  z-index: 10070;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(15,23,42,.58);
  backdrop-filter: blur(6px);
}
.mg-cms-copy-layer.is-open { display: flex; }
.mg-cms-copy-layer[hidden] { display: none !important; }
.mg-cms-copy-layer__card {
  display: flex;
  flex-direction: column;
  width: min(94vw, 440px);
  max-height: min(92vh, 860px);
  overflow: hidden;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 28px 80px rgba(15,23,42,.25);
}
.mg-cms-copy-layer__head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px 10px;
}
.mg-cms-copy-layer__head strong {
  flex: 1 1 auto;
  min-width: 0;
  color: var(--ink);
  font-size: 15px;
  font-weight: 900;
  line-height: 1.4;
  letter-spacing: -.02em;
  word-break: keep-all;
}
.mg-cms-copy-layer__x {
  flex-shrink: 0;
  min-height: 34px;
  padding: 6px 12px;
  border: 0;
  border-radius: 999px;
  background: #111827;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}
.mg-cms-copy-layer__body {
  overflow: auto;
  padding: 0 12px 16px;
  -webkit-overflow-scrolling: touch;
}
.mg-cms-copy-layer__body img {
  display: block;
  width: 100%;
  height: auto;
}
.mg-cms-copy-layer__body img[hidden] { display: none !important; }
.mg-cms-copy-layer__shot {
  border-radius: 16px;
  border: 1px solid #dbe4f0;
  box-shadow: 0 12px 28px rgba(15,23,42,.1);
  background: #f8fafc;
}
.mg-cms-copy-layer__txt {
  margin: 10px 0 0;
  padding: 10px 12px;
  border-radius: 12px;
  background: #eff6ff;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.55;
  color: #1e3a8a;
  word-break: keep-all;
}
.mg-cms-only {
  display: inline;
  padding: 1px 6px;
  border-radius: 6px;
  background: #1d4ed8;
  color: #fff;
  font-weight: 850;
  word-break: keep-all;
}
.mg-cms-doc__go {
  color: var(--ink);
  font-weight: 850;
  text-decoration: none;
}
button.mg-cms-next__hint-btn.mg-cms-copy-open {
  white-space: normal;
  max-width: 100%;
  text-align: center;
}
.mg-cms-next__foot {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 10px 12px;
  border-radius: 12px;
  background: #ECFDF5;
  color: #047857;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.6;
  word-break: keep-all;
}
.mg-cms-next__foot i {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  margin: 0;
  font-size: 16px;
  line-height: 1;
  color: #059669;
}
.mg-cms-next__foot span {
  flex: 1 1 auto;
  min-width: 0;
  word-break: keep-all;
}
@media (max-width: 390px) {
  .mg-cms-next { padding: 14px 12px 12px; gap: 10px; }
  .mg-cms-next__title { font-size: 14px; }
  .mg-cms-next__lead,
  .mg-cms-next__li { font-size: 13px; }
  .mg-cms-next__docs { font-size: 15.5px; }
  .mg-cms-next__list li { padding: 9px 10px; }
  .mg-cms-next__foot { font-size: 12.5px; }
  .mg-cms-next__hint {
    flex-direction: column;
    align-items: stretch;
  }
  .mg-cms-next__hint-t { font-size: 13.5px; }
  .mg-cms-next__hint-btn {
    width: 100%;
    white-space: normal;
  }
  .mg-cms-copy-layer { padding: 10px; }
  .mg-cms-copy-layer__card { width: min(96vw, 440px); max-height: 92vh; }
  .mg-cms-copy-layer__head { padding: 12px 12px 8px; }
  .mg-cms-copy-layer__head strong { font-size: 14px; }
}
.mg-spin {
  display: inline-block; width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.45); border-top-color: #fff; animation: mgSpin .8s linear infinite; vertical-align: -3px; margin-right: 4px;
}
@keyframes mgSpin { to { transform: rotate(360deg); } }
.mg-block-notice {
  display: flex; align-items: flex-start; gap: 10px; margin: 0 0 14px; padding: 14px 16px;
  border-radius: 16px; background: #FEF2F2; border: 1px solid #FECACA; color: #991B1B;
  font-size: 13px; font-weight: 750; line-height: 1.6; word-break: keep-all;
}
.mg-block-notice i { flex-shrink: 0; font-size: 20px; color: #DC2626; }
/* 3단계 안전확인 강조 */
.mg-inline-safe .hx-safe-question__confirm i { color: #5514E8; flex-shrink: 0; margin-top: 2px; }
/* FDS 레이어 */
.mg-fds-layer, .mg-prep-layer {
  position: fixed; inset: 0; z-index: 10060; display: none; align-items: center; justify-content: center; padding: 16px;
  background: rgba(15,23,42,.58); backdrop-filter: blur(6px);
}
.mg-fds-layer.is-open, .mg-prep-layer.is-open { display: flex; }
.mg-fds-card {
  width: min(94vw, 440px); background: #fff; border-radius: 22px; overflow: hidden;
  box-shadow: 0 28px 80px rgba(15,23,42,.25);
}
.mg-fds-card__head { display: flex; align-items: center; gap: 12px; padding: 20px 22px 12px; }
.mg-fds-card__ico {
  flex-shrink: 0; width: 46px; height: 46px; border-radius: 14px; display: flex; align-items: center; justify-content: center;
  background: #FEF2F2; color: #DC2626; font-size: 22px;
}
.mg-fds-layer.is-monitor .mg-fds-card__ico { background: #FFFBEB; color: #D97706; }
.mg-fds-layer.is-guide .mg-fds-card__ico { background: var(--soft); color: #5514E8; }
.mg-fds-card__title { font-size: 17px; font-weight: 900; color: var(--ink); word-break: keep-all; }
.mg-fds-card__body { padding: 0 22px 8px; }
.mg-fds-card__msg { font-size: 13.5px; font-weight: 700; color: #334155; line-height: 1.7; word-break: keep-all; }
.mg-fds-card__until {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; padding: 6px 10px; border-radius: 999px;
  background: #F1F5F9; color: #475569; font-size: 12px; font-weight: 800;
}
.mg-fds-card__actions { padding: 12px 22px 22px; }
.mg-fds-card__actions .mg-pay-next { margin-top: 0; }
.mg-fds-layer.is-block .mg-fds-card__actions .mg-pay-next { background: linear-gradient(135deg,#475569,#334155); box-shadow: none; }
.mg-fds-layer { align-items: center; padding: 12px; padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px)); overflow: hidden; box-sizing: border-box; }
.mg-fds-card { max-height: calc(100vh - 24px - env(safe-area-inset-bottom, 0px)); max-height: calc(100dvh - 24px - env(safe-area-inset-bottom, 0px)); min-height: 0; display: flex; flex-direction: column; overflow: hidden; }
.mg-fds-card__head { flex-shrink: 0; }
.mg-fds-card__title { min-width: 0; line-height: 1.35; }
.mg-fds-card__body { flex: 1 1 auto; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.mg-fds-card__actions { flex-shrink: 0; }
/* 결제차단 품절 안내 */
.mg-soldout-layer {
  position: fixed; inset: 0; z-index: 10070; display: none; align-items: center; justify-content: center;
  padding: 16px; background: rgba(15,39,86,.46); backdrop-filter: blur(10px);
}
.mg-soldout-layer.is-open { display: flex; }
.mg-soldout-card {
  width: min(92vw, 420px); max-height: min(86vh, 640px); min-width: 0;
  display: flex; flex-direction: column; position: relative;
  background: #fff; border-radius: 24px; overflow: hidden;
  border: 1px solid rgba(200,176,253,.45);
  box-shadow: 0 28px 70px rgba(61,14,190,.22);
}
.mg-soldout-card::before {
  content: ""; display: block; height: 3px; flex-shrink: 0;
  background: linear-gradient(90deg,#A078FC,#5514E8 55%,#4A10D0);
}
.mg-soldout-card__head {
  display: flex; flex-direction: column; align-items: flex-start; gap: 10px;
  padding: 22px 24px 16px;
  background: linear-gradient(180deg,#F6F2FF 0%, #fff 88%);
  border-bottom: 1px solid #E9E0FE;
}
.mg-soldout-card__ico {
  flex-shrink: 0; width: 46px; height: 46px; border-radius: 15px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(160deg,#611EFA,#4A10D0); color: #fff; font-size: 22px;
  box-shadow: 0 8px 18px rgba(85,20,232,.28);
}
.mg-soldout-card__tag {
  display: inline-flex; align-items: center; height: 22px; padding: 0 9px;
  border-radius: 999px; background: #E9E0FE; color: #4A10D0;
  font-size: 11px; font-weight: 800; letter-spacing: .04em; word-break: keep-all;
}
.mg-soldout-card__title {
  margin: 0; width: 100%; min-width: 0;
  font-size: 18px; font-weight: 900; color: #2A0878; letter-spacing: -.03em;
  line-height: 1.4; word-break: keep-all; overflow-wrap: normal;
}
.mg-soldout-card__body {
  flex: 1 1 auto; min-width: 0; min-height: 0; overflow-y: auto;
  padding: 18px 24px 10px;
}
.mg-soldout-card__body p {
  margin: 0 0 11px; font-size: 14px; font-weight: 600; color: #475569;
  line-height: 1.8; word-break: keep-all; overflow-wrap: normal;
}
.mg-soldout-card__body p:last-of-type { margin-bottom: 0; }
.mg-soldout-card__until {
  display: flex; align-items: center; gap: 8px; margin-top: 14px;
  padding: 10px 12px; border-radius: 12px; background: #F6F2FF; color: #3D0EBE;
  font-size: 13px; font-weight: 800; line-height: 1.5; word-break: keep-all;
}
.mg-soldout-card__until i {
  flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center;
  margin: 0; line-height: 1; color: #5514E8;
}
.mg-soldout-card__until span { min-width: 0; flex: 1 1 auto; word-break: keep-all; overflow-wrap: normal; }
.mg-soldout-card__actions {
  display: flex; flex-direction: column; gap: 8px;
  padding: 14px 24px 22px; background: #F8FBFF;
}
.mg-soldout-btn {
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; width: 100%; min-height: 48px; padding: 0 16px;
  border-radius: 14px; font-size: 15px; font-weight: 850;
  text-decoration: none; word-break: keep-all; cursor: pointer;
}
.mg-soldout-btn--ok {
  border: 0; color: #fff;
  background: linear-gradient(135deg,#611EFA,#4A10D0);
  box-shadow: 0 10px 22px rgba(85,20,232,.26);
}
.mg-soldout-btn--cs {
  border: 1px solid #DCCEFE; color: #4A10D0; background: #fff;
}
@media (max-width: 390px) {
  .mg-soldout-layer { padding: 12px; }
  .mg-soldout-card { width: min(100%, 390px); border-radius: 20px; }
  .mg-soldout-card__head, .mg-soldout-card__body, .mg-soldout-card__actions { padding-left: 18px; padding-right: 18px; }
  .mg-soldout-card__title { font-size: 17px; }
  .mg-soldout-card__body p { font-size: 13.5px; }
}
/* 결제 준비 레이어 */
.mg-prep-card {
  width: min(92vw, 380px); padding: 30px 24px 26px; text-align: center; background: #fff; border-radius: 24px;
  box-shadow: 0 28px 80px rgba(15,23,42,.25);
}
.mg-prep-ring { position: relative; width: 84px; height: 84px; margin: 0 auto 18px; }
.mg-prep-ring__spin {
  position: absolute; inset: 0; border-radius: 50%; border: 4px solid #E9E0FE; border-top-color: #5514E8;
  animation: mgSpin 1s linear infinite;
}
.mg-prep-ring__core {
  position: absolute; inset: 12px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg,#611EFA,#4A10D0); color: #fff; font-size: 26px;
}
.mg-prep-card__title { font-size: 17px; font-weight: 900; color: var(--ink); letter-spacing: -.02em; word-break: keep-all; }
.mg-prep-card__msg { margin-top: 8px; font-size: 13px; font-weight: 700; color: #64748B; line-height: 1.65; word-break: keep-all; }
/* 지문 인증 페이지 (checkout_auth) */
.mg-auto-thumb {
  display: flex; align-items: center; gap: 16px; margin: 0 0 16px; padding: 18px 20px; text-align: left;
  background: #fff; border: 1px solid var(--line2); border-radius: 20px; box-shadow: 0 8px 24px rgba(15,23,42,.04);
}
.mg-auto-thumb__ico {
  flex-shrink: 0; width: 52px; height: 52px; margin: 0; border-radius: 16px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg,#611EFA,#4A10D0); color: #fff; font-size: 24px; box-shadow: 0 10px 22px rgba(85,20,232,.24);
}
.mg-auto-thumb__body { flex: 1 1 auto; min-width: 0; }
.mg-auto-thumb__title { font-size: 16px; font-weight: 900; color: var(--ink); letter-spacing: -.02em; word-break: keep-all; }
.mg-auto-thumb__desc { margin: 5px 0 0; font-size: 13px; font-weight: 700; color: #64748B; line-height: 1.55; word-break: keep-all; }
.mg-auto-thumb__actions { flex-shrink: 0; display: flex; flex-direction: column; gap: 8px; width: 220px; }
.mg-auto-thumb .mg-pay-next--auth {
  width: 100%; max-width: none; margin: 0; display: flex; align-items: center; justify-content: center; gap: 8px;
}
.mg-auto-thumb .mg-pay-ghost { width: 100%; max-width: none; margin: 0; }
.mg-kv { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.mg-kv:last-of-type { border-bottom: 0; }
.mg-kv__k { flex-shrink: 0; font-size: 12.5px; font-weight: 800; color: #64748B; }
.mg-kv__v { min-width: 0; text-align: right; font-size: 13.5px; font-weight: 800; color: var(--ink); word-break: keep-all; }
.mg-kv__v--code { font-family: 'Roboto', monospace; letter-spacing: .02em; word-break: break-all; }
.mg-kv__v--amt { font-size: 17px; font-weight: 900; color: #4A10D0; white-space: nowrap; }
/* P2P 지문 박스 CTA */
.hx-thumb-ask__cta { margin-top: 18px; }
.hx-thumb-alt { margin-top: 8px; }
.hx-thumb-alt__div {
  display: flex; align-items: center; gap: 10px; margin: 20px 0 16px;
  color: #94A3B8; font-size: 11px; font-weight: 800; letter-spacing: .04em;
}
.hx-thumb-alt__div::before, .hx-thumb-alt__div::after { content: ""; flex: 1 1 auto; height: 1px; background: #E2E8F0; }
.hx-thumb-alt__box { padding: 18px 14px 16px; border-radius: 16px; background: #F8FAFC; border: 1px dashed #CBD5E1; }
.hx-thumb-dl-lead {
  margin: 0 0 14px; text-align: center; font-size: 13px; font-weight: 800; color: #64748B;
  letter-spacing: -.02em; word-break: keep-all; line-height: 1.55;
}
.hx-thumb-dl {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; min-height: 54px; padding: 13px 16px; border-radius: 18px; cursor: pointer;
  border: 2px solid #5514E8; background: #fff; color: #4A10D0; font-size: 15px; font-weight: 900; letter-spacing: -.02em;
  transition: background .15s, transform .15s;
}
.hx-thumb-dl i { font-size: 20px; flex-shrink: 0; }
.hx-thumb-dl:hover { background: var(--soft); transform: translateY(-1px); }
.hx-thumb-go i { font-size: 22px; }
.hx-thumb-install-guide {
  margin-top: 14px; padding: 14px 15px; border: 1px solid rgba(85,20,232,.16); border-radius: 14px;
  background: linear-gradient(135deg,#FFFFFF,#F8FAFF);
}
.hx-thumb-install-guide__title { display: flex; align-items: center; gap: 7px; margin-bottom: 5px; color: var(--ink); font-size: 13px; font-weight: 900; }
.hx-thumb-install-guide__title i { color: #5514E8; font-size: 15px; }
.hx-thumb-install-guide__lead { color: var(--muted); font-size: 12.5px; line-height: 1.6; word-break: keep-all; }
.hx-thumb-install-steps { display: grid; gap: 7px; margin-top: 11px; }
.hx-thumb-store { display: grid; grid-template-columns: 1fr; gap: 10px; width: 100%; max-width: 320px; margin: 14px auto 0; }
.hx-thumb-store__row { display: grid; grid-template-columns: minmax(0,1fr) 48px; align-items: stretch; gap: 9px; }
.hx-thumb-store .hx-thumb-store__btn {
  display: block; min-height: 56px; border-radius: 11px; overflow: hidden; text-decoration: none; line-height: 0;
  border: 1px solid rgba(15,23,42,.10); background: #111827; box-shadow: 0 6px 16px rgba(15,23,42,.14);
  transition: transform .15s, box-shadow .15s;
}
.hx-thumb-store .hx-thumb-store__btn:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(15,23,42,.20); }
.hx-thumb-store .hx-thumb-store__download {
  display: flex; align-items: center; justify-content: center; min-height: 48px; border-radius: 11px;
  background: linear-gradient(135deg,#611EFA,#4A10D0); color: #fff; box-shadow: 0 6px 16px rgba(74,16,208,.25); border: 0;
}
.hx-thumb-store .hx-thumb-store__download i { font-size: 24px; }
.hx-thumb-app-notice {
  display: flex; align-items: center; justify-content: center; gap: 9px; min-height: 46px; margin-top: 16px;
  padding: 8px 12px; border-radius: 12px; border: 1px solid rgba(97,30,250,.30); background: #fff;
  text-decoration: none; font-size: 12.5px; font-weight: 800; word-break: keep-all;
}
.hx-thumb-app-notice__badge { color: #fff; background: #EF4444; border-radius: 7px; padding: 4px 7px; white-space: nowrap; font-size: 11px; }
.hx-thumb-app-notice__text { color: #4A10D0; }
.hx-thumb-status { padding: 10px 12px; border-radius: 12px; background: #fff; border: 1px solid var(--line2); word-break: keep-all; }
.hx-thumb-status.is-ok { background: #ECFDF5; border-color: #A7F3D0; color: #047857; }
.hx-thumb-status.is-bad { background: #FEF2F2; border-color: #FECACA; color: #B91C1C; }
/* CMS 결과 */
.mg-done {
  padding: 28px 22px 22px; text-align: center; border-radius: 22px; margin: 0 0 14px;
  background: #fff; border: 1px solid var(--line2); box-shadow: 0 8px 24px rgba(15,23,42,.04);
}
.mg-done__ico {
  width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 20px; display: flex; align-items: center; justify-content: center;
  font-size: 30px; color: #fff; background: linear-gradient(135deg,#22C55E,#15803D); box-shadow: 0 12px 28px rgba(22,163,74,.28);
}
.mg-done.is-wait .mg-done__ico { background: linear-gradient(135deg,#F59E0B,#D97706); box-shadow: 0 12px 28px rgba(217,119,6,.28); }
.mg-done__title { margin: 0; font-size: 20px; font-weight: 900; color: var(--ink); letter-spacing: -.03em; word-break: keep-all; }
.mg-done__desc { margin: 10px 0 0; font-size: 13px; font-weight: 700; color: #64748B; line-height: 1.7; word-break: keep-all; }
.mg-done__desc strong { color: #4A10D0; }
.mg-done__desc--kakao {
  display: flex; align-items: center; gap: 12px; text-align: left;
  margin: 18px 0 0; padding: 16px 16px;
  border-radius: 16px; background: #FFF3B0; border: 2px solid #F5C518;
  box-shadow: 0 6px 16px rgba(245,197,24,.22);
  font-size: 16px; font-weight: 800; color: #3F2E00; line-height: 1.65;
}
.mg-done__desc-ico {
  flex-shrink: 0; width: 42px; height: 42px; margin: 0; line-height: 1;
  border-radius: 50%; background: #FEE500; color: #191919;
  display: inline-flex; align-items: center; justify-content: center; font-size: 22px;
}
.mg-done__desc-ico i { margin: 0; line-height: 1; }
.mg-done__desc-txt { min-width: 0; word-break: keep-all; }
.mg-done__status {
  display: inline-flex; align-items: center; margin-top: 16px; padding: 8px 16px; border-radius: 999px;
  background: var(--soft); color: #4A10D0; font-size: 14px; font-weight: 900;
}
.mg-done__actions { display: flex; flex-direction: column; gap: 10px; margin-top: 6px; }
.mg-done__actions .mg-pay-next { margin-top: 0; display: flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; }
.mg-pay-card--note { background: #F8FAFC; }
.mg-note-list { margin: 0; padding-left: 18px; color: #475569; font-size: 12.5px; font-weight: 700; line-height: 1.7; word-break: keep-all; }
.mg-note-list li + li { margin-top: 4px; }
.mg-note-list strong { color: #4A10D0; }
@media (max-width: 390px) {
  .mg-mode-tabs { grid-template-columns: 1fr 1fr; gap: 8px; }
  .mg-mode-tab { min-height: 100px; padding: 14px 8px 12px; }
  .mg-mode-tab__label { font-size: 13px; }
  .mg-cms-reg__row { flex-wrap: wrap; }
  .mg-cms-reg__change { flex-basis: 100%; }
  .mg-kv { flex-direction: column; gap: 2px; }
  .mg-kv__v { text-align: left; }
  .mg-pay-opt { grid-template-columns: 20px minmax(0,1fr); }
  .mg-pay-opt__ico { display: none; }
}

/* ========== CHECKOUT ONE-PAGE (2026-09-12b · P2P pin2p_buy_sub 동일: 상품권 + 수령정보 + 결제수단 + 안전동의를 한 화면에, 단계 구분 없음) ========== */
body.mg-co-page { background: #F8FAFC; }
/* 상단 히어로 바 (P2P hx-page-hero) */
.mg-co-hero { background: #fff; border-bottom: 1px solid var(--line); }
.mg-co-hero__bar {
  max-width: 1180px; margin: 0 auto; padding: 11px 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.mg-co-hero__left { display: flex; align-items: center; gap: 9px; min-width: 0; flex: 1; }
.mg-co-hero__tag {
  display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 10px; border-radius: 999px;
  background: var(--soft); border: 1px solid rgba(97,30,250,.22); color: #4A10D0;
  font-size: 10px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; flex-shrink: 0;
}
.mg-co-hero__title { margin: 0; min-width: 0; font-size: 15px; font-weight: 800; color: var(--ink); line-height: 24px; word-break: keep-all; }
.mg-co-hero__title .brand { color: #4A10D0; }
.mg-co-crumb { display: flex; align-items: center; gap: 6px; flex-shrink: 0; font-size: 12px; color: #94A3B8; }
.mg-co-crumb a { color: #64748B; font-weight: 600; text-decoration: none; white-space: nowrap; }
.mg-co-crumb a:hover { color: #4A10D0; }
.mg-co-crumb i { font-size: 10px; }
.mg-co-crumb span { color: #4A10D0; font-weight: 700; white-space: nowrap; }
/* 레이아웃 */
.mg-co-wrap { padding: 24px 0 60px; background: #F8FAFC; }
.mg-co-container { max-width: 1180px; }
.mg-co-grid { display: grid; grid-template-columns: minmax(0,1fr) 320px; gap: 20px; align-items: start; }
.mg-co-main { min-width: 0; }
.mg-co-side { position: sticky; top: 82px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
/* 카드 */
.mg-co-card {
  background: #fff; border: 1px solid var(--line2); border-radius: 20px; padding: 22px;
  box-shadow: 0 8px 24px rgba(15,23,42,.04);
}
.mg-co-card + .mg-co-card { margin-top: 16px; }
.mg-co-card__title {
  display: flex; align-items: center; gap: 8px; margin: 0 0 16px; padding-bottom: 13px;
  border-bottom: 1px solid var(--line); font-size: 13.5px; font-weight: 800; color: var(--ink); word-break: keep-all;
}
.mg-co-card__title i { flex-shrink: 0; font-size: 16px; color: #611EFA; }
.mg-co-card__hint { margin-left: auto; font-size: 11px; font-weight: 700; color: #94A3B8; white-space: nowrap; }
.mg-co-card__more {
  margin-left: auto; display: inline-flex; align-items: center; gap: 3px;
  font-size: 11.5px; font-weight: 800; color: #4A10D0; text-decoration: none; white-space: nowrap;
}
.mg-co-card__more i { font-size: 11px; color: #4A10D0; }
.mg-co-sep { border: 0; border-top: 1px solid var(--line); margin: 20px 0 18px; opacity: 1; }
/* 주문 상품 */
.mg-co-items { display: flex; flex-direction: column; }
.mg-co-item { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px dashed var(--line); }
.mg-co-item:first-child { padding-top: 0; }
.mg-co-item:last-child { border-bottom: 0; }
.mg-co-item__thumb {
  flex-shrink: 0; width: 52px; height: 52px; border-radius: 14px; overflow: hidden;
  background: #F1F5F9; border: 1px solid var(--line);
}
.mg-co-item__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mg-co-item__body { flex: 1; min-width: 0; }
.mg-co-item__name { font-size: 14.5px; font-weight: 850; color: var(--ink); letter-spacing: -.02em; word-break: keep-all; }
.mg-co-item__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; margin-top: 3px; font-size: 12px; font-weight: 700; color: #64748B; }
.mg-co-item__brand {
  display: inline-flex; align-items: center; height: 18px; padding: 0 7px; border-radius: 6px;
  background: #F1F5F9; color: #475569; font-size: 10.5px; font-weight: 800;
}
.mg-co-item__amt { flex-shrink: 0; font-size: 15px; font-weight: 900; color: var(--ink); white-space: nowrap; font-variant-numeric: tabular-nums; }
.mg-co-total {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; padding: 13px 16px;
  border-radius: 14px; background: linear-gradient(135deg,#F6F2FF,#F8FBFF); border: 1px solid rgba(97,30,250,.16);
}
.mg-co-total span { font-size: 13px; font-weight: 800; color: #475569; }
.mg-co-total strong { font-size: 21px; font-weight: 900; color: #4A10D0; white-space: nowrap; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
/* 수령 방식 안내 */
.mg-co-page .mg-mode-tabs { margin-bottom: 16px; }
.mg-co-notice {
  display: none; align-items: flex-start; gap: 8px; margin: 0 0 16px; padding: 11px 14px; border-radius: 12px;
  font-size: 12.5px; font-weight: 700; line-height: 1.65; color: #334155; word-break: keep-all;
}
.mg-co-notice.is-on { display: flex; }
.mg-co-notice i { flex-shrink: 0; font-size: 15px; margin-top: 1px; }
.mg-co-notice--buy { background: var(--soft); border: 1px solid rgba(97,30,250,.16); border-left: 3px solid #611EFA; }
.mg-co-notice--buy i, .mg-co-notice--buy strong { color: #4A10D0; }
.mg-co-notice--gift { background: #FDF2F8; border: 1px solid rgba(236,72,153,.18); border-left: 3px solid #EC4899; }
.mg-co-notice--gift i, .mg-co-notice--gift strong { color: #BE185D; }
/* 결제수단 목록 (P2P hx-pay-opt) */
.mg-co-paylist { display: flex; flex-direction: column; gap: 10px; }
.mg-co-pay {
  display: grid; grid-template-columns: 20px 40px minmax(0,1fr); column-gap: 12px; row-gap: 3px; align-items: center;
  min-width: 0; padding: 14px 16px; border: 2px solid var(--line2); border-radius: 14px; background: #fff; cursor: pointer;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.mg-co-pay:hover { border-color: rgba(97,30,250,.35); background: #FBFDFF; }
.mg-co-pay.is-sel { border-color: var(--c); background: var(--soft); box-shadow: 0 0 0 3px rgba(97,30,250,.12); }
.mg-co-pay:focus-visible { outline: 3px solid rgba(97,30,250,.35); outline-offset: 2px; }
.mg-co-pay__radio {
  grid-column: 1; grid-row: 1 / span 2; width: 20px; height: 20px; border-radius: 50%;
  border: 2px solid var(--line2); background: #fff; display: flex; align-items: center; justify-content: center;
}
.mg-co-pay.is-sel .mg-co-pay__radio { border-color: var(--c); }
.mg-co-pay.is-sel .mg-co-pay__radio::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--c); }
.mg-co-pay__ico {
  grid-column: 2; grid-row: 1 / span 2; width: 40px; height: 40px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center; background: #F1F5F9; color: #475569; font-size: 19px;
}
.mg-co-pay.is-sel .mg-co-pay__ico { background: linear-gradient(135deg,#611EFA,#4A10D0); color: #fff; box-shadow: 0 8px 18px rgba(85,20,232,.28); }
.mg-co-pay__name {
  grid-column: 3; grid-row: 1; display: flex; align-items: center; flex-wrap: wrap; gap: 6px; min-width: 0;
  font-size: 15px; font-weight: 900; color: var(--ink); letter-spacing: -.02em; word-break: keep-all;
}
.mg-co-pay__name small { font-size: 12px; font-weight: 700; color: #64748B; }
.mg-co-pay__sub { grid-column: 3; grid-row: 2; min-width: 0; font-size: 12px; font-weight: 700; color: #64748B; line-height: 1.5; word-break: keep-all; }
.mg-co-pay__badge {
  display: inline-flex; align-items: center; height: 18px; padding: 0 7px; border-radius: 999px;
  background: linear-gradient(135deg,#F59E0B,#EF4444); color: #fff; font-size: 9.5px; font-weight: 900; letter-spacing: .04em;
}
.mg-co-pay__panel { grid-column: 1 / -1; grid-row: 3; display: none; min-width: 0; margin-top: 12px; cursor: default; }
.mg-co-pay.is-sel .mg-co-pay__panel { display: block; animation: mgWizIn .22s ease; }
.mg-co-pay__panel .mg-cms-panel { margin-top: 0; background: #fff; animation: none; }
/* 구매 안전 동의사항 (P2P hx-safe-wrap) */
.mg-co-safe { margin-top: 18px; }
.mg-co-safe__head { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; padding: 12px 14px; border-radius: 14px; border: 1px solid #DDD6FE; background: #F5F3FF; font-size: 14px; font-weight: 800; color: #5B21B6; word-break: keep-all; }
.mg-co-safe__head i { flex-shrink: 0; display: inline-flex; align-items: center; margin: 0; line-height: 1; font-size: 17px; color: #7C3AED; }
.mg-co-safe__lead {
  margin: 0 0 14px; padding: 10px 12px; border-radius: 12px; background: #F8FAFC; border: 1px solid #E2E8F0;
  color: #475569; font-size: 12px; font-weight: 800; word-break: keep-all;
}
.mg-co-safe__panel {
  padding: 18px 16px; border-radius: 16px; border: 1.5px solid #DDD6FE;
  background: #fff; box-shadow: 0 8px 22px rgba(124,58,237,.06);
}
.mg-co-safe__panel + .mg-co-safe__panel { margin-top: 14px; }
.mg-co-check { position: relative; display: flex; align-items: center; gap: 8px; margin: 0 0 12px; cursor: pointer; user-select: none; -webkit-user-select: none; }
.mg-co-check__input { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.mg-co-check__box { position: relative; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; margin: 0; line-height: 1; border-radius: 7px; border: 2px solid #611EFA; background: #fff; box-sizing: border-box; transition: background .15s; }
.mg-co-check__input:checked + .mg-co-check__box { background: #5514E8; border-color: #5514E8; }
.mg-co-check__input:checked + .mg-co-check__box::after {
  content: ""; position: absolute; left: 6px; top: 2px; width: 6px; height: 11px;
  border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg);
}
.mg-co-check__input:focus-visible + .mg-co-check__box { outline: 3px solid rgba(97,30,250,.3); outline-offset: 2px; }
.mg-co-check__num {
  flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; margin: 0; line-height: 1; border-radius: 999px;
  border: 1px solid #C4B5FD; background: #F5F3FF; color: #6D28D9; font-size: 12px; font-weight: 900;
}
.mg-co-check__text { flex: 1 1 auto; min-width: 0; min-height: 22px; font-size: 13.5px; font-weight: 900; color: var(--ink); line-height: 22px; word-break: keep-all; }
.mg-co-safe__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 7px; }
.mg-co-safe__list li { position: relative; padding-left: 18px; font-size: 12.5px; font-weight: 600; color: #334155; line-height: 1.6; word-break: keep-all; }
.mg-co-safe__list li::before { content: ""; position: absolute; left: 2px; top: 8px; width: 5px; height: 5px; border-radius: 50%; background: #94A3B8; }
.mg-co-safe__desc { font-size: 12px; font-weight: 600; color: #64748B; line-height: 1.75; word-break: keep-all; }
.mg-co-safe__options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.mg-co-opt {
  min-height: 52px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 12px;
  border-radius: 14px; border: 2px solid var(--line2); background: #fff; font-size: 14px; font-weight: 900; letter-spacing: -.02em;
  cursor: pointer; word-break: keep-all; transition: transform .15s, box-shadow .15s, opacity .15s;
}
.mg-co-opt__ico { flex-shrink: 0; width: 24px; height: 24px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; }
.mg-co-opt--yes { border-color: #16A34A; background: #F0FDF4; color: #15803D; }
.mg-co-opt--yes .mg-co-opt__ico { background: #16A34A; color: #fff; }
.mg-co-opt--no { border-color: #DC2626; background: #FEF2F2; color: #B91C1C; }
.mg-co-opt--no .mg-co-opt__ico { background: #DC2626; color: #fff; }
.mg-co-opt.is-yes { border-color: #15803D; background: linear-gradient(180deg,#22C55E,#15803D); color: #fff; box-shadow: 0 10px 22px rgba(22,163,74,.28); }
.mg-co-opt.is-yes .mg-co-opt__ico { background: #fff; color: #15803D; }
.mg-co-opt.is-no { border-color: #B91C1C; background: linear-gradient(180deg,#F87171,#DC2626); color: #fff; }
.mg-co-opt.is-no .mg-co-opt__ico { background: #fff; color: #B91C1C; }
.mg-co-opt--yes:disabled, .mg-co-opt--yes.is-locked { opacity: .4; cursor: not-allowed; pointer-events: none; }
.mg-co-alert { display: none; margin-top: 12px; padding: 11px 14px; border-radius: 12px; font-size: 12.5px; font-weight: 750; line-height: 1.55; word-break: keep-all; }
.mg-co-alert.is-on { display: block; }
.mg-co-alert--danger { background: #FEF2F2; color: #B91C1C; border: 1px solid #FECACA; }
.mg-co-alert--ok { background: #ECFDF5; color: #047857; border: 1px solid #A7F3D0; }
/* 하단 액션 (PC) */
.mg-co-actions { display: flex; gap: 10px; margin-top: 18px; }
.mg-co-back {
  flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 52px; padding: 0 22px;
  border-radius: 14px; border: 1.5px solid var(--line2); background: #fff; color: #475569; font-size: 14px; font-weight: 800;
  cursor: pointer; white-space: nowrap; text-decoration: none; transition: border-color .15s, color .15s, background .15s;
}
.mg-co-back:hover { color: #4A10D0; border-color: rgba(97,30,250,.35); background: var(--soft); }
.mg-co-submit {
  flex: 1 1 auto; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 18px;
  border: 0; border-radius: 14px; background: linear-gradient(135deg,#611EFA,#4A10D0); color: #fff;
  font-size: 15px; font-weight: 900; letter-spacing: -.02em; cursor: pointer; word-break: keep-all;
  box-shadow: 0 12px 26px rgba(85,20,232,.24); transition: transform .15s, filter .15s;
}
.mg-co-submit i { font-size: 19px; }
.mg-co-submit:hover { transform: translateY(-1px); filter: brightness(1.05); }
.mg-co-submit:disabled { opacity: .6; cursor: wait; transform: none; box-shadow: none; }
/* 사이드 요약 · 안전 거래 안내 */
.mg-co-page .mg-summary-card { padding: 20px; }
.mg-co-badge {
  display: inline-flex; align-items: center; gap: 5px; margin-bottom: 12px; padding: 4px 11px; border-radius: 999px;
  background: rgba(255,255,255,.2); border: 1px solid rgba(255,255,255,.28); color: #fff; font-size: 11px; font-weight: 800;
}
.mg-co-tips { padding: 16px; border-radius: 16px; background: var(--soft); border: 1px solid rgba(97,30,250,.16); }
.mg-co-tips__title { display: flex; align-items: center; gap: 6px; margin-bottom: 10px; font-size: 12px; font-weight: 800; color: #4A10D0; }
/* 팁: block + 아이콘 absolute (텍스트·<a>가 flex item으로 갈라지지 않게) */
.mg-co-tip { display: block; position: relative; padding-left: 20px; margin-bottom: 6px; font-size: 11.5px; font-weight: 700; color: #475569; line-height: 1.6; word-break: keep-all; overflow-wrap: normal; }
.mg-co-tip:last-child { margin-bottom: 0; }
.mg-co-tip > i { position: absolute; left: 0; top: 2px; font-size: 13px; line-height: 1; color: #611EFA; }
.mg-co-tip a { color: #4A10D0; font-weight: 800; }
.mg-co-tips--mob { display: none; margin-top: 20px; }
/* 모바일 하단 바 (P2P hx-mobile-bar: 금액 위, 버튼 아래) */
.mg-co-bar { z-index: 200; box-shadow: 0 -4px 16px rgba(15,23,42,.08); }
.mg-co-bar__top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.mg-co-bar .hx-mobile-bar__val { margin: 0; font-variant-numeric: tabular-nums; }
.mg-co-bar .hx-mobile-bar__btns { display: flex; gap: 8px; }
.mg-co-bar .mg-co-back { min-height: 48px; padding: 0 16px; flex: 1 1 auto; width: 100%; }
/* 반응형 */
@media (max-width: 991.98px) {
  .mg-co-grid { grid-template-columns: minmax(0,1fr); }
  .mg-co-side { display: none; }
  .mg-co-tips--mob { display: block; }
  .mg-co-crumb { display: none; }
  body.mg-co-page .hx-mobile-bar.mg-co-bar { display: block; }
  body.mg-co-page { padding-bottom: 128px !important; }
  body.mg-co-page--auth { padding-bottom: 24px !important; }
  body.mg-co-page #scroll-top.scroll-top,
  body.mg-co-page #scroll-top.scroll-top.active { bottom: calc(128px + env(safe-area-inset-bottom, 0px)); }
  body.mg-co-page--auth #scroll-top.scroll-top,
  body.mg-co-page--auth #scroll-top.scroll-top.active { bottom: 24px; }
}
@media (max-width: 767.98px) {
  .mg-auto-thumb { flex-direction: column; text-align: center; padding: 20px 16px; gap: 12px; }
  .mg-auto-thumb__actions { width: 100%; min-width: 0; }
  .mg-co-actions { display: none !important; }
  .mg-co-wrap { padding: 14px 0 40px; }
  .mg-co-card { padding: 16px 14px; border-radius: 18px; }
  .mg-co-hero__bar { flex-wrap: wrap; padding: 10px 14px; gap: 6px; }
  .mg-co-hero__title { font-size: 13.5px; line-height: 1.4; }
  /* 결제수단 행 안의 CMS 패널: 카드+행+패널 3중 패딩을 줄여 입력폭 확보 */
  .mg-co-pay__panel .mg-cms-panel { padding: 12px; border-radius: 14px; }
  .mg-co-pay__panel .mg-cms-panel__head { gap: 8px; margin-bottom: 12px; }
  .mg-co-pay__panel .mg-cms-panel__ico { width: 34px; height: 34px; font-size: 16px; }
  /* CMS 인포그래픽: 4단계 → 2x2, 하단 안내 3열 → 1열 */
  .mg-cms-info { padding: 14px 12px 12px; border-radius: 14px; }
  .mg-cms-info__title { font-size: 16px; }
  .mg-cms-info__lead { font-size: 12px; }
  .mg-cms-info__br { display: none; }
  .mg-cms-info__steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 10px; margin-top: 4px; }
  .mg-cms-info__step { padding: 22px 10px 12px; }
  .mg-cms-info__step:not(:last-child)::after { display: none; }
  .mg-cms-info__ico { width: 48px; height: 48px; font-size: 22px; margin-bottom: 8px; border-radius: 15px; }
  .mg-cms-info__talk { width: 36px; height: 24px; font-size: 9.5px; border-radius: 8px; }
  .mg-cms-info__st { font-size: 13px; }
  .mg-cms-info__desc { font-size: 11.5px; }
  .mg-cms-info__notes { grid-template-columns: 1fr; gap: 6px; }
  .mg-cms-info__app { padding: 12px; border-radius: 12px; }
  .mg-cms-info__app-mark { width: 46px; height: 46px; border-radius: 13px; }
  .mg-cms-info__app-t { font-size: 14px; }
  .mg-cms-info__app-d { font-size: 11px; }
  .mg-cms-acc-warn { font-size: 12px; }
}
@media (max-width: 480px) {
  /* 등록 계좌 행: 계좌번호는 전 자릿수 유지(nowrap), 복사·변경 버튼은 다음 줄로 */
  .mg-cms-reg__row { flex-wrap: wrap; row-gap: 10px; }
  .mg-cms-reg__body { flex: 1 1 calc(100% - 34px); }
  .mg-cms-reg__acc-row { display: flex !important; flex-wrap: wrap; }
  .mg-cms-reg__acc { white-space: nowrap; }
  .mg-cms-reg__copy { flex-shrink: 0; }
  .mg-cms-reg__change { flex: 1 0 100%; min-height: 40px; }
  /* CMS 인포그래픽 좁은 폭: 단계 카드를 가로형(아이콘 좌 · 텍스트 우) 1열로 */
  .mg-cms-info__steps { grid-template-columns: 1fr; gap: 8px; margin-top: 0; }
  .mg-cms-info__step {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr);
    grid-template-areas: "ico title" "ico desc" "ico warn";
    column-gap: 10px;
    align-items: start;
    padding: 10px 12px 10px 10px;
    text-align: left;
  }
  .mg-cms-info__num {
    position: static;
    transform: none;
    grid-area: ico;
    align-self: start;
    justify-self: start;
    width: 18px;
    height: 18px;
    margin: -5px 0 0 -5px;
    font-size: 10px;
    box-shadow: 0 0 0 2px #fff;
    z-index: 1;
  }
  .mg-cms-info__ico { grid-area: ico; align-self: start; width: 46px; height: 46px; margin: 0; box-shadow: 0 0 0 3px var(--step-ring), 0 6px 14px rgba(15,23,42,.08); }
  .mg-cms-info__st { grid-area: title; margin-bottom: 2px; }
  .mg-cms-info__desc { grid-area: desc; }
  .mg-cms-info__warn { grid-area: warn; margin-top: 6px; }
  /* 경남은행 앱 카드: 스토어 배지를 마크 아래 전체 폭으로 내려 2개가 한 줄에 들어가게 */
  .mg-cms-info__app {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr);
    grid-template-areas: "mark title" "mark desc" "stores stores";
    column-gap: 12px;
    row-gap: 0;
    align-items: start;
  }
  .mg-cms-info__app-mark { grid-area: mark; }
  .mg-cms-info__app-body { display: contents; }
  .mg-cms-info__app-t { grid-area: title; }
  .mg-cms-info__app-d { grid-area: desc; }
  .mg-cms-info__stores { grid-area: stores; display: grid; grid-template-columns: 1fr; gap: 8px; margin-top: 12px; }
  .mg-cms-info__store { min-width: 0; padding: 5px 12px; }
}
@media (max-width: 390px) {
  .mg-co-card { padding: 14px 12px; }
  .mg-co-item { gap: 10px; }
  .mg-co-item__thumb { width: 44px; height: 44px; border-radius: 12px; }
  .mg-co-item__name { font-size: 13.5px; }
  .mg-co-item__amt { font-size: 14px; }
  .mg-co-total strong { font-size: 19px; }
  .mg-co-pay { grid-template-columns: 20px 36px minmax(0,1fr); padding: 12px; column-gap: 10px; }
  .mg-co-pay__ico { width: 36px; height: 36px; font-size: 17px; }
  .mg-co-pay__name { font-size: 14px; }
  .mg-co-safe__panel { padding: 16px 13px; }
  .mg-co-safe__options { gap: 8px; }
  .mg-co-opt { font-size: 13px; padding: 10px 8px; min-height: 48px; }
  .mg-co-bar .mg-co-back { padding: 0 12px; }
}

/* ========== 마이페이지 · CMS 환불계좌 (2026-09-12c) ========== */
/* 좌측 메뉴 상태 pill */
body.account-page .mg-account__nav .mg-rf-navpill { background: #F1F5F9; color: #64748B; font-size: 10.5px; letter-spacing: .01em; }
body.account-page .mg-account__nav .mg-rf-navpill.is-on { background: #DCFCE7; color: #15803D; }
body.account-page .mg-account__nav .nav-link.active .mg-rf-navpill { background: #E2E8F0; color: #334155; }
body.account-page .mg-account__nav .nav-link.active .mg-rf-navpill.is-on { background: #16A34A; color: #fff; }
/* 패널 헤더 상태 배지 */
body.account-page .mg-account__panel-head .mg-rf-state {
  flex-shrink: 0; display: inline-flex; align-items: center; gap: 6px; min-height: 28px; padding: 0 11px;
  border-radius: 999px; font-size: 12px; font-weight: 800; white-space: nowrap; border: 1px solid transparent;
}
.mg-rf-state.is-y { background: #ECFDF5; color: #047857; border-color: #A7F3D0; }
.mg-rf-state.is-p { background: #FFFBEB; color: #B45309; border-color: #FDE68A; }
.mg-rf-state.is-n { background: #F1F5F9; color: #64748B; border-color: #E2E8F0; }
.mg-rf { display: grid; gap: 14px; }
/* 등록된 환불계좌 카드 */
.mg-rf-card {
  display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 16px;
  border: 1.5px solid #86EFAC; background: linear-gradient(145deg, #F0FDF4 0%, #FFFFFF 70%);
}
.mg-rf-card.is-p { border-color: #FCD34D; background: linear-gradient(145deg, #FFFBEB 0%, #FFFFFF 70%); }
.mg-rf-card__ico {
  flex-shrink: 0; width: 44px; height: 44px; border-radius: 14px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #22C55E, #15803D); color: #fff; font-size: 20px;
}
.mg-rf-card.is-p .mg-rf-card__ico { background: linear-gradient(135deg, #F59E0B, #B45309); }
.mg-rf-card__body { flex: 1 1 auto; min-width: 0; }
.mg-rf-card__label { font-size: 11.5px; font-weight: 800; color: #64748B; letter-spacing: .02em; }
.mg-rf-card__bank { margin-top: 2px; font-size: 13px; font-weight: 800; color: #334155; }
.mg-rf-card__acc { font-size: 17px; font-weight: 900; color: var(--ink); letter-spacing: .03em; white-space: nowrap; font-variant-numeric: tabular-nums; }
.mg-rf-card__holder { font-size: 12.5px; font-weight: 700; color: #475569; }
.mg-rf-card__holder strong { color: var(--ink); }
.mg-rf-card__note { margin-top: 6px; font-size: 11.5px; font-weight: 700; color: #B45309; line-height: 1.55; word-break: keep-all; }
.mg-rf-card__change {
  flex-shrink: 0; display: inline-flex; align-items: center; gap: 5px; min-height: 38px; padding: 0 14px; border-radius: 11px;
  border: 1.5px solid var(--line2); background: #fff; color: #475569; font-size: 12.5px; font-weight: 800; cursor: pointer; white-space: nowrap;
}
.mg-rf-card__change:hover { color: #4A10D0; border-color: rgba(97,30,250,.35); }
.mg-rf-card__change i { flex-shrink: 0; display: inline-flex; align-items: center; margin: 0; line-height: 1; }
.mg-rf-lock {
  display: flex; align-items: center; gap: 10px;
  margin: 0 0 12px; padding: 14px 16px; border-radius: 14px;
  background: #F8FAFC; border: 1px solid var(--line); color: #334155;
}
.mg-rf-lock i { flex-shrink: 0; display: inline-flex; align-items: center; margin: 0; line-height: 1; font-size: 18px; color: #611EFA; }
.mg-rf-lock p { margin: 0; min-width: 0; font-size: 13px; font-weight: 700; line-height: 1.55; word-break: keep-all; }
/* 등록 폼 */
.mg-rf-form {
  padding: 18px; border-radius: 16px; border: 1px solid rgba(97,30,250,.2);
  background: linear-gradient(145deg, #F8FBFF 0%, #FFFFFF 70%);
}
.mg-rf-form__title { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 900; color: var(--ink); }
.mg-rf-form__title i { flex-shrink: 0; color: #611EFA; font-size: 17px; }
.mg-rf-form__desc { margin: 4px 0 14px; font-size: 12px; font-weight: 700; color: #64748B; line-height: 1.55; word-break: keep-all; }
.mg-rf-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mg-rf-grid .mg-field-group { margin-bottom: 0; }
.mg-rf-actions { display: flex; gap: 8px; margin-top: 14px; }
.mg-rf-actions[hidden],
.mg-rf-submit[hidden] { display: none !important; }
.mg-rf-submit {
  flex: 1 1 auto; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px;
  border: 0; border-radius: 14px; background: linear-gradient(135deg, #611EFA, #5514E8); color: #fff;
  font-size: 14.5px; font-weight: 850; cursor: pointer; box-shadow: 0 10px 22px rgba(85,20,232,.20);
}
.mg-rf-submit:disabled { opacity: .6; cursor: wait; box-shadow: none; }
.mg-rf-cancel {
  flex: 0 0 auto; min-height: 50px; padding: 0 18px; border-radius: 14px; border: 1.5px solid var(--line2);
  background: #fff; color: #475569; font-size: 14px; font-weight: 800; cursor: pointer;
}
.mg-rf-cancel[hidden] { display: none; }
/* 안내 */
.mg-rf-guide { list-style: none; margin: 0; padding: 14px 16px; border-radius: 14px; background: #F8FAFC; border: 1px solid var(--line); display: grid; gap: 8px; }
.mg-rf-guide li { position: relative; padding-left: 21px; font-size: 12.5px; font-weight: 600; color: #475569; line-height: 1.6; word-break: keep-all; }
.mg-rf-guide li > i { position: absolute; left: 0; top: 3px; color: #611EFA; font-size: 14px; line-height: 1; }
.mg-rf-guide a { color: #4A10D0; font-weight: 800; }
@media (max-width: 767.98px) {
  body.account-page .mg-account__panel-head { flex-wrap: wrap; }
  .mg-rf-card { flex-wrap: wrap; padding: 14px; gap: 12px; }
  .mg-rf-card__body { flex: 1 1 calc(100% - 58px); }
  .mg-rf-card__change { flex: 1 0 100%; min-height: 42px; }
  .mg-rf-form { padding: 14px; }
}
@media (max-width: 480px) {
  .mg-rf-grid { grid-template-columns: 1fr; gap: 10px; }
  .mg-rf-actions { flex-direction: column-reverse; }
  .mg-rf-cancel { min-height: 44px; }
}
@media (max-width: 390px) {
  /* 모바일 상단 탭 4개(주문·선물·환불계좌·계정) 한 줄 유지 */
  body.account-page .mg-account__tabs { gap: 5px; padding: 10px 10px; }
  body.account-page .mg-account__tabs button { font-size: 11.5px; padding: 8px 3px; white-space: nowrap; }
  body.account-page .mg-account__tabs button i { font-size: 12px; }
  .mg-rf-card__acc { font-size: 16px; }
}

/* ========== 공지사항 상세 (notice_cms.asp) (2026-09-12d) ========== */
body.notice-detail-page .main { background: #F8FAFC; }
.mg-nd-wrap { padding: 12px 0 40px !important; }
.mg-nd-grid { display: grid; grid-template-columns: minmax(0,1fr) 300px; gap: 24px; align-items: start; }
.mg-nd-article {
  min-width: 0; overflow: hidden; background: #fff; border: 1px solid var(--line2); border-radius: 22px;
  box-shadow: 0 1px 3px rgba(15,23,42,.04), 0 10px 28px rgba(15,23,42,.05);
}
.mg-nd-hero {
  position: relative; overflow: hidden; padding: 16px 20px 14px; border-bottom: 1px solid var(--line);
  background: linear-gradient(135deg,#ECFDF5 0%,#F6F2FF 55%,#fff 100%);
}
.mg-nd-hero::before,
.mg-nd-hero::after { content: ""; position: absolute; border-radius: 50%; pointer-events: none; }
.mg-nd-hero::before { right: -70px; top: -80px; width: 240px; height: 240px; background: rgba(16,185,129,.10); }
.mg-nd-hero::after { right: 90px; bottom: -110px; width: 200px; height: 200px; background: rgba(97,30,250,.10); }
.mg-nd-hero > * { position: relative; z-index: 1; }
.mg-nd-hero__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.mg-nd-tag {
  display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 999px;
  background: rgba(74,16,208,.10); color: #4A10D0; font-size: 11px; font-weight: 900; letter-spacing: .03em;
}
.mg-nd-tag--new { background: #DC2626; color: #fff; }
.mg-nd-tag--cat { background: rgba(4,120,87,.12); color: #047857; }
.mg-nd-hero h1 { margin: 0 0 10px; color: var(--ink); font-size: 24px; font-weight: 900; line-height: 1.3; letter-spacing: -.02em; word-break: keep-all; }
.mg-nd-hero__lead { max-width: 640px; margin: 0; color: #475569; font-size: 14px; font-weight: 600; line-height: 1.7; word-break: keep-all; }
.mg-nd-meta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 14px; color: #94A3B8; font-size: 12px; font-weight: 700; }
.mg-nd-meta span { display: inline-flex; align-items: center; gap: 5px; }
.mg-nd-meta i { color: #611EFA; }
.mg-nd-body { padding: 12px 18px 14px; }
.mg-nd-sec { margin: 0 0 8px !important; padding: 0 0 8px !important; border-bottom: 1px solid var(--line); }
.mg-nd-sec:last-child { margin-bottom: 0 !important; padding-bottom: 0 !important; border-bottom: 0; }
.mg-nd-wrap .bi::before,
.mg-nd-wrap [class^="bi-"]::before,
.mg-nd-wrap [class*=" bi-"]::before {
  display: block;
  line-height: 1;
  vertical-align: 0;
}
.mg-nd-sec__title {
  display: flex; align-items: center; gap: 8px; margin: 0 0 8px;
  color: var(--ink); font-size: 16px; font-weight: 900; letter-spacing: -.01em; line-height: 32px; word-break: keep-all;
}
.mg-nd-sec__title > i {
  flex-shrink: 0; display: flex; align-items: center; justify-content: center; width: 32px; height: 32px;
  border-radius: 10px; background: var(--soft); color: #4A10D0; font-size: 16px; line-height: 1;
}
.mg-nd-p { margin: 0 0 8px; color: #475569; font-size: 14px; line-height: 1.65; word-break: keep-all; }
.mg-nd-p strong { color: var(--ink); }
.mg-nd-feats { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 10px; margin-top: 14px; }
.mg-nd-feat { padding: 14px; border: 1px solid var(--line2); border-radius: 14px; background: #F8FAFC; }
.mg-nd-feat > i {
  display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; margin-bottom: 8px;
  border-radius: 10px; background: linear-gradient(135deg,#611EFA,#4A10D0); color: #fff; font-size: 16px;
}
.mg-nd-feat strong { display: block; margin-bottom: 3px; color: var(--ink); font-size: 13.5px; font-weight: 900; word-break: keep-all; }
.mg-nd-feat span { display: block; color: #64748B; font-size: 12px; font-weight: 600; line-height: 1.5; word-break: keep-all; }
.mg-nd-steps { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.mg-nd-step { display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; border: 1px solid var(--line2); border-radius: 12px; background: #fff; }
.mg-nd-step__num {
  flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px;
  border-radius: 12px; background: linear-gradient(135deg,#611EFA,#4A10D0); color: #fff; font-size: 14px; font-weight: 900;
  box-shadow: 0 6px 14px rgba(74,16,208,.22);
}
.mg-nd-step__body { flex: 1; min-width: 0; }
.mg-nd-step__title { margin-bottom: 4px; color: var(--ink); font-size: 14.5px; font-weight: 900; word-break: keep-all; }
.mg-nd-step__desc { color: #64748B; font-size: 13px; font-weight: 600; line-height: 1.65; word-break: keep-all; }
.mg-nd-step__desc strong { color: #4A10D0; }
.mg-nd-spec { overflow: hidden; border: 1px solid var(--line2); border-radius: 16px; }
.mg-nd-spec__row { display: flex; align-items: flex-start; gap: 12px; padding: 13px 16px; border-bottom: 1px solid var(--line); background: #fff; }
.mg-nd-spec__row:nth-child(even) { background: #F8FAFC; }
.mg-nd-spec__row:last-child { border-bottom: 0; }
.mg-nd-spec__k { flex: 0 0 130px; display: flex; align-items: center; gap: 6px; min-height: 22px; color: #334155; font-size: 13px; font-weight: 900; line-height: 22px; word-break: keep-all; }
.mg-nd-spec__k i { flex: 0 0 22px; display: flex; align-items: center; justify-content: center; width: 22px; height: 22px; margin: 0; color: #611EFA; font-size: 15px; line-height: 1; }
.mg-nd-spec__v { flex: 1; min-width: 0; color: #475569; font-size: 13.5px; font-weight: 600; line-height: 22px; word-break: keep-all; }
.mg-nd-spec__v strong { color: var(--ink); }
.mg-nd-note { display: flex; align-items: flex-start; gap: 8px; margin-top: 8px; padding: 10px 12px; border-radius: 12px; font-size: 13px; font-weight: 650; line-height: 22px; word-break: keep-all; }
.mg-nd-flow .mg-nd-note { margin-top: 0; }
.mg-nd-note > i {
  flex: 0 0 22px; display: flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; margin: 0; font-size: 15px; line-height: 1;
}
.mg-nd-note > div { min-width: 0; line-height: 22px; }
.mg-nd-note--info { border: 1px solid rgba(97,30,250,.18); background: var(--soft); color: #2A0878; }
.mg-nd-note--info > i { color: #4A10D0; }
.mg-nd-note--warn { border: 1px solid #FDE68A; background: #FFFBEB; color: #92400E; }
.mg-nd-note--warn > i { color: #D97706; }
.mg-nd-note--ok { border: 1px solid #A7F3D0; background: #ECFDF5; color: #065F46; }
.mg-nd-note--ok > i { color: #059669; }
.mg-nd-list { display: grid; gap: 24px; margin: 0; padding: 0; list-style: none; }
.mg-nd-list li {
  position: relative; display: block; min-width: 0; padding-left: 26px;
  color: #475569; font-size: 13.5px; font-weight: 600; line-height: 24px;
  text-align: left; letter-spacing: 0; word-break: keep-all;
}
.mg-nd-list li > i {
  position: absolute; left: 0; top: 0; display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 24px; margin: 0; color: #611EFA; font-size: 14px; line-height: 1;
}
.mg-nd-list strong { display: inline; color: var(--ink); font-weight: 800; letter-spacing: 0; }
.mg-nd-faq { display: grid; gap: 8px; }
.mg-nd-faq details { overflow: hidden; border: 1px solid var(--line2); border-radius: 14px; background: #fff; }
.mg-nd-faq details[open] { border-color: rgba(97,30,250,.30); }
.mg-nd-faq summary { display: flex; align-items: center; gap: 10px; padding: 14px 16px; color: var(--ink); font-size: 14px; font-weight: 800; cursor: pointer; list-style: none; word-break: keep-all; }
.mg-nd-faq summary::-webkit-details-marker { display: none; }
.mg-nd-faq summary::before {
  content: "Q"; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px;
  border-radius: 8px; background: var(--soft); color: #4A10D0; font-size: 12px; font-weight: 900;
}
.mg-nd-faq summary::after { content: "\F282"; flex-shrink: 0; margin-left: auto; font-family: "bootstrap-icons"; color: #94A3B8; font-size: 13px; transition: transform .2s; }
.mg-nd-faq details[open] summary::after { transform: rotate(180deg); }
.mg-nd-faq__a { padding: 0 16px 14px 52px; color: #475569; font-size: 13.5px; font-weight: 600; line-height: 1.7; word-break: keep-all; }
.mg-nd-faq__a strong { color: var(--ink); }
.mg-nd-flow { display: grid; gap: 8px; margin-top: 2px; }
.mg-nd-join {
  margin: 0;
  padding: 12px 14px;
  border: 1px solid var(--line2);
  border-radius: 14px;
  background: #F8FAFC;
}
.mg-nd-join__head {
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}
.mg-nd-join__head strong { display: block; color: var(--ink); font-size: 14px; font-weight: 900; word-break: keep-all; }
.mg-nd-join__head span { display: block; margin-top: 3px; color: #64748B; font-size: 12.5px; font-weight: 650; line-height: 1.5; word-break: keep-all; }
.mg-nd-join__q {
  margin: 0 0 8px;
  color: #4A10D0;
  font-size: 13px;
  font-weight: 850;
  word-break: keep-all;
}
.mg-nd-branch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.mg-nd-branch__col {
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid var(--line2);
  border-radius: 12px;
  background: #fff;
}
.mg-nd-branch__col h4 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 900;
  word-break: keep-all;
}
.mg-nd-branch__col h4 i { flex-shrink: 0; display: inline-flex; align-items: center; line-height: 1; color: #059669; }
.mg-nd-branch__col h4 i::before { line-height: 1; vertical-align: 0; }
.mg-nd-branch__col.is-empty h4 i { color: #D97706; }
.mg-nd-branch__col ol {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 6px;
}
.mg-nd-branch__col li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  min-width: 0;
  color: #475569;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
  word-break: keep-all;
}
.mg-nd-branch__col em {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  margin-top: 1px;
  border-radius: 50%;
  background: #F6F2FF;
  color: #4A10D0;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}
.mg-nd-docs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.mg-nd-docs li {
  padding: 6px 10px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line2);
  color: #334155;
  font-size: 12.5px;
  font-weight: 800;
  word-break: keep-all;
}
.mg-nd-kakao {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
  padding: 12px 14px;
  border: 1px solid #FDE047;
  border-radius: 14px;
  background: #FEF9C3;
}
.mg-nd-kakao__ico {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #FEE500;
  color: #191919;
  font-size: 18px;
}
.mg-nd-kakao strong { display: block; margin-bottom: 4px; color: #191919; font-size: 14px; font-weight: 900; word-break: keep-all; }
.mg-nd-kakao p { margin: 0; color: #3F3F46; font-size: 13.5px; font-weight: 650; line-height: 1.65; word-break: keep-all; }
.mg-nd-kakao p strong { display: inline; font-size: inherit; }
.mg-nd-cta { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 8px; margin-top: 16px; }
.mg-nd-cta a {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 0 14px;
  border-radius: 14px; font-size: 14px; font-weight: 850; text-align: center; text-decoration: none; word-break: keep-all;
}
.mg-nd-cta__primary { background: linear-gradient(135deg,#611EFA,#5514E8); color: #fff !important; box-shadow: 0 10px 22px rgba(85,20,232,.20); }
.mg-nd-cta__ghost { border: 1.5px solid var(--line2); background: #fff; color: #334155 !important; }
.mg-nd-cta__ghost:hover { border-color: rgba(97,30,250,.35); color: #4A10D0 !important; }
.mg-nd-back { display: inline-flex; align-items: center; gap: 6px; margin-top: 18px; color: #64748B; font-size: 13px; font-weight: 800; text-decoration: none; }
.mg-nd-back:hover { color: #4A10D0; }
.mg-nd-side { position: sticky; top: 82px; display: grid; gap: 14px; }
.mg-nd-toc { padding: 16px 18px; border: 1px solid var(--line2); border-radius: 18px; background: #fff; }
.mg-nd-toc h3 { display: flex; align-items: center; gap: 7px; margin: 0 0 10px; color: var(--ink); font-size: 13px; font-weight: 900; }
.mg-nd-toc h3 i { color: #611EFA; }
.mg-nd-toc a { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 10px; color: #475569; font-size: 13px; font-weight: 700; text-decoration: none; }
.mg-nd-toc a:hover { background: var(--soft); color: #4A10D0; }
.mg-nd-toc a > i { flex-shrink: 0; color: #94A3B8; font-size: 12px; }
.mg-nd-toc a > span { flex: 1; min-width: 0; }
@media (max-width: 991.98px) {
  .mg-nd-grid { grid-template-columns: minmax(0,1fr); }
  .mg-nd-side { position: static; }
  .mg-nd-toc { display: none; }
}
@media (max-width: 767.98px) {
  .mg-nd-wrap { padding: 8px 0 32px !important; }
  .mg-nd-wrap > .container { max-width: none; padding-right: 12px; padding-left: 12px; }
  .mg-nd-article { border-radius: 18px; }
  .mg-nd-hero { padding: 14px 14px 12px; }
  .mg-nd-hero h1 { font-size: 20px; }
  .mg-nd-hero__lead { font-size: 13.5px; }
  .mg-nd-body { padding: 10px 12px 12px; }
  .mg-nd-sec { margin-bottom: 8px !important; padding-bottom: 8px !important; }
  .mg-nd-sec__title { font-size: 15px; }
  .mg-nd-feats { grid-template-columns: 1fr; gap: 8px; }
  .mg-nd-feat { display: flex; align-items: flex-start; gap: 12px; padding: 12px; }
  .mg-nd-feat > i { flex-shrink: 0; margin-bottom: 0; }
  .mg-nd-feat > div { min-width: 0; }
  .mg-nd-step { gap: 12px; padding: 14px; }
  .mg-nd-step__num { width: 32px; height: 32px; font-size: 13px; }
  .mg-nd-spec__row { flex-direction: column; gap: 4px; padding: 12px 14px; }
  .mg-nd-spec__k { flex-basis: auto; }
  .mg-nd-cta { grid-template-columns: 1fr; gap: 8px; }
  .mg-nd-cta a { min-height: 48px; }
  .mg-nd-faq summary { padding: 13px 14px; font-size: 13.5px; }
  .mg-nd-faq__a { padding: 0 14px 13px 50px; }
  .mg-nd-branch { grid-template-columns: 1fr; }
}
@media (max-width: 390px) {
  .mg-must-item { padding: 9px 8px 9px 9px; gap: 8px; }
  .mg-must-item__body strong { font-size: 12px; }
  .mg-nd-hero h1 { font-size: 19px; }
}

/* ===== 마이페이지 주문카드 (본인/선물) ===== */
body.account-page .mg-account .orders-grid {
  display: grid;
  gap: 14px;
}
body.account-page .mg-oc {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, .08);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(15, 23, 42, .05);
}
body.account-page .mg-oc__head {
  padding: 14px 16px 12px;
  background:
    linear-gradient(180deg, #F8FAFF 0%, #fff 100%);
  border-bottom: 1px solid rgba(15, 23, 42, .06);
}
body.account-page .mg-oc__head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
body.account-page .mg-oc__date {
  color: #64748B;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: -.01em;
  word-break: keep-all;
}
body.account-page .mg-oc__chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
body.account-page .mg-oc-chip,
body.account-page .mg-account .status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 800;
  word-break: keep-all;
  flex-shrink: 0;
}
body.account-page .mg-oc-chip--self {
  background: #F6F2FF;
  color: #4A10D0;
  border: 1px solid #DCCEFE;
}
body.account-page .mg-oc-chip--gift {
  background: #FDF2F8;
  color: #BE185D;
  border: 1px solid #FBCFE8;
}
body.account-page .mg-account .status.delivered {
  background: #ECFDF5;
  color: #047857;
  border: 1px solid #A7F3D0;
}
body.account-page .mg-account .status.cancelled {
  background: #FFFBEB;
  color: #B45309;
  border: 1px solid #FDE68A;
}
body.account-page .mg-account .status.shipped {
  background: #F6F2FF;
  color: #4A10D0;
  border: 1px solid #DCCEFE;
}
body.account-page .mg-oc__cert {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
body.account-page .mg-oc__k,
body.account-page .mg-oc-kv__k {
  flex-shrink: 0;
  color: #64748B;
  font-size: 12px;
  font-weight: 700;
  word-break: keep-all;
}
body.account-page .mg-oc__cert-no {
  color: #0B1220;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: -.02em;
  white-space: nowrap;
}
body.account-page .mg-oc__body {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 16px 6px;
}
body.account-page .mg-oc__thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  flex-shrink: 0;
}
body.account-page .mg-oc__thumbs img {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid rgba(15, 23, 42, .08);
  background: #F8FAFC;
}
body.account-page .mg-oc__facts {
  flex: 1;
  min-width: 0;
  display: grid;
  gap: 8px;
}
body.account-page .mg-oc-kv__row,
body.account-page .mg-account .info-item,
body.account-page .mg-account .price-row,
body.account-page .mg-account .info-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}
body.account-page .mg-oc-kv__v,
body.account-page .mg-account .info-item .value {
  min-width: 0;
  color: #0B1220;
  font-size: 13.5px;
  font-weight: 800;
  text-align: right;
  word-break: keep-all;
}
body.account-page .mg-oc-kv__v--price {
  font-size: 15px;
  letter-spacing: -.02em;
}
body.account-page .mg-oc-kv__v--addr {
  text-align: right;
  white-space: normal;
  overflow-wrap: break-word;
  word-break: keep-all;
}
body.account-page .mg-oc-miss {
  color: #B45309;
  font-weight: 800;
}
body.account-page .mg-oc__foot {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 16px 16px;
}
body.account-page .mg-oc__foot .btn-track,
body.account-page .mg-oc__foot .btn-details {
  min-height: 38px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid rgba(15, 23, 42, .1);
  background: #fff;
  color: #334155;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
body.account-page .mg-oc__foot .btn-details {
  border-color: #DCCEFE;
  background: #F6F2FF;
  color: #4A10D0;
}
body.account-page .mg-account .tracking-info,
body.account-page .mg-account .order-details {
  margin: 0 16px 16px;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, .07);
  background: #F8FAFC;
}
body.account-page .mg-oc-tl {
  display: grid;
  gap: 12px;
}
body.account-page .mg-oc-tl__item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
body.account-page .mg-oc-tl__item i {
  flex-shrink: 0;
  margin-top: 2px;
  font-size: 16px;
  color: #94A3B8;
}
body.account-page .mg-oc-tl__item.is-done i { color: #16A34A; }
body.account-page .mg-oc-tl__item.is-now i { color: #4A10D0; }
body.account-page .mg-oc-tl__item strong {
  display: block;
  color: #0B1220;
  font-size: 13.5px;
  font-weight: 900;
  word-break: keep-all;
}
body.account-page .mg-oc-tl__item p {
  margin: 2px 0 0;
  color: #64748B;
  font-size: 12.5px;
  line-height: 1.45;
  word-break: keep-all;
}
body.account-page .mg-oc-tl__item span {
  display: block;
  margin-top: 4px;
  color: #94A3B8;
  font-size: 12px;
  font-weight: 700;
}
body.account-page .mg-oc-detail {
  display: grid;
  gap: 16px;
}
body.account-page .mg-oc-detail__sec h5,
body.account-page .mg-account .detail-section h5 {
  margin: 0 0 10px;
  color: #0B1220;
  font-size: 13.5px;
  font-weight: 900;
  word-break: keep-all;
}
body.account-page .mg-oc-kv,
body.account-page .mg-account .info-grid,
body.account-page .mg-oc-price,
body.account-page .mg-account .price-breakdown {
  display: grid;
  gap: 8px;
}
body.account-page .mg-oc-kv__row--total {
  padding-top: 8px;
  border-top: 1px dashed rgba(15, 23, 42, .1);
}
body.account-page .mg-oc-kv__row--total .mg-oc-kv__v {
  font-size: 16px;
  color: #4A10D0;
}
body.account-page .mg-oc-payico {
  width: 42px;
  height: auto;
  vertical-align: middle;
}
body.account-page .mg-oc-items,
body.account-page .mg-account .order-items {
  display: grid;
  gap: 10px;
}
body.account-page .mg-oc-item,
body.account-page .mg-account .order-items .item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, .06);
}
body.account-page .mg-oc-item img,
body.account-page .mg-account .order-items .item img {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  border-radius: 10px;
  object-fit: cover;
  background: #F8FAFC;
}
body.account-page .mg-oc-item__info,
body.account-page .mg-account .item-info {
  flex: 1;
  min-width: 0;
}
body.account-page .mg-oc-item__info strong,
body.account-page .mg-account .item-info h6 {
  display: block;
  margin: 0 0 4px;
  color: #0B1220;
  font-size: 13.5px;
  font-weight: 800;
  word-break: keep-all;
}
body.account-page .mg-oc-item__info span,
body.account-page .mg-account .item-meta {
  color: #64748B;
  font-size: 12px;
  font-weight: 600;
  word-break: keep-all;
}
body.account-page .mg-oc-item__price,
body.account-page .mg-account .item-price {
  flex-shrink: 0;
  color: #0B1220;
  font-size: 13.5px;
  font-weight: 900;
  white-space: nowrap;
}
@media (max-width: 767.98px) {
  body.account-page .mg-oc__body {
    flex-direction: column;
  }
  body.account-page .mg-oc__facts { width: 100%; }
  body.account-page .mg-oc-item,
  body.account-page .mg-account .order-items .item {
    flex-wrap: wrap;
  }
  body.account-page .mg-oc-item__price {
    width: 100%;
    text-align: right;
  }
}
@media (max-width: 390px) {
  body.account-page .mg-oc { border-radius: 16px; }
  body.account-page .mg-oc__head,
  body.account-page .mg-oc__body { padding-left: 12px; padding-right: 12px; }
  body.account-page .mg-oc__cert-no { font-size: 13px; }
  body.account-page .mg-oc-item img,
  body.account-page .mg-account .order-items .item img {
    width: 56px;
    height: 56px;
  }
}

body.account-page .mg-modu-done[hidden] { display: none !important; }
body.account-page .mg-modu-done {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px calc(16px + env(safe-area-inset-bottom));
  background: rgba(15, 23, 42, .55);
}
body.account-page .mg-modu-done__card {
  width: min(100%, 380px);
  margin: 0;
  padding: 22px 18px 16px;
  border-radius: 22px;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, .06);
  box-shadow: 0 24px 60px rgba(15, 23, 42, .28);
}
body.account-page .mg-modu-done__hero {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 10px;
}
body.account-page .mg-modu-done__ico {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  line-height: 1;
  background: #ECFDF5;
  color: #047857;
  font-size: 28px;
}
body.account-page .mg-modu-done__ico i {
  display: inline-flex;
  align-items: center;
  margin: 0;
  line-height: 1;
}
body.account-page .mg-modu-done__hero strong {
  min-width: 0;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.35;
  color: #0F172A;
  word-break: keep-all;
}
body.account-page .mg-modu-done__card p {
  margin: 0 0 18px;
  padding-left: 64px;
  font-size: 15px;
  font-weight: 650;
  line-height: 1.5;
  color: #334155;
  word-break: keep-all;
}
body.account-page .mg-modu-done__btns {
  display: flex;
  align-items: center;
  gap: 8px;
}
body.account-page .mg-modu-done__btns button {
  flex: 1 1 0;
  min-width: 0;
  min-height: 48px;
  margin: 0;
  border: 0;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
}
body.account-page .mg-modu-done__no {
  background: #F1F5F9;
  color: #334155;
}
body.account-page .mg-modu-done__yes {
  background: linear-gradient(135deg, #611EFA, #4A10D0);
  color: #fff;
}
@media (max-width: 390px) {
  body.account-page .mg-modu-done__card { padding: 18px 14px 14px; border-radius: 18px; }
  body.account-page .mg-modu-done__hero strong { font-size: 17px; }
  body.account-page .mg-modu-done__card p { padding-left: 0; }
}