/* ===== Catalog grid ===== */
.sot-catalog { width: 100%; }

/* Category filter chips above the lot grid */
.sot-cat-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 16px;
}
.sot-cat-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border: 1px solid #dde1ec;
    color: #1d2327;
    padding: 8px 14px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 120ms ease, border-color 120ms ease, color 120ms ease;
}
.sot-cat-chip:hover { border-color: #1F2B5E; }
.sot-cat-chip.is-active {
    background: #1F2B5E;
    border-color: #1F2B5E;
    color: #fff;
}
.sot-cat-chip__n {
    background: rgba(15, 18, 32, 0.08);
    color: inherit;
    border-radius: 999px;
    padding: 1px 8px;
    font-size: 0.78rem;
    font-weight: 700;
}
.sot-cat-chip.is-active .sot-cat-chip__n {
    background: rgba(255, 255, 255, 0.22);
}

/* --- Package-bid CTAs (catalog + dashboard) ---------------------------
   Same visual recipe in two spots, kept side-by-side here so styling
   stays in sync. Whole card is clickable; icon / text / chevron layout. */
.sot-catalog__pkg-cta,
.sot-account__pkg-cta {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    margin: 0 0 18px;
    background: linear-gradient(135deg, #1F2B5E 0%, #2C3A7B 100%);
    color: #fff !important;
    border-radius: 10px;
    text-decoration: none !important;
    box-shadow: 0 4px 14px rgba(15, 18, 32, 0.12);
    transition: transform 140ms ease, box-shadow 140ms ease;
}
.sot-catalog__pkg-cta:hover,
.sot-account__pkg-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(15, 18, 32, 0.18);
    color: #fff !important;
}
.sot-catalog__pkg-cta-icon,
.sot-account__pkg-cta-icon {
    font-size: 1.6rem;
    flex-shrink: 0;
}
.sot-catalog__pkg-cta-text,
.sot-account__pkg-cta-text {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    gap: 2px;
    line-height: 1.35;
}
.sot-catalog__pkg-cta-text strong,
.sot-account__pkg-cta-text strong {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
}
.sot-catalog__pkg-cta-text span,
.sot-account__pkg-cta-text span {
    font-size: 0.86rem;
    color: rgba(255, 255, 255, 0.85);
}
.sot-catalog__pkg-cta-arrow,
.sot-account__pkg-cta-arrow {
    font-size: 1.6rem;
    line-height: 1;
    color: #C4A050;
    flex-shrink: 0;
}

/* Lot-detail sidebar variant — uses the .sot-card shell so it sits next
   to the Your-sealed-bid + Guidelines cards and inherits the blue header. */
.sot-lot__pkg-link {
    display: block;
    margin: 18px 0 0;
    text-decoration: none !important;
    color: inherit;
    transition: transform 140ms ease, box-shadow 140ms ease;
}
.sot-lot__pkg-link:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(15, 18, 32, 0.08);
}

/* --- Package bid builder page ----------------------------------------- */
.sot-package-form {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 16px;
}
.sot-pkg__head { margin: 0 0 18px; }
.sot-pkg__title {
    margin: 0 0 4px;
    font-size: clamp(1.5rem, 2.4vw, 2rem);
    color: #0F1220;
    font-weight: 700;
    letter-spacing: -0.01em;
}
.sot-pkg__lede {
    margin: 0;
    color: #2b2f3a;
    font-size: 0.95rem;
    line-height: 1.5;
    max-width: 640px;
}
.sot-pkg__label-row {
    margin: 0 0 18px;
}
.sot-pkg__label-row label {
    display: flex;
    flex-direction: column;
    gap: 4px;
    max-width: 420px;
}
.sot-pkg__label-lbl {
    font-size: 0.82rem;
    color: #6B7180;
    font-weight: 600;
}
.sot-pkg__label-row input[type="text"] {
    padding: 9px 12px;
    border: 1px solid #ccd0d4;
    border-radius: 6px;
    font-size: 0.95rem;
}

/* The lot grid — visually identical to the catalog grid so the user
   sees the same thumbs they're already familiar with. */
.sot-pkg-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
    margin: 0 0 24px;
}
/* The label is the whole card. Force block + flex so the image + body
   sections stack vertically regardless of any theme-level `label`
   defaults, and !important pins the cross-axis width to 100%. */
.sot-pkg-card {
    position: relative;
    display: flex !important;
    flex-direction: column !important;
    background: #fff;
    border: 2px solid #e5e7ee;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    width: 100%;
    box-sizing: border-box;
    text-align: left;
    transition: transform 140ms ease, box-shadow 140ms ease, border-color 140ms ease;
}
.sot-pkg-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(15, 18, 32, 0.08);
    border-color: #c8cee0;
}
.sot-pkg-card input[type="checkbox"] {
    position: absolute !important;
    top: 10px;
    right: 10px;
    width: 22px;
    height: 22px;
    margin: 0 !important;
    z-index: 3;
    cursor: pointer;
}
/* Image tile — explicit block display, explicit width, and BOTH
   aspect-ratio and padding-bottom fallback so the tile always gets
   height. The padding-bottom trick wins on any browser where
   aspect-ratio doesn't apply (very old or a theme reset). */
.sot-pkg-card__image {
    display: block !important;
    position: relative;
    width: 100% !important;
    aspect-ratio: 4 / 3;
    min-height: 180px;          /* insurance if aspect-ratio is ignored */
    background:
        linear-gradient(135deg, #f5f6fa 0%, #ebeef5 100%)
        center/cover no-repeat;
    background-size: cover !important;
    background-position: center !important;
    overflow: hidden;
    box-sizing: border-box;
}
.sot-pkg-card__noimg {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    color: #97a0b6; font-size: 0.85rem;
}
.sot-pkg-card__badge {
    position: absolute;
    top: 10px; left: 10px;
    background: rgba(15, 18, 32, 0.78);
    color: #fff;
    font-size: 0.75rem;
    padding: 3px 9px;
    border-radius: 999px;
    letter-spacing: 0.02em;
    white-space: nowrap;
    z-index: 2;
}
.sot-pkg-card__tick {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    font-weight: 900;
    color: #fff;
    background: rgba(31, 43, 94, 0.55);
    opacity: 0;
    transition: opacity 140ms ease;
    pointer-events: none;
}
.sot-pkg-card__body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px 14px 14px;
}
.sot-pkg-card__title {
    font-size: 0.98rem;
    color: #0F1220;
    font-weight: 600;
    line-height: 1.3;
}
.sot-pkg-card__sub {
    font-size: 0.82rem;
    color: #2b2f3a;
    line-height: 1.4;
}
.sot-pkg-card__meta {
    font-size: 0.78rem;
    color: #6B7180;
}
/* Selected state — thick gold border + tick overlay */
.sot-pkg-card:has(input[type="checkbox"]:checked) {
    border-color: #C4A050;
    box-shadow: 0 0 0 3px rgba(196, 160, 80, 0.25);
}
.sot-pkg-card:has(input[type="checkbox"]:checked) .sot-pkg-card__tick {
    opacity: 1;
}

/* Footer: selected count + amount + legal + submit */
.sot-pkg__footer {
    background: #fff;
    border: 1px solid #e5e7ee;
    border-radius: 12px;
    padding: 20px 22px;
    box-shadow: 0 4px 14px rgba(15, 18, 32, 0.04);
}
.sot-pkg__selected {
    margin: 0 0 14px;
    font-size: 0.95rem;
    color: #2b2f3a;
}
.sot-pkg__selected strong {
    color: #1F2B5E;
    font-weight: 700;
}
.sot-pkg__amount { display: block; margin: 0 0 14px; }
.sot-pkg__amount-lbl {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    color: #0F1220;
}
.sot-pkg__amount-input {
    display: flex !important;
    align-items: stretch;
    border: 1px solid #ccd0d4;
    border-radius: 8px;
    overflow: hidden;
    max-width: 280px;
}
.sot-pkg__amount-input:focus-within {
    border-color: #1F2B5E;
    box-shadow: 0 0 0 3px rgba(31, 43, 94, 0.12);
}
.sot-pkg__currency {
    display: flex;
    align-items: center;
    padding: 0 12px;
    background: #f3f5fb;
    color: #1F2B5E;
    font-weight: 700;
    letter-spacing: 0.04em;
    font-size: 0.9rem;
    border-right: 1px solid #e5e7ee;
}
.sot-pkg__amount-input input {
    flex: 1 1 auto;
    padding: 10px 12px;
    border: 0;
    outline: 0;
    font-size: 1.05rem;
    font-variant-numeric: tabular-nums;
    min-width: 0;
}
.sot-pkg__amount-input input::-webkit-outer-spin-button,
.sot-pkg__amount-input input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.sot-pkg__legal {
    list-style: none;
    padding: 0;
    margin: 0 0 14px;
    color: #2b2f3a;
    font-size: 0.92rem;
}
.sot-pkg__legal li { margin: 6px 0; }

.sot-pkg__submit {
    background: #1F2B5E;
    color: #fff;
    padding: 12px 22px;
    border: 0;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    width: 100%;
    transition: background 150ms ease, box-shadow 150ms ease, opacity 150ms ease;
}
.sot-pkg__submit:hover:not(:disabled) {
    background: #273476;
    box-shadow: 0 6px 14px rgba(31, 43, 94, 0.22);
}
.sot-pkg__submit:disabled {
    background: #c8ccd7 !important;
    color: #fff !important;
    cursor: not-allowed !important;
}
.sot-pkg__hint {
    margin: 8px 0 0;
    color: #6B7180;
    font-size: 0.82rem;
    text-align: center;
}

.sot-catalog__downloads {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    margin: 0 0 18px;
    background: #f3f5fb;
    border-radius: 8px;
    font-size: 0.9rem;
}
.sot-catalog__downloads-label { font-weight: 600; color: #6B7180; }
.sot-catalog__download {
    display: inline-block;
    padding: 6px 12px;
    background: #fff;
    border: 1px solid #c8cee0;
    border-radius: 6px;
    text-decoration: none !important;
    color: #1F2B5E;
    font-weight: 600;
    transition: background 120ms ease, border-color 120ms ease;
}
.sot-catalog__download:hover { background: #e8ecfa; border-color: #1F2B5E; }
.sot-lot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 18px;
}
.sot-lot-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #e5e7ee;
    border-radius: 10px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform 120ms ease, box-shadow 120ms ease, border-color 120ms ease;
}
.sot-lot-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(15, 18, 32, 0.08);
    border-color: #c8cee0;
}
.sot-lot-card__image {
    position: relative;
    aspect-ratio: 4 / 3;
    background:
        linear-gradient(135deg, #f5f6fa 0%, #ebeef5 100%)
        center/cover no-repeat;
    overflow: hidden;
}
.sot-lot-card__noimg {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    color: #97a0b6; font-size: 0.85rem;
}
.sot-lot-card__badge {
    position: absolute;
    top: 10px; left: 10px;
    background: rgba(15, 18, 32, 0.78);
    color: #fff;
    font-size: 0.75rem;
    padding: 3px 9px;
    border-radius: 999px;
    letter-spacing: 0.02em;
}
.sot-lot-card__body {
    padding: 12px 14px 14px;
}
.sot-lot-card__title {
    margin: 0 0 4px;
    font-size: 1.02rem;
    line-height: 1.3;
    color: #0F1220;
    font-weight: 600;
}
.sot-lot-card__meta {
    margin: 0;
    color: #6B7180;
    font-size: 0.85rem;
}
.sot-empty {
    padding: 56px 24px;
    text-align: center;
    border: 1px dashed #c8cee0;
    border-radius: 10px;
    background: #fafbff;
}
.sot-empty__title { margin: 0 0 4px; font-size: 1.1rem; font-weight: 600; color: #0F1220; }
.sot-empty__sub   { margin: 0; color: #6B7180; }

/* ===== My account / dashboard page (v2 — wide + right sidebar) ===== */
.sot-account-wrap {
    width: 100%;
    box-sizing: border-box;
    padding: clamp(12px, 2.4vw, 24px) clamp(16px, 3vw, 48px);
    background: transparent;
}
.sot-account { max-width: none; margin: 0; }
.sot-account--v2 { width: 100%; }
.sot-account__columns {
    display: grid;
    grid-template-columns: minmax(0, 2.2fr) minmax(260px, 1fr);
    gap: clamp(18px, 2.4vw, 36px);
    align-items: start;
}
@media (max-width: 960px) {
    .sot-account__columns { grid-template-columns: 1fr; }
}
.sot-account__main { min-width: 0; }
.sot-account__side { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 20px; }
@media (max-width: 960px) { .sot-account__side { position: static; } }

/* Hide the WP page title on bidder-facing shortcode pages */
body.sot-hide-page-title .wp-block-post-title,
body.sot-hide-page-title .entry-header .wp-block-post-title { display: none !important; }
body.sot-hide-page-title .entry-header { margin-bottom: 0 !important; }


.sot-account__head {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    background: linear-gradient(135deg, #1F2B5E 0%, #2C3A7B 100%);
    color: #fff;
    border-radius: 12px;
    padding: 28px 30px;
    margin: 0 0 24px;
}
@media (max-width: 720px) { .sot-account__head { grid-template-columns: 1fr; padding: 22px 24px; } }
.sot-account__eyebrow {
    margin: 0 0 4px;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255,255,255,0.72);
    font-weight: 600;
}
.sot-account__name { margin: 0 0 4px; font-size: clamp(1.6rem, 2.4vw, 2.1rem); color: #fff; line-height: 1.1; }
.sot-account__email { margin: 0; color: rgba(255,255,255,0.78); font-size: 0.92rem; }
.sot-account__details dl { margin: 0; display: grid; grid-template-columns: 110px 1fr; gap: 6px 14px; font-size: 0.92rem; }
.sot-account__details dt { color: rgba(255,255,255,0.7); }
.sot-account__details dd { margin: 0; color: #fff; }
.sot-account__note { margin: 12px 0 0; font-size: 0.78rem; color: rgba(255,255,255,0.65); }

.sot-account__section { margin: 0 0 28px; }
.sot-account__section-title { margin: 0 0 6px; font-size: 1.15rem; color: #0F1220; }

.sot-account__bids { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-direction: column; gap: 10px; }
.sot-account__bid {
    display: grid;
    grid-template-columns: 64px 1fr auto;
    gap: 14px;
    align-items: center;
    background: #fff;
    border: 1px solid #e5e7ee;
    border-radius: 10px;
    padding: 12px 16px;
}
.sot-account__bid-thumb {
    width: 64px; height: 64px;
    border-radius: 8px;
    background: linear-gradient(135deg, #f5f6fa 0%, #ebeef5 100%) center/cover no-repeat;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.6rem;
}
.sot-account__bid-thumb--package { background: #f3f5fb; color: #1F2B5E; }
.sot-account__bid-eyebrow { margin: 0 0 2px; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: #6B7180; font-weight: 600; }
.sot-account__bid-title { margin: 0 0 4px; font-size: 1rem; color: #0F1220; }
.sot-account__bid-title a { text-decoration: none; color: #0F1220; }
.sot-account__bid-title a:hover { color: #1F2B5E; text-decoration: underline; }
.sot-account__bid-meta { margin: 0; color: #6B7180; font-size: 0.82rem; }

.sot-account__bid-status {
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    background: #eef0f6;
    color: #4a536b;
}
.sot-account__bid-status--sealed   { background: #f3f5fb; color: #1F2B5E; }
.sot-account__bid-status--winning  { background: #eaf7ea; color: #2c6f2e; }
.sot-account__bid-status--losing   { background: #fbe7e7; color: #8b1e1f; }
.sot-account__bid-status--withdrawn { background: #f1f1f1; color: #666; }

.sot-account__signout { margin-top: 24px; font-size: 0.92rem; }
.sot-account__signout a { color: #6B7180; text-decoration: none; }
.sot-account__signout a:hover { color: #b32d2e; text-decoration: underline; }

.sot-pill--pending  { background: #fff4e0; color: #8a5a10; }
.sot-pill--approved { background: #eaf7ea; color: #2c6f2e; }
.sot-pill--rejected { background: #fbe7e7; color: #8b1e1f; }

/* ===== Sidebar info cards ===== */
.sot-card,
.sot-schedule-card,
.sot-guidelines-card {
    background: #fff;
    border: 1px solid #e5e7ee;
    border-radius: 10px;
    padding: 0;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(15, 18, 32, 0.04);
}
.sot-card__title {
    margin: 0 !important;
    padding: 12px 18px;
    background: linear-gradient(90deg, #1F2B5E 0%, #2C3A7B 100%);
    color: #fff;
    font-size: 0.78rem !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.sot-card__body { padding: 14px 18px 4px; }
.sot-card__note {
    margin: 0 !important;
    padding: 10px 18px 14px;
    border-top: 1px solid #eef0f6;
    color: #6B7180;
    font-size: 0.78rem;
    background: #fafbff;
}
.sot-schedule-card__list {
    margin: 0;
    padding: 14px 18px 8px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px 14px;
    font-size: 0.9rem;
}
.sot-schedule-card__list dt { color: #6B7180; font-weight: 500; }
.sot-schedule-card__list dd { margin: 0; color: #0F1220; font-variant-numeric: tabular-nums; text-align: right; }
.sot-schedule-card__list dt.is-today,
.sot-schedule-card__list dd.is-today { font-weight: 700; color: #1F2B5E; }
.sot-schedule-card__list dt.is-past,
.sot-schedule-card__list dd.is-past  { color: #97a0b6; }
.sot-schedule-card__list dd.is-past  { text-decoration: line-through; text-decoration-color: rgba(151,160,182,0.5); }
.sot-schedule-card__list dt.is-next  { color: #1F2B5E; }
.sot-schedule-card__list dd.is-next::before { content: "► "; color: #C4A050; font-weight: 700; }
.sot-schedule-card__countdown {
    margin: 0;
    padding: 12px 18px;
    background: linear-gradient(90deg, rgba(31,43,94,0.06), rgba(196,160,80,0.10));
    border-top: 1px solid #eef0f6;
    font-variant-numeric: tabular-nums;
    text-align: center;
    color: #1F2B5E;
    display: flex;
    flex-direction: column;
    gap: 2px;
    align-items: center;
}
.sot-schedule-card__countdown-label {
    font-size: 0.72rem;
    font-weight: 600;
    color: #6B7180;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.sot-schedule-card__countdown-val {
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: 0.02em;
}
.sot-guidelines-card__body {
    font-size: 0.88rem;
    color: #2b2f3a;
    line-height: 1.55;
    max-height: 320px;
    overflow-y: auto;
}
.sot-guidelines-card__body p { margin: 0 0 8px; }
.sot-guidelines-card__body strong, .sot-guidelines-card__body b { color: #0F1220; }
.sot-guidelines-card__body h2,
.sot-guidelines-card__body h3,
.sot-guidelines-card__body h4 {
    margin: 14px 0 4px;
    font-size: 0.92rem;
    color: #1F2B5E;
}

/* ===== Sign-in CTA used in header / sidebar ===== */
.oftimor-sales-header-cta,
.sot-cta {
    display: inline-block;
    background: #1F2B5E;
    color: #fff !important;
    padding: 10px 18px;
    border-radius: 6px;
    text-decoration: none !important;
    font-weight: 600;
    line-height: 1.2;
    transition: background 120ms ease;
}
.oftimor-sales-header-cta:hover,
.sot-cta:hover { background: #273476; }

/* ===== Lot detail page ===== */
.sot-lot { width: 100%; }
.sot-lot__header { margin: 0 0 18px; }
.sot-lot__eyebrow {
    margin: 0 0 4px;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #6B7180;
    font-weight: 600;
}
.sot-lot__title {
    margin: 0 0 6px;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    line-height: 1.15;
    letter-spacing: -0.01em;
    color: #0F1220;
}
.sot-lot__meta {
    margin: 0;
    color: #6B7180;
    font-size: 0.95rem;
}
.sot-lot__countdown {
    margin: 8px 0 18px;
    padding: 10px 14px;
    background: #f3f5fb;
    border-radius: 8px;
    color: #1F2B5E;
    font-weight: 600;
    text-align: center;
    font-variant-numeric: tabular-nums;
}
/* Two-column lot layout: items+gallery left, sticky bid sidebar right. */
.sot-lot-wrap {
    width: 100%;
    max-width: var(--wp--style--global--wide-size, 1480px);
    margin: 0 auto;
    padding: 0 24px;
    box-sizing: border-box;
}
.sot-lot--two-col { width: 100%; }
.sot-lot__columns {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 32px;
    align-items: flex-start;
    margin-top: 16px;
}
@media (max-width: 980px) {
    .sot-lot__columns { grid-template-columns: 1fr; }
}
.sot-lot__main { min-width: 0; }
.sot-lot__side {
    position: sticky;
    top: 24px;
}
/* Bid card uses the shared .sot-card header+body model.
   DO NOT add padding or borders to the wrapper — .sot-card already handles that,
   and .sot-card__title must stay flush to the top to get the blue bar. */
.sot-lot__bid-card { /* intentionally empty — styled via .sot-card */ }
/* Give the bid card's body a bit more breathing room below the submit button. */
.sot-lot__bid-card .sot-card__body { padding: 16px 18px 18px; }
.sot-lot__side-title {
    margin: 0 0 14px;
    font-size: 1.05rem;
    font-weight: 700;
    color: #0F1220;
}

/* Gallery: large hero + thumbnail strip below */
.sot-gallery { margin: 0 0 24px; }
.sot-gallery__main {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 12px;
    background: #ebeef5;
}
.sot-gallery__main a, .sot-gallery__main img { display: block; width: 100%; height: 100%; }
.sot-gallery__main img { object-fit: cover; cursor: zoom-in; }
.sot-gallery__thumbs {
    list-style: none;
    padding: 0;
    margin: 10px 0 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(78px, 1fr));
    gap: 8px;
}
.sot-gallery__thumb {
    width: 100%;
    aspect-ratio: 1 / 1;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 8px;
    overflow: hidden;
    background: none;
    cursor: pointer;
}
.sot-gallery__thumb.is-active { border-color: #1F2B5E; }
.sot-gallery__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Lightbox (used by gallery + bidder admin doc previews).
   IMPORTANT: [hidden] must override display:flex or the lightbox stays open
   on page load. */
.sot-lightbox[hidden] { display: none !important; }
.sot-lightbox {
    position: fixed; inset: 0;
    background: rgba(15,18,32,0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100000;
    padding: 24px;
    cursor: zoom-out;
}
.sot-lightbox__img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 6px; }
.sot-lightbox__close {
    position: absolute; top: 14px; right: 18px;
    background: transparent; color: #fff;
    border: 0; font-size: 2rem; cursor: pointer; line-height: 1;
}
.sot-lot__section-title {
    margin: 24px 0 12px;
    font-size: 1.15rem;
    font-weight: 700;
    color: #0F1220;
}

/* Items inside a lot */
.sot-lot__items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 14px;
}
.sot-lot-item-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #e5e7ee;
    border-radius: 10px;
    overflow: hidden;
    scroll-margin-top: 90px;
    transition: box-shadow 200ms ease, border-color 200ms ease;
}
.sot-lot-item-card.is-highlighted {
    border-color: #C4A050;
    box-shadow: 0 0 0 3px rgba(196, 160, 80, 0.25);
    animation: sot-pulse 1.6s ease-in-out 2;
}
@keyframes sot-pulse {
    0%, 100% { box-shadow: 0 0 0 3px rgba(196, 160, 80, 0.25); }
    50%      { box-shadow: 0 0 0 8px rgba(196, 160, 80, 0.10); }
}
.sot-lot-item-card__image {
    aspect-ratio: 4 / 3;
    background:
        linear-gradient(135deg, #f5f6fa 0%, #ebeef5 100%)
        center/cover no-repeat;
    position: relative;
}
.sot-lot-item-card__noimg {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    color: #97a0b6; font-size: 0.85rem;
}
.sot-lot-item-card__body { padding: 10px 12px 12px; }
.sot-lot-item-card__title {
    margin: 0 0 4px;
    font-size: 0.98rem;
    font-weight: 600;
    color: #0F1220;
    line-height: 1.25;
}
.sot-lot-item-card__meta {
    margin: 0 0 4px;
    color: #6B7180;
    font-size: 0.82rem;
    font-variant-numeric: tabular-nums;
}
.sot-lot-item-card__desc {
    margin: 4px 0 0;
    color: #2b2f3a;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Bid form with overlay for not-yet-eligible bidders.
   .sot-bid-wrap is just a positioning context for the lock overlay —
   no margin, no visual box. The outer .sot-card already provides the frame. */
.sot-bid-wrap {
    position: relative;
    margin: 0;
}
.sot-bid-wrap--locked .sot-bid-form {
    filter: blur(2px);
    opacity: 0.5;
    pointer-events: none;
    user-select: none;
}
/* Default bid form is still used on legacy pages; keep the box styling there */
.sot-bid-form {
    background: #fff;
    border: 1px solid #e5e7ee;
    border-radius: 10px;
    padding: 18px 20px;
}
/* Flat variant (inside .sot-card): drop the inner box so only the outer
   card with its blue header shows — matches the Guidelines card exactly. */
.sot-bid-form--flat {
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    padding: 0 !important;
    box-shadow: none !important;
}
.sot-bid-form__amount { display: block; margin-bottom: 14px; }
.sot-bid-form__amount span {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    color: #0F1220;
}
.sot-bid-form__amount input {
    width: 100%;
    max-width: 240px;
    padding: 10px 12px;
    font-size: 1.1rem;
    border: 1px solid #ccd0d4;
    border-radius: 6px;
    font-variant-numeric: tabular-nums;
}
.sot-bid-form__legal {
    list-style: none;
    padding: 0;
    margin: 14px 0;
    font-size: 0.92rem;
    color: #2b2f3a;
}
.sot-bid-form__legal li { margin: 6px 0; }
.sot-bid-form__submit {
    background: #1F2B5E;
    color: #fff;
    padding: 11px 20px;
    border-radius: 6px;
    border: 0;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: background 150ms ease, opacity 150ms ease, box-shadow 150ms ease;
    width: 100%;
    margin-top: 6px;
}
.sot-bid-form__submit:hover:not(:disabled) { background: #273476; }
/* Disabled / not-yet-ready state — visibly greyed, no hover lift */
.sot-bid-form__submit:disabled,
.sot-bid-form__submit[disabled] {
    background: #c8ccd7 !important;
    color: #fff !important;
    cursor: not-allowed !important;
    opacity: 1 !important;
    box-shadow: none !important;
}
.sot-bid-form__submit.is-ready {
    box-shadow: 0 6px 14px rgba(31, 43, 94, 0.22);
}

.sot-bid-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    pointer-events: auto;
}
.sot-bid-overlay__card {
    background: #fff;
    border: 1px solid #e5e7ee;
    border-radius: 12px;
    padding: 22px 26px;
    text-align: center;
    box-shadow: 0 16px 36px rgba(15, 18, 32, 0.12);
    max-width: 360px;
}
.sot-bid-overlay__card h3 {
    margin: 0 0 6px;
    font-size: 1.15rem;
    color: #0F1220;
}
.sot-bid-overlay__card p {
    margin: 0 0 14px;
    color: #6B7180;
    font-size: 0.92rem;
}

.sot-lot__back {
    margin-top: 28px;
    font-size: 0.9rem;
}
.sot-lot__back a { color: #6B7180; text-decoration: none; }
.sot-lot__back a:hover { color: #1F2B5E; text-decoration: underline; }

/* ===== Lot detail v2 — hero, gallery2, items4, item modal, bid currency input ===== */

/* --- v2 hero header (LOT no. | Title | Items | Sealed bids) --- */
.sot-lot--v2 { width: 100%; }
.sot-lot--v2 .sot-lot__hero {
    background:
        radial-gradient(900px circle at 18% 30%, rgba(196, 160, 80, 0.22), transparent 60%),
        linear-gradient(135deg, #1F2B5E 0%, #2C3A7B 100%);
    color: #fff;
    border-radius: 14px;
    padding: 28px clamp(18px, 3vw, 36px);
    margin: 0 0 24px;
    box-shadow: 0 18px 36px rgba(15, 18, 32, 0.10);
}
.sot-lot__hero-row {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    align-items: center;
    justify-content: space-between;
}
.sot-lot__hero-id { flex: 1 1 320px; min-width: 0; }
.sot-lot__hero-eyebrow {
    margin: 0 0 6px;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.72);
}
.sot-lot__hero-title {
    margin: 0;
    font-size: clamp(1.6rem, 2.6vw, 2.2rem);
    line-height: 1.15;
    letter-spacing: -0.01em;
    color: #fff;
    font-weight: 700;
}
.sot-lot__hero-sub {
    margin: 8px 0 0;
    color: rgba(255,255,255,0.84);
    font-size: 0.95rem;
    line-height: 1.45;
    max-width: 680px;
}
.sot-lot__hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 14px;
    flex: 1 1 320px;
}
.sot-lot__stat {
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border-radius: 10px;
    padding: 12px 14px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.sot-lot__stat-num {
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1.05;
    font-variant-numeric: tabular-nums;
    color: #fff;
}
.sot-lot__stat-lbl {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.10em;
    color: rgba(255, 255, 255, 0.78);
}
.sot-lot__stat--countdown .sot-lot__stat-num { color: #F0C870; font-size: 1.05rem; }

/* --- v2 columns (override v1 padding inside card-style hero) --- */
.sot-lot--v2 .sot-lot__columns {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 32px;
    align-items: start;
}
@media (max-width: 960px) {
    .sot-lot--v2 .sot-lot__columns { grid-template-columns: 1fr; }
}

/* --- Gallery v2 (hero image + side grid) --- */
.sot-gallery2 {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 220px;
    gap: 12px;
    margin: 0 0 28px;
}
@media (max-width: 720px) {
    .sot-gallery2 { grid-template-columns: 1fr; }
}
.sot-gallery2__hero {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    border: 0;
    padding: 0;
    background: #f3f5fb;
    cursor: zoom-in;
    /* Reduced ~30% in height — was 4/3 (tall), now 2/1 (shorter, cinematic).
       Feels less dominant without starving the side thumb grid. */
    aspect-ratio: 2 / 1;
    max-height: 420px;
}
.sot-gallery2__hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 250ms ease;
}
.sot-gallery2__hero:hover .sot-gallery2__hero-img { transform: scale(1.02); }
.sot-gallery2__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 100px;
    gap: 8px;
    align-content: start;
}
@media (max-width: 720px) {
    .sot-gallery2__grid { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 80px; }
}
.sot-gallery2__cell {
    border: 0;
    padding: 0;
    overflow: hidden;
    border-radius: 8px;
    background: #f3f5fb;
    cursor: zoom-in;
    position: relative;
    transition: transform 120ms ease, box-shadow 120ms ease;
}
.sot-gallery2__cell:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(15, 18, 32, 0.10);
}
.sot-gallery2__cell img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.sot-gallery2__cell--more {
    background: rgba(31, 43, 94, 0.92);
    color: #fff;
    font-size: 1.2rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    letter-spacing: 0.02em;
}
.sot-gallery2__data { display: none; }

/* --- Items 4-up grid --- */
.sot-items4 {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin: 0;
}
@media (max-width: 1100px) { .sot-items4 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px)  { .sot-items4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 420px)  { .sot-items4 { grid-template-columns: 1fr; } }

.sot-items4__card {
    display: flex;
    flex-direction: column;
    gap: 0;
    background: #fff;
    border: 1px solid #e5e7ee;
    border-radius: 10px;
    padding: 0;
    cursor: pointer;
    text-align: left;
    overflow: hidden;
    transition: transform 120ms ease, box-shadow 120ms ease, border-color 120ms ease;
    font: inherit;
    color: inherit;
}
.sot-items4__card:hover {
    transform: translateY(-2px);
    border-color: #c4a050;
    box-shadow: 0 10px 22px rgba(15, 18, 32, 0.10);
}
.sot-items4__card.is-highlighted {
    border-color: #c4a050;
    box-shadow: 0 0 0 3px rgba(196, 160, 80, 0.30);
    animation: sot-highlight-pulse 1.4s ease-in-out 3;
}
/* Pulses three times then stops — enough to catch the eye on landing from a
   scanned QR, but not so distracting that it keeps looping forever. */
@keyframes sot-highlight-pulse {
    0%   { box-shadow: 0 0 0 3px rgba(196, 160, 80, 0.30), 0 0 0 0 rgba(196, 160, 80, 0.55); }
    70%  { box-shadow: 0 0 0 3px rgba(196, 160, 80, 0.30), 0 0 0 18px rgba(196, 160, 80, 0); }
    100% { box-shadow: 0 0 0 3px rgba(196, 160, 80, 0.30), 0 0 0 0 rgba(196, 160, 80, 0); }
}
.sot-items4__img {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    background: #f3f5fb center/cover no-repeat;
}
.sot-items4__body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 10px 12px 12px;
}
.sot-items4__title {
    font-weight: 600;
    color: #0F1220;
    font-size: 0.95rem;
    line-height: 1.25;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.sot-items4__num {
    font-size: 0.78rem;
    color: #6B7180;
    font-variant-numeric: tabular-nums;
}

/* --- Item modal (full-screen overlay) --- */
.sot-item-modal[hidden] { display: none !important; }
.sot-item-modal {
    position: fixed;
    inset: 0;
    background: rgba(15, 18, 32, 0.78);
    z-index: 9998;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    overflow-y: auto;
}
.sot-item-modal__close {
    position: fixed;
    top: 18px;
    right: 22px;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.95);
    border: 0;
    font-size: 1.6rem;
    cursor: pointer;
    z-index: 10000;
    color: #0F1220;
    line-height: 1;
}
.sot-item-modal__inner {
    background: #fff;
    border-radius: 14px;
    max-width: 820px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}
.sot-item-modal__article { padding: 28px clamp(20px, 3vw, 36px); }
.sot-item-modal__head { margin: 0 0 18px; }
.sot-item-modal__eyebrow {
    margin: 0 0 6px;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-weight: 700;
    color: #6B7180;
}
.sot-item-modal__title {
    margin: 0 0 6px;
    font-size: clamp(1.4rem, 2.2vw, 1.85rem);
    line-height: 1.2;
    color: #0F1220;
    font-weight: 700;
    letter-spacing: -0.005em;
}
.sot-item-modal__tag { margin: 0; color: #6B7180; font-size: 0.88rem; }
.sot-item-modal__tag code {
    background: #f3f5fb;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.85rem;
}
.sot-item-modal__gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 10px;
    margin: 0 0 18px;
}
.sot-item-modal__gallery a {
    display: block;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 8px;
    background: #f3f5fb;
}
.sot-item-modal__gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 200ms ease;
}
.sot-item-modal__gallery a:hover img { transform: scale(1.04); }
.sot-item-modal__lead {
    font-size: 1.02rem;
    line-height: 1.55;
    color: #2b2f3a;
    margin: 0 0 14px;
}
.sot-item-modal__desc { color: #2b2f3a; line-height: 1.55; }
.sot-item-modal__desc p { margin: 0 0 10px; }

/* --- Lightbox prev/next nav + counter (extends existing .sot-lightbox) --- */
.sot-lightbox__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 56px;
    height: 56px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    border: 0;
    font-size: 2.2rem;
    line-height: 1;
    cursor: pointer;
    color: #0F1220;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.30);
    transition: transform 120ms ease, background 120ms ease;
    z-index: 1;
}
.sot-lightbox__nav:hover {
    background: #fff;
    transform: translateY(-50%) scale(1.05);
}
.sot-lightbox__nav--prev { left: 18px; }
.sot-lightbox__nav--next { right: 18px; }
.sot-lightbox__counter {
    position: absolute;
    bottom: 22px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(15, 18, 32, 0.78);
    color: #fff;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.04em;
}
@media (max-width: 600px) {
    .sot-lightbox__nav { width: 44px; height: 44px; font-size: 1.6rem; }
    .sot-lightbox__nav--prev { left: 8px; }
    .sot-lightbox__nav--next { right: 8px; }
}

/* --- Binding-bid confirmation modal ---------------------------------------
   Full-screen overlay. [hidden] hides it; otherwise it's a centered card
   on a dark backdrop. The backdrop and X/Cancel buttons all carry
   data-sot-bid-close, which the inline JS handles.
   !important is used deliberately — theme and block-editor CSS has been
   observed to add display: block / visibility: hidden with high specificity
   on fixed overlays. */
.sot-bid-confirm[hidden] { display: none !important; }
.sot-bid-confirm:not([hidden]) {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    inset: 0;
    z-index: 100001 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 24px;
    visibility: visible !important;
    opacity: 1 !important;
}
.sot-bid-confirm__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 18, 32, 0.78);
    cursor: pointer;
}
.sot-bid-confirm__card {
    position: relative;
    z-index: 1;
    background: #fff;
    border-radius: 14px;
    max-width: 520px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 26px clamp(20px, 3vw, 32px);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}
.sot-bid-confirm__close {
    position: absolute;
    top: 10px;
    right: 12px;
    width: 36px;
    height: 36px;
    border-radius: 999px;
    background: #f3f5fb;
    border: 0;
    font-size: 1.3rem;
    cursor: pointer;
    color: #0F1220;
    line-height: 1;
}
.sot-bid-confirm__close:hover { background: #e8ecf5; }
.sot-bid-confirm__title {
    margin: 0 0 16px;
    font-size: 1.25rem;
    font-weight: 700;
    color: #0F1220;
    letter-spacing: -0.005em;
}
.sot-bid-confirm__list {
    margin: 0 0 14px;
    padding: 12px 14px;
    background: #fafbff;
    border: 1px solid #eef0f6;
    border-radius: 10px;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 6px 14px;
    font-size: 0.92rem;
}
.sot-bid-confirm__list dt { color: #6B7180; font-weight: 500; }
.sot-bid-confirm__list dd { margin: 0; color: #0F1220; font-weight: 600; }
.sot-bid-confirm__amount {
    font-size: 1.05rem !important;
    color: #1F2B5E !important;
    font-variant-numeric: tabular-nums;
}
.sot-bid-confirm__legal {
    margin: 0 0 18px;
    padding: 10px 12px;
    border-left: 3px solid #C4A050;
    background: #fff8ec;
    color: #2b2f3a;
    font-size: 0.88rem;
    line-height: 1.5;
    border-radius: 0 8px 8px 0;
}
.sot-bid-confirm__actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    flex-wrap: wrap;
}
.sot-bid-confirm__submit {
    background: #1F2B5E !important;
    color: #fff !important;
    padding: 11px 18px !important;
    border-radius: 8px !important;
    border: 0 !important;
    font-weight: 700 !important;
    font-size: 0.95rem !important;
    cursor: pointer !important;
    letter-spacing: 0.02em;
}
.sot-bid-confirm__submit:hover { background: #273476 !important; }
.sot-btn-secondary {
    background: #f3f5fb;
    color: #0F1220;
    padding: 11px 18px;
    border-radius: 8px;
    border: 1px solid #e5e7ee;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
}
.sot-btn-secondary:hover { background: #e8ecf5; }

/* Inline validation error in the bid form (appended by JS) */
.sot-bid-form__inline-error {
    color: #b32d2e;
    margin: 10px 0 0;
    font-weight: 600;
    font-size: 0.9rem;
}

/* --- Inspection location link + overlay --------------------------------- */
.sot-schedule-card__loc-link {
    margin-left: 6px;
    font-size: 0.78rem;
    color: #1F2B5E;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
    white-space: nowrap;
}
.sot-schedule-card__loc-link:hover { color: #C4A050; }

.sot-location-modal[hidden] { display: none !important; }
.sot-location-modal:not([hidden]) {
    position: fixed !important;
    top: 0 !important; left: 0 !important; right: 0 !important; bottom: 0 !important;
    inset: 0;
    z-index: 100002 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 24px;
    visibility: visible !important;
    opacity: 1 !important;
}
.sot-location-modal__backdrop {
    position: absolute; inset: 0;
    background: rgba(15, 18, 32, 0.78);
    cursor: pointer;
}
.sot-location-modal__card {
    position: relative;
    z-index: 1;
    background: #fff;
    border-radius: 14px;
    max-width: 720px;
    width: 100%;
    max-height: 92vh;
    overflow-y: auto;
    padding: 24px clamp(18px, 3vw, 30px) 20px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}
.sot-location-modal__close {
    position: absolute;
    top: 10px; right: 12px;
    width: 36px; height: 36px;
    border-radius: 999px;
    background: #f3f5fb;
    border: 0; cursor: pointer;
    font-size: 1.3rem; color: #0F1220; line-height: 1;
}
.sot-location-modal__close:hover { background: #e8ecf5; }
.sot-location-modal__head { margin: 0 0 14px; }
.sot-location-modal__title {
    margin: 0 0 6px;
    font-size: 1.25rem;
    font-weight: 700;
    color: #0F1220;
    letter-spacing: -0.005em;
}
.sot-location-modal__tagline {
    margin: 0;
    color: #2b2f3a;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 6px;
}
.sot-location-modal__pin { font-size: 1.05rem; }
.sot-location-modal__map {
    height: 320px !important;      /* !important wins over Leaflet's own size resets */
    min-height: 320px;
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
    margin: 0 0 14px;
    background: #eef0f6;
    position: relative;
}
/* Leaflet's .leaflet-container must fill the card slot exactly — without
   this rule, Leaflet inherits an auto height and tiles stop half-way. */
.sot-location-modal__map .leaflet-container {
    height: 100% !important;
    width: 100% !important;
}
.sot-location-modal__photo {
    margin: 0 0 12px;
    border-radius: 10px;
    overflow: hidden;
    background: #f3f5fb;
}
.sot-location-modal__photo img {
    width: 100%;
    height: auto;
    display: block;
}
.sot-location-modal__photo figcaption {
    padding: 6px 12px;
    font-size: 0.8rem;
    color: #6B7180;
    background: #fafbff;
    border-top: 1px solid #eef0f6;
}
.sot-location-modal__actions {
    margin: 0;
    text-align: right;
    font-size: 0.9rem;
}
.sot-location-modal__actions a {
    color: #1F2B5E;
    font-weight: 600;
    text-decoration: none;
}
.sot-location-modal__actions a:hover { text-decoration: underline; }

/* --- Bid form: integer USD input with prefix + preview output --- */
.sot-bid-form__amount-lbl {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    color: #0F1220;
}
.sot-bid-form__amount-input {
    display: flex !important;
    align-items: stretch;
    margin: 0 !important;
    border: 1px solid #ccd0d4;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    transition: border-color 120ms ease, box-shadow 120ms ease;
    font-weight: normal !important;
}
.sot-bid-form__amount-input:focus-within {
    border-color: #1F2B5E;
    box-shadow: 0 0 0 3px rgba(31, 43, 94, 0.12);
}
.sot-bid-form__currency {
    display: flex !important;
    align-items: center;
    padding: 0 14px;
    background: #f3f5fb;
    color: #1F2B5E;
    font-weight: 700 !important;
    letter-spacing: 0.04em;
    font-size: 0.95rem;
    border-right: 1px solid #e5e7ee;
    margin: 0 !important;
}
.sot-bid-form__amount-input input {
    flex: 1;
    border: 0 !important;
    outline: none;
    padding: 12px 14px;
    font-size: 1.25rem;
    font-weight: 700;
    color: #0F1220;
    font-variant-numeric: tabular-nums;
    background: transparent;
    width: 100%;
    max-width: none !important;
    border-radius: 0 !important;
    -moz-appearance: textfield;
}
.sot-bid-form__amount-input input::-webkit-outer-spin-button,
.sot-bid-form__amount-input input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.sot-bid-form__preview {
    display: block;
    margin-top: 8px;
    font-size: 0.95rem;
    color: #c4a050;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    min-height: 1.3em;
}

/* Side card: AGBs (uses generic .sot-card visual) */
.sot-guidelines-card { margin-top: 18px; }
.sot-guidelines-card__body {
    font-size: 0.9rem;
    line-height: 1.5;
    color: #2b2f3a;
    max-height: 320px;
    overflow-y: auto;
    padding-right: 6px;
}
.sot-guidelines-card__body p { margin: 0 0 8px; }

.sot-notice {
    padding: 10px 14px;
    border-radius: 6px;
    background: #f3f5fb;
    border-left: 4px solid #1F2B5E;
    margin: 12px 0;
}
.sot-notice.sot-ok   { background: #eef9ef; border-left-color: #3a8e3c; }
.sot-notice.sot-warn { background: #fef6ef; border-left-color: #d28b16; }

.sot-table { width: 100%; border-collapse: collapse; }
.sot-table th, .sot-table td { border: 1px solid #e5e7ee; padding: 6px 8px; text-align: left; font-size: 0.92em; }

.sot-pkg-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 10px;
}
.sot-pkg-card {
    display: block; border: 1px solid #ddd;
    border-radius: 6px; padding: 10px; cursor: pointer;
}

.sot-checklist { list-style: none; padding: 0; }
.sot-checklist li { padding: 4px 0; }
.sot-checklist li.ok::before      { content: "\2714\00a0"; color: #3a8e3c; }
.sot-checklist li.pending::before { content: "\25CB\00a0"; color: #999; }

/* ===== Bidder profile page ===== */
.sot-profile { width: 100%; max-width: 980px; margin: 0 auto; }
.sot-profile__header { margin: 0 0 22px; }
.sot-profile__eyebrow {
    margin: 0 0 4px;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #6B7180;
    font-weight: 600;
}
.sot-profile__title {
    margin: 0 0 6px;
    font-size: clamp(1.5rem, 2.4vw, 2rem);
    line-height: 1.2;
    letter-spacing: -0.01em;
    color: #0F1220;
}
.sot-profile__subtitle {
    margin: 0 0 12px;
    color: #6B7180;
    font-size: 0.95rem;
}
.sot-profile__progress {
    height: 6px;
    background: #ebeef5;
    border-radius: 999px;
    overflow: hidden;
}
.sot-profile__progress-fill {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, #1F2B5E 0%, #C4A050 100%);
    transition: width 200ms ease;
}

.sot-profile__grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 24px;
    margin-top: 8px;
}
@media (max-width: 800px) {
    .sot-profile__grid { grid-template-columns: 1fr; }
}

.sot-profile__checklist-card {
    background: #fff;
    border: 1px solid #e5e7ee;
    border-radius: 10px;
    padding: 16px 18px;
    align-self: flex-start;
    position: sticky;
    top: 20px;
}
.sot-profile__checklist-card h3 {
    margin: 0 0 10px;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #6B7180;
    font-weight: 600;
}
.sot-profile__checklist {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.sot-profile__checklist li {
    padding: 6px 0;
    font-size: 0.92rem;
    color: #2b2f3a;
    display: flex;
    align-items: center;
    gap: 8px;
}
.sot-profile__checklist li::before {
    content: "";
    flex-shrink: 0;
    width: 18px; height: 18px;
    border-radius: 999px;
    border: 2px solid #ccd0d4;
    background: #fff;
}
.sot-profile__checklist li.is-ok::before {
    border-color: #3a8e3c;
    background: #3a8e3c center/12px 12px no-repeat
        url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'><path d='M6.4 11.4 3 8l1.2-1.2 2.2 2.2 5.4-5.4L13 4.8z'/></svg>");
}
.sot-profile__checklist li.is-ok { color: #6B7180; }
.sot-profile__checklist--admin {
    border-top: 1px dashed #ddd;
    padding-top: 10px !important;
    margin-top: 4px;
}
.sot-profile__hint {
    margin: 14px 0 0;
    font-size: 0.8rem;
    color: #6B7180;
    line-height: 1.4;
}

.sot-profile__form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.sot-profile__section {
    background: #fff;
    border: 1px solid #e5e7ee;
    border-radius: 10px;
    padding: 20px 22px;
}
.sot-profile__section-title {
    margin: 0 0 4px;
    font-size: 1.05rem;
    color: #0F1220;
    font-weight: 700;
}
.sot-profile__section-help {
    margin: 0 0 14px;
    color: #6B7180;
    font-size: 0.9rem;
}

.sot-profile__field { margin: 12px 0 0; }
.sot-profile__field label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    color: #0F1220;
}
.sot-profile__field input[type="text"],
.sot-profile__field select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ccd0d4;
    border-radius: 6px;
    font-size: 1rem;
    box-sizing: border-box;
    background: #fff;
}
.sot-wa-status { font-size: 0.85rem; }

/* Admin debug panel on bidder profile */
.sot-profile__debug {
    margin-top: 20px;
    padding: 14px 16px;
    background: #fff8e7;
    border: 1px solid #f1d7a0;
    border-radius: 8px;
    font-size: 0.85rem;
}
.sot-profile__debug summary { cursor: pointer; font-weight: 600; color: #6B5020; }
.sot-profile__debug-table { width: 100%; border-collapse: collapse; margin-top: 10px; font-size: 0.82rem; }
.sot-profile__debug-table th,
.sot-profile__debug-table td { text-align: left; padding: 6px 8px; border-bottom: 1px solid #f1d7a0; }
.sot-profile__debug-table code { background: #fff; padding: 1px 5px; border-radius: 3px; font-size: 0.78rem; }
.sot-profile__debug-hint { margin: 10px 0 0; color: #6B5020; font-size: 0.78rem; line-height: 1.5; }
.sot-profile__debug-hint code { background: #fff; padding: 1px 5px; border-radius: 3px; margin: 0 2px; }
.sot-profile__row {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}
.sot-profile__row input[type="text"] { flex: 1; min-width: 200px; }
.sot-profile__chip {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
}
.sot-profile__chip--ok { background: #eaf7ea; color: #2c6f2e; }

.sot-profile__uploads {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-top: 4px;
}
@media (max-width: 600px) {
    .sot-profile__uploads { grid-template-columns: 1fr; }
}
.sot-profile__upload {
    display: flex;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
}
.sot-profile__upload-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: #0F1220;
}
.sot-profile__upload-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 4 / 3;
    background:
        linear-gradient(135deg, #f5f6fa 0%, #ebeef5 100%)
        center/cover no-repeat;
    border: 1px dashed #ccd0d4;
    border-radius: 8px;
    color: #6B7180;
    font-size: 0.85rem;
    overflow: hidden;
    transition: border-color 120ms ease;
    position: relative;
}
.sot-profile__upload:hover .sot-profile__upload-preview { border-color: #1F2B5E; }
.sot-profile__upload-replace {
    position: absolute; bottom: 6px; right: 6px;
    background: rgba(15, 18, 32, 0.78);
    color: #fff;
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 999px;
}

.sot-profile__radios {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
}
.sot-profile__radio {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    border: 1px solid #ccd0d4;
    border-radius: 8px;
    cursor: pointer;
    transition: border-color 120ms ease, background 120ms ease;
}
.sot-profile__radio:hover { border-color: #1F2B5E; background: #fafbff; }
.sot-profile__radio input[type="radio"] { margin-top: 3px; flex-shrink: 0; }
.sot-profile__radio span { color: #2b2f3a; font-size: 0.92rem; line-height: 1.4; }
.sot-profile__radio input:checked + span { color: #0F1220; }

.sot-profile__submit {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 4px;
}
.sot-btn--primary {
    padding: 12px 22px !important;
    font-size: 1rem !important;
    border-radius: 8px !important;
}
.sot-profile__submit-hint {
    margin: 0;
    color: #6B7180;
    font-size: 0.85rem;
}

.sot-btn {
    background: #1F2B5E;
    color: #fff; padding: 8px 14px;
    border-radius: 4px; border: 0; cursor: pointer;
}
.sot-btn:hover { background: #273476; }

.sot-muted { color: #6B7180; font-size: 0.9em; }
.sot-pill {
    display: inline-block; padding: 2px 8px;
    border-radius: 10px; background: #eef;
    color: #235; font-size: 0.85em; margin-right: 6px;
}
