/* Shared mobile storefront. Scoped to the default storefront pages. */
body.dy-theme {
    --store-red: #ff2c55;
    --store-ink: #1d2129;
    --store-muted: #86909c;
    --store-brown: #3a2218;
    --store-gold: #f5e7d8;
    --store-surface: #fff;
    --store-background: #f5f5f5;
    position: relative;
    width: 100%;
    max-width: 420px;
    height: 100vh;
    height: 100dvh;
    min-height: 0;
    margin: 0 auto;
    overflow: hidden;
    background: var(--store-background);
    color: var(--store-ink);
    font: 14px/1.5 -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
}

.dy-theme *, .dy-theme *::before, .dy-theme *::after { box-sizing: border-box; }
.dy-theme button, .dy-theme input, .dy-theme textarea { font: inherit; }
.dy-theme button, .dy-theme a { touch-action: manipulation; }
.dy-theme button { cursor: pointer; }
.dy-theme button:disabled { cursor: default; }
.dy-theme a { text-decoration: none; }
.dy-theme :focus-visible { outline: 2px solid var(--store-red); outline-offset: 3px; }
.dy-theme img { max-width: 100%; }

.dy-theme .fui-page-group {
    position: relative;
    width: 100%;
    height: 100%;
    background: var(--store-background);
}

.dy-theme .fui-page {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--store-background);
}

.dy-theme .fui-content {
    overscroll-behavior-y: contain;
    scrollbar-width: none;
}
.dy-theme .fui-content::-webkit-scrollbar { display: none; }

.dy-theme .fui-navbar {
    left: 50%;
    right: auto;
    bottom: 0;
    width: 100%;
    max-width: 420px;
    height: calc(62px + env(safe-area-inset-bottom, 0px));
    transform: translateX(-50%);
    padding-bottom: env(safe-area-inset-bottom, 0px);
    border-top: 1px solid #efefef;
    background: rgba(255, 255, 255, .98);
    box-shadow: none;
    z-index: 40;
}

@media (min-width: 421px) {
    body.dy-theme { box-shadow: 0 0 0 1px #ececec, 0 12px 50px rgba(42, 29, 20, .06); }
}

@media (prefers-reduced-motion: reduce) {
    .dy-theme *, .dy-theme *::before, .dy-theme *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        transition-duration: .01ms !important;
    }
}
