.support-codes { margin-top: 25px; max-width: 260px; }
.support-codes > h3 { font-size: 16px; font-weight: 600; }
.support-codes > p { margin: 5px 0 12px; font-size: 12px; color: #62666c; }
.support-code { margin-top: 10px; padding: 13px; border: 1px solid #deded9; border-radius: 15px; background: #fff; }
.support-code h4 { margin: 0 0 8px; font-size: 13px; font-weight: 600; }
.support-code img, .support-placeholder { width: min(135px, 100%); aspect-ratio: 1; border-radius: 8px; }
.support-code img { object-fit: contain; background: #fff; }
.support-placeholder { display: grid; place-items: center; border: 1px dashed #c9cbd0; color: #5a5e66; font-size: 12px; }
.support-codes [hidden] { display: none; }
.support-upload, .support-remove { display: inline-block; margin-top: 9px; border: 1px solid #deded9; padding: 5px 9px; border-radius: 999px; font-size: 12px; cursor: pointer; }
.support-upload { position: relative; overflow: hidden; }
.support-upload input { position: absolute; inset: 0; width: 100%; opacity: 0; cursor: pointer; }
.support-upload:focus-within, .support-remove:focus-visible { outline: 2px solid #385d9d; }
.support-status { margin-top: 3px; color: #535860; font-size: 11px; }
.support-status:empty { display: none; }
#top > a[href="/zh/account/topup"], #top > p { display: none; }
.km-social-icon {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--km-color);
}
.km-social-icon::before {
  content: "";
  width: 17px;
  height: 17px;
  background: #fff;
  mask: var(--km-icon) center / contain no-repeat;
}
[role="img"] > .km-social-icon { width: 100%; height: 100%; border-radius: 0; }
[role="img"] > .km-social-icon::before { width: 31px; height: 31px; }
.km-currency-button {
  flex: none;
  border: 1px solid #deded9;
  border-radius: 999px;
  padding: 6px 9px;
  color: #20242a;
  font-size: 12px;
  font-weight: 650;
  white-space: nowrap;
  cursor: pointer;
}
.km-currency-dialog {
  width: min(360px, calc(100% - 30px));
  margin: auto;
  border: 1px solid #deded9;
  border-radius: 18px;
  padding: 20px;
  background: #fff;
  color: #20242a;
}
.km-currency-dialog::backdrop { background: #1115; }
.km-currency-dialog h2 { font-size: 21px; font-weight: 650; }
.km-currency-dialog p { margin: 3px 0 14px; color: #63666b; font-size: 13px; }
.km-currency-dialog label { display: grid; gap: 4px; margin-bottom: 9px; font-size: 13px; }
.km-currency-dialog input, .km-currency-dialog select {
  width: 100%;
  padding: 6px 8px;
  border: 1px solid #deded9;
  border-radius: 8px;
}
.km-currency-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.km-currency-dialog output { display: block; margin: 12px 0; font-weight: 650; }
.km-currency-close { padding: 5px 12px; border: 1px solid #deded9; border-radius: 999px; cursor: pointer; }
.km-social-tile > :not(.km-social-icon) { display: none; }

#top > h1 { font-weight: 900; }
#top > h1 > span { font-weight: 500; }
[data-testid="featured-tile"] > span[style*="container-type"] > span { margin-inline: auto; }
@media (min-width: 768px) {
  main .scrollbar-none:has(> [data-testid="featured-tile"]) { align-items: center; }
}
.km-currency-options { display: grid; gap: 8px; }
.km-currency-options button {
  padding: 9px 12px;
  border: 1px solid #deded9;
  border-radius: 8px;
  text-align: left;
  cursor: pointer;
}
.km-currency-options button[aria-pressed="true"] { border-color: #20242a; font-weight: 700; }
.km-app-bar-with-currency { grid-template-columns: 44px minmax(0, 1fr) auto 44px; }
:root { --km-brand-display-font: "Times New Roman", "Songti SC", SimSun, serif; }
body > header a:has(> span > .km-home-logo) > span {
  font-family: var(--km-brand-display-font);
}
body > footer > div > div:first-child > div:first-child > span.inline-flex {
  font-family: var(--km-brand-display-font);
  font-size: 18px;
  line-height: 1.5;
  font-weight: 700;
}
#top > h1 {
  font-family: var(--km-brand-display-font);
  font-size: clamp(52px, 7.2vw, 112px);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: .94;
}
#top > h1 > span {
  display: inline-block;
  font-family: "Songti SC", SimSun, "Noto Serif CJK SC", serif;
  font-size: .58em;
  font-weight: 500;
  letter-spacing: -.025em;
}
#top [aria-roledescription="carousel"] img[src^="/social-icons/"] {
  object-fit: contain;
  padding: 12%;
  filter: brightness(0) invert(1);
}
.km-social-tile { padding: 0; }
.km-social-tile > .km-social-icon { position: absolute; inset: 0; }
.km-social-tile > .km-social-icon::before { width: 62%; height: 62%; }
.support-codes { width: 100%; max-width: 336px; }
.support-codes > h3 { margin-bottom: 10px; }
.support-code { display: grid; justify-items: center; gap: 8px; padding: 14px; }
.support-code h4 { margin: 0; text-align: center; }
.support-qr-frame {
  display: grid;
  place-items: center;
  width: min(146px, 100%);
  aspect-ratio: 1;
  border: 1px dashed #d5d6d8;
  border-radius: 9px;
  color: #62666c;
  font-size: 12px;
}
.support-qr-frame img { width: 100%; height: 100%; object-fit: contain; }
.km-currency-button { background: white; padding-inline: 7px 4px; }
header kbd { display: none; }
#top > h1 > span { font-size: .40em; }
#top > h1 { font-size: clamp(55px, 7.6vw, 118px); }
#top > h1 > br { display: none; }
#top > h1 > span { display: block; margin-top: 5px; font-size: .33em; line-height: 1.12; }
#faq .reveal > div:first-child > a[href="/zh/legal/refund"],
footer > div > p.select-none { display: none; }
.support-code { grid-template-columns: minmax(0, 130px) 1fr; align-items: center; justify-items: center; gap: 17px; padding: 17px; }
.support-platform { display: grid; justify-items: center; gap: 4px; text-align: center; }
.support-platform > .support-platform-icon { width: 34px; height: 34px; border-radius: 0; background: transparent; }
.support-platform > span { color: #62666c; font-size: 12px; }

/* Questions stay on the left; activity and support occupy the right column. */
#faq .km-faq-stacked { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); align-items:start; column-gap:32px; row-gap:24px; }
#faq .km-faq-stacked > div { min-width:0; width:100%; }
#faq .km-faq-stacked > div:first-child { grid-column:1; grid-row:1; }
#faq .km-faq-stacked > div:first-child > p { margin-bottom:0; }
#faq .km-faq-stacked > div:nth-child(2) { grid-column:1; grid-row:2; overflow-wrap:anywhere; white-space:normal; }
#faq .km-faq-stacked button[aria-controls] { white-space:normal; overflow-wrap:anywhere; }
#faq .km-faq-sidebar { grid-column:2; grid-row:2; align-self:stretch; display:flex; flex-direction:column; justify-content:space-between; gap:28px; }
#faq .support-codes { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; width:100%; max-width:none; margin:0; }
#faq .support-codes > h3 { grid-column:1/-1; margin:0; }
#faq .km-faq-sidebar > .support-codes { margin-top:auto; }
#faq .support-code { grid-template-columns:minmax(0,120px) minmax(0,1fr); gap:14px; padding:16px; min-width:0; margin:0; background:var(--color-surface,#fff); border-color:var(--color-line,#deded9); }
#faq .support-qr-frame { width:120px; max-width:100%; }
#faq .support-platform { min-width:0; }
#faq .purchase-activity { min-width:0; }
@media (min-width:768px) {
  #faq .purchase-activity { position:relative; }
  #faq .purchase-activity header { position:absolute; left:0; right:0; bottom:100%; }
  #faq .purchase-activity .purchase-activity-window { height:var(--faq-activity-height,380px); }
}
#faq .purchase-activity header { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:14px; }
#faq .purchase-activity h3 { font-size:16px; font-weight:600; margin:0; }
#faq .purchase-demo-label { font-size:11px; color:var(--color-ink-faint,#777); border:1px solid var(--color-line,#deded9); border-radius:20px; padding:2px 8px; }
#faq .purchase-activity-window { height:240px; overflow:hidden; position:relative; border-radius:18px; mask-image:linear-gradient(to bottom,transparent,#000 12%,#000 88%,transparent); }
#faq .purchase-activity-track { display:flex; flex-direction:column; }
#faq .purchase-activity-list { list-style:none; margin:0; padding:0; }
#faq .purchase-activity-row { display:flex; align-items:center; gap:12px; min-height:64px; margin:0 0 12px; padding:14px 16px; border:1px solid rgba(145,150,155,.18); border-radius:14px; background:rgba(255,255,255,.58); backdrop-filter:blur(16px); -webkit-backdrop-filter:blur(16px); box-shadow:0 4px 18px rgba(35,40,45,.035); }
#faq .purchase-activity-dot { display:grid; place-items:center; flex:none; width:28px; height:28px; border-radius:50%; background:rgba(61,157,118,.1); color:#31825e; font-size:13px; }
#faq .purchase-activity-text { flex:1; min-width:0; font-size:13px; line-height:1.6; overflow-wrap:anywhere; }
#faq .purchase-activity-text strong { font-weight:600; }
#faq .purchase-activity-time { flex:none; font-size:11px; color:var(--color-ink-faint,#777); }
#faq .purchase-activity-track.is-scrolling { animation:purchase-rise var(--activity-duration,20s) linear infinite; }
#faq .purchase-activity-window:hover .purchase-activity-track,#faq .purchase-activity-window:focus-within .purchase-activity-track { animation-play-state:paused; }
@keyframes purchase-rise { to { transform:translateY(-50%); } }
@media (prefers-reduced-motion:reduce) { #faq .purchase-activity-track.is-scrolling { animation:none; } #faq .purchase-activity-window { overflow:auto; mask-image:none; } }
@media (prefers-color-scheme:dark) { #faq .purchase-activity-row { background:color-mix(in srgb,var(--color-surface,#fff) 70%,transparent); } }
@media (min-width:768px) and (max-width:1199px) { #faq .support-codes { grid-template-columns:1fr; } }
@media (max-width:767px) { #faq .km-faq-stacked { grid-template-columns:minmax(0,1fr); } #faq .km-faq-sidebar { grid-column:1; grid-row:3; } #faq .support-codes { grid-template-columns:1fr; } #faq .purchase-activity-window { height:220px; } }

.km-home-logo { width: 28px; height: 28px; object-fit: contain; }
.km-home-nav { max-width: min(52vw, 840px); overflow-x: auto; scrollbar-width: none; }
.km-home-nav > a { flex: none; }
.km-mobile-home-nav { display: flex; overflow-x: auto; padding: 4px 16px; scrollbar-width: none; }
.km-mobile-home-nav > a { flex: none; }
.km-social-icon:has(.km-custom-social)::before { content: none; }
.km-custom-social { width: 64%; height: 64%; object-fit: contain; }
#top [aria-roledescription="carousel"] img:not([src^="/social-icons/"]) { object-fit: contain; padding: 10%; }
@media (min-width: 1024px) { .km-mobile-home-nav { display: none; } }

.km-home-resources { max-width: 1376px; margin: 48px auto 0; padding-inline: 16px; }
.km-home-resources h2 { font-size: clamp(22px, 3vw, 32px); margin-bottom: 16px; }
.km-home-resources ul { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 245px), 1fr)); gap: 12px; }
.km-home-resources li { display: flex; }
.km-home-resources a { width: 100%; padding: 16px; border: 1px solid currentColor; border-color: color-mix(in srgb, currentColor 17%, transparent); border-radius: 16px; }
.km-home-resources a:hover { border-color: currentColor; }
.km-home-resources img { display: inline-block; width: 24px; height: 24px; object-fit: contain; vertical-align: middle; margin-inline-end: 8px; }
.km-home-resources p { margin-top: 6px; font-size: 14px; opacity: .8; }
.km-resource-external { font-size: 12px; margin-inline-start: 8px; opacity: .7; }
.km-home-preview { text-align: center; padding: 8px 16px; background: #fff4c4; color: #352700; }
#top.km-custom-deck-logo [data-testid="deck-slot-logo"]{background:var(--surface) var(--km-deck-logo) center/contain no-repeat}
#top.km-custom-deck-logo [data-testid="deck-slot-logo"]>*{visibility:hidden}
[data-km-category-hint]{font-size:0}
[data-km-category-hint]::before{content:attr(data-km-category-hint);font-size:13px;color:var(--ink-soft)}
header .km-currency-button{appearance:none;min-height:30px;padding:4px 23px 4px 10px;border:1px solid var(--line);border-radius:999px;background:var(--bg);color:var(--ink);font:inherit;font-size:12px;line-height:1.25;cursor:pointer;background-image:linear-gradient(45deg,transparent 50%,currentColor 50%),linear-gradient(135deg,currentColor 50%,transparent 50%);background-position:calc(100% - 12px) 50%,calc(100% - 8px) 50%;background-size:4px 4px;background-repeat:no-repeat}
header .km-currency-button:hover{background-color:var(--hover)}
header .km-currency-button:focus-visible{outline:2px solid var(--ink);outline-offset:2px}
header .km-currency-button option{background:var(--surface);color:var(--ink)}

@media (min-width:1024px){
body.min-h-dvh>header>div>div:first-child{width: max-content; max-width: min(53vw, 840px); flex:none;}
body.min-h-dvh>header>div>div:first-child nav{min-width:0;overflow-x:auto;scrollbar-width:none;}
body.min-h-dvh>header>div>div:first-child nav>a{flex:none;}
}
@media (prefers-reduced-motion:no-preference){.km-social-tile { transition:transform .2s ease, box-shadow .2s ease; }.km-social-tile:hover { transform:translateY(-4px) scale(1.045); box-shadow:0 14px 28px #0003; }}

@media (min-width:1024px) {
  body > header.pointer-events-none > div > div:first-child nav { transition:none!important; }
  body > header.pointer-events-none > div > div:last-child .km-currency-menu { width:80px; }
  body > header.pointer-events-none > div > div:last-child > button:has(.lucide-globe) { width:32px; }
  body > header.pointer-events-none > div > div:last-child > button:has(.lucide-globe) > :not(svg) { display:none; }
}
.km-social-tile { pointer-events:auto; }
.km-social-tile > .km-social-icon { pointer-events:none; }
.km-social-tile:hover { z-index:1; }
@media (prefers-reduced-motion:reduce){.km-social-tile:hover { outline:2px solid var(--ink); outline-offset:3px; }}

@media (min-width:1024px) {
  body > header.pointer-events-none > div > div:last-child {
    box-sizing: border-box;
    width: max-content;
    min-width: 0;
    flex: none;
    justify-content: center;
    gap: 3px;
    padding-inline: 14px;
  }
  body > header.pointer-events-none > div > div:last-child > a:has(:is(.lucide-wallet,.lucide-user)) {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
  }
  body > header.pointer-events-none > div > div:last-child > a:has(:is(.lucide-search,.lucide-shopping-cart)) {
    width: 32px;
    flex: 0 0 32px;
  }
}
:root[data-theme="dark"]:has(body.min-h-dvh:not(.partner-page)) {
  color-scheme: dark;
  --surface: #1d1f22;
  --line: #44474d;
  --ink: #f3f2ee;
  --ink-soft: #d2d4d8;
  --ink-faint: #b7bbc2;
  --hover: #2c2f34;
}

:root[data-theme="dark"] body > header.pointer-events-none a:has(.lucide-search) > span {
  color: var(--ink-soft);
}

:root[data-theme="dark"] .km-managed-tabs button[aria-selected="true"] {
  background: var(--ink);
  color: var(--bg);
}

:root[data-theme="dark"] #faq :is(.support-code, .purchase-activity-row) {
  background: var(--surface);
  border-color: var(--line);
  color: var(--ink);
}

:root[data-theme="dark"] #faq :is(.purchase-activity-time, .purchase-activity-demo, .support-qr-frame span) {
  color: var(--ink-faint);
}

:root[data-theme="dark"] #faq .purchase-activity-dot {
  color: #83d6b1;
}

:root[data-theme="dark"] :is(.km-catalog-toolbar, .course-toolbar, .lookup-main, .km-search) input::placeholder {
  color: var(--ink-faint);
  opacity: 1;
}

:root[data-theme="dark"] .km-catalog-toolbar input {
  background: var(--surface);
  border-color: var(--line);
  color: var(--ink);
}


body.min-h-dvh {
  background-image: var(--km-pc-background, none);
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}
@media (max-width:767px) {
  body.min-h-dvh { background-image: var(--km-mobile-background, var(--km-pc-background, none)); }
}
body[data-km-shop] {
  display: flex;
  flex-direction: column;
}
body[data-km-shop] > footer { margin-top: auto; }
body[data-km-shop] > main { min-height: 0; }
body[data-km-shop] > footer { order: 1; }


body > header.pointer-events-none > div > div:first-child > div:has(> nav) {
  width: auto;
  min-width: 0;
}
.km-catalog-card .km-card-info {
  margin-top: 4px;
  padding: 8px 10px;
  border: 1px solid var(--line, #deded9);
  border-radius: 10px;
  background: color-mix(in srgb, var(--surface, #fff) 84%, transparent);
  backdrop-filter: blur(14px);
}
#km-hot .km-managed-tabs button {
  border: 1px solid var(--line, #deded9);
  cursor: pointer;
}
.km-newsletter-status { font-size: 13px; margin-top: 8px; }
.km-hot-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.km-hot-controls .km-hot-browse {
  display: inline-flex;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--ink, #15171b);
  color: var(--bg, #fff);
  font-size: 13px;
}

.km-local-section, .km-home-stats, #faq > .reveal {
  width: min(1376px, calc(100% - 32px));
  margin-inline: auto;
}
.km-local-section { padding-block: 48px; }
.km-local-section h1, #faq [data-km-faq-title] { font-size: clamp(24px, 4vw, 40px); font-weight: 650; }
.km-local-section p { margin: 12px 0; }
.km-local-section a { display: inline-block; background: var(--color-ink); color: var(--bg); padding: 8px 16px; border-radius: 999px; }
body:has(> .km-esim-page) { background-image: none; }
body:has(> .km-esim-page) {
  display: flex;
  flex-direction: column;
}
body:has(> .km-esim-page) > footer { margin-top: auto; order: 1; }
body:has(> .km-esim-page) > main { margin-bottom: 32px; }

/* The main storefront pages share the order lookup page ground. */
:root { --km-storefront-dark-ground: #15171c; }
html[data-theme="dark"]:has(body.lookup-page, body.course-page, body #top, body .km-catalog, body > .km-esim-page) {
  --bg: var(--km-storefront-dark-ground);
  background-color: var(--km-storefront-dark-ground);
}
html[data-theme="dark"] body:is(.lookup-page, .course-page, :has(#top), :has(.km-catalog), :has(> .km-esim-page)) {
  background-color: var(--km-storefront-dark-ground);
}

.km-catalog-switcher a[hidden]{display:none}
/* Custom footer groups inherit the storefront typeface and wrap as needed. */
#footer [data-kmigo-footer="ready"]{display:grid;grid-template-columns:repeat(auto-fit,minmax(100px,1fr));gap:24px;min-width:0;width:100%;font-family:inherit}
#footer [data-kmigo-footer="ready"]>div{min-width:0;overflow-wrap:anywhere}
@media(min-width:1024px){#footer>div>div:first-child{flex-wrap:wrap;gap:32px}#footer [data-kmigo-footer="ready"]{flex:1 1 480px;width:auto}#footer>div>div:first-child>form{flex:0 1 340px}}
@media(min-width:1024px){#footer>div>div:first-child>div:first-child{flex:0 1 210px;min-width:180px}#footer [data-kmigo-footer="ready"]{margin-inline-start:16px}}
