/*
 * sa-enhance.css  v4.5
 * Sign America Shop — banner product page only.
 * All selectors .sa- prefixed.
 */

/* ── Upload zone ────────────────────────────────────────────────── */

.sa-upload-zone {
    display: block; border: 2px dashed #c8cce0; border-radius: 6px;
    background: #f8f9ff; transition: border-color .18s, background .18s;
    overflow: hidden; margin-top: 4px; cursor: pointer; position: relative;
}
.sa-upload-zone:hover,
.sa-upload-zone.sa-drag-over { border-color: #fec931; background: #fffef5; }
.sa-upload-zone.sa-has-file  { border-style: solid; border-color: #1A1E5D; background: #f2f4ff; }

.sa-upload-prompt { padding: 22px 16px; text-align: center; pointer-events: none; }
.sa-upload-icon   { color: #1A1E5D; opacity: .4; margin-bottom: 8px; line-height: 1; }
.sa-upload-text   { font-size: 14px; color: #444; margin-bottom: 5px; }
.sa-upload-text strong { color: #1A1E5D; text-decoration: underline; text-underline-offset: 2px; }
.sa-upload-hint   { font-size: 11px; color: #aaa; letter-spacing: .02em; }

.sa-file-state {
    display: flex; align-items: center; gap: 10px; padding: 12px 14px; pointer-events: none;
}
.sa-file-state button { pointer-events: auto; }
.sa-file-icon  { color: #1A1E5D; flex-shrink: 0; opacity: .7; }
.sa-file-info  { flex: 1; min-width: 0; }
.sa-file-name  {
    display: block; font-size: 13px; font-weight: 600; color: #1A1E5D;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sa-file-meta  { display: block; font-size: 11px; color: #888; margin-top: 1px; }
.sa-file-clear {
    background: none; border: 1px solid #e5e7f0; border-radius: 4px;
    padding: 4px 6px; cursor: pointer; color: #999;
    display: flex; align-items: center; transition: all .15s; flex-shrink: 0;
}
.sa-file-clear:hover { border-color: #ff4328; color: #ff4328; background: #fff5f3; }

/* ── Compact bar ─────────────────────────────────────────────────── */

.sa-compact-bar {
    display: flex; align-items: center; justify-content: space-between;
    gap: 12px; padding: 10px 14px; background: #f2f4ff;
    border: 1px solid #dde1f0; border-radius: 6px; margin-top: 8px; flex-wrap: wrap;
}
.sa-bar-details { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.sa-bar-name    {
    display: block; font-size: 13px; font-weight: 600; color: #1A1E5D;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sa-bar-meta    { font-size: 11px; color: #666; }

.sa-preview-btn {
    display: flex; align-items: center; gap: 6px;
    background: #1A1E5D; color: #fff; border: none;
    border-radius: 5px; padding: 9px 16px; font-size: 13px;
    font-weight: 600; cursor: pointer; white-space: nowrap;
    transition: background .15s, color .15s; flex-shrink: 0;
}
.sa-preview-btn:hover { background: #fec931; color: #1A1E5D; }

/* ── Approval gate ───────────────────────────────────────────────── */

.sa-approval-gate {
    padding: 12px 14px; background: #fffbeb;
    border: 1px solid #fde68a; border-radius: 6px; margin-bottom: 10px;
}
.sa-approval-label {
    display: flex; align-items: flex-start; gap: 9px; cursor: pointer;
}
.sa-approval-check { margin-top: 2px; flex-shrink: 0; width: 16px; height: 16px; cursor: pointer; }
.sa-approval-text  { font-size: 13px; font-weight: 600; color: #78350f; line-height: 1.5; }
.sa-approval-hint  { font-size: 11px; color: #92400e; margin-top: 6px; margin-left: 25px; }

.sa-link-btn {
    background: none; border: none; padding: 0; cursor: pointer;
    color: #1A1E5D; text-decoration: underline; font-size: inherit; font-weight: 600;
}

/* Lock ATC until approval */
.sa-atc-locked {
    opacity: 0.4 !important;
    pointer-events: none !important;
    cursor: not-allowed !important;
    filter: grayscale(40%) !important;
}

/* ── Modal overlay ───────────────────────────────────────────────── */

.sa-modal-overlay {
    display: none; position: fixed; inset: 0;
    background: rgba(0,0,0,.78); z-index: 999999;
    align-items: center; justify-content: center; padding: 16px;
}
.sa-modal-overlay.sa-modal-open { display: flex; }
body.sa-no-scroll { overflow: hidden !important; }

/* ── Modal box ────────────────────────────────────────────────────── */

.sa-modal {
    background: #fff; border-radius: 10px;
    width: 100%; max-width: 1160px;
    height: 90vh; max-height: 860px;
    display: flex; flex-direction: column; overflow: hidden;
    box-shadow: 0 24px 80px rgba(0,0,0,.55);
}

.sa-modal-hd {
    display: flex; align-items: center; justify-content: space-between;
    padding: 11px 18px; background: #1A1E5D;
    gap: 12px; flex-shrink: 0; flex-wrap: wrap;
}
.sa-modal-hd-left  { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sa-modal-hd-right { display: flex; align-items: center; gap: 8px; }

.sa-modal-brand {
    font-size: 11px; font-weight: 700; letter-spacing: .08em;
    text-transform: uppercase; color: rgba(255,255,255,.45); white-space: nowrap;
}
.sa-modal-size-label { font-size: 15px; font-weight: 600; color: #fec931; }

.sa-modal-place-btns { display: flex; gap: 3px; }
.sa-place-btn {
    font-size: 10px; font-weight: 600; padding: 4px 10px;
    border-radius: 4px; border: 1px solid rgba(255,255,255,.18);
    background: rgba(255,255,255,.07); color: rgba(255,255,255,.5);
    cursor: pointer; transition: all .13s; text-transform: uppercase; letter-spacing: .03em;
}
.sa-place-btn:hover       { border-color: rgba(254,201,49,.5); color: #fec931; background: rgba(254,201,49,.08); }
.sa-place-btn.sa-place-active { background: rgba(254,201,49,.2); border-color: #fec931; color: #fec931; }

.sa-modal-close {
    background: none; border: 1px solid rgba(255,255,255,.22);
    border-radius: 5px; color: rgba(255,255,255,.5);
    cursor: pointer; padding: 3px 8px; font-size: 20px; line-height: 1;
    display: flex; align-items: center; transition: all .15s;
}
.sa-modal-close:hover { border-color: rgba(255,255,255,.6); color: #fff; }

.sa-modal-body { display: flex; flex: 1; min-height: 0; overflow: hidden; }

/* Left: dark artboard */
.sa-modal-canvas-col {
    flex: 62; background: #14162a;
    display: flex; flex-direction: column; min-width: 0; min-height: 0;
}
.sa-canvas-stage {
    flex: 1; display: flex; align-items: center; justify-content: center;
    overflow: hidden; padding: 20px; min-height: 0; min-width: 0;
}
/* Sizing fully controlled in JS — do not add max-width/height here */
#sa-canvas { display: block; }
.sa-canvas-empty {
    color: rgba(255,255,255,.3); font-size: 13px;
    text-align: center; line-height: 1.8; padding: 20px;
}
.sa-canvas-legend {
    display: flex; gap: 14px; padding: 7px 14px;
    background: #1a1c30; border-top: 1px solid rgba(255,255,255,.07);
    flex-wrap: wrap; flex-shrink: 0;
}
.sa-legend-item {
    display: flex; align-items: center; gap: 5px;
    font-size: 10px; color: rgba(255,255,255,.32); white-space: nowrap;
}
.sa-legend-sw { display: inline-block; width: 16px; height: 10px; border-radius: 2px; flex-shrink: 0; }

/* Right: sidebar */
.sa-modal-sidebar {
    flex: 38; min-width: 280px; max-width: 400px;
    overflow-y: auto; display: flex; flex-direction: column;
    background: #fff; border-left: 1px solid #e5e7ef;
}

/* ── Size picker (inside modal sidebar) ─────────────────────────── */

.sa-size-picker {
    padding: 12px 14px; border-bottom: 1px solid #eef0f8; background: #fafbff;
    flex-shrink: 0;
}
.sa-sp-label {
    font-size: 11px; font-weight: 700; text-transform: uppercase;
    letter-spacing: .06em; color: #1A1E5D; margin-bottom: 8px;
}
.sa-sp-note { font-weight: 400; color: #888; text-transform: none; letter-spacing: 0; font-size: 11px; }
.sa-sp-grid { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 6px; }

.sa-sp-btn {
    font-size: 11px; font-weight: 600; padding: 4px 9px;
    border-radius: 4px; border: 1px solid #dde1f0;
    background: #fff; color: #444; cursor: pointer;
    transition: all .13s; white-space: nowrap;
}
.sa-sp-btn:hover      { border-color: #1A1E5D; color: #1A1E5D; background: #f2f4ff; }
.sa-sp-btn.sa-sp-active { background: #1A1E5D; border-color: #1A1E5D; color: #fff; }

.sa-sp-sync { font-size: 11px; color: #888; min-height: 14px; }

/* ── Dimension table ─────────────────────────────────────────────── */

.sa-pf-dimtable {
    padding: 10px 14px 8px; border-bottom: 1px solid #eef0f8;
    background: #fafbff; flex-shrink: 0;
}
.sa-pf-dimrow { display: flex; align-items: baseline; gap: 8px; padding: 3px 0; font-size: 12px; }
.sa-pf-dimlabel {
    flex: 0 0 110px; color: #888; font-size: 11px;
    text-transform: uppercase; letter-spacing: .04em;
}
.sa-pf-dimval { color: #222; font-weight: 500; }
.sa-pfd-sub   { font-weight: 400; color: #888; font-size: 11px; margin-left: 3px; }

/* ── Preflight header + items ────────────────────────────────────── */

.sa-pf-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 9px 13px; background: #f2f4ff;
    border-bottom: 1px solid #dde1f0; flex-shrink: 0;
}
.sa-pf-title {
    font-size: 11px; font-weight: 700; letter-spacing: .07em;
    text-transform: uppercase; color: #1A1E5D;
}

.sa-preflight-status {
    font-size: 11px; font-weight: 600; padding: 2px 9px;
    border-radius: 20px; letter-spacing: .02em;
}
.sa-status-idle     { background: #eee;    color: #888;    }
.sa-status-checking { background: #e0e8ff; color: #1A1E5D; }
.sa-status-pass     { background: #dcfce7; color: #166534; }
.sa-status-warning  { background: #fef9c3; color: #713f12; }
.sa-status-error    { background: #fee2e2; color: #991b1b; }
.sa-status-info     { background: #dbeafe; color: #1e40af; }

.sa-pf-body {
    padding: 10px 13px; background: #fff;
    display: flex; flex-direction: column; gap: 6px; flex: 1;
}
.sa-pf-idle { color: #aaa; font-size: 12px; margin: 0; padding: 4px 0; }

.sa-pf-item {
    display: flex; gap: 9px; align-items: flex-start;
    padding: 9px 11px; border-radius: 5px; line-height: 1.5;
    border: 1px solid transparent; font-size: 13px;
}
.sa-pf-error   { background: #fff5f5; border-color: #fecaca; color: #991b1b; }
.sa-pf-warning { background: #fffbeb; border-color: #fde68a; color: #78350f; }
.sa-pf-pass    { background: #f0fdf4; border-color: #bbf7d0; color: #166534; }
.sa-pf-info    { background: #eff6ff; border-color: #bfdbfe; color: #1e40af; }

.sa-pf-icon { font-size: 13px; flex-shrink: 0; width: 16px; text-align: center; line-height: 1.5; }
.sa-pf-msg  { flex: 1; }
.sa-pf-msg em { font-style: italic; opacity: .8; display: block; margin-top: 3px; font-size: 12px; }

/* ── Window Vinyl: size inputs ───────────────────────────────────── */

.sa-wv-size-box {
    background: #fafbff; border: 1px solid #dde1f0; border-radius: 8px;
    padding: 14px 16px; margin-bottom: 14px;
}
.sa-wv-size-header { display: flex; align-items: baseline; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.sa-wv-size-title  { font-size: 13px; font-weight: 700; color: #1A1E5D; }
.sa-wv-size-hint   { font-size: 11px; color: #888; }

.sa-wv-inputs {
    display: flex; align-items: flex-start; gap: 10px; flex-wrap: wrap;
}
.sa-wv-field { display: flex; flex-direction: column; gap: 4px; }
.sa-wv-label { font-size: 11px; font-weight: 600; color: #555; text-transform: uppercase; letter-spacing: .04em; }
.sa-wv-input-wrap {
    display: flex; align-items: center;
    border: 1.5px solid #dde1f0; border-radius: 5px;
    background: #fff; overflow: hidden; transition: border-color .15s;
}
.sa-wv-input-wrap:focus-within { border-color: #1A1E5D; }
.sa-wv-input {
    width: 80px; padding: 8px 8px; font-size: 14px; font-weight: 600;
    border: none; outline: none; background: transparent; color: #1A1E5D;
    -moz-appearance: textfield;
}
.sa-wv-input::-webkit-outer-spin-button,
.sa-wv-input::-webkit-inner-spin-button { -webkit-appearance: none; }
.sa-wv-unit {
    padding: 0 8px; font-size: 13px; color: #999; background: #f5f6fb;
    border-left: 1px solid #eef0f8; line-height: 36px;
}
.sa-wv-err { font-size: 11px; color: #dc2626; display: none; }
.sa-wv-field-sep { font-size: 20px; color: #bbb; padding-top: 24px; }

.sa-wv-mount-toggle { display: flex; gap: 0; }
.sa-wv-mount-btn {
    padding: 8px 12px; font-size: 12px; font-weight: 600; cursor: pointer;
    border: 1.5px solid #dde1f0; background: #fff; color: #666; transition: all .13s;
}
.sa-wv-mount-btn:first-child { border-radius: 5px 0 0 5px; }
.sa-wv-mount-btn:last-child  { border-radius: 0 5px 5px 0; border-left: none; }
.sa-wv-mount-btn.sa-wv-mount-active {
    background: #1A1E5D; border-color: #1A1E5D; color: #fff;
}
.sa-wv-mount-btn[data-mount="inside"].sa-wv-mount-active {
    background: #7c3aed; border-color: #7c3aed;
}

/* ── Window Vinyl: installation badge ───────────────────────────── */

.sa-wv-installation-badge {
    display: inline-flex; align-items: center;
    padding: 7px 14px; font-size: 12px; font-weight: 700;
    background: #1A1E5D; color: #fff; border-radius: 5px;
    letter-spacing: .04em; text-transform: uppercase;
}

/* ── Window Vinyl: specs block ───────────────────────────────────── */

.sa-wv-specs-block {
    background: #f8f9ff; border: 1px solid #dde1f0; border-radius: 8px;
    padding: 13px 16px; margin-bottom: 14px;
}
.sa-wv-spec-title {
    font-size: 11px; font-weight: 700; color: #1A1E5D; text-transform: uppercase;
    letter-spacing: .06em; margin-bottom: 8px;
}
.sa-wv-spec-list {
    list-style: none; margin: 0; padding: 0;
    display: flex; flex-direction: column; gap: 4px;
}
.sa-wv-spec-list li {
    font-size: 12px; color: #444; display: flex; gap: 4px; align-items: baseline;
}
.sa-wv-spec-list li strong { color: #1A1E5D; min-width: 90px; flex-shrink: 0; }

/* ── Window Vinyl: price bar ─────────────────────────────────────── */

.sa-wv-price-bar {
    display: flex; align-items: center; justify-content: space-between;
    background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: 6px;
    padding: 11px 14px; margin-bottom: 14px; gap: 12px;
}
.sa-wv-price-left  { display: flex; flex-direction: column; gap: 2px; }
.sa-wv-price-label { font-size: 11px; font-weight: 700; color: #166534; text-transform: uppercase; letter-spacing: .05em; }
.sa-wv-price-note  { font-size: 11px; color: #4ade80; }
.sa-wv-price-amount { font-size: 22px; font-weight: 700; color: #166534; }

/* ── Window Vinyl: mirror button ─────────────────────────────────── */

.sa-wv-mirror-btn {
    display: flex; align-items: center; gap: 5px;
    background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.2);
    border-radius: 5px; color: rgba(255,255,255,.55); cursor: pointer;
    padding: 4px 10px; font-size: 11px; font-weight: 600;
    transition: all .15s; white-space: nowrap;
}
.sa-wv-mirror-btn:hover { border-color: rgba(124,58,237,.6); color: #a78bfa; background: rgba(124,58,237,.12); }
.sa-wv-mirror-btn.sa-wv-mirror-active { background: rgba(124,58,237,.25); border-color: #a78bfa; color: #c4b5fd; }

/* ── Window Vinyl: modal sidebar dims ────────────────────────────── */

.sa-wv-modal-dims {
    padding: 12px 14px; border-bottom: 1px solid #eef0f8;
    background: #fafbff; flex-shrink: 0;
}
.sa-wv-modal-dim-row { font-size: 18px; font-weight: 700; color: #1A1E5D; margin: 4px 0; }
.sa-wv-modal-mount   { font-size: 12px; font-weight: 600; margin-top: 4px; }

/* ── Responsive ──────────────────────────────────────────────────── */

/* Tablet: stack canvas above sidebar, full-scroll modal */
@media (max-width: 760px) {
    /* Modal scrolls as a unit — content expands to fill, capped at 95vh */
    .sa-modal {
        height: auto;
        max-height: 95vh;
        max-height: 95dvh; /* dynamic viewport height — accounts for mobile browser chrome */
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    /* Body column-stacks; let it be as tall as needed */
    .sa-modal-body {
        flex-direction: column;
        overflow: visible;
        flex: none;
        min-height: 0;
    }
    /* Canvas column: fixed height so sidebar always stays below */
    .sa-modal-canvas-col {
        flex: none;
        height: 260px;
        min-height: 220px;
        max-height: 260px;
        min-width: 0;
    }
    /* Sidebar: full width, no height limit, scrolls with the modal */
    .sa-modal-sidebar {
        flex: none;
        max-width: 100%;
        min-width: 0;
        max-height: none;
        overflow-y: visible;
        border-left: none;
        border-top: 1px solid #e5e7ef;
    }
    /* Legend: visible in its own row below the canvas */
    .sa-canvas-legend { flex-shrink: 0; }
}

/* Phone: compact header, show placement buttons as scrollable strip */
@media (max-width: 560px) {
    /* Modal header wraps to two rows on very small screens */
    .sa-modal-hd { flex-wrap: wrap; padding: 8px 12px; gap: 6px; }
    .sa-modal-hd-left  { flex: 1 0 auto; min-width: 0; }
    .sa-modal-hd-right { width: 100%; justify-content: space-between; gap: 4px; }

    /* Size label shorter */
    .sa-modal-size-label { font-size: 12px; }
    /* "Artwork Proof" label hidden — context is obvious */
    .sa-modal-brand { display: none; }

    /* Show placement buttons — horizontally scrollable strip */
    .sa-modal-hd-right .sa-modal-place-btns {
        display: flex !important;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        flex-shrink: 1;
        gap: 2px;
    }
    .sa-modal-hd-right .sa-modal-place-btns::-webkit-scrollbar { display: none; }
    .sa-place-btn { font-size: 9px; padding: 3px 6px; flex-shrink: 0; letter-spacing: 0; }
    .sa-modal-close { font-size: 16px; padding: 2px 6px; flex-shrink: 0; }

    /* Mirror btn compact */
    .sa-wv-mirror-btn { font-size: 9px; padding: 3px 7px; flex-shrink: 0; }

    /* Compact bar stacks */
    .sa-compact-bar { flex-direction: column; align-items: flex-start; }
    .sa-preview-btn { width: 100%; justify-content: center; }

    /* Canvas col slightly shorter on very small phones */
    .sa-modal-canvas-col { height: 220px; min-height: 180px; max-height: 220px; }
}

/* ── Sqft Sign Specs Block (sa-sqft-sign-enhance.js) ─────────── */

.sa-sign-specs-block {
    background: #ffffff;
    border: 1px solid #e4e7f2;
    border-radius: 10px;
    padding: 20px 22px;
    margin-bottom: 18px;
}

.sa-sign-specs-title {
    font-size: 10px;
    font-weight: 700;
    color: #9298b8;
    text-transform: uppercase;
    letter-spacing: .09em;
    margin-bottom: 14px;
}

.sa-sign-specs-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sa-sign-specs-list li {
    font-size: 13.5px;
    color: #333;
    display: flex;
    gap: 0;
    align-items: baseline;
    flex-wrap: wrap;
    line-height: 1.45;
}

.sa-sign-specs-list li strong {
    color: #1A1E5D;
    font-weight: 700;
    min-width: 140px;
    flex-shrink: 0;
    margin-right: 6px;
}

.sa-sign-specs-list li span {
    color: #555;
    flex: 1;
}

/* ── Size box — more open for sign products ───────────────────── */

#sa-sign-size-box {
    background: #ffffff;
    border: 1px solid #e4e7f2;
    border-radius: 10px;
    padding: 20px 22px;
    margin-bottom: 0;
}

#sa-sign-size-box .sa-wv-size-header {
    margin-bottom: 16px;
}

#sa-sign-size-box .sa-wv-size-title {
    font-size: 14px;
    font-weight: 700;
    color: #1A1E5D;
    letter-spacing: .01em;
}

#sa-sign-size-box .sa-wv-size-hint {
    font-size: 12px;
    color: #888;
    margin-top: 3px;
    display: block;
}

#sa-sign-size-box .sa-wv-inputs {
    gap: 14px;
}

#sa-sign-size-box .sa-wv-input {
    font-size: 16px;
    padding: 10px 12px;
    height: auto;
}

#sa-sign-size-box .sa-wv-label {
    font-size: 11px;
    font-weight: 700;
    color: #9298b8;
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-bottom: 6px;
}

/* ── Turnaround trust strip ───────────────────────────────────── */

.sa-sign-turnaround {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    padding: 13px 16px;
    background: #f8f9ff;
    border: 1px solid #e4e7f2;
    border-radius: 8px;
    margin-bottom: 14px;
}

.sa-ta-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 120px;
}

.sa-ta-label {
    font-size: 10px;
    font-weight: 700;
    color: #9298b8;
    text-transform: uppercase;
    letter-spacing: .07em;
}

.sa-ta-value {
    font-size: 12.5px;
    font-weight: 600;
    color: #1A1E5D;
}

/* ── Yard Sign UI (sa-yardsign-enhance.js) ────────────────────── */

.sa-ys-options {
    display: flex; flex-direction: column; gap: 14px; padding-top: 6px;
}
.sa-ys-group { display: flex; flex-direction: column; gap: 6px; }

/* Single/Double toggle */
.sa-ys-toggle {
    display: inline-flex; border: 1.5px solid #d0d4e8; border-radius: 6px;
    overflow: hidden; background: #f5f6fb;
}
.sa-ys-btn {
    padding: 8px 18px; font-size: 13px; font-weight: 600; cursor: pointer;
    border: none; background: transparent; color: #555; transition: background .15s, color .15s;
    line-height: 1.3;
}
.sa-ys-btn.active {
    background: #1A1E5D; color: #fff;
}
.sa-ys-btn:hover:not(.active) { background: #e8ebf8; color: #1A1E5D; }

/* Qty row */
.sa-ys-qty-wrap {
    display: flex; align-items: center; gap: 10px;
}
.sa-ys-qty-input {
    width: 72px; padding: 7px 10px; font-size: 14px; font-weight: 600;
    border: 1.5px solid #d0d4e8; border-radius: 5px;
    color: #1A1E5D; text-align: center; background: #fff;
    transition: border-color .15s;
}
.sa-ys-qty-input:focus { outline: none; border-color: #1A1E5D; }

.sa-ys-bulk-note {
    font-size: 11px; color: #27a860; font-weight: 600; letter-spacing: .01em;
}

/* Stake checkbox */
.sa-ys-stake-label {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 13px; color: #333; cursor: pointer; user-select: none;
}
.sa-ys-stake-label input[type="checkbox"] {
    width: 16px; height: 16px; accent-color: #1A1E5D; cursor: pointer; flex-shrink: 0;
}

/* Per-piece price callout */
.sa-ys-price-callout {
    display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap;
}
.sa-ys-price-each {
    font-size: 22px; font-weight: 800; color: #1A1E5D;
}
.sa-ys-price-label {
    font-size: 12px; color: #666;
}
.sa-ys-price-total {
    font-size: 13px; color: #444; font-weight: 600;
}

/* Preflight panel (lightweight — no canvas) */
#sa-ys-pf {
    border-radius: 7px; border: 1px solid #dde1f0; padding: 10px 13px;
    background: #f8f9ff; margin-top: 8px; font-size: 12px; color: #444;
}
#sa-ys-pf.sa-pf-ok    { border-color: #27a860; background: #f0faf4; }
#sa-ys-pf.sa-pf-warn  { border-color: #fec931; background: #fffef5; }
#sa-ys-pf.sa-pf-error { border-color: #e03; background: #fff5f5; }

@media (max-width: 560px) {
    .sa-ys-btn { padding: 7px 13px; font-size: 12px; }
    .sa-ys-price-each { font-size: 18px; }
}

/* ═══════════════════════════════════════════════════════════════════
   v4.5 Layout Enhancement — Bigger, Wider, More Open
   All rules scoped to .sa- prefix. Applied as overrides.
   ═══════════════════════════════════════════════════════════════════ */

/* ── Global size-box upgrade ─────────────────────────────────────── */

.sa-wv-size-box {
    background: #ffffff;
    border: 1px solid #e4e7f2;
    border-radius: 10px;
    padding: 22px 24px;
    margin-bottom: 16px;
}

.sa-wv-size-header {
    margin-bottom: 18px;
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
}

.sa-wv-size-title {
    font-size: 16px;
    font-weight: 700;
    color: #1A1E5D;
    letter-spacing: -.01em;
}

.sa-wv-size-hint {
    font-size: 13px;
    color: #8890b0;
    line-height: 1.5;
    display: block;
}

.sa-wv-inputs {
    gap: 16px;
    align-items: flex-end;
}

.sa-wv-field {
    gap: 7px;
}

.sa-wv-label {
    font-size: 11px;
    font-weight: 700;
    color: #9298b8;
    text-transform: uppercase;
    letter-spacing: .07em;
}

.sa-wv-input-wrap {
    border-radius: 7px;
    border-width: 1.5px;
}

.sa-wv-input {
    width: 110px;
    padding: 11px 10px;
    font-size: 18px;
    font-weight: 700;
    color: #1A1E5D;
}

.sa-wv-unit {
    padding: 0 12px;
    font-size: 15px;
    color: #b0b8d0;
    line-height: 44px;
    background: #f5f6fb;
}

.sa-wv-err {
    font-size: 12px;
    margin-top: 2px;
}

.sa-wv-field-sep {
    font-size: 26px;
    color: #c8cde0;
    padding-top: 28px;
    font-weight: 300;
}

/* ── Upload zone upgrade ─────────────────────────────────────────── */

.sa-upload-zone {
    border-radius: 10px;
    border-width: 2px;
    margin-top: 0;
}

.sa-upload-prompt {
    padding: 32px 20px;
}

.sa-upload-icon {
    opacity: .35;
    margin-bottom: 12px;
}

.sa-upload-text {
    font-size: 16px;
    color: #444;
    margin-bottom: 7px;
    line-height: 1.5;
}

.sa-upload-hint {
    font-size: 12.5px;
    color: #bbb;
    letter-spacing: .02em;
    line-height: 1.6;
}

.sa-file-state {
    padding: 16px 18px;
    gap: 13px;
}

.sa-file-name {
    font-size: 14px;
}

.sa-file-meta {
    font-size: 12px;
    margin-top: 2px;
}

/* ── Price bar upgrade ───────────────────────────────────────────── */

.sa-wv-price-bar {
    padding: 16px 20px;
    border-radius: 10px;
    margin-bottom: 16px;
    background: #f0fdf4;
    border-color: #bbf7d0;
}

.sa-wv-price-label {
    font-size: 11px;
    letter-spacing: .07em;
    margin-bottom: 3px;
}

.sa-wv-price-note {
    font-size: 13px;
    color: #4ade80;
    line-height: 1.4;
}

.sa-wv-price-amount {
    font-size: 30px;
    font-weight: 800;
    color: #166534;
    letter-spacing: -.02em;
}

/* ── Compact bar upgrade ─────────────────────────────────────────── */

.sa-compact-bar {
    padding: 13px 18px;
    border-radius: 8px;
    margin-top: 12px;
}

.sa-bar-name {
    font-size: 14px;
}

.sa-bar-meta {
    font-size: 12px;
    margin-top: 2px;
}

.sa-preview-btn {
    padding: 11px 20px;
    font-size: 14px;
    border-radius: 7px;
}

/* ── Approval gate upgrade ───────────────────────────────────────── */

.sa-approval-gate {
    padding: 16px 18px;
    border-radius: 9px;
    margin-bottom: 14px;
}

.sa-approval-check {
    width: 18px;
    height: 18px;
    margin-top: 1px;
    accent-color: #1A1E5D;
}

.sa-approval-text {
    font-size: 14px;
    line-height: 1.55;
}

.sa-approval-hint {
    font-size: 12px;
    margin-top: 8px;
    margin-left: 28px;
}

/* ── Preflight items upgrade ─────────────────────────────────────── */

.sa-pf-item {
    padding: 11px 13px;
    border-radius: 7px;
    font-size: 13.5px;
    line-height: 1.55;
}

.sa-pf-idle {
    font-size: 13px;
    padding: 8px 0;
}

/* ── Sign specs block upgrade (already in sa-sign-specs-block) ───── */

.sa-sign-specs-block {
    padding: 22px 24px;
    border-radius: 10px;
    margin-bottom: 16px;
}

.sa-sign-specs-list li {
    font-size: 14px;
    line-height: 1.6;
    padding: 3px 0;
    border-bottom: 1px solid #f0f2f8;
}

.sa-sign-specs-list li:last-child {
    border-bottom: none;
}

.sa-sign-specs-list li strong {
    min-width: 160px;
    font-size: 13px;
    letter-spacing: .01em;
}

/* ── Installation badge upgrade ──────────────────────────────────── */

.sa-wv-installation-badge {
    padding: 9px 18px;
    font-size: 13px;
    border-radius: 7px;
    letter-spacing: .05em;
}

/* ── Turnaround strip upgrade ────────────────────────────────────── */

.sa-sign-turnaround {
    padding: 16px 20px;
    border-radius: 10px;
    margin-bottom: 16px;
    gap: 22px;
}

.sa-ta-label {
    font-size: 10px;
    letter-spacing: .08em;
    margin-bottom: 3px;
}

.sa-ta-value {
    font-size: 13.5px;
    font-weight: 700;
}

/* ── Yard sign toggle upgrade ────────────────────────────────────── */

.sa-ys-toggle {
    border-radius: 8px;
    border-width: 1.5px;
}

.sa-ys-btn {
    padding: 10px 22px;
    font-size: 14px;
}

.sa-ys-qty-input {
    width: 82px;
    padding: 9px 10px;
    font-size: 16px;
    border-radius: 7px;
}

.sa-ys-stake-label {
    font-size: 14px;
}

.sa-ys-price-each {
    font-size: 26px;
    font-weight: 800;
}

.sa-ys-price-label,
.sa-ys-price-total {
    font-size: 13px;
}

/* ── Modal sidebar upgrade ───────────────────────────────────────── */

.sa-wv-modal-dim-row {
    font-size: 20px;
    font-weight: 800;
}

.sa-sp-btn {
    font-size: 12px;
    padding: 5px 11px;
}

/* ── Size-box ID overrides for sign products ─────────────────────── */

#sa-sign-size-box,
#sa-ys-config {
    background: #ffffff;
    border: 1px solid #e4e7f2;
    border-radius: 10px;
    padding: 22px 24px;
    margin-bottom: 16px;
}

#sa-sign-size-box .sa-wv-size-title,
#sa-ys-config .sa-wv-size-title {
    font-size: 16px;
    font-weight: 700;
    color: #1A1E5D;
}

#sa-sign-size-box .sa-wv-size-hint,
#sa-ys-config .sa-wv-size-hint {
    font-size: 13px;
    color: #8890b0;
}

/* ── Mobile overrides ────────────────────────────────────────────── */

@media (max-width: 560px) {
    .sa-wv-size-box,
    #sa-sign-size-box,
    #sa-ys-config {
        padding: 18px 16px;
    }
    .sa-wv-input { width: 90px; font-size: 16px; }
    .sa-wv-price-amount { font-size: 24px; }
    .sa-upload-prompt { padding: 24px 16px; }
    .sa-sign-specs-list li strong { min-width: 120px; }
    .sa-sign-turnaround { gap: 14px; }
}
