/*
 * Payism storefront refresh (web design pass, 2026-10-20).
 * One shared card / chip / row system for the customer pages. Colours come
 * from the CSS variables the layout sets from the business settings
 * (--primary, --soft-primary, --success, --warning); only neutrals are fixed.
 */
:root {
    --psf-ink: #1f2937;
    --psf-muted: #6b7280;
    --psf-line: #e6eaf0;
    --psf-page: #f6f8fb;
    --psf-card: #ffffff;
    --psf-radius: 14px;
    --psf-shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 4px 16px rgba(16, 24, 40, .05);
    --psf-neutral-bg: #f1f3f6;
    --psf-neutral-ink: #4b5563;
    --psf-warn-bg: #fff5e6;
    --psf-warn-ink: #b45309;
    --psf-ok-bg: #ecf8f0;
    --psf-ok-ink: #1e7f4f;
    --psf-danger-bg: #fdeeee;
    --psf-danger-ink: #b42318;
}

/* ---------- C1: no floating debug-looking button stack ---------- */
.floating-buttons-section { display: none !important; }

/* ---------- C2: one price accent ---------- */
.psf-off-badge {
    background-color: #fff !important;
    background-image: linear-gradient(var(--soft-primary), var(--soft-primary)) !important;
    color: var(--primary) !important;
    box-shadow: none !important;
    font-weight: 700 !important;
}
span.psf-off-badge.rounded-circle,
span.psf-off-badge.absolute-top-left,
span.psf-off-badge.product-discount-badge {
    width: auto !important;
    min-width: 0 !important;
    height: 22px !important;
    min-height: 22px !important;
    padding: 0 8px !important;
    font-size: 12px !important;
    border-radius: 999px !important;
}
del.psf-mrp { color: var(--psf-muted) !important; font-weight: 400 !important; }

/* ---------- Page shell ---------- */
.psf-page { padding: 24px 0 40px; background: var(--psf-page); color: var(--psf-ink); }
.psf-container { max-width: 1040px; margin: 0 auto; padding: 0 16px; }
.psf-container--narrow { max-width: 760px; }
.psf-stack { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.psf-grid { display: grid; gap: 16px; align-items: start; margin-top: 16px; }
.psf-grid--2-1 { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); }
@media (max-width: 991.98px) { .psf-grid--2-1 { grid-template-columns: minmax(0, 1fr); } }

.psf-card {
    background: var(--psf-card);
    border: 1px solid var(--psf-line);
    border-radius: var(--psf-radius);
    box-shadow: var(--psf-shadow);
    padding: 20px;
    min-width: 0;
}
.psf-card__title { font-size: 16px; font-weight: 700; margin: 0 0 14px; color: var(--psf-ink); }
.psf-card__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.psf-card__head .psf-card__title { margin: 0; }
.psf-subhead { font-size: 12px; color: var(--psf-muted); margin: 12px 0 6px; text-transform: uppercase; letter-spacing: .04em; }
.psf-muted { color: var(--psf-muted); font-size: 13px; line-height: 1.5; }
.psf-dot { margin: 0 4px; color: var(--psf-muted); }
.psf-eyebrow {
    display: inline-block; padding: 3px 12px; border-radius: 999px;
    background: var(--soft-primary); color: var(--primary);
    font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
}
.psf-tag { display: inline-block; margin-top: 8px; padding: 2px 10px; border-radius: 6px; background: var(--psf-neutral-bg); color: var(--psf-neutral-ink); font-size: 12px; }

/* ---------- Chips ---------- */
.psf-chip-row { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.psf-chip {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; line-height: 1.3;
    background: var(--psf-neutral-bg); color: var(--psf-neutral-ink); white-space: nowrap;
}
.psf-chip i { font-size: 16px; }
.psf-chip--sm { padding: 3px 10px; font-size: 12px; }
.psf-chip--neutral { background: var(--psf-neutral-bg); color: var(--psf-neutral-ink); }
.psf-chip--warning { background: var(--psf-warn-bg); color: var(--psf-warn-ink); }
.psf-chip--success { background: var(--psf-ok-bg); color: var(--psf-ok-ink); }
.psf-chip--danger  { background: var(--psf-danger-bg); color: var(--psf-danger-ink); }
.psf-chip--info    { background: var(--soft-primary); color: var(--primary); }

/* ---------- Buttons ---------- */
.psf-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 18px; }
.psf-btn { min-width: 160px; min-height: 42px; border-radius: 999px !important; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; }
@media (max-width: 575.98px) {
    .psf-actions { flex-direction: column; }
    .psf-actions .psf-btn { width: 100%; }
}

/* ---------- Hero ---------- */
.psf-hero { text-align: center; padding: 28px 20px; }
.psf-hero--success { background: linear-gradient(180deg, var(--psf-ok-bg) 0%, #fff 70%); }
.psf-hero__icon {
    width: 52px; height: 52px; border-radius: 50%; margin: 0 auto 10px;
    display: flex; align-items: center; justify-content: center;
    background: var(--success); color: #fff; font-size: 28px;
}
.psf-hero__title { font-size: 26px; font-weight: 800; color: var(--psf-ok-ink); margin: 10px 0 6px; line-height: 1.25; }
.psf-hero__title-rest { display: inline; }
.psf-hero__sub { color: var(--psf-muted); font-size: 14px; margin: 0 0 14px; overflow-wrap: anywhere; }
.psf-hero__sub strong { color: var(--psf-ink); }
@media (max-width: 575.98px) {
    .psf-hero__title { font-size: 22px; color: var(--psf-ink); }
    .psf-hero__title-rest { display: block; font-size: 15px; font-weight: 500; color: var(--psf-muted); margin-top: 4px; }
}

/* ---------- Item rows ---------- */
.psf-item { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-top: 1px solid var(--psf-line); }
.psf-card__title + .psf-item, .psf-subhead + .psf-item { border-top: 0; padding-top: 0; }
.psf-item__thumb { width: 72px; height: 72px; flex: 0 0 72px; border-radius: 10px; background: var(--psf-neutral-bg); overflow: hidden; display: flex; align-items: center; justify-content: center; }
.psf-item__thumb img { width: 100%; height: 100%; object-fit: contain; }
.psf-item__body { flex: 1 1 auto; min-width: 0; }
.psf-item__name { display: block; font-weight: 600; color: var(--psf-ink); font-size: 14px; line-height: 1.4; overflow-wrap: anywhere; }
a.psf-item__name:hover { color: var(--primary); }
.psf-item__meta { color: var(--psf-muted); font-size: 13px; margin-top: 4px; }
.psf-item__price { font-weight: 700; white-space: nowrap; font-size: 15px; }
.psf-item__side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
@media (max-width: 575.98px) {
    .psf-item { align-items: flex-start; }
    .psf-item__thumb { width: 60px; height: 60px; flex-basis: 60px; }
    .psf-item__price { color: var(--primary); }
}

/* ---------- Address ---------- */
.psf-address { display: flex; gap: 14px; align-items: flex-start; }
.psf-address__icon { width: 40px; height: 40px; flex: 0 0 40px; border-radius: 50%; background: var(--soft-primary); color: var(--primary); display: flex; align-items: center; justify-content: center; font-size: 20px; }
.psf-address__name { font-weight: 700; margin-bottom: 2px; }

/* ---------- Summary rows ---------- */
.psf-rows { margin: 0; }
.psf-rows > div { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; font-size: 14px; }
.psf-rows dt { font-weight: 400; color: var(--psf-muted); }
.psf-rows dd { margin: 0; text-align: right; color: var(--psf-ink); }
.psf-total { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid var(--psf-line); margin-top: 10px; padding-top: 12px; font-weight: 700; }
.psf-total strong { color: var(--primary); font-size: 20px; }
.psf-paidby { margin-top: 8px; display: flex; align-items: center; gap: 6px; }
.psf-paidby i { font-size: 18px; }

/* ---------- Collapsible GST ---------- */
.psf-details { margin-top: 14px; border: 1px solid var(--psf-line); border-radius: 10px; }
.psf-details > summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 12px 14px; font-size: 14px; font-weight: 600; min-height: 44px; }
.psf-details > summary::-webkit-details-marker { display: none; }
.psf-details > summary i { margin-right: 4px; }
.psf-details[open] .psf-details__chev { transform: rotate(180deg); }
.psf-details > :not(summary) { margin-left: 14px; margin-right: 14px; }
.psf-details > table:last-child { margin-bottom: 14px; }
.psf-gst { width: calc(100% - 28px); border-collapse: collapse; font-size: 12.5px; }
.psf-gst th { color: var(--psf-muted); font-weight: 600; text-align: left; padding: 6px 6px 6px 0; border-bottom: 1px solid var(--psf-line); }
.psf-gst td { padding: 8px 6px 8px 0; border-bottom: 1px solid var(--psf-line); vertical-align: top; overflow-wrap: anywhere; }
/* The summary column is narrow even on desktop, so the GST table always stacks. */
.psf-summary .psf-gst thead { display: none; }
.psf-summary .psf-gst tr { display: block; padding: 8px 0; border-bottom: 1px solid var(--psf-line); }
.psf-summary .psf-gst td { display: flex; justify-content: space-between; gap: 12px; border: 0; padding: 2px 0; }
.psf-summary .psf-gst td::before { content: attr(data-label); color: var(--psf-muted); }
.psf-summary .psf-gst td:first-child { font-weight: 600; }
.psf-summary .psf-gst td:first-child::before { content: none; }
@media (max-width: 767.98px) {
    .psf-gst thead { display: none; }
    .psf-gst tr { display: block; padding: 8px 0; border-bottom: 1px solid var(--psf-line); }
    .psf-gst td { display: flex; justify-content: space-between; gap: 12px; border: 0; padding: 2px 0; }
    .psf-gst td::before { content: attr(data-label); color: var(--psf-muted); }
}

/* ---------- Notices (C3 style, storefront) ---------- */
.psf-notice {
    display: flex; gap: 12px; align-items: flex-start;
    background: #fff; border: 1px solid var(--psf-line); border-left: 3px solid var(--primary);
    border-radius: 10px; padding: 12px 14px; font-size: 13.5px; color: var(--psf-ink);
}
.psf-notice i { font-size: 20px; color: var(--primary); line-height: 1; }
.psf-notice--warning { border-left-color: var(--warning); background: var(--psf-warn-bg); }
.psf-notice--warning i { color: var(--psf-warn-ink); }
.psf-notice strong { display: block; margin-bottom: 2px; }

/* ---------- Empty states ---------- */
.psf-empty { text-align: center; padding: 36px 20px; }
.psf-empty__art { width: 120px; max-width: 40%; margin: 0 auto 14px; display: block; }
.psf-empty__icon { width: 72px; height: 72px; border-radius: 50%; margin: 0 auto 14px; background: var(--soft-primary); color: var(--primary); display: flex; align-items: center; justify-content: center; font-size: 34px; }
.psf-empty__title { font-size: 20px; font-weight: 700; margin: 0 0 6px; }
.psf-empty__text { color: var(--psf-muted); font-size: 14px; max-width: 460px; margin: 0 auto; }
.psf-chips-wrap { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 16px; }
.psf-chip-link { display: inline-flex; align-items: center; min-height: 36px; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--psf-line); background: #fff; color: var(--psf-ink); font-size: 13px; font-weight: 600; }
.psf-chip-link:hover { border-color: var(--primary); color: var(--primary); text-decoration: none; }

/* ---------- Timeline ---------- */
.psf-steps { display: flex; list-style: none; margin: 0; padding: 0; }
.psf-steps li { flex: 1 1 0; position: relative; text-align: center; font-size: 13px; color: var(--psf-muted); padding-top: 34px; min-width: 0; }
.psf-steps li::before { content: ''; position: absolute; top: 6px; left: 50%; transform: translateX(-50%); width: 22px; height: 22px; border-radius: 50%; background: #dde2e8; z-index: 1; }
.psf-steps li::after { content: ''; position: absolute; top: 16px; left: -50%; width: 100%; height: 3px; background: #dde2e8; }
.psf-steps li:first-child::after { display: none; }
.psf-steps li.is-done { color: var(--psf-ink); }
.psf-steps li.is-done::before { background: var(--success); box-shadow: inset 0 0 0 6px var(--success); }
.psf-steps li.is-done::after, .psf-steps li.is-current::after { background: var(--success); }
.psf-steps li.is-current { color: var(--primary); font-weight: 700; }
.psf-steps li.is-current::before { background: var(--primary); box-shadow: 0 0 0 4px var(--soft-primary); }
.psf-steps li.is-cancelled::before { background: var(--psf-danger-ink); }
.psf-steps li.is-cancelled { color: var(--psf-danger-ink); font-weight: 700; }

/* ---------- Cart / checkout summary: plain rows, not button-like chips ---------- */
.payism-retail-summary-metrics > [class*="col-"] { flex: 0 0 100%; max-width: 100%; }
.payism-retail-summary-metrics .bg-primary,
.payism-retail-summary-metrics .bg-secondary-base {
    background: transparent !important; padding: 4px 0 !important; border-radius: 0 !important;
    border-bottom: 1px dashed var(--psf-line);
}
.payism-retail-summary-metrics .text-white { color: var(--psf-ink) !important; }
.payism-retail-summary-metrics .fs-13:not(.fw-700) { color: var(--psf-muted) !important; }

/* ---------- Checkout ---------- */
.psf-helper { display: none; margin-top: 6px; font-size: 12px; color: var(--psf-muted); line-height: 1.4; }
.psf-order-btn:disabled + .psf-helper,
.psf-order-btn[disabled] + .psf-helper { display: block; }
.psf-order-btn { border-radius: 999px !important; min-height: 44px; }
.psf-order-btn:disabled { opacity: 1 !important; background: #c9d3de !important; border-color: #c9d3de !important; color: #fff !important; }
label.payism-megabox .payism-megabox-elem { border-radius: 12px !important; min-height: 60px; }
#default-address-box, #default-billing-address-box { border-radius: 12px; overflow: hidden; }

/* ---------- Search empty ---------- */
.psf-search-empty { padding: 8px 8px 24px; }
.psf-notify-card { display: flex; align-items: center; gap: 14px; max-width: 680px; margin: 8px auto 0; text-align: left; }
.psf-notify-card__body { flex: 1 1 auto; min-width: 0; }
@media (max-width: 575.98px) {
    .psf-notify-card { flex-wrap: wrap; }
    .psf-notify-card .psf-btn { width: 100%; }
}

/* ---------- My orders: one card per order ---------- */
.psf-order-card { background: #fff; border: 1px solid var(--psf-line); border-radius: var(--psf-radius); padding: 16px; margin-bottom: 14px; box-shadow: var(--psf-shadow); }
.psf-order-card__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding-bottom: 12px; border-bottom: 1px dashed var(--psf-line); }
.psf-order-card__code { font-weight: 700; font-size: 15px; color: var(--psf-ink); }
.psf-order-card__code:hover { color: var(--primary); }
.psf-order-card__chips { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.psf-order-card__items .psf-item:first-child { border-top: 0; }
.psf-order-card__items .psf-item__price { font-size: 14px; color: var(--psf-ink); }
.psf-order-card__foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 12px; border-top: 1px solid var(--psf-line); flex-wrap: wrap; }
.psf-order-card__total strong { margin-left: 6px; font-size: 16px; }
.psf-order-card__actions { display: flex; gap: 8px; align-items: center; }
.psf-btn-sm { min-height: 40px; min-width: 40px; border-radius: 999px !important; padding: 6px 16px !important; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; }
.psf-icon-btn { padding: 6px 10px !important; }
.psf-icon-btn i { font-size: 18px; }
@media (max-width: 575.98px) {
    .psf-order-card__head { flex-direction: column; }
    .psf-order-card__chips { justify-content: flex-start; }
    .psf-order-card__foot { flex-direction: column; align-items: stretch; }
    .psf-order-card__actions { justify-content: flex-end; }
    .psf-order-card__actions .btn-primary { flex: 1 1 auto; }
}
.payism-retail-history-toolbar { flex-wrap: wrap; gap: 10px; }
@media (max-width: 767.98px) {
    .payism-retail-history-toolbar .form-group.w-25 { width: 100% !important; }
    .payism-retail-history-toolbar .purchase-history-tab { flex-wrap: nowrap; overflow-x: auto; width: 100%; margin-left: 0 !important; -webkit-overflow-scrolling: touch; }
    .payism-retail-history-toolbar .purchase-history-tab .nav-link { white-space: nowrap; min-height: 40px; }
    .payism-retail-history-card { padding: 16px !important; }
}

/* ---------- Order detail ---------- */
.psf-back { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; font-size: 14px; color: var(--primary); margin-bottom: 8px; min-height: 32px; }
.psf-od-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.psf-od-progress { padding: 16px 12px; }
@media (max-width: 767.98px) {
    .psf-od-actions {
        position: fixed; left: 0; right: 0; bottom: 64px; z-index: 1030;
        background: #fff; border-top: 1px solid var(--psf-line); padding: 10px 16px;
        box-shadow: 0 -4px 16px rgba(16, 24, 40, .06);
    }
    .psf-od-actions > * { flex: 1 1 0; }
    .psf-od-actions .btn, .psf-od-actions form .btn { width: 100%; }
    .payism-user-panel-content:has(.psf-od-actions) { padding-bottom: 80px; }
    /* Items table becomes one card per line on phones. */
    .psf-stack-table thead { display: none; }
    .psf-stack-table, .psf-stack-table tbody, .psf-stack-table tr, .psf-stack-table td { display: block; width: 100%; }
    .psf-stack-table tr { border: 1px solid var(--psf-line); border-radius: 12px; padding: 10px 12px; margin-bottom: 10px; }
    .psf-stack-table td { border: 0 !important; padding: 4px 0 !important; display: flex; justify-content: space-between; gap: 12px; text-align: right; }
    .psf-stack-table td::before { content: attr(data-label); color: var(--psf-muted); font-weight: 400; text-align: left; flex: 0 0 auto; }
    .psf-stack-table td.psf-st-index { display: none; }
    .psf-stack-table td:nth-child(2) { display: block; text-align: left; font-weight: 600; font-size: 15px; }
    .psf-stack-table td:nth-child(2)::before { content: none; }
    .psf-stack-table td:empty, .psf-stack-table td:nth-child(3):not(:has(*)):empty { display: none; }
    .payism-retail-order-detail-card .card-body.table-responsive { overflow: visible; padding: 12px; }
}
@media (min-width: 768px) {
    .psf-stack-table td:nth-child(2) { min-width: 200px; }
    .psf-stack-table td { vertical-align: top; }
}

/* ---------- Product page ---------- */
.psf-cta-pair { gap: 12px; }
.psf-cta-pair .psf-cta { min-height: 48px; border-radius: 999px !important; flex: 1 1 0; }
.psf-cta-pair .add-to-cart { order: 1; }
.psf-cta-pair .buy-now { order: 2; }
.psf-cta-pair .btn-outline-primary { background: #fff; }
.psf-retailer-signin { padding: 0 16px; }
.payism-retail-product-tabs .tab-scroll-wrapper { overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.payism-retail-product-tabs .tab-scroll-wrapper::-webkit-scrollbar { display: none; }
.payism-retail-product-tabs #tabLinks { flex-wrap: nowrap; }
.payism-retail-product-tabs #tabLinks li { flex: 0 0 auto; }
.payism-retail-product-tabs #tabLinks .nav-link { white-space: nowrap; }
@media (max-width: 767.98px) {
    .payism-retail-product-tabs #tabLinks { gap: 8px; padding: 12px 0 !important; }
    .payism-retail-product-tabs #tabLinks li { margin-right: 0 !important; }
    .payism-retail-product-tabs #tabLinks .nav-link {
        padding: 8px 16px !important; font-size: 14px !important; border-radius: 999px;
        background: var(--psf-neutral-bg); color: var(--psf-neutral-ink) !important; min-height: 40px;
    }
    .payism-retail-product-tabs #tabLinks .nav-link.active { background: var(--primary); color: #fff !important; }
    .payism-retail-product-tabs .container.mb-32px { margin-bottom: 12px !important; }
    .psf-cta-pair {
        position: sticky; bottom: 64px; z-index: 20; background: #fff;
        padding: 10px 0; margin-top: 16px !important;
    }
}

/* ---------- Account dashboard: no white text on the yellow card ---------- */
.payism-customer-summary-card.bg-secondary-base .text-white,
.payism-customer-summary-card.bg-secondary-base a.text-white { color: var(--psf-ink) !important; }
.payism-customer-summary-card.bg-secondary-base svg path[fill="#fff"],
.payism-customer-summary-card.bg-secondary-base svg [fill="#ffffff"] { fill: var(--psf-ink); }
@media (max-width: 767.98px) {
    /* The account pages' gutters-16 rows ran 1 px past the viewport at 390. */
    .payism-user-panel-content { overflow-x: clip; }
}
span.psf-off-badge.absolute-top-left.fs-11 { height: 20px !important; min-height: 20px !important; display: inline-flex; align-items: center; }
.psf-price-row { gap: 0 4px; }

/* ---------- Shared product link (/p/): the sticky bar lines up with the page on desktop ---------- */
@media (min-width: 992px) {
    .pwa-sticky-bottom {
        left: 50% !important; right: auto !important; transform: translateX(-50%);
        width: min(1110px, calc(100% - 32px)) !important; border-radius: 16px 16px 0 0;
        padding-left: 20px !important; padding-right: 20px !important;
    }
}

/* Verify pass: the browse grid (category / search / shop / brands / wishlist) was forced to width:100%
   on top of the gutters-16 negative margins, so it sat 8px left and 16px short on the right.
   Auto width lets the negative margins centre the cards in their wrapper. */
#products-row.payism-retail-browse-grid.gutters-16,
.payism-retail-browse-grid.row.gutters-16 { width: auto; }

/* ---------- 404 / 500: the phone bottom nav docks after the footer instead of covering it ----------
   On the error pages the bar is sticky (it stays at the bottom of the screen while scrolling) and
   takes its own place at the end of the page, so it never sits on the footer links. */
@media (max-width: 1199.98px) {
    .psf-error-page .payism-mobile-bottom-nav.fixed-bottom { position: sticky; bottom: 0; z-index: 1030; box-sizing: border-box; }
    .psf-error-page .payism-mobile-bottom-nav.fixed-bottom > .row { margin-left: 0; margin-right: 0; }
    .psf-error-page .payism-mobile-bottom-nav.fixed-bottom { width: 100%; align-self: stretch; }
    .psf-error-page footer.pb-7 { padding-bottom: 1rem !important; }
}

/* ---------- Category / search / shop: phone filter bottom sheet (partials/psf/filter_sheet) ---------- */
.psf-filter-btn, .psf-filter-btn.btn-icon { width: auto !important; height: auto !important; display: inline-flex !important; align-items: center; gap: 6px; padding: 6px 14px !important; min-height: 40px;
    border: 1px solid var(--psf-line) !important; border-radius: 999px !important; background: var(--psf-card); color: var(--psf-ink); }
.psf-filter-btn .la-2x { font-size: 20px; }
.psf-filter-btn__label { font-size: 13px; font-weight: 600; white-space: nowrap; }
.psf-sheet__grip, .psf-sheet__sort, .psf-sheet__foot { display: none; }
@media (max-width: 767.98px) {
    .psf-filter-sheet.sidebar-xl.sidebar-right .collapse-sidebar {
        top: auto; bottom: 0; left: 0; right: 0; width: 100%; max-width: 100%; height: auto; max-height: 86vh;
        border-radius: 18px 18px 0 0; transform: translateY(100%); padding-bottom: 0;
        box-shadow: 0 -12px 30px rgba(16, 24, 40, .18); display: flex; flex-direction: column; overflow-y: auto;
    }
    .psf-filter-sheet.collapse-sidebar-wrap.active .collapse-sidebar { transform: translateY(0); }
    .psf-filter-sheet .overlay { z-index: 1; }
    .psf-filter-sheet .collapse-sidebar { z-index: 2; }
    .psf-sheet__grip { display: block; width: 40px; height: 4px; border-radius: 4px; background: var(--psf-line); margin: 8px auto 2px; flex: 0 0 auto; }
    .psf-sheet__sort { display: block; }
    .psf-sheet__chips { display: flex; flex-wrap: wrap; gap: 8px; }
    .psf-sheet__chip { border: 1px solid var(--psf-line); min-height: 36px; cursor: pointer; }
    .psf-sheet__chip.is-active { background: var(--soft-primary); color: var(--primary); border-color: var(--primary); }
    .psf-sheet__foot { display: block; position: sticky; bottom: 0; margin-top: auto; padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
        background: var(--psf-card); border-top: 1px solid var(--psf-line); }
    .psf-filter-sheet #category_filter.h-300px { height: auto !important; max-height: 220px; }
}
@media (min-width: 768px) { .psf-filter-btn__label { display: none; } .psf-filter-btn { border: 0 !important; padding: 0 !important; } }
/* Phones sort from the sheet's Sort chips, so the toolbar's old "Sort by" select is hidden there; desktop keeps it. */
@media (max-width: 767.98px) { div.psf-sort-select { display: none !important; } }
/* Shop all-products: gutters-16 pulls the row 16px into the container's 15px padding, 1px past a 390 screen. */
@media (max-width: 575.98px) { .row.gutters-16.psf-shop-all-row { margin-left: -15px; margin-right: -15px; } }

/* ---------- Shared product link (/p/): compact storefront header (pwa/partials/compact_header) ---------- */
.psf-compact-header { position: sticky; top: 0; z-index: 1020; background: var(--psf-card); border-bottom: 1px solid var(--psf-line); box-shadow: 0 1px 8px rgba(16, 24, 40, .05); }
.psf-compact-header__bar { display: flex; align-items: center; gap: 12px; min-height: 60px; }
.psf-compact-header__logo { flex: 0 0 auto; display: inline-flex; align-items: center; }
.psf-compact-header__logo img { max-height: 36px; max-width: 120px; object-fit: contain; }
.psf-compact-header__search { flex: 1 1 auto; min-width: 0; position: relative; margin: 0; max-width: 560px; margin-left: auto; margin-right: auto; }
.psf-compact-header__search i { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--psf-muted); font-size: 18px; pointer-events: none; }
.psf-compact-header__search .form-control { height: 40px; border-radius: 999px; padding-left: 38px; background: var(--psf-page); border: 1px solid var(--psf-line); font-size: 14px; }
.psf-compact-header__search .form-control:focus { border-color: var(--primary); background: var(--psf-card); }
.psf-compact-header__cart { position: relative; flex: 0 0 auto; width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; color: var(--psf-ink); font-size: 26px; }
.psf-compact-header__cart:hover { background: var(--psf-neutral-bg); color: var(--primary); }
.psf-compact-header__count { position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--primary); color: #fff; font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; }
@media (max-width: 575.98px) {
    .psf-compact-header__bar { gap: 8px; min-height: 56px; }
    .psf-compact-header__logo img { max-width: 84px; max-height: 30px; }
}

/* ---------- Account profile: clear sections, one save each (frontend/user/profile) ---------- */
.psf-profile-nav { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 12px; margin-bottom: 8px; scrollbar-width: none; }
.psf-profile-nav::-webkit-scrollbar { display: none; }
.psf-profile-nav .psf-chip { border: 1px solid var(--psf-line); background: var(--psf-card); color: var(--psf-ink); text-decoration: none; min-height: 36px; }
.psf-profile-nav .psf-chip:hover { border-color: var(--primary); color: var(--primary); }
.psf-profile .card { border-radius: var(--psf-radius) !important; border-color: var(--psf-line) !important; box-shadow: var(--psf-shadow) !important; margin-bottom: 20px; scroll-margin-top: 90px; }
.psf-profile .card > .card-header { background: transparent; }
.psf-profile .card .form-control { border-radius: 10px !important; }
.psf-profile .card .btn-primary.w-150px, .psf-profile #retailer-referral .btn-primary { width: auto !important; min-width: 160px; min-height: 42px; border-radius: 999px !important; font-weight: 600; padding-left: 22px; padding-right: 22px; }
.psf-profile-anchor { display: block; scroll-margin-top: 90px; }
@media (max-width: 767.98px) {
    .psf-profile .card .card-header, .psf-profile .card .card-body { padding-left: 16px; padding-right: 16px; }
    .psf-profile .card .btn-primary.w-150px, .psf-profile #retailer-referral .btn-primary { width: 100% !important; }
    .psf-profile .card .text-right { text-align: left !important; }
}

/* ---------- Home: phone scroll-snap rows instead of slick (data-psf-snap="phone", payism-core.js) ---------- */
@media (max-width: 767.98px) {
    .payism-carousel.psf-snap-row {
        display: flex; flex-wrap: nowrap; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; scroll-padding-left: 8px;
        gap: 0; padding-bottom: 6px; scrollbar-width: none;
    }
    .payism-carousel.psf-snap-row::-webkit-scrollbar { display: none; }
    .payism-carousel.psf-snap-row > * { display: block !important; flex: 0 0 44%; max-width: 44%; scroll-snap-align: start; min-width: 0; }
    .payism-carousel.psf-snap-row.home-category > *,
    .payism-carousel.psf-snap-row[data-xs-items="3"] > *,
    .payism-carousel.psf-snap-row[data-xs-items="4"] > * { flex-basis: 30%; max-width: 30%; }
}
