﻿:root {
    --pm-shell-width: 1475px;
}

.pm-shell {
    min-height: 100vh;
    background: radial-gradient(circle at top left, rgba(56, 189, 248, .14), transparent 34rem), linear-gradient(180deg, #f8fbff 0%, #eef5fb 100%);
    color: #0f172a;
}

/* HEADER */
.pm-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(248, 251, 255, .86);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(148, 163, 184, .28);
}

.pm-header-inner {
    max-width: var(--pm-shell-width);
    margin: 0 auto;
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

/* BRAND */
.pm-brand {
    display: inline-flex;
    align-items: center;
    gap: .85rem;
    color: inherit;
    text-decoration: none;
}

.pm-logo {
    width: 46px;
    height: 46px;
    object-fit: contain;
    border-radius: 14px;
}

.pm-logo-mark {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    font-weight: 900;
    color: white;
    background: linear-gradient(135deg, #0f172a, #2563eb);
    box-shadow: 0 10px 24px rgba(15, 23, 42, .14);
}

.pm-brand-name {
    font-weight: 900;
    letter-spacing: -.03em;
    font-size: 1.05rem;
    color: #0f172a;
}

.pm-brand-sub {
    color: #64748b;
    font-size: .82rem;
    margin-top: .08rem;
}

/* NAV */
.pm-nav {
    display: flex;
    align-items: center;
    gap: .35rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

    .pm-nav a {
        color: #334155;
        text-decoration: none;
        font-weight: 800;
        font-size: .92rem;
        padding: .55rem .75rem;
        border-radius: 999px;
        transition: background-color .18s ease, color .18s ease, box-shadow .18s ease;
    }

        .pm-nav a:hover,
        .pm-nav a:focus-visible {
            background: #2563eb;
            color: #ffffff;
            box-shadow: 0 10px 24px rgba(37, 99, 235, .22);
        }

        .pm-nav a.active {
            color: #ffffff;
            background: #1d4ed8;
        }

/* MAIN */
.pm-main {
    max-width: var(--pm-shell-width);
    margin: 0 auto;
    padding: 2rem 1.25rem 4rem;
}

/* HERO */
.pm-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(380px, .85fr);
    gap: 1.5rem;
    align-items: stretch;
    margin-bottom: 1.5rem;
}

.pm-hero-card,
.pm-card {
    background: rgba(255, 255, 255, .86);
    border: 1px solid rgba(148, 163, 184, .24);
    border-radius: 28px;
    box-shadow: 0 24px 70px rgba(15, 23, 42, .08);
}

.pm-hero-card {
    padding: 2rem;
}

.pm-kicker {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-weight: 900;
    color: #1d4ed8;
    background: rgba(37, 99, 235, .1);
    border: 1px solid rgba(37, 99, 235, .14);
    border-radius: 999px;
    padding: .45rem .7rem;
    font-size: .8rem;
    margin-bottom: 1rem;
}

.pm-title {
    font-size: clamp(1.85rem, 3.2vw, 2.75rem); /* smaller + controlled */
    line-height: 1.05;
    letter-spacing: -.035em; /* less aggressive tightening */
    margin: 0;
    color: #0f172a;
    font-weight: 900;
}
.pm-hero-card .pm-title {
    max-width: 18ch; /* prevents super long names from stretching */
}
.pm-kicker {
    font-size: .75rem;
    letter-spacing: .08em; /* more premium feel */
    text-transform: uppercase;
}

.pm-sub {
    font-size: 1rem;
    margin-top: .85rem;
}
.pm-sub {
    color: #475569;
    font-size: 1.08rem;
    line-height: 1.65;
    margin: 1rem 0 0;
    max-width: 62ch;
}

/* ACTIONS */
.pm-actions {
    display: flex;
    gap: .75rem;
    flex-wrap: wrap;
    margin-top: 1.4rem;
}

/* BUTTONS */
.pm-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    border-radius: 999px;
    padding: .8rem 1rem;
    font-weight: 900;
    text-decoration: none;
    border: 1px solid transparent;
    transition: all .18s ease;
}

.pm-btn-primary {
    background: #2563eb;
    color: #fff;
    box-shadow: 0 14px 34px rgba(37, 99, 235, .22);
}

    .pm-btn-primary:hover {
        background: #1d4ed8;
        box-shadow: 0 18px 42px rgba(37, 99, 235, .32);
        transform: translateY(-1px);
    }

.pm-btn-secondary {
    background: white;
    color: #0f172a;
    border-color: rgba(148, 163, 184, .35);
}

    .pm-btn-secondary:hover {
        background: rgba(37, 99, 235, .08);
        color: #1d4ed8;
        border-color: rgba(37, 99, 235, .32);
        transform: translateY(-1px);
    }

/* VISUAL */
.pm-visual {
    min-height: 320px;
    overflow: hidden;
    position: relative;
}

    .pm-visual img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.pm-visual-placeholder {
    height: 100%;
    min-height: 320px;
    display: grid;
    place-items: center;
    background: radial-gradient(circle at 25% 20%, rgba(56, 189, 248, .32), transparent 12rem), radial-gradient(circle at 80% 80%, rgba(37, 99, 235, .22), transparent 14rem), linear-gradient(135deg, #0f172a, #1e293b);
    color: white;
    padding: 2rem;
    text-align: center;
}

    .pm-visual-placeholder strong {
        display: block;
        font-size: 2rem;
        letter-spacing: -.04em;
    }

/* SECTIONS */
.pm-section {
    margin-top: 2rem;
}

.pm-section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.pm-section-title {
    font-size: 1.6rem;
    letter-spacing: -.04em;
    margin: 0;
}

.pm-muted {
    color: #64748b;
}

/* GRID */
.pm-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

/* CARD */
.pm-card {
    padding: 1.2rem;
    transition: all .18s ease;
}

    .pm-card:hover {
        border-color: rgba(37, 99, 235, .22);
        box-shadow: 0 28px 80px rgba(15, 23, 42, .11);
    }

/* TEXT */
.pm-card-title {
    font-size: 1.05rem;
    font-weight: 900;
    letter-spacing: -.025em;
    margin: .25rem 0 .4rem;
}

.pm-price {
    font-size: 1.2rem;
    font-weight: 950;
    color: #0f172a;
}

.pm-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: .4rem .65rem;
    font-weight: 850;
    font-size: .78rem;
    background: rgba(37, 99, 235, .1);
    color: #1d4ed8;
}

/* FOOTER */
.pm-footer {
    border-top: 1px solid rgba(148, 163, 184, .24);
    background: rgba(255, 255, 255, .7);
}

.pm-footer-inner {
    max-width: var(--pm-shell-width);
    margin: 0 auto;
    padding: 1.4rem 1.25rem;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.pm-powered {
    font-weight: 850;
    color: #64748b;
}

/* RESPONSIVE */
@media (max-width: 820px) {
    .pm-header-inner {
        align-items: flex-start;
        flex-direction: column;
    }

    .pm-nav {
        justify-content: flex-start;
    }

    .pm-hero {
        grid-template-columns: 1fr;
    }

    .pm-grid-3 {
        grid-template-columns: 1fr;
    }

    .pm-footer-inner {
        flex-direction: column;
    }
}

.pm-brand:hover,
.pm-brand:focus-visible {
    color: inherit;
    text-decoration: none;
}

    .pm-brand:hover .pm-brand-name,
    .pm-brand:focus-visible .pm-brand-name {
        color: #0f172a;
    }

    .pm-brand:hover .pm-brand-sub,
    .pm-brand:focus-visible .pm-brand-sub {
        color: #64748b;
    }

html, body {
    height: 100%;
}

.pm-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* This is the key */
.pm-main {
    flex: 1;
}

/* Footer stays natural, no positioning needed */
.pm-footer {
    margin-top: auto;
}

/* =========================================================
   Shared Public Vendor Portal Theme
   Applies to all pages wrapped in <VendorPage>
   ========================================================= */

.vp-public-page {
    width: 100%;
    max-width: 1475px;
    margin: 0 auto;
    color: rgba(234,242,255,.92);
}

    .vp-public-page .st-vendor-page-head {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        gap: 14px;
        flex-wrap: wrap;
        margin-bottom: 16px;
    }

    .vp-public-page .st-vendor-page-title {
        color: #ffffff;
        font-size: clamp(1.45rem, 2vw, 2rem);
        font-weight: 950;
        line-height: 1.08;
    }

    .vp-public-page .st-vendor-page-subtitle {
        color: rgba(203,213,225,.78);
        font-weight: 750;
        line-height: 1.5;
        max-width: 76ch;
    }

    .vp-public-page .st-vendor-page-body {
        color: rgba(234,242,255,.92);
    }

    /* Cards / sections */
    .vp-public-page .st-card,
    .vp-public-page .st-section,
    .vp-public-page .vd-panel,
    .vp-public-page .vd-stat,
    .vp-public-page .rc-metric-card,
    .vp-public-page .rc-receipt-stage,
    .vp-public-page .receipt-box,
    .vp-public-page .st-csvhelp,
    .vp-public-page .st-vendor-storebar {
        background: linear-gradient(180deg, rgba(15,23,42,.98), rgba(15,23,42,.94)) !important;
        border: 1px solid rgba(148,163,184,.22) !important;
        color: rgba(234,242,255,.92) !important;
        box-shadow: 0 18px 42px rgba(0,0,0,.22);
    }

    /* Text */
    .vp-public-page .st-title,
    .vp-public-page .fw-bold,
    .vp-public-page .fw-semibold,
    .vp-public-page strong,
    .vp-public-page h1,
    .vp-public-page h2,
    .vp-public-page h3,
    .vp-public-page h4,
    .vp-public-page h5,
    .vp-public-page h6 {
        color: #ffffff !important;
    }

    .vp-public-page .st-muted,
    .vp-public-page .st-help,
    .vp-public-page .text-muted,
    .vp-public-page .pg-sub,
    .vp-public-page .vd-muted,
    .vp-public-page .receipt-sub,
    .vp-public-page .receipt-qty,
    .vp-public-page .receipt-line-meta,
    .vp-public-page .receipt-footer {
        color: rgba(203,213,225,.78) !important;
    }

    /* Inputs */
    .vp-public-page .st-input,
    .vp-public-page .st-select,
    .vp-public-page .form-control,
    .vp-public-page .form-select {
        background: rgba(15,23,42,.94) !important;
        border: 1px solid rgba(148,163,184,.28) !important;
        color: rgba(248,250,252,.96) !important;
    }

        .vp-public-page .st-input::placeholder,
        .vp-public-page .form-control::placeholder {
            color: rgba(203,213,225,.58) !important;
        }

        .vp-public-page .form-select option,
        .vp-public-page .st-select option {
            background: #0f172a;
            color: #f8fafc;
        }

    .vp-public-page .st-label,
    .vp-public-page label {
        color: rgba(226,232,240,.90) !important;
        font-weight: 850;
    }

    /* Buttons */
    .vp-public-page .st-btn-primary {
        background: linear-gradient(135deg, #2563eb, #0891b2) !important;
        border-color: rgba(125,211,252,.55) !important;
        color: #ffffff !important;
    }

    .vp-public-page .st-btn-outline {
        background: rgba(15,23,42,.76) !important;
        border: 1px solid rgba(125,211,252,.36) !important;
        color: rgba(224,242,254,.95) !important;
    }

        .vp-public-page .st-btn-outline:hover {
            background: rgba(56,189,248,.14) !important;
            border-color: rgba(125,211,252,.62) !important;
            color: #ffffff !important;
        }

    /* Tables */
    .vp-public-page table,
    .vp-public-page .table {
        --bs-table-bg: transparent;
        --bs-table-color: rgba(234,242,255,.92);
        --bs-table-border-color: rgba(148,163,184,.20);
        --bs-table-striped-bg: rgba(255,255,255,.035);
        --bs-table-hover-bg: rgba(56,189,248,.08);
        color: rgba(234,242,255,.92) !important;
    }

    .vp-public-page thead th {
        background: rgba(30,41,59,.98) !important;
        color: rgba(226,232,240,.94) !important;
        border-bottom: 1px solid rgba(148,163,184,.26) !important;
        font-weight: 900;
    }

    .vp-public-page tbody td {
        color: rgba(234,242,255,.90) !important;
        border-top: 1px solid rgba(148,163,184,.16) !important;
    }

    .vp-public-page tbody tr:hover td {
        background: rgba(56,189,248,.07) !important;
    }

    /* Tabs */
    .vp-public-page .st-tabs {
        display: inline-flex;
        gap: 6px;
        padding: 6px;
        border-radius: 16px;
        background: rgba(15,23,42,.92);
        border: 1px solid rgba(148,163,184,.24);
    }

    .vp-public-page .st-tab {
        border: 1px solid transparent;
        background: transparent;
        color: rgba(203,213,225,.82) !important;
        font-weight: 900;
        padding: .58rem .95rem;
        border-radius: 12px;
    }

        .vp-public-page .st-tab:hover {
            background: rgba(56,189,248,.12);
            color: #fff !important;
        }

        .vp-public-page .st-tab.active {
            background: linear-gradient(135deg, #2563eb, #0891b2) !important;
            color: #fff !important;
            border-color: rgba(125,211,252,.48) !important;
        }

    /* Badges */
    .vp-public-page .st-badge,
    .vp-public-page .vd-badge,
    .vp-public-page .rc-tag {
        color: rgba(248,250,252,.94) !important;
        border: 1px solid rgba(148,163,184,.24) !important;
        background: rgba(15,23,42,.76) !important;
    }

    .vp-public-page .st-badge-ok {
        background: rgba(34,197,94,.16) !important;
        border-color: rgba(134,239,172,.32) !important;
        color: rgba(220,252,231,.96) !important;
    }

    .vp-public-page .st-badge-warn {
        background: rgba(245,158,11,.16) !important;
        border-color: rgba(251,191,36,.36) !important;
        color: rgba(254,243,199,.96) !important;
    }

    .vp-public-page .st-badge-danger {
        background: rgba(239,68,68,.16) !important;
        border-color: rgba(252,165,165,.36) !important;
        color: rgba(254,226,226,.96) !important;
    }

/* Public vendor: Sales / Payouts / Receipts readability */
.st-vendor-shell-public .vp-sales-sidecard,
.st-vendor-shell-public .vp-payout-sidecard,
.st-vendor-shell-public .vp-payout-summary .st-card,
.st-vendor-shell-public .vp-payout-grid,
.st-vendor-shell-public .vp-sales-summary .st-card,
.st-vendor-shell-public .vp-sales-grid {
    background: #ffffff !important;
    border: 1px solid rgba(148,163,184,.26) !important;
    color: #0f172a !important;
    box-shadow: 0 18px 45px rgba(15,23,42,.08) !important;
}

/* Sales side card text */
.st-vendor-shell-public .vp-sales-kv span,
.st-vendor-shell-public .vp-sales-muted,
.st-vendor-shell-public .vp-sales-sub,
.st-vendor-shell-public .vp-sales-stat-sub {
    color: #475569 !important;
}

.st-vendor-shell-public .vp-sales-kv strong,
.st-vendor-shell-public .vp-sales-main,
.st-vendor-shell-public .vp-sales-strong,
.st-vendor-shell-public .vp-sales-stat-value {
    color: #0f172a !important;
}

.st-vendor-shell-public .vp-sales-stat-label {
    color: #64748b !important;
}

.st-vendor-shell-public .vp-sales-payment {
    background: #f8fafc !important;
    border: 1px solid rgba(148,163,184,.28) !important;
    color: #334155 !important;
}

/* Payout stat boxes + side cards */
.st-vendor-shell-public .vp-payout-stat,
.st-vendor-shell-public .vp-payout-stat.net {
    background: #ffffff !important;
    border-color: rgba(148,163,184,.26) !important;
    color: #0f172a !important;
}

.st-vendor-shell-public .vp-payout-stat-label,
.st-vendor-shell-public .vp-payout-sub,
.st-vendor-shell-public .vp-payout-muted,
.st-vendor-shell-public .vp-payout-note,
.st-vendor-shell-public .vp-payout-kv span,
.st-vendor-shell-public .vp-payout-stat-sub {
    color: #475569 !important;
}

.st-vendor-shell-public .vp-payout-stat-value,
.st-vendor-shell-public .vp-payout-main,
.st-vendor-shell-public .vp-payout-strong,
.st-vendor-shell-public .vp-payout-kv strong {
    color: #0f172a !important;
}

.st-vendor-shell-public .vp-payout-badge {
    background: #f8fafc !important;
    border: 1px solid rgba(148,163,184,.28) !important;
    color: #334155 !important;
}

    .st-vendor-shell-public .vp-payout-badge.estimated {
        background: rgba(37,99,235,.10) !important;
        border-color: rgba(37,99,235,.28) !important;
        color: #1d4ed8 !important;
    }

/* Payout / Sales tables */
.st-vendor-shell-public .vp-payout-table,
.st-vendor-shell-public .vp-sales-table {
    background: #ffffff !important;
    color: #0f172a !important;
    --bs-table-bg: #ffffff !important;
    --bs-table-color: #0f172a !important;
    --bs-table-border-color: #e2e8f0 !important;
    --bs-table-hover-bg: rgba(37,99,235,.045) !important;
}

    .st-vendor-shell-public .vp-payout-table thead th,
    .st-vendor-shell-public .vp-sales-table thead th {
        background: #f1f5f9 !important;
        color: #334155 !important;
        border-bottom: 1px solid rgba(148,163,184,.32) !important;
    }

    .st-vendor-shell-public .vp-payout-table tbody td,
    .st-vendor-shell-public .vp-sales-table tbody td {
        color: #0f172a !important;
        border-color: #e2e8f0 !important;
    }

/* Receipt lookup inline styles override */
.st-vendor-shell-public .st-vendor-content div[style*="color:#fff"],
.st-vendor-shell-public .st-vendor-content strong[style*="color:#fff"] {
    color: #0f172a !important;
}

.st-vendor-shell-public .st-vendor-content div[style*="rgba(234,242,255"] {
    color: #475569 !important;
}

/* Public vendor payouts: empty-state text visibility */
.st-vendor-shell-public .vp-payout-empty,
.st-vendor-shell-public .vp-payout-empty div {
    color: #475569 !important;
}

    .st-vendor-shell-public .vp-payout-empty i {
        color: #2563eb !important;
    }

.st-vendor-shell-public .vp-payout-grid .vp-payout-empty,
.st-vendor-shell-public .vp-payout-sidecard .vp-payout-empty {
    background: #f8fafc !important;
    border: 1px dashed rgba(148,163,184,.34) !important;
    border-radius: 16px;
    padding: 28px;
}

/* Receipt lookup table View button */
.st-vendor-shell-public .vendor-receipt-view-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-width: 76px;
    height: 34px;
    padding: 0 .75rem !important;
    border-radius: 10px !important;
    background: #ffffff !important;
    border: 1px solid rgba(37,99,235,.35) !important;
    color: #1d4ed8 !important;
    font-weight: 850 !important;
    line-height: 1 !important;
    white-space: nowrap;
}

    .st-vendor-shell-public .vendor-receipt-view-btn i,
    .st-vendor-shell-public .vendor-receipt-view-btn span {
        color: #1d4ed8 !important;
    }

    .st-vendor-shell-public .vendor-receipt-view-btn:hover {
        background: rgba(37,99,235,.08) !important;
        border-color: rgba(37,99,235,.55) !important;
        color: #1d4ed8 !important;
    }

/* Public vendor locations: assigned button + summary text */
.st-vendor-shell-public .vp-location-summary-card,
.st-vendor-shell-public .vp-location-summary-row,
.st-vendor-shell-public .vp-location-card {
    background: #ffffff !important;
    border: 1px solid rgba(148,163,184,.26) !important;
    color: #0f172a !important;
}

.st-vendor-shell-public .vp-location-section-title,
.st-vendor-shell-public .vp-location-title,
.st-vendor-shell-public .vp-location-summary-main,
.st-vendor-shell-public .vp-location-summary-main strong,
.st-vendor-shell-public .vp-location-code {
    color: #0f172a !important;
}

    .st-vendor-shell-public .vp-location-section-subtitle,
    .st-vendor-shell-public .vp-location-subtitle,
    .st-vendor-shell-public .vp-location-summary-main small,
    .st-vendor-shell-public .vp-location-kv span,
    .st-vendor-shell-public .vp-location-notes-text {
        color: #475569 !important;
    }

.st-vendor-shell-public .vp-location-status,
.st-vendor-shell-public .vp-assigned-badge,
.st-vendor-shell-public .vp-location-status.assigned {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    padding: .38rem .68rem;
    border-radius: 999px;
    background: rgba(34,197,94,.14) !important;
    border: 1px solid rgba(34,197,94,.30) !important;
    color: #14532d !important;
    font-weight: 900 !important;
}

    .st-vendor-shell-public .vp-location-status *,
    .st-vendor-shell-public .vp-assigned-badge * {
        color: inherit !important;
    }

/* Public vendor locations: request card minimal fix */
.st-vendor-shell-public .vp-request-card {
    background: #ffffff !important;
    color: #0f172a !important;
    border: 1px solid rgba(148,163,184,.26) !important;
}

    .st-vendor-shell-public .vp-request-card .vp-request-title,
    .st-vendor-shell-public .vp-request-card .vp-request-subtitle,
    .st-vendor-shell-public .vp-request-card .vp-request-hint {
        color: #0f172a !important;
    }

    .st-vendor-shell-public .vp-request-card .vp-request-subtitle,
    .st-vendor-shell-public .vp-request-card .vp-request-hint {
        color: #475569 !important;
    }

    .st-vendor-shell-public .vp-request-card .st-btn-primary {
        background: #2563eb !important;
        border-color: #2563eb !important;
        color: #ffffff !important;
    }

        .st-vendor-shell-public .vp-request-card .st-btn-primary:hover {
            background: #1d4ed8 !important;
            border-color: #1d4ed8 !important;
            color: #ffffff !important;
        }

/* =========================
   Request Space modal (public fix)
   ========================= */

/* Main modal surface */
.st-vendor-shell-public .st-modal {
    background: #ffffff !important;
    color: #0f172a !important;
    border: 1px solid rgba(148,163,184,.28) !important;
}

/* Title + “Complete your request for B-01” */
.st-vendor-shell-public .st-modal-title,
.st-vendor-shell-public .st-modal-subtitle {
    color: #0f172a !important;
}

/* Fix inline white text like B-01 */
.st-vendor-shell-public .st-modal [style*="color:#fff"],
.st-vendor-shell-public .st-modal strong {
    color: #0f172a !important;
}

/* Secondary/helper text */
.st-vendor-shell-public .st-modal [style*="rgba(234,242,255"],
.st-vendor-shell-public .st-help {
    color: #475569 !important;
}

/* =========================
   Close button (top right)
   ========================= */
.st-vendor-shell-public .st-modal-close {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: #f1f5f9 !important;
    border: 1px solid rgba(148,163,184,.35) !important;
    color: #334155 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
}

    .st-vendor-shell-public .st-modal-close:hover {
        background: #e2e8f0 !important;
        color: #0f172a !important;
    }

/* =========================
   Send Inquiry button (fix hover)
   ========================= */
.st-vendor-shell-public .st-modal .st-btn-primary {
    background: #2563eb !important;
    border-color: #2563eb !important;
    color: #ffffff !important;
    box-shadow: 0 10px 26px rgba(37,99,235,.18) !important;
}

    .st-vendor-shell-public .st-modal .st-btn-primary:hover {
        background: #1d4ed8 !important;
        border-color: #1d4ed8 !important;
        color: #ffffff !important;
        transform: none !important; /* removes jumpy effect */
    }

    /* Ensure button text stays visible */
    .st-vendor-shell-public .st-modal .st-btn-primary * {
        color: #ffffff !important;
    }

/* =========================
   Public Loading Overlay
   ========================= */

.st-loading-overlay.st-loading-public {
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(6px);
}

    .st-loading-overlay.st-loading-public .st-loading-card {
        background: #ffffff;
        border: 1px solid rgba(148,163,184,.28);
        box-shadow: 0 20px 50px rgba(15,23,42,.10);
    }

    .st-loading-overlay.st-loading-public .st-loading-title {
        color: #0f172a;
    }

    .st-loading-overlay.st-loading-public .st-loading-sub {
        color: #475569;
    }

    .st-loading-overlay.st-loading-public .st-loading-spinner {
        border: 3px solid rgba(148,163,184,.25);
        border-top-color: #2563eb;
    }

.pm-powered {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: .85rem;
    font-weight: 700;
    color: rgba(100,116,139,.8);
    text-decoration: none;
}

.pm-powered-icon {
    width: 16px;
    height: 16px;
    opacity: .75;
    transition: opacity .15s ease;
}

.pm-powered:hover {
    color: #334155;
}

    .pm-powered:hover .pm-powered-icon {
        opacity: 1;
    }

.vendor-storefront-page {
    width: 100%;
}

.vendor-products-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 1100px) {
    .vendor-products-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 820px) {
    .vendor-products-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   Public site width
   Applies to home, shop, vendors, vendor detail, contact, map, etc.
   ========================================================= */

:root {
    --pm-shell-width: 1475px;
}

.pm-header-inner,
.pm-main,
.pm-footer-inner {
    width: 100%;
    max-width: var(--pm-shell-width) !important;
}

    /* Prevent individual public pages from re-capping themselves */
    .pm-main > section,
    .pm-main > div,
    .pm-section,
    .vendors-page {
        width: 100%;
        max-width: none;
    }

/* Better use of wider space */
.pm-grid-3 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 1200px) {
    .pm-grid-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 820px) {
    .pm-grid-3 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767.98px) {
    .pm-header-inner {
        flex-direction: column;
        align-items: stretch;
        gap: .85rem;
    }

    .pm-brand {
        width: 100%;
        min-width: 0;
    }

        .pm-brand > div {
            min-width: 0;
        }

    .pm-brand-name,
    .pm-brand-sub {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .pm-nav {
        width: 100%;
        display: flex;
        flex-wrap: nowrap;
        gap: .45rem;
        overflow-x: auto;
        padding: .35rem 0 .2rem;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

        .pm-nav::-webkit-scrollbar {
            display: none;
        }

        .pm-nav a,
        .pm-nav .pm-nav-cta {
            flex: 0 0 auto;
            white-space: nowrap;
            min-height: 40px;
            padding: .55rem .8rem;
            border-radius: 999px;
        }

    .pm-nav-cta {
        margin-left: 0;
    }
}

.pm-mobile-menu-btn,
.pm-mobile-bottom-nav {
    display: none;
}

@media (max-width: 767.98px) {
    .pm-header-inner {
        position: relative;
        flex-wrap: wrap;
        gap: .75rem;
    }

    .pm-brand {
        min-width: 0;
        flex: 1 1 auto;
    }

    .pm-brand-name,
    .pm-brand-sub {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .pm-mobile-menu-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: .45rem;
        min-height: 42px;
        padding: .55rem .85rem;
        border-radius: 999px;
        border: 1px solid rgba(148,163,184,.28);
        background: #fff;
        color: #0f172a;
        font-weight: 900;
    }

        .pm-mobile-menu-btn i {
            color: #2563eb;
            font-size: 1.15rem;
        }

    .pm-nav {
        display: none;
        width: 100%;
        flex-direction: column;
        gap: .45rem;
        padding-top: .65rem;
        border-top: 1px solid rgba(148,163,184,.18);
    }

        .pm-nav.open {
            display: flex;
        }

        .pm-nav a,
        .pm-nav .pm-nav-cta {
            width: 100%;
            min-height: 44px;
            justify-content: center;
            border-radius: 14px;
        }

    .pm-mobile-bottom-nav {
        position: fixed;
        left: 12px;
        right: 12px;
        bottom: 10px;
        z-index: 1200;
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: .45rem;
        padding: .45rem;
        border-radius: 22px;
        background: rgba(255,255,255,.96);
        border: 1px solid rgba(148,163,184,.24);
        box-shadow: 0 18px 50px rgba(15,23,42,.18);
        backdrop-filter: blur(10px);
    }

        .pm-mobile-bottom-nav a {
            min-height: 52px;
            border-radius: 16px;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: .2rem;
            color: #475569;
            text-decoration: none;
            font-size: .72rem;
            font-weight: 900;
        }

            .pm-mobile-bottom-nav a i {
                font-size: 1.15rem;
                color: #64748b;
            }

            .pm-mobile-bottom-nav a.active {
                background: rgba(37,99,235,.10);
                color: #1d4ed8;
            }

                .pm-mobile-bottom-nav a.active i {
                    color: #1d4ed8;
                }

    .pm-main {
        padding-bottom: 88px;
    }

    .pm-footer {
        padding-bottom: 96px;
    }
}

@media (min-width: 768px) {
    .pm-nav {
        display: flex !important;
    }
}

.pm-menu-open {
    overflow: hidden;
}

.pm-mobile-bottom-nav a.active {
    background: rgba(37,99,235,.12);
    box-shadow: inset 0 0 0 1px rgba(37,99,235,.25);
}

.pm-mobile-bottom-nav {
    border-top: 1px solid rgba(148,163,184,.22);
}

.public-vendor-login-page {
    width: 100%;
    max-width: 640px !important;
    margin-inline: auto;
}

.pm-login-card {
    border-radius: 30px;
    padding: clamp(1.5rem, 4vw, 2.75rem);
    border: 1px solid rgba(148, 163, 184, .22);
    background: radial-gradient(circle at top left, rgba(59, 130, 246, .16), transparent 34%), rgba(255,255,255,.94);
    box-shadow: 0 24px 70px rgba(15, 23, 42, .12);
}

.pm-login-brand {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    margin-bottom: 1.35rem;
}

.pm-login-logo,
.pm-login-logo-mark {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    flex: 0 0 auto;
}

.pm-login-logo {
    object-fit: cover;
    background: #fff;
    border: 1px solid rgba(148, 163, 184, .28);
    box-shadow: 0 14px 35px rgba(15, 23, 42, .12);
}

.pm-login-logo-mark {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #2563eb, #1e3a8a);
    color: #fff;
    font-weight: 950;
    font-size: 1.1rem;
    box-shadow: 0 14px 35px rgba(15, 23, 42, .16);
}

.pm-login-alert {
    margin: 1rem 0;
    padding: .9rem 1rem;
    border-radius: 16px;
    border: 1px solid rgba(248, 113, 113, .34);
    background: rgba(254, 226, 226, .72);
    color: #7f1d1d;
    font-weight: 800;
}

.pm-login-form {
    display: grid;
    gap: 1rem;
    margin-top: 1.25rem;
}

.pm-login-label {
    display: block;
    margin-bottom: .4rem;
    color: #0f172a;
    font-size: .86rem;
    font-weight: 900;
}

.pm-login-input {
    width: 100%;
    min-height: 48px;
    border-radius: 15px;
    border: 1px solid rgba(148, 163, 184, .32);
    background: rgba(255, 255, 255, .92);
    color: #0f172a;
    padding: .75rem .9rem;
    font-weight: 750;
    outline: none;
}

    .pm-login-input:focus {
        border-color: rgba(37, 99, 235, .45);
        box-shadow: 0 0 0 .22rem rgba(37, 99, 235, .11);
    }

.pm-login-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.pm-login-check {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    color: rgba(51, 65, 85, .92);
    font-weight: 800;
}

.pm-login-link {
    color: #2563eb;
    font-weight: 900;
    text-decoration: none;
}

    .pm-login-link:hover {
        color: #1d4ed8;
        text-decoration: underline;
    }

.pm-login-submit {
    width: auto;
    min-width: 180px;
    padding-inline: 1.5rem;
    margin-top: .5rem;
}

.pm-login-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    margin-top: 1.15rem;
}

.pm-login-note {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 18px;
    border: 1px solid rgba(148, 163, 184, .22);
    background: rgba(15, 23, 42, .035);
    color: rgba(51, 65, 85, .9);
    font-weight: 750;
    line-height: 1.45;
}

.pm-login-powered {
    margin-top: 1rem;
    text-align: center;
    color: rgba(100, 116, 139, .78);
    font-size: .78rem;
    font-weight: 850;
}

@media (max-width: 575.98px) {
    .pm-login-brand {
        flex-direction: column;
    }

    .pm-login-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .pm-login-actions .pm-btn {
        width: 100%;
        justify-content: center;
    }
}

.pm-footer-admin {
    display: flex;
    align-items: center;
}

.pm-footer-admin-link {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    color: rgba(100, 116, 139, .72);
    font-size: .82rem;
    font-weight: 800;
    text-decoration: none;
}

    .pm-footer-admin-link:hover {
        color: #334155;
        text-decoration: underline;
    }

    .pm-footer-admin-link i {
        font-size: .85rem;
    }

.pm-footer-brand-row {
    display: flex;
    align-items: center;
    gap: .75rem;
    flex-wrap: wrap;
}

.pm-footer-owner-link {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    color: rgba(71, 85, 105, .72);
    font-size: .78rem;
    font-weight: 850;
    text-decoration: none;
}

    .pm-footer-owner-link:hover {
        color: #1e293b;     
    }

    .pm-footer-owner-link i {
        font-size: .8rem;
    }