/*
 * sa-print.css  v3.2
 * Sign America Print plugin — flat print configurator styles.
 * Standalone; no dependency on the banner/vinyl plugin stylesheet.
 * All selectors scoped to .sa-print-cfg, .sa-proof-modal, or .sa-design-modal.
 */

/* ── Reset / base ─────────────────────────────────────────────────────────── */

.sa-print-cfg,
.sa-print-cfg * {
    box-sizing: border-box;
}
.sa-print-cfg {
    font-family: inherit;
    color: #222;
    margin-bottom: 24px;
}

/* ── TOP CONFIGURATOR (2-column flex) ─────────────────────────────────────── */

.sa-cfg-top {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    margin-bottom: 20px;
}

/* Left: spec rows */
.sa-specs-col {
    flex: 1 1 0;
    min-width: 0;
    background: #fff;
    border: 1px solid #e4e7f2;
    border-radius: 12px;
    padding: 20px 22px;
}

.sa-spec-group {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.sa-spec-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.sa-spec-label {
    font-size: 13px;
    font-weight: 700;
    color: #1A1E5D;
    white-space: nowrap;
    min-width: 80px;
    flex-shrink: 0;
}

/* Dropdown select */
.sa-select {
    appearance: none;
    -webkit-appearance: none;
    background: #f8f9ff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%231A1E5D' opacity='.55'/%3E%3C/svg%3E") no-repeat right 12px center;
    border: 1.5px solid #e0e4f0;
    border-radius: 7px;
    padding: 9px 32px 9px 12px;
    font-size: 14px;
    font-weight: 600;
    color: #222;
    cursor: pointer;
    transition: border-color .15s, box-shadow .15s;
    flex: 1;
    min-width: 140px;
}
.sa-select:focus {
    outline: none;
    border-color: #1A1E5D;
    box-shadow: 0 0 0 3px rgba(26,30,93,.1);
}
.sa-select option { font-weight: 400; }

/* Pill toggle group */
.sa-pill-group {
    display: inline-flex;
    border: 1.5px solid #e0e4f0;
    border-radius: 8px;
    overflow: hidden;
    background: #f8f9ff;
}

.sa-pill {
    padding: 8px 18px;
    font-size: 13px;
    font-weight: 600;
    color: #555;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: background .13s, color .13s;
    white-space: nowrap;
    line-height: 1.3;
}
.sa-pill + .sa-pill { border-left: 1.5px solid #e0e4f0; }
.sa-pill:hover:not(.sa-pill-active) { background: #eef0fa; color: #1A1E5D; }
.sa-pill.sa-pill-active {
    background: #1A1E5D;
    color: #fff;
}

/* Qty combo (select + custom input) */
.sa-qty-combo {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    flex-wrap: wrap;
}

.sa-qty-input {
    width: 110px;
    padding: 9px 12px;
    border: 1.5px solid #e0e4f0;
    border-radius: 7px;
    font-size: 14px;
    font-weight: 600;
    color: #1A1E5D;
    background: #fff;
    transition: border-color .15s;
    -moz-appearance: textfield;
}
.sa-qty-input::-webkit-outer-spin-button,
.sa-qty-input::-webkit-inner-spin-button { -webkit-appearance: none; }
.sa-qty-input:focus {
    outline: none;
    border-color: #1A1E5D;
    box-shadow: 0 0 0 3px rgba(26,30,93,.1);
}

/* Locked stock display */
.sa-stock-locked {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 7px;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 600;
    color: #166534;
    flex: 1;
}
.sa-stock-tick {
    font-size: 15px;
    color: #16a34a;
    flex-shrink: 0;
}

/* Right: price + turnaround summary */
.sa-summary-col {
    flex: 0 0 190px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sa-price-box {
    background: #fff;
    border: 1px solid #e4e7f2;
    border-radius: 12px;
    padding: 18px 18px 14px;
}
.sa-price-lbl {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .09em;
    color: #9298b8;
    margin-bottom: 5px;
}
.sa-price-big {
    font-size: 34px;
    font-weight: 800;
    color: #1A1E5D;
    letter-spacing: -.03em;
    line-height: 1.1;
}
.sa-price-sub {
    font-size: 12px;
    color: #888;
    margin-top: 5px;
    line-height: 1.5;
}

.sa-ta-note {
    background: #fff;
    border: 1px solid #e4e7f2;
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 12.5px;
    color: #444;
    display: flex;
    gap: 9px;
    align-items: flex-start;
    line-height: 1.55;
}
.sa-ta-pip {
    flex-shrink: 0;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #16a34a;
    margin-top: 4px;
}
.sa-ta-note strong { color: #1A1E5D; }

/* ── UPLOAD SECTION ───────────────────────────────────────────────────────── */

.sa-upload-section {
    background: #fff;
    border: 1px solid #e4e7f2;
    border-radius: 12px;
    padding: 20px 22px;
    margin-bottom: 16px;
}

.sa-upload-hd {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}
.sa-upload-hd-title {
    font-size: 15px;
    font-weight: 700;
    color: #1A1E5D;
}

.sa-bleed-hint {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 11.5px;
    color: #9298b8;
    letter-spacing: .01em;
    flex-wrap: wrap;
}

/* Colored dot indicators */
.sa-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
    vertical-align: middle;
}
.sa-dot-r { background: #dc2626; }
.sa-dot-g { background: #16a34a; }
.sa-dot-b { background: #1A1E5D; }

/* Each upload block (front / back) */
.sa-upload-block { margin-bottom: 14px; }
.sa-upload-block:last-of-type { margin-bottom: 0; }

.sa-upload-label-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.sa-side-badge {
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 4px;
}
.sa-badge-front { background: #1A1E5D; color: #fff; }
.sa-badge-back  { background: #6d28d9; color: #fff; }

.sa-req-note {
    font-size: 11.5px;
    color: #9298b8;
}

/* Drop zone */
.sa-upload-zone {
    position: relative;
    border: 2px dashed #c8cce0;
    border-radius: 10px;
    background: #f8f9ff;
    overflow: hidden;
    cursor: pointer;
    transition: border-color .18s, background .18s;
}
.sa-upload-zone:hover,
.sa-upload-zone.sa-dz-over {
    border-color: #fec931;
    background: #fffef5;
}
.sa-upload-zone.sa-dz-has-file {
    border-style: solid;
    border-color: #1A1E5D;
    background: #f2f4ff;
}

/* Hidden file input (covers full zone) */
.sa-file-input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 10;
}

/* Empty / prompt state */
.sa-upload-prompt {
    padding: 26px 20px;
    text-align: center;
    pointer-events: none;
}
.sa-up-icon {
    color: #1A1E5D;
    opacity: .3;
    margin-bottom: 9px;
    line-height: 1;
}
.sa-up-text {
    font-size: 14.5px;
    color: #444;
    margin-bottom: 4px;
    line-height: 1.5;
}
.sa-up-text strong {
    color: #1A1E5D;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.sa-up-formats {
    font-size: 11px;
    color: #bbb;
    letter-spacing: .02em;
}

/* File chosen state */
.sa-file-ready {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px 16px;
    pointer-events: none;
}
.sa-file-ready button { pointer-events: auto; }
.sa-ficon {
    color: #1A1E5D;
    flex-shrink: 0;
    opacity: .7;
}
.sa-finfo {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.sa-fname {
    font-size: 13.5px;
    font-weight: 700;
    color: #1A1E5D;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.sa-fmeta {
    font-size: 11px;
    color: #888;
}
.sa-file-rm {
    background: none;
    border: 1px solid #e5e7f0;
    border-radius: 5px;
    padding: 5px 8px;
    cursor: pointer;
    color: #999;
    font-size: 12px;
    display: flex;
    align-items: center;
    transition: all .15s;
    flex-shrink: 0;
}
.sa-file-rm:hover { border-color: #dc2626; color: #dc2626; background: #fff5f5; }

/* Upload progress */
.sa-upload-prog {
    padding: 10px 16px;
    background: #f2f4ff;
}
.sa-prog-track {
    height: 4px;
    background: #dde1f0;
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 5px;
}
.sa-prog-fill {
    height: 100%;
    background: #1A1E5D;
    border-radius: 2px;
    width: 0%;
    transition: width .3s;
}
.sa-prog-lbl { font-size: 10.5px; color: #6270a0; }

/* Upload later checkbox */
.sa-later-lbl {
    display: inline-flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 13px;
    color: #555;
    cursor: pointer;
    line-height: 1.5;
    margin-top: 10px;
}
.sa-later-lbl input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #1A1E5D;
    cursor: pointer;
    flex-shrink: 0;
    margin-top: 2px;
}

/* ── PREFLIGHT PANEL ──────────────────────────────────────────────────────── */

.sa-pf-panel {
    margin-top: 6px;
    border-radius: 7px;
    overflow: hidden;
    border: 1px solid transparent;
}
.sa-pf-panel:empty { display: none; }

.sa-pf-hd {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 7px 12px;
    background: #f2f4ff;
    border-bottom: 1px solid #e4e7f2;
}
.sa-pf-title {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: #1A1E5D;
}
.sa-pf-status {
    font-size: 11px;
    font-weight: 600;
    padding: 2px 9px;
    border-radius: 20px;
}
.sa-ps-pass    { background: #dcfce7; color: #166534; }
.sa-ps-warning { background: #fef9c3; color: #854d0e; }
.sa-ps-error   { background: #fee2e2; color: #991b1b; }
.sa-ps-info    { background: #e0f2fe; color: #075985; }

.sa-pf-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 7px 12px;
    font-size: 12px;
    line-height: 1.6;
    border-bottom: 1px solid #eef0f8;
}
.sa-pf-item:last-child { border-bottom: none; }
.sa-pf-pass    { background: #f0fdf4; }
.sa-pf-warning { background: #fffbeb; }
.sa-pf-error   { background: #fff5f5; }
.sa-pf-info    { background: #f0f9ff; }

/* ── PREVIEW SECTION ──────────────────────────────────────────────────────── */

.sa-preview-section {
    background: #fff;
    border: 1px solid #e4e7f2;
    border-radius: 12px;
    padding: 18px 22px 20px;
    margin-bottom: 16px;
}

.sa-prev-hd {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.sa-prev-tabs { display: flex; gap: 4px; }
.sa-prev-tab {
    padding: 5px 16px;
    font-size: 12.5px;
    font-weight: 600;
    border: 1.5px solid #e0e4f0;
    border-radius: 6px;
    background: #fafbff;
    color: #666;
    cursor: pointer;
    transition: all .13s;
}
.sa-prev-tab:hover:not(.sa-prev-active) { border-color: #1A1E5D; color: #1A1E5D; }
.sa-prev-tab.sa-prev-active {
    background: #1A1E5D;
    border-color: #1A1E5D;
    color: #fff;
}

.sa-proof-btn {
    padding: 6px 14px;
    font-size: 12.5px;
    font-weight: 600;
    background: #fff;
    border: 1.5px solid #1A1E5D;
    border-radius: 6px;
    color: #1A1E5D;
    cursor: pointer;
    transition: all .13s;
    white-space: nowrap;
}
.sa-proof-btn:hover { background: #1A1E5D; color: #fff; }

/* 3D card scene */
.sa-3d-scene {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 16px 0 8px;
    perspective: 900px;
}

.sa-3d-card {
    width: 240px;
    height: 160px;
    background: #fff;
    border-radius: 4px;
    border: 1px solid #e0e4f0;
    overflow: hidden;
    transform: rotateY(-10deg) rotateX(3deg);
    box-shadow: 4px 6px 24px rgba(26,30,93,.14), 1px 2px 4px rgba(0,0,0,.08);
    transition: width .3s, height .3s, transform .3s;
    position: relative;
}
.sa-3d-card:hover {
    transform: rotateY(-5deg) rotateX(1.5deg) scale(1.02);
    box-shadow: 6px 10px 32px rgba(26,30,93,.18), 2px 3px 6px rgba(0,0,0,.09);
}

.sa-3d-face {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sa-ph {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 16px;
    font-size: 11px;
    color: #bbb;
    line-height: 1.5;
    height: 100%;
    width: 100%;
}

.sa-prev-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sa-3d-shadow {
    width: 75%;
    height: 16px;
    background: radial-gradient(ellipse at center, rgba(26,30,93,.22) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(6px);
}

.sa-prev-spec {
    font-size: 11.5px;
    color: #9298b8;
    text-align: center;
    letter-spacing: .01em;
}

/* ── ATC WARNINGS ─────────────────────────────────────────────────────────── */

.sa-atc-warn-box { margin-bottom: 8px; }
.sa-atc-warn-box:empty { display: none; }

.sa-atc-warn {
    background: #fff5f5;
    border: 1px solid #fecaca;
    border-radius: 6px;
    padding: 9px 13px;
    font-size: 13px;
    color: #991b1b;
    margin-bottom: 7px;
    display: flex;
    align-items: flex-start;
    gap: 6px;
    line-height: 1.5;
}
.sa-atc-warn:last-child { margin-bottom: 0; }

/* ── PROOF MODAL ──────────────────────────────────────────────────────────── */

.sa-proof-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}
body.sa-proof-open { overflow: hidden; }

.sa-proof-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10,12,40,.6);
    backdrop-filter: blur(3px);
}

.sa-proof-box {
    position: relative;
    z-index: 1;
    background: #fff;
    border-radius: 14px;
    width: min(920px, 96vw);
    max-height: 95vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 24px 64px rgba(10,12,40,.3), 0 4px 12px rgba(0,0,0,.12);
}

/* Modal header */
.sa-proof-hd {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 14px 18px;
    border-bottom: 1px solid #e4e7f2;
    flex-shrink: 0;
    background: #fff;
}

.sa-proof-tabs { display: flex; gap: 4px; }
.sa-ptab {
    padding: 5px 16px;
    font-size: 12.5px;
    font-weight: 600;
    border: 1.5px solid #e0e4f0;
    border-radius: 6px;
    background: #fafbff;
    color: #666;
    cursor: pointer;
    transition: all .13s;
}
.sa-ptab:hover:not(.sa-ptab-active) { border-color: #1A1E5D; color: #1A1E5D; }
.sa-ptab.sa-ptab-active {
    background: #1A1E5D;
    border-color: #1A1E5D;
    color: #fff;
}

.sa-proof-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}
.sa-proof-act {
    padding: 5px 13px;
    font-size: 12.5px;
    font-weight: 600;
    border: 1.5px solid #e0e4f0;
    border-radius: 6px;
    background: #fafbff;
    color: #555;
    cursor: pointer;
    transition: all .13s;
    white-space: nowrap;
}
.sa-proof-act:hover { border-color: #1A1E5D; color: #1A1E5D; background: #f0f2ff; }
.sa-zoom-btn { width: 30px; padding: 0; font-size: 16px; font-weight: 700; text-align: center; }

.sa-proof-close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1.5px solid #e0e4f0;
    background: #fafbff;
    color: #888;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .13s;
    flex-shrink: 0;
}
.sa-proof-close:hover { border-color: #dc2626; color: #dc2626; background: #fff5f5; }

/* Canvas area — flex:1 fills available height; overflow:auto enables zoom scroll */
.sa-proof-canvas-wrap {
    flex: 1;
    overflow: auto;
    position: relative;
    min-height: 540px;
    background: #e8edf5;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.sa-proof-canvas {
    display: block;
    /* width/height set dynamically by JS based on product aspect ratio + zoom */
}
.sa-proof-no-file {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #9298b8;
    pointer-events: none;
}

/* Legend */
.sa-proof-legend {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 10px 18px;
    background: #f8f9ff;
    border-top: 1px solid #e4e7f2;
    font-size: 12px;
    color: #555;
    flex-shrink: 0;
    flex-wrap: wrap;
}
.sa-leg-swatch {
    display: inline-block;
    width: 14px;
    height: 10px;
    border-radius: 2px;
    vertical-align: middle;
    margin-right: 4px;
}
.sa-leg-bleed { background: rgba(220,38,38,.35); border: 1px solid #dc2626; }
.sa-leg-trim  { background: transparent; border: 1.5px solid #1A1E5D; }
.sa-leg-safe  { background: transparent; border: 1.5px dashed #16a34a; }

/* Spec row */
.sa-proof-spec-row {
    padding: 9px 18px;
    font-size: 11.5px;
    color: #9298b8;
    background: #fff;
    border-top: 1px solid #e4e7f2;
    flex-shrink: 0;
    letter-spacing: .01em;
    text-align: center;
}

/* ── FIXED SIZE DISPLAY ───────────────────────────────────────────────────── */

.sa-fixed-size-display {
    display: inline-flex;
    align-items: center;
    flex: 1;
}

.sa-fixed-size-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: #eef0fa;
    border: 1.5px solid #c8ccf0;
    border-radius: 7px;
    padding: 8px 16px;
    font-size: 13.5px;
    font-weight: 700;
    color: #1A1E5D;
    letter-spacing: .01em;
}
.sa-fixed-size-badge::before {
    content: '✔';
    font-size: 13px;
    color: #5a63a8;
    flex-shrink: 0;
}

/* ── LOCKED SIDES DISPLAY ─────────────────────────────────────────────────── */

.sa-locked-sides {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 7px;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 600;
    color: #166534;
    flex: 1;
}

/* ── UPLOAD HEADER RIGHT (bleed hint + design button) ─────────────────────── */

.sa-upload-hd-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

/* ── DESIGN HELP BUTTON ───────────────────────────────────────────────────── */

.sa-design-btn {
    padding: 6px 14px;
    font-size: 12.5px;
    font-weight: 700;
    border: 1.5px solid #1A1E5D;
    border-radius: 6px;
    color: #1A1E5D;
    background: transparent;
    cursor: pointer;
    white-space: nowrap;
    transition: background .13s, color .13s, border-color .13s;
    letter-spacing: .01em;
}
.sa-design-btn:hover {
    background: #1A1E5D;
    color: #fff;
}

/* ── DESIGN HELP MODAL ────────────────────────────────────────────────────── */

.sa-design-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sa-design-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10,12,40,.6);
    backdrop-filter: blur(3px);
}

.sa-design-box {
    position: relative;
    z-index: 1;
    background: #fff;
    border-radius: 16px;
    width: min(480px, 94vw);
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 24px 64px rgba(10,12,40,.3), 0 4px 12px rgba(0,0,0,.12);
    display: flex;
    flex-direction: column;
}

/* Modal header */
.sa-design-hd {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 16px 20px;
    border-bottom: 1px solid #e4e7f2;
    flex-shrink: 0;
}
.sa-design-hd-title {
    font-size: 16px;
    font-weight: 700;
    color: #1A1E5D;
}
.sa-design-close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1.5px solid #e0e4f0;
    background: #fafbff;
    color: #888;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .13s;
    flex-shrink: 0;
    line-height: 1;
}
.sa-design-close:hover { border-color: #dc2626; color: #dc2626; background: #fff5f5; }

/* Options list */
.sa-design-body {
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sa-design-opt {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border: 1.5px solid #e0e4f0;
    border-radius: 12px;
    background: #fafbff;
    cursor: pointer;
    text-align: left;
    width: 100%;
    transition: border-color .13s, background .13s;
    font-family: inherit;
}
.sa-design-opt:hover {
    border-color: #1A1E5D;
    background: #f0f2ff;
}

.sa-design-opt-primary {
    border-color: #1A1E5D;
    background: #eef0fa;
}
.sa-design-opt-primary:hover {
    background: #e5e8f7;
}

.sa-dopt-icon {
    font-size: 22px;
    flex-shrink: 0;
    line-height: 1;
    width: 28px;
    text-align: center;
}

.sa-dopt-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.sa-dopt-text strong {
    font-size: 14.5px;
    font-weight: 700;
    color: #1A1E5D;
    display: block;
}
.sa-dopt-text span {
    font-size: 12.5px;
    color: #666;
    line-height: 1.4;
}

.sa-dopt-arrow {
    font-size: 16px;
    color: #1A1E5D;
    flex-shrink: 0;
    opacity: .55;
    transition: opacity .13s, transform .13s;
}
.sa-design-opt:hover .sa-dopt-arrow { opacity: 1; transform: translateX(2px); }

.sa-dopt-muted {
    opacity: .75;
}
.sa-dopt-muted:hover {
    opacity: 1;
    border-color: #c8cce0;
    background: #f2f4ff;
}

/* Design notes textarea block */
.sa-design-notes-wrap {
    background: #f4f6ff;
    border: 1px solid #dde1f0;
    border-radius: 10px;
    padding: 14px 16px;
    margin-top: 2px;
}

.sa-dnotes-label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #1A1E5D;
    margin-bottom: 8px;
}

.sa-dnotes-ta {
    width: 100%;
    padding: 10px 12px;
    border: 1.5px solid #dde1f0;
    border-radius: 7px;
    font-size: 13.5px;
    font-family: inherit;
    color: #222;
    background: #fff;
    resize: vertical;
    min-height: 88px;
    transition: border-color .15s, box-shadow .15s;
    box-sizing: border-box;
}
.sa-dnotes-ta:focus {
    outline: none;
    border-color: #1A1E5D;
    box-shadow: 0 0 0 3px rgba(26,30,93,.1);
}

.sa-dnotes-hint {
    font-size: 11.5px;
    color: #9298b8;
    margin-top: 7px;
    line-height: 1.5;
}

.sa-dnotes-submit {
    display: inline-block;
    margin-top: 10px;
    padding: 9px 20px;
    background: #1A1E5D;
    color: #fff;
    border: none;
    border-radius: 7px;
    font-size: 13.5px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: background .13s;
}
.sa-dnotes-submit:hover { background: #252b82; }

/* ── DESIGN INTAKE FORM ───────────────────────────────────────────────────── */

.sa-design-intake {
    background: #f2f4fc;
    border: 1px solid #dde1f0;
    border-radius: 10px;
    padding: 16px 18px;
    margin-top: 4px;
}

.sa-intake-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sa-intake-row {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.sa-intake-label {
    font-size: 12.5px;
    font-weight: 700;
    color: #1A1E5D;
}
.sa-intake-opt {
    font-weight: 400;
    color: #9298b8;
    font-size: 11.5px;
}

.sa-intake-input {
    width: 100%;
    padding: 9px 12px;
    border: 1.5px solid #dde1f0;
    border-radius: 7px;
    font-size: 13.5px;
    font-family: inherit;
    color: #222;
    background: #fff;
    transition: border-color .15s, box-shadow .15s;
    box-sizing: border-box;
}
.sa-intake-input:focus {
    outline: none;
    border-color: #1A1E5D;
    box-shadow: 0 0 0 3px rgba(26,30,93,.1);
}

/* Style pills */
.sa-style-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.sa-style-pill {
    padding: 6px 15px;
    border: 1.5px solid #e0e4f0;
    border-radius: 20px;
    font-size: 12.5px;
    font-weight: 600;
    color: #666;
    background: #fff;
    cursor: pointer;
    font-family: inherit;
    transition: border-color .13s, color .13s, background .13s;
}
.sa-style-pill:hover { border-color: #1A1E5D; color: #1A1E5D; background: #f0f2ff; }
.sa-style-pill-active { background: #1A1E5D !important; border-color: #1A1E5D !important; color: #fff !important; }

/* Logo reference upload mini-zone */
.sa-logo-zone {
    position: relative;
    border: 1.5px dashed #c8cce0;
    border-radius: 8px;
    background: #fafbff;
    cursor: pointer;
    overflow: hidden;
    transition: border-color .15s, background .15s;
}
.sa-logo-zone:hover,
.sa-logo-zone:focus { border-color: #1A1E5D; background: #f0f2ff; outline: none; }
.sa-logo-zone.sa-logo-has-file { border-style: solid; border-color: #1A1E5D; background: #f2f4ff; }

.sa-logo-file-input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

.sa-logo-prompt {
    padding: 11px 14px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 13px;
    color: #666;
    pointer-events: none;
}
.sa-logo-hint { font-size: 11px; color: #bbb; letter-spacing: .02em; }

.sa-logo-ready {
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    pointer-events: none;
}
.sa-logo-ready button { pointer-events: auto; }
.sa-logo-icon { font-size: 16px; flex-shrink: 0; }
.sa-logo-fname {
    flex: 1;
    font-size: 13px;
    font-weight: 600;
    color: #1A1E5D;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.sa-logo-rm {
    background: none;
    border: 1px solid #e5e7f0;
    border-radius: 4px;
    padding: 3px 7px;
    cursor: pointer;
    color: #999;
    font-size: 11px;
    transition: all .13s;
}
.sa-logo-rm:hover { border-color: #dc2626; color: #dc2626; background: #fff5f5; }

.sa-intake-actions {
    margin-top: 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* Modal footer */
.sa-design-footer {
    padding: 12px 20px;
    border-top: 1px solid #e4e7f2;
    font-size: 12px;
    color: #888;
    text-align: center;
    flex-shrink: 0;
    line-height: 1.6;
}
.sa-design-footer a { color: #1A1E5D; text-decoration: underline; }
.sa-design-footer a:hover { color: #252b82; }

/* ── TM EPO + wc-designer-pro kill (CSS belt-and-suspenders) ─────────────── */

.postid-2154 .thwepof-product-extra-fields,
.postid-2154 .thwepo-extra-product-options,
.postid-2154 table.extra-options,
.postid-3177 .thwepof-product-extra-fields,
.postid-3177 .thwepo-extra-product-options,
.postid-3177 table.extra-options,
.postid-2147 .thwepof-product-extra-fields,
.postid-2147 .thwepo-extra-product-options,
.postid-2147 table.extra-options,
.postid-2160 .thwepof-product-extra-fields,
.postid-2160 .thwepo-extra-product-options,
.postid-2160 table.extra-options {
    display: none !important;
    visibility: hidden !important;
}

/* Kill wc-designer-pro on all flat-print product pages */
.postid-2154 [class*="wcdp-"],
.postid-3177 [class*="wcdp-"],
.postid-2147 [class*="wcdp-"],
.postid-2160 [class*="wcdp-"] {
    display: none !important;
    visibility: hidden !important;
}

/* ── RESPONSIVE ───────────────────────────────────────────────────────────── */

@media (max-width: 680px) {
    .sa-cfg-top {
        flex-direction: column;
        gap: 14px;
    }
    .sa-summary-col {
        flex: 0 0 auto;
        width: 100%;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 10px;
    }
    .sa-price-box {
        flex: 1;
        min-width: 140px;
    }
    .sa-ta-note {
        flex: 1;
        min-width: 160px;
    }
    .sa-specs-col { width: 100%; }

    .sa-spec-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
    .sa-spec-label { min-width: unset; }
    .sa-select, .sa-qty-combo { width: 100%; }

    .sa-price-big { font-size: 28px; }

    .sa-upload-hd { flex-direction: column; align-items: flex-start; gap: 4px; }
    .sa-upload-hd-right { flex-direction: column; align-items: flex-start; gap: 6px; }
    .sa-bleed-hint { font-size: 10.5px; }
    .sa-design-btn { font-size: 11.5px; padding: 5px 12px; }
    .sa-design-box { border-radius: 12px; }
    .sa-design-body { padding: 12px 14px; gap: 8px; }
    .sa-design-hd { padding: 13px 16px; }
    .sa-design-footer { padding: 10px 14px; }
    .sa-dopt-text strong { font-size: 13.5px; }
    .sa-dopt-text span { font-size: 12px; }

    .sa-prev-hd { flex-direction: column; align-items: flex-start; }

    .sa-proof-box { border-radius: 10px; }
    .sa-proof-canvas-wrap { min-height: 320px; padding: 10px; }
    .sa-proof-legend { gap: 10px; font-size: 11px; }
    .sa-proof-spec-row { font-size: 10.5px; }
    .sa-proof-actions { gap: 4px; }
    .sa-design-intake { padding: 12px 14px; }
    .sa-style-pills { gap: 5px; }
    .sa-style-pill { padding: 5px 11px; font-size: 12px; }
}

@media (max-width: 400px) {
    .sa-specs-col { padding: 16px 14px; }
    .sa-upload-section { padding: 16px 14px; }
    .sa-preview-section { padding: 14px 14px 16px; }
    .sa-pill { padding: 7px 13px; font-size: 12px; }
    .sa-3d-card { width: 200px !important; }
}
