/* Shared mobile navigation, article/history pagination and the email dialog. */
body.unified-storefront .article-end-actions { display:flex; justify-content:center; width:100%; margin:28px 0 8px; }
body.unified-storefront .article-end-actions > .ghost-btn { display:inline-flex; align-items:center; justify-content:center; min-height:44px; padding:10px 24px; text-decoration:none; }
body.unified-storefront .error-support-link { display:inline-flex; align-items:center; justify-content:center; gap:8px; max-width:100%; min-height:44px; padding:8px 12px; border:1px solid var(--ui-line); border-radius:10px; color:var(--ui-brand); background:var(--ui-bg); font:500 14px/1.4 var(--ui-font); text-align:center; text-decoration:none; overflow-wrap:anywhere; cursor:pointer; }
body.unified-storefront .error-support-link .ui-icon { flex-shrink:0; width:20px; height:20px; }
body.unified-storefront .error-support-link:focus-visible { outline:2px solid var(--ui-brand); outline-offset:3px; }
body.unified-storefront .app-top-notice > .error-support-link { grid-column:2 / -1; justify-self:start; }
body.unified-storefront :is(.email-auth-card, .splash-fallback) > .error-support-link { margin-top:16px; }
body.unified-storefront :is(.telegram-quote, .custom-usd-quote) > .error-support-link { flex:0 1 100%; }
body.unified-storefront .storefront-breadcrumbs { width:100%; min-width:0; margin:8px 0 20px; color:var(--ui-muted); font:400 13px/1.5 var(--ui-font); }
body.unified-storefront .storefront-breadcrumbs ol { display:flex; flex-wrap:wrap; align-items:center; justify-content:center; gap:4px 10px; margin:0; padding:0; list-style:none; }
body.unified-storefront .storefront-breadcrumbs li { display:flex; align-items:baseline; gap:10px; min-width:0; max-width:100%; }
body.unified-storefront .storefront-breadcrumbs :is(a,button) { display:inline-flex; align-items:center; min-height:32px; padding:0; border:0; background:none; color:inherit; font:inherit; text-decoration:none; cursor:pointer; }
body.unified-storefront .storefront-breadcrumbs :is(a,button):hover { color:var(--ui-brand); }
body.unified-storefront .storefront-breadcrumbs :is(a,button):focus-visible { outline:2px solid var(--ui-brand); outline-offset:3px; border-radius:3px; }
body.unified-storefront .storefront-breadcrumbs [aria-current] { min-width:0; overflow-wrap:anywhere; color:var(--ui-text); }
body.unified-storefront .storefront-breadcrumbs .breadcrumb-separator { flex-shrink:0; }
body.web-store.unified-storefront.desktop-storefront .storefront-breadcrumbs { display:none; }
/* Dock the mobile bar to every viewport edge, including the safe area. Keep
   controls centered on wide Mini App windows while the opaque surface spans them. */
body.unified-storefront:not(.desktop-storefront) :is(.bottom-nav,.website-nav) { max-width:none !important; grid-template-columns:repeat(4,minmax(0,146px)) !important; justify-content:center; min-height:calc(var(--ui-nav-height) + var(--ui-safe-bottom)) !important; }
body.unified-storefront:not(.desktop-storefront) :is(.bottom-nav,.website-nav) :is(.nav-icon,.ui-icon) { width:22px !important; height:22px !important; }
body.unified-storefront .website-footer > * { min-width:0; max-width:100%; }
body.unified-storefront .website-footer-support { display:flex; flex-direction:column; align-items:center; gap:8px; color:var(--ui-text); }
body.unified-storefront .website-footer-support > b { margin:0 0 4px; font-size:18px; line-height:1.4; }
body.unified-storefront .website-footer-support a { display:flex; align-items:center; justify-content:center; gap:12px; min-height:44px; max-width:100%; color:var(--ui-text); font-size:16px; line-height:1.5; text-decoration:none; }
body.unified-storefront .website-footer-support a span { min-width:0; overflow-wrap:anywhere; }
body.unified-storefront .website-footer-support .ui-icon { flex:0 0 22px; width:22px; height:22px; }
body.unified-storefront .website-footer :is(a,button):hover { color:var(--ui-brand); }
body.unified-storefront .website-footer :is(a,button):focus-visible { outline:2px solid var(--ui-brand); outline-offset:4px; border-radius:4px; }
body.unified-storefront:not(.desktop-storefront) .website-footer { display:flex; flex-direction:column; align-items:center; gap:24px; margin:40px 0 0; padding:28px 16px; border:0; border-radius:20px; background:var(--ui-surface); flex-shrink:0; }
body.unified-storefront .mobile-footer-brand { display:flex; flex-direction:column; align-items:center; gap:16px; }
body.unified-storefront .mobile-footer-logo { display:flex; align-items:center; gap:10px; padding:0; border:0; background:none; color:var(--ui-text); font-size:26px; }
body.unified-storefront .mobile-footer-logo img { width:44px; height:44px; border-radius:10px; }
body.unified-storefront .mobile-footer-brand p { max-width:350px; margin:0; font-size:14px; line-height:1.5; color:var(--ui-text); text-align:center; }
body.unified-storefront:not(.desktop-storefront) .website-footer-links { position:relative; flex-direction:column; align-items:center; gap:8px; padding-top:24px; font-size:14px; }
body.unified-storefront:not(.desktop-storefront) .website-footer-links::before { content:''; position:absolute; top:0; left:50%; width:48px; height:2px; border-radius:2px; background:var(--ui-brand); opacity:.3; transform:translateX(-50%); }
body.unified-storefront:not(.desktop-storefront) .website-footer-links a { justify-content:center; min-height:44px; color:var(--ui-text); }
body.unified-storefront:not(.desktop-storefront) .website-copyright { margin:0; font-size:13px; color:var(--ui-muted); }
body.web-store.unified-storefront.desktop-storefront .mobile-footer-brand { display:none; }
/* Shopping and account screens stay compact in Mini App and mobile web. */
body.unified-storefront:not(.desktop-storefront):is(
  [data-storefront-screen="service"], [data-storefront-screen="service-loading"],
  [data-storefront-screen="custom-usd"], [data-storefront-screen="telegram-direct"],
  [data-storefront-screen="cart"], [data-storefront-screen="payment"],
  [data-storefront-screen="website-checkout"], [data-storefront-screen="orders"],
  [data-storefront-screen="order"], [data-storefront-screen="profile"]
) .website-footer { display:none; }
/* Leave room for the docked bar, including on short displays. */
body.unified-storefront:not(.desktop-storefront)[data-storefront-screen="service"][data-giftcard-layout="true"]:has(.denomination-section) .app-shell,
body.unified-storefront:not(.desktop-storefront)[data-storefront-screen="service"][data-giftcard-layout="true"]:has(.denomination-section) .app-shell:has(.service-selection-dock:not([hidden])) { height:auto !important; min-height:100dvh !important; padding-bottom:calc(var(--storefront-nav-height,calc(var(--ui-nav-height) + var(--ui-safe-bottom))) + 4px) !important; }
body.unified-storefront:not(.desktop-storefront)[data-storefront-screen="service"][data-giftcard-layout="true"]:has(.denomination-section) .content { flex:0 0 auto; }
body.unified-storefront:not(.desktop-storefront)[data-storefront-screen="service"][data-giftcard-layout="true"]:has(.denomination-section) .denomination-section { flex:none; height:var(--gift-section-height,max(144px,calc(100dvh - 360px - var(--storefront-dock-height,0px)))); }
body.unified-storefront:not(.desktop-storefront)[data-storefront-screen="service"][data-giftcard-layout="true"] .denomination-viewport { max-height:none; }
body.unified-storefront :is(.website-orders-controls,.article-pagination-controls) { display:flex; flex-direction:column; align-items:center; gap:20px; margin-top:16px; }
body.unified-storefront :is(.website-orders-more,.pagination-more) { width:auto; min-height:44px; padding:12px 18px; border:0; border-radius:10px; background:var(--ui-tint); color:var(--ui-brand); font-size:14px; }
body.unified-storefront :is(.website-orders-pagination,.storefront-pagination) { display:flex; flex-wrap:wrap; align-items:center; justify-content:center; gap:6px; }
body.unified-storefront :is(.website-orders-pagination,.storefront-pagination) :is(button,a) { display:grid; place-items:center; min-width:40px; min-height:40px; padding:6px; border:0; border-radius:50%; background:transparent; color:var(--ui-text); font-size:16px; text-decoration:none; }
body.unified-storefront :is(.website-orders-pagination,.storefront-pagination) [aria-current="page"] { background:var(--ui-action); color:var(--ui-action-text); }
body.unified-storefront .website-order-copy { display:flex; flex-direction:column; gap:6px; min-width:0; }
body.unified-storefront .website-order-copy b { font-size:18px; overflow-wrap:anywhere; }
body.unified-storefront .website-order-copy small { color:var(--ui-muted); font-size:14px; line-height:1.4; font-weight:400; }
body.unified-storefront:not(.desktop-storefront) .orders-list { display:flex; flex-direction:column; gap:12px; }
body.unified-storefront:not(.desktop-storefront) .orders-list .website-order-row { display:grid !important; grid-template-columns:minmax(0,1fr) 16px; align-items:center !important; gap:12px !important; padding:20px !important; border:0 !important; border-radius:12px !important; background:var(--ui-surface) !important; }
body.unified-storefront:not(.desktop-storefront) .website-order-copy { grid-column:1; }
body.unified-storefront:not(.desktop-storefront) .website-order-row > .order-row-amount { grid-column:1; font-size:16px; white-space:normal; overflow-wrap:anywhere; }
body.unified-storefront:not(.desktop-storefront) .website-order-row > i { position:static; grid-column:2; grid-row:1/3; }
body.unified-storefront .article-list-error { color:var(--ui-danger); text-align:center; }
body.unified-storefront .email-auth-dialog { width:calc(100% - 32px); max-width:430px; max-height:calc(100dvh - 32px); padding:32px 24px 24px; border:1px solid var(--ui-line); border-radius:20px; background:var(--ui-bg); color:var(--ui-text); overflow:auto; box-shadow:0 24px 80px #0003; }
body.unified-storefront .email-auth-dialog::backdrop { background:#0008; }
body.unified-storefront .email-auth-dialog .email-auth-close { position:absolute; right:8px; top:8px; width:40px; height:40px; min-height:40px; border:0; background:none; color:var(--ui-text); }
body.unified-storefront .email-auth-dialog .customer-form-card { display:block; width:100%; max-width:none; min-width:0; margin:0; padding:0; border:0; background:none; box-shadow:none; }
body.unified-storefront .email-auth-dialog .customer-form-header { display:flex; flex-direction:column; align-items:center; gap:14px; margin:0 0 24px; text-align:center; }
body.unified-storefront .email-auth-dialog .customer-form-icon { display:grid; place-items:center; width:52px; height:52px; margin:0; border-radius:50%; background:var(--ui-tint); color:var(--ui-brand); }
body.unified-storefront .email-auth-dialog .customer-form-header h1 { margin:0 !important; font-size:26px !important; }
body.unified-storefront .email-auth-dialog .customer-form-header p { margin:0; color:var(--ui-muted); font-size:14px; line-height:1.5; overflow-wrap:anywhere; }
body.unified-storefront .email-auth-dialog .customer-form-email { color:var(--ui-text); font-weight:600; }
body.unified-storefront .email-auth-dialog form { display:flex; flex-direction:column; gap:12px; }
body.unified-storefront .email-auth-dialog .customer-form-field { width:100%; margin:0; }
body.unified-storefront .email-auth-dialog .email-otp-field { position:relative; width:100%; }
body.unified-storefront .email-auth-dialog .email-otp-cells { display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); gap:8px; }
body.unified-storefront .email-auth-dialog [data-otp-cell] { display:grid; place-items:center; height:50px; border:1px solid var(--ui-line); border-radius:8px; background:var(--ui-surface); font-size:24px; font-weight:600; }
body.unified-storefront .email-auth-dialog [data-otp-cell].is-current { border-color:var(--ui-brand); box-shadow:0 0 0 1px var(--ui-brand); }
body.unified-storefront .email-auth-dialog #email-login-code { position:absolute; inset:0; width:100%; height:100%; min-height:0; margin:0; padding:0; opacity:.01; font-size:16px; letter-spacing:0; border:0; background:transparent; color:transparent; caret-color:transparent; }
body.unified-storefront .email-auth-dialog #email-login-code:focus-visible { outline:none !important; }
body.unified-storefront .email-auth-dialog .primary-btn { width:100% !important; min-width:0; min-height:48px; margin:0; font-size:16px; }
body.unified-storefront .email-auth-dialog .customer-form-actions { display:flex; flex-direction:column; align-items:center; gap:4px; margin-top:16px; }
body.unified-storefront .email-auth-dialog .customer-form-actions button { width:auto; min-height:40px; padding:8px 12px; border:0; background:none; color:var(--ui-brand); font-size:14px; }
body.unified-storefront .email-auth-dialog button:disabled { opacity:.45; }
body.unified-storefront .email-auth-dialog #email-auth-message { margin:0; color:var(--ui-danger); font-size:14px; }
body.unified-storefront .email-auth-dialog #email-auth-message:empty { display:none; }
@media (max-width:360px) { body.unified-storefront .email-auth-dialog { padding:32px 16px 20px; } body.unified-storefront .email-auth-dialog .email-otp-cells { gap:5px; } }
@media (min-width:1024px) {
  body.web-store.unified-storefront.desktop-storefront[data-storefront-service="afk-journey"] .pubg-topup-card form { grid-template-columns:minmax(0,1fr) minmax(280px,1fr); gap:12px 24px; }
  body.web-store.unified-storefront.desktop-storefront[data-storefront-service="afk-journey"] .pubg-topup-card .pubg-checkout-dock:not([hidden]) { position:static !important; inset:auto !important; width:100% !important; display:flex !important; align-items:center; gap:24px; transform:none !important; background:none !important; }
  body.web-store.unified-storefront.desktop-storefront[data-storefront-service="afk-journey"] .topup-pay-button { flex:1; width:auto !important; min-width:120px !important; }
  body.web-store.unified-storefront.desktop-storefront[data-storefront-service="afk-journey"] .topup-pay-button > .ui-icon { display:none; }
  body.web-store.unified-storefront.desktop-storefront .desktop-afk-total { display:flex; flex-wrap:wrap; align-items:center; gap:4px 6px; min-width:120px; font-size:16px; }
  body.web-store.unified-storefront.desktop-storefront .desktop-afk-total b { white-space:nowrap; }
  body.web-store.unified-storefront.desktop-storefront[data-storefront-service="afk-journey"] .pubg-form-error { grid-column:1/-1; }
  html.keyboard-open body.web-store.unified-storefront.desktop-storefront[data-storefront-service="afk-journey"] .pubg-checkout-dock:not([hidden]) { display:flex !important; }
}
/* Override legacy card/pill rules only inside the new components. */
body.unified-storefront .email-auth-dialog .email-auth-card.customer-form-card { display:block !important; padding:0 !important; border:0 !important; border-radius:0 !important; background:none !important; gap:0; }
body.unified-storefront .email-auth-dialog .customer-form-header p { max-width:none; }
body.unified-storefront .email-auth-dialog .customer-form-email { display:inline; margin:0; }
body.unified-storefront .email-auth-dialog .email-auth-close { background:none !important; border:0 !important; }
body.unified-storefront .email-auth-dialog #email-login-code { opacity:0; min-height:0 !important; padding:0 !important; border:0 !important; background:transparent !important; color:transparent !important; font-size:16px !important; }
body.unified-storefront .email-auth-dialog .customer-form-actions button { border:0 !important; background:none !important; }
body.unified-storefront .email-auth-dialog .primary-btn:disabled { opacity:1; background:var(--ui-surface) !important; color:var(--ui-muted) !important; }
body.unified-storefront .orders-list { gap:16px !important; }
body.unified-storefront .orders-list .website-order-row .website-order-copy small { display:flex; flex-wrap:wrap; align-items:center; gap:4px 6px; margin:0 !important; padding:0 !important; border:0 !important; border-radius:0 !important; background:none !important; color:var(--ui-muted) !important; font-size:14px !important; font-weight:400 !important; line-height:1.4; white-space:normal; }
body.unified-storefront :is(.website-orders-more,.pagination-more) { border:0 !important; background:var(--ui-tint) !important; color:var(--ui-brand) !important; }
@media (min-width:1024px) {
  body.web-store.unified-storefront.desktop-storefront[data-storefront-service="afk-journey"] .pubg-topup-card .pubg-checkout-dock { flex-direction:row !important; gap:24px !important; }
}
body.unified-storefront .email-auth-dialog .customer-form-actions .ghost-btn { color:var(--ui-brand) !important; }
@media (min-width:1024px) {
  body.web-store.unified-storefront.desktop-storefront .orders-list .website-order-row.pretty { grid-template-rows:auto !important; }
  body.web-store.unified-storefront.desktop-storefront .orders-list .website-order-row > .order-row-amount { grid-column:2; grid-row:1; text-align:center !important; }
  body.web-store.unified-storefront.desktop-storefront .orders-list .website-order-row > i { position:static; grid-column:3; grid-row:1; }
}

body.unified-storefront .website-order-copy .order-list-status { display:inline-flex !important; flex-direction:row; text-align:left; white-space:normal; }

