/* Imported catalog/footer spacing; retain Chuchu Store colors and branding. */
/* Strawberry/rose layers follow the storefront palette, never the admin UI. */
body.chu-storefront {
    background-color: var(--site-color-primary, #f8bfd4);
    background-image:
        radial-gradient(ellipse at 8% 12%, color-mix(in srgb, var(--site-color-gradient-end, #d6336c) 18%, transparent), transparent 42%),
        radial-gradient(ellipse at 92% 42%, color-mix(in srgb, var(--site-color-accent, #dc6f99) 24%, transparent), transparent 45%),
        linear-gradient(150deg, color-mix(in srgb, var(--site-color-primary, #f8bfd4) 82%, #ffe0ec), var(--site-color-primary, #f8bfd4) 55%, var(--site-color-primary-dark, #f3a0be));
}
body.chu-storefront > header {
    background: linear-gradient(110deg, color-mix(in srgb, var(--site-color-primary, #f8bfd4) 92%, transparent), color-mix(in srgb, var(--site-color-primary-dark, #f3a0be) 94%, transparent));
    border-bottom-color: color-mix(in srgb, var(--site-color-gradient-start, #be185d) 22%, transparent);
    box-shadow: 0 4px 24px color-mix(in srgb, var(--site-color-link, #8e0b3e) 10%, transparent);
}
body.chu-storefront #storefront-footer {
    background: linear-gradient(135deg, var(--site-color-primary-dark, #f3a0be), color-mix(in srgb, var(--site-color-primary, #f8bfd4) 82%, var(--site-color-accent, #dc6f99)));
    border-top: 1px solid color-mix(in srgb, var(--site-color-gradient-start, #be185d) 22%, transparent);
}

/* Keep section spacing independent of catalog size. An idle 1px sentinel
   remains observable; only loading/retry feedback reserves a visible row. */
.home-catalog-block { margin-bottom: 1.5rem; }
.home-catalog-sentinel { min-height: 1px; }
.home-catalog-sentinel [data-catalog-loading][hidden] { display: none; }
.home-catalog-sentinel [data-catalog-loading]:not([hidden]) {
    display: flex;
    align-items: center;
    min-height: 2.5rem;
    padding: .5rem 0;
    line-height: 1.5;
}

/* Keep social links on the left and the payment pill on the right. */
.storefront-footer__payment-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: .5rem;
}
.storefront-footer__payments { white-space: nowrap; flex: none; }
.storefront-footer__payments img { flex: none; width: auto; object-fit: contain; }
#storefront-footer p { text-align: center; }

/* Keep the footer compact; a stable raised viewport anchor clears its content
   without pushing centered copyright into a tall empty footer. */
body .floating-support-widget { --support-bottom: 132px; }
@media (min-width: 768px) {
    body .floating-support-widget { --support-bottom: 96px; }
}
#storefront-footer.storefront-footer--with-support {
    padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
}
body.install-app-banner-visible .floating-support-widget {
    bottom: calc(var(--support-bottom, 132px) + var(--install-banner-offset, 94px) + env(safe-area-inset-bottom, 0px));
    transition: none;
}
body.install-app-banner-visible .floating-support-widget__menu {
    max-height: min(28rem, calc(100dvh - var(--support-bottom, 132px) - var(--install-banner-offset, 94px) - 100px - env(safe-area-inset-bottom, 0px)));
}

/* Center both copy lines across the full footer, with the same compact inset
   whether support is configured on the left or right. */
@media (max-width: 767px) {
    #storefront-footer.storefront-footer--with-support .storefront-footer__copy {
        padding-inline: 0;
        align-items: center;
        text-align: center;
    }
}
body.install-app-banner-visible #storefront-footer.storefront-footer--with-support {
    padding-bottom: calc(12px + var(--install-banner-offset, 94px) + env(safe-area-inset-bottom, 0px));
}

/* Keep one checkout form while positioning the mobile player fields before
   products and coupon/payment controls after products. Shared by regular and
   Robux storefronts, including the precompiled Robux stylesheet path. */
@media (max-width: 767px) {
    .chu-checkout-split,
    .chu-checkout-form-split { display: contents; }
    [data-checkout-player-section] { order: 2; }
    [data-checkout-products-section] { order: 3; }
    [data-checkout-payment-section] { order: 4; }
}
@media (min-width: 768px) {
    [data-checkout-player-section],
    [data-checkout-payment-section] { display: contents; }
}
