html.storefront-mobile {
    font-size: clamp(18px, 5vw, 20px) !important;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body.storefront-catalog,
.storefront-catalog .fui-page,
.storefront-catalog .fui-content {
    width: 100%;
    max-width: 480px;
    margin-inline: auto;
}

.reference-goods .detail-gallery,
.reference-goods .detail-gallery-track,
.reference-goods .content-images,
.reference-goods .voucher-information,
.reference-goods .voucher-information > *,
.product-review-filters,
.storefront-catalog .fui-goods-item {
    min-width: 0;
    max-width: 100%;
}

.reference-goods .detail-product-title { font-size: clamp(16px, 4.3vw, 18px); }
.reference-goods .detail-price { font-size: clamp(24px, 6.4vw, 28px); }
.reference-goods .detail-price-line, .reference-goods .detail-price-meta { gap: 8px; }
.reference-goods .detail-shop-label { min-width: 0; overflow-wrap: anywhere; }
.reference-goods #addressPopup,
.reference-goods #buyPopup .checkout-scroll { overscroll-behavior-y: contain; }

.reference-goods #addressPopup {
    max-height: calc(100vh - 20px);
    max-height: calc(100dvh - env(safe-area-inset-top, 0px) - 10px);
    overflow-y: auto;
    padding-bottom: env(safe-area-inset-bottom, 0px);
}

.reference-goods #buyPopup .checkout-scroll {
    max-height: min(70vh, 540px);
    max-height: min(76dvh, 540px, calc(100dvh - 66px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)));
}

.reference-goods #buyPopup textarea,
.reference-goods #buyPopup input[type="number"] { font-size: 16px; }
.reference-goods .checkout-footer { padding-inline: max(10px, env(safe-area-inset-left, 0px)) max(10px, env(safe-area-inset-right, 0px)); }
.product-reviews-page main { width: 100%; }

@media (max-width: 379px) {
    .reference-goods #buyPopup .checkout-scroll { padding: 7px; gap: 7px; }
    .reference-goods .checkout-product-row { grid-template-columns: 62px minmax(0, 1fr); padding: 9px; }
    .reference-goods .checkout-product-row img { width: 62px; height: 62px; }
    .reference-goods .checkout-product-price .price { font-size: 18px; }
    .reference-goods .checkout-product-price .number-input > * { width: 27px; }
    .reference-goods .checkout-delivery,
    .reference-goods .checkout-note,
    .reference-goods .checkout-methods { padding-inline: 10px; }
    .reference-goods .checkout-footer { gap: 8px; }
    .reference-goods .checkout-footer strong { font-size: 16px; }
    .reference-goods .fui-navbar .nav-item:not(.buy-now) { flex-basis: 38px; }
}

.reference-goods .voucher-information { grid-template-columns: minmax(0, 1fr); }

.reference-goods .detail-gallery-standard .detail-gallery-track { aspect-ratio: 750 / 548; }
.reference-goods .detail-gallery-standard .detail-gallery-track img { object-fit: contain; }
.reference-goods .product-store-placeholder {
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    border-radius: 10px;
    background: #f1dac1;
    color: #604028;
    font-size: 19px;
    font-weight: 600;
}

.voucher-information .voucher-badges.voucher-badges--refund {
    flex-wrap: wrap;
    overflow-x: visible;
}
.voucher-badges--refund .voucher-refund-badge {
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
}
.voucher-info-row .voucher-refund-label {
    min-width: 0;
    overflow-wrap: anywhere;
}
.voucher-info-row .voucher-refund-label::before { flex: 0 0 auto; }
