/* ═══════════════════════════════════════════════
   MIQ Quote Builder V2 — Premium Design
   ═══════════════════════════════════════════════ */

/* ─── Base overrides ─── */
.miq-quote-page {
    background: #f5f7fa;
}

.miq-quote-page .wp-site-blocks > header {
    position: relative;
    z-index: 100;
}

/* Override FSE theme heading colors where needed */
.miq-quote-hero h1,
.miq-quote-hero h2,
.miq-quote-hero h3,
.miq-export-info h3,
.miq-quote-saved-label,
.miq-quote-saved-link {
    color: white !important;
}

.miq-quote-empty h3 {
    color: #00344B !important;
    font-size: 20px !important;
    line-height: 1.3 !important;
}

.miq-popup-title-block h2 {
    color: #00344B !important;
    font-size: 20px !important;
    line-height: 1.3 !important;
}

/* ═══════════════════════════════════════════════
   QUICK ORDER ESCAPE STRIP — Navy + teal accent
   ═══════════════════════════════════════════════ */
.miq-quote-quick-strip {
    background: #00344B;
    border-bottom: 1px solid #001f2d;
    padding: 11px 24px;
}
.miq-quote-quick-inner {
    max-width: 1140px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    font-size: 13px;
    flex-wrap: wrap;
}
.miq-quote-quick-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    background: rgba(4, 161, 184, .25);
    border: 1px solid rgba(95, 218, 239, .35);
    color: #5fdaef;
    border-radius: 50%;
    flex-shrink: 0;
}
.miq-quote-quick-text {
    color: rgba(255, 255, 255, .82);
    font-weight: 500;
}
.miq-quote-quick-text strong {
    font-weight: 700;
    color: #fff;
}
.miq-quote-quick-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #5fdaef;
    font-weight: 700;
    text-decoration: none;
    padding: 4px 12px;
    border-radius: 6px;
    border: 1px solid rgba(95, 218, 239, .35);
    background: rgba(4, 161, 184, .15);
    transition: all .15s;
}
.miq-quote-quick-link:hover {
    background: #04A1B8;
    border-color: #04A1B8;
    color: #fff;
}

/* ═══════════════════════════════════════════════
   HERO BANNER — Build Your Quote
   ═══════════════════════════════════════════════ */
.miq-quote-hero {
    background: linear-gradient(135deg, #00344B 0%, #00567C 50%, #04A1B8 100%);
    padding: 56px 24px 110px;
    position: relative;
    overflow: hidden;
}

.miq-quote-hero::before {
    content: '';
    position: absolute;
    top: -200px;
    right: -150px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(95, 218, 239, 0.22) 0%, transparent 65%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

.miq-quote-hero::after {
    content: '';
    position: absolute;
    bottom: -200px;
    left: -100px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(95, 218, 239, 0.14) 0%, transparent 65%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

.miq-quote-hero-inner {
    max-width: 1140px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    text-align: center;
}

.miq-quote-hero h1 {
    font-family: 'Lato', sans-serif;
    font-size: 44px !important;
    font-weight: 900;
    color: white !important;
    margin-bottom: 14px;
    line-height: 1.05 !important;
    letter-spacing: -0.7px;
}

.miq-quote-hero h1 .accent {
    color: #5fdaef;
}

.miq-quote-hero .miq-quote-hero-subtitle {
    font-size: 17px;
    color: rgba(255,255,255,0.82);
    max-width: 620px;
    margin: 0 auto;
    line-height: 1.55;
}

/* ═══════════════════════════════════════════════
   SEARCH — Elevated into the hero
   ═══════════════════════════════════════════════ */
.miq-quote-search-section {
    max-width: 740px;
    margin: 0 auto;
    position: relative;
    z-index: 20;
    /* Must be higher than .miq-quote-container (z-index:3) so dropdown renders above cart */
}

.miq-quote-search-wrapper {
    position: relative;
}

.miq-quote-search-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.miq-search-icon {
    position: absolute;
    left: 22px;
    color: #94a3b8;
    pointer-events: none;
    width: 22px;
    height: 22px;
}

.miq-quote-search-input {
    width: 100%;
    padding: 18px 56px 18px 56px;
    font-size: 16px;
    font-family: 'Open Sans', sans-serif;
    border: 2px solid transparent;
    border-radius: 16px;
    outline: none;
    transition: all 0.3s;
    background: white;
    color: #1e293b;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15), 0 2px 8px rgba(0, 0, 0, 0.08);
}

.miq-quote-search-input:focus {
    border-color: #04A1B8;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15), 0 0 0 4px rgba(4, 161, 184, 0.15);
}

.miq-quote-search-input::placeholder {
    color: #94a3b8;
}

.miq-search-spinner {
    position: absolute;
    right: 20px;
    color: #04A1B8;
}

.spinner-svg {
    animation: none;
}

/* ─── Search Results Dropdown ─── */
.miq-quote-search-results {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.14);
    max-height: 440px;
    overflow-y: auto;
    z-index: 100;
}

.miq-search-results-header {
    padding: 12px 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #94a3b8;
    border-bottom: 1px solid #f1f5f9;
}

.miq-search-result-item {
    display: flex;
    align-items: center;
    padding: 14px 20px;
    gap: 16px;
    border-bottom: 1px solid #f8fafc;
    cursor: default;
    transition: all 0.15s;
}

.miq-search-result-item:last-child { border-bottom: none; }
.miq-search-result-item:hover { background: #f8fafc; }

.miq-search-result-image {
    width: 56px;
    height: 56px;
    flex-shrink: 0;
    background: #f8fafc;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid #f1f5f9;
}

.miq-search-result-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.miq-search-result-no-img { font-size: 22px; color: #cbd5e1; }

.miq-search-result-info { flex: 1; min-width: 0; }

.miq-search-result-title {
    font-size: 14px;
    font-weight: 600;
    color: #00344B;
    line-height: 1.3;
    cursor: pointer;
}

.miq-search-result-title:hover { color: #04A1B8; }

.miq-search-result-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
}

.miq-search-result-sku { font-size: 12px; color: #94a3b8; }

.miq-search-result-impa {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 4px;
}

.miq-impa-badge-sm {
    display: inline-block;
    background: linear-gradient(135deg, #e0f7fa, #e8fafe);
    color: #04A1B8;
    padding: 2px 7px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    white-space: nowrap;
    border: 1px solid rgba(4, 161, 184, 0.12);
}

.miq-search-result-right {
    text-align: right;
    flex-shrink: 0;
    min-width: 130px;
}

.miq-search-result-price { font-size: 16px; font-weight: 700; color: #00344B; }
.miq-search-result-unit { font-size: 11px; color: #94a3b8; margin-bottom: 8px; }

.miq-search-add-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #04A1B8;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.miq-search-add-btn:hover {
    background: #028a9e;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(4, 161, 184, 0.3);
}

.miq-search-add-btn:disabled { opacity: 0.6; cursor: not-allowed; }
.miq-search-add-btn.added { background: #16a34a; }

.miq-search-no-results {
    padding: 24px;
    text-align: center;
    color: #64748b;
    font-size: 14px;
}

/* ═══════════════════════════════════════════════
   MAIN CONTENT — Overlaps hero
   ═══════════════════════════════════════════════ */
.miq-quote-main {
    max-width: 100%;
    background: transparent;
}

.miq-quote-container {
    max-width: 1140px;
    margin: -64px auto 0;
    padding: 0 24px 56px;
    position: relative;
    z-index: 3;
}

/* ═══════════════════════════════════════════════
   SAVED QUOTES — Continue a saved quote (logged in)
   ═══════════════════════════════════════════════ */
.miq-quote-saved-section {
    margin-bottom: 14px;
}
.miq-quote-saved-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    padding: 0 4px;
    gap: 12px;
}
.miq-quote-saved-label {
    font-family: 'Lato', sans-serif;
    font-size: 15px;
    font-weight: 800;
    color: #fff;
}
.miq-quote-saved-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    white-space: nowrap;
}
.miq-quote-saved-link:hover {
    text-decoration: underline;
}
.miq-quote-saved-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
}
.miq-quote-saved-quote {
    background: #fff;
    border: 1.5px solid #dde4ea;
    border-radius: 10px;
    padding: 11px 12px 11px 14px;
    cursor: pointer;
    transition: all .15s;
    text-align: left;
    font-family: 'Inter', sans-serif;
    display: flex;
    align-items: center;
    gap: 11px;
    position: relative;
}
.miq-quote-saved-quote:hover {
    border-color: #04A1B8;
    background: #fff;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0, 52, 75, .15);
}
.miq-quote-saved-icon {
    width: 32px;
    height: 32px;
    background: rgba(4, 161, 184, .08);
    color: #04A1B8;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all .15s;
}
.miq-quote-saved-quote:hover .miq-quote-saved-icon {
    background: #04A1B8;
    color: #fff;
}
.miq-quote-saved-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.miq-quote-saved-name {
    font-size: 13px;
    font-weight: 700;
    color: #00344B;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.miq-quote-saved-meta {
    font-size: 11.5px;
    color: #6b8291;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.miq-quote-saved-total {
    font-family: 'Lato', sans-serif;
    font-size: 12px;
    font-weight: 800;
    color: #6b8291;
    white-space: nowrap;
    display: block;
    margin-top: 1px;
}
.miq-quote-saved-action {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 800;
    color: #04A1B8;
    text-transform: uppercase;
    letter-spacing: .04em;
    background: rgba(4, 161, 184, .08);
    padding: 6px 10px;
    border-radius: 6px;
    flex-shrink: 0;
    transition: all .15s;
}
.miq-quote-saved-quote:hover .miq-quote-saved-action {
    background: #04A1B8;
    color: #fff;
}

/* ═══════════════════════════════════════════════
   QUOTE DETAILS CARD — Step 1
   ═══════════════════════════════════════════════ */
.miq-quote-meta-card {
    background: #fff;
    border-radius: 16px;
    padding: 22px 24px 20px;
    margin-bottom: 16px;
    box-shadow: 0 16px 48px rgba(0, 52, 75, .14), 0 4px 12px rgba(0, 52, 75, .06);
    border-top: 4px solid #04A1B8;
    position: relative;
}
.miq-quote-meta-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}
.miq-quote-meta-icon {
    width: 32px;
    height: 32px;
    background: rgba(4, 161, 184, .08);
    color: #04A1B8;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.miq-quote-meta-title {
    font-family: 'Lato', sans-serif;
    font-size: 16px;
    font-weight: 800;
    color: #00344B;
}
.miq-quote-meta-sub {
    font-size: 12.5px;
    color: #6b8291;
    font-weight: 500;
}
.miq-quote-meta-step {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #0388a0;
    background: rgba(4, 161, 184, .08);
    padding: 4px 10px;
    border-radius: 6px;
}
.miq-quote-meta-fields {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
    gap: 14px;
}
.miq-quote-meta-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.miq-quote-meta-label {
    font-size: 11.5px;
    font-weight: 700;
    color: #00344B;
    display: flex;
    align-items: center;
    gap: 5px;
}
.miq-quote-meta-label svg {
    color: #04A1B8;
}
.miq-required {
    font-size: 10.5px;
    color: #E8963F;
    font-weight: 700;
    margin-left: 4px;
}
.miq-optional {
    font-size: 10.5px;
    color: #6b8291;
    font-weight: 500;
    margin-left: 4px;
}
.miq-quote-meta-input {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    padding: 11px 13px;
    border: 1.5px solid #dde4ea;
    border-radius: 9px;
    outline: none;
    transition: all .15s;
    color: #00344B;
    background: #fff;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    height: 42px;
    line-height: 1.2;
}
input.miq-quote-meta-input[type="date"] {
    font-family: 'Inter', sans-serif;
}
.miq-quote-meta-input:focus {
    border-color: #04A1B8;
    box-shadow: 0 0 0 4px rgba(4, 161, 184, .1);
}
.miq-quote-meta-input::placeholder {
    color: #a1adb5;
}
.miq-quote-meta-select {
    padding: 11px 36px 11px 13px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2304A1B8' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 13px center;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    font-weight: 600;
    cursor: pointer;
}
.miq-quote-meta-newvessel {
    display: flex;
    gap: 6px;
    align-items: stretch;
    margin-top: 6px;
}
.miq-quote-meta-newvessel .miq-quote-meta-input {
    flex: 1;
    padding: 9px 12px;
    font-size: 13px;
}
.miq-quote-meta-save-btn,
.miq-quote-meta-cancel-btn {
    border: none;
    border-radius: 8px;
    padding: 0 12px;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all .15s;
    white-space: nowrap;
}
.miq-quote-meta-save-btn {
    background: #04A1B8;
    color: #fff;
}
.miq-quote-meta-save-btn:hover {
    background: #0388a0;
}
.miq-quote-meta-cancel-btn {
    background: #fff;
    color: #6b8291;
    border: 1.5px solid #dde4ea;
}
.miq-quote-meta-cancel-btn:hover {
    color: #00344B;
    border-color: #6b8291;
}

/* ═══════════════════════════════════════════════
   SEARCH CARD — Step 2
   ═══════════════════════════════════════════════ */
.miq-quote-search-card {
    background: #fff;
    border-radius: 16px;
    padding: 22px 24px;
    margin-bottom: 16px;
    box-shadow: 0 4px 20px rgba(0, 52, 75, .08), 0 1px 3px rgba(0, 52, 75, .04);
    border-top: 4px solid #004d6e;
}
.miq-quote-search-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}
.miq-quote-search-icon-wrap {
    width: 32px;
    height: 32px;
    background: rgba(0, 52, 75, .08);
    color: #00344B;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.miq-quote-search-step {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #00344B;
    background: rgba(0, 52, 75, .08);
    padding: 4px 10px;
    border-radius: 6px;
}
.miq-quote-search-hint {
    margin-top: 10px;
    font-size: 12px;
    color: #6b8291;
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}
.miq-quote-search-hint .miq-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 9px;
    background: rgba(26, 158, 110, .1);
    border-radius: 12px;
    font-weight: 700;
    color: #1a9e6e;
}
.miq-quote-search-hint kbd {
    display: inline-block;
    font-family: 'Inter', monospace;
    font-size: 10.5px;
    font-weight: 700;
    padding: 2px 6px;
    background: #f5f7fa;
    border: 1px solid #dde4ea;
    border-radius: 4px;
    color: #00344B;
}

/* ═══════════════════════════════════════════════
   LOAD SAVED QUOTE — Confirmation Modal
   ═══════════════════════════════════════════════ */
.miq-load-saved-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 31, 45, .55);
    backdrop-filter: blur(4px);
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.miq-load-saved-modal {
    background: #fff;
    border-radius: 16px;
    padding: 32px 28px 24px;
    max-width: 440px;
    width: 100%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .25);
    animation: miqLoadModalIn .2s ease;
}
@keyframes miqLoadModalIn {
    from { opacity: 0; transform: scale(.95); }
    to   { opacity: 1; transform: scale(1); }
}
.miq-load-saved-icon {
    width: 56px;
    height: 56px;
    background: rgba(232, 150, 63, .12);
    color: #E8963F;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}
.miq-load-saved-modal h3 {
    font-family: 'Lato', sans-serif;
    font-size: 20px;
    font-weight: 800;
    color: #00344B !important;
    margin: 0 0 8px;
    line-height: 1.3 !important;
}
.miq-load-saved-modal p {
    font-size: 14px;
    color: #5a6872;
    line-height: 1.55;
    margin: 0 0 24px;
}
.miq-load-saved-modal p strong {
    color: #00344B;
    font-weight: 700;
}
.miq-load-saved-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}
.miq-load-saved-btn-cancel,
.miq-load-saved-btn-confirm {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 22px;
    border-radius: 10px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    border: none;
    transition: all .15s;
}
.miq-load-saved-btn-cancel {
    background: #f5f7fa;
    color: #00344B;
    border: 1.5px solid #dde4ea;
}
.miq-load-saved-btn-cancel:hover {
    border-color: #6b8291;
}
.miq-load-saved-btn-confirm {
    background: #E8963F;
    color: #fff;
    box-shadow: 0 4px 14px rgba(232, 150, 63, .35);
}
.miq-load-saved-btn-confirm:hover {
    background: #cc7828;
}

/* Responsive */
@media (max-width: 900px) {
    .miq-quote-hero { padding: 36px 20px 100px; }
    .miq-quote-hero h1 { font-size: 30px !important; }
    .miq-quote-hero .miq-quote-hero-subtitle { font-size: 14px; }
    .miq-quote-saved-grid { grid-template-columns: 1fr; }
    .miq-quote-meta-fields { grid-template-columns: 1fr; }
    .miq-quote-meta-head { flex-wrap: wrap; }
    .miq-quote-meta-step { margin-left: 0; }
    .miq-quote-search-step { margin-left: 0; }
}

/* ═══════════════════════════════════════════════
   FLOATING QUOTE COUNTER
   ═══════════════════════════════════════════════ */
.miq-quote-floating-count {
    position: fixed;
    bottom: 28px;
    right: 28px;
    background: #00344B;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    box-shadow: 0 8px 24px rgba(0, 52, 75, 0.3);
    z-index: 50;
    cursor: pointer;
    transition: all 0.3s;
}

.miq-quote-floating-count:hover {
    transform: scale(1.08);
    box-shadow: 0 12px 32px rgba(0, 52, 75, 0.4);
}

.miq-quote-floating-count .count-num {
    font-size: 20px;
    font-weight: 900;
    font-family: 'Lato', sans-serif;
}

.miq-quote-floating-count .count-label {
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.7;
}

.miq-quote-floating-count .count-inner {
    text-align: center;
    line-height: 1.2;
}

/* ═══════════════════════════════════════════════
   CART SECTION — Card-based, navy gradient header
   ═══════════════════════════════════════════════ */
.miq-quote-cart-section {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 52, 75, .08), 0 1px 3px rgba(0, 52, 75, .04);
    overflow: hidden;
    margin-bottom: 16px;
}

.miq-quote-cart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    background: linear-gradient(90deg, #00344B 0%, #004d6e 100%);
    color: #fff;
    margin-bottom: 0;
}

.miq-quote-cart-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.miq-quote-cart-icon {
    width: 38px;
    height: 38px;
    background: rgba(4, 161, 184, .25);
    border: 1px solid rgba(4, 161, 184, .4);
    color: #5fdaef;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.miq-quote-cart-header h2 {
    font-family: 'Lato', sans-serif;
    font-size: 17px !important;
    font-weight: 800;
    color: #fff !important;
    margin: 0;
    line-height: 1.3 !important;
}

.miq-quote-cart-count-badge {
    background: #04A1B8;
    color: white;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 800;
}

/* ─── Empty State ─── */
.miq-quote-empty {
    text-align: center;
    padding: 64px 24px;
}

.miq-quote-empty-visual {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, #f0fdfa, #e0f7fa);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.miq-quote-empty-icon {
    font-size: 48px;
    margin-bottom: 0;
}

.miq-quote-empty h3 {
    font-family: 'Lato', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #00344B;
    margin-bottom: 8px;
}

.miq-quote-empty p {
    font-size: 15px;
    color: #64748b;
    max-width: 420px;
    margin: 0 auto 24px;
}

.miq-quote-empty-hint {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 13px;
    color: #64748b;
}

/* ─── Cart Table ─── */
.miq-quote-table {
    width: 100%;
    border-collapse: collapse;
    font-family: 'Open Sans', sans-serif;
}

.miq-quote-table thead th {
    padding: 12px 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #94a3b8;
    text-align: left;
    border-bottom: 1px solid #f1f5f9;
    background: #fafbfc;
}

.miq-quote-table thead th.col-unit,
.miq-quote-table thead th.col-price,
.miq-quote-table thead th.col-qty,
.miq-quote-table thead th.col-subtotal {
    text-align: center;
}

.miq-quote-table thead th.col-remove { width: 48px; }

.miq-quote-table tbody tr {
    border-bottom: 1px solid #f8fafc;
    transition: all 0.2s;
}

.miq-quote-table tbody tr:hover { background: #fafbfc; }

.miq-quote-table tbody td {
    padding: 18px 20px;
    vertical-align: middle;
}

.miq-quote-table tbody td.col-unit,
.miq-quote-table tbody td.col-price,
.miq-quote-table tbody td.col-qty,
.miq-quote-table tbody td.col-subtotal {
    text-align: center;
}

/* Product cell */
.miq-quote-product-cell {
    display: flex;
    align-items: center;
    gap: 16px;
}

.miq-quote-product-image {
    width: 64px;
    height: 64px;
    flex-shrink: 0;
    background: #f8fafc;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid #f1f5f9;
}

.miq-quote-product-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.miq-quote-no-image { font-size: 26px; color: #cbd5e1; }

.miq-quote-product-info { min-width: 0; }

.miq-quote-product-name {
    font-size: 14px;
    font-weight: 600;
    color: #00344B;
    text-decoration: none;
    cursor: pointer;
    display: block;
    line-height: 1.4;
    transition: color 0.15s;
}

.miq-quote-product-name:hover { color: #04A1B8; }

.miq-quote-product-sku {
    font-size: 12px;
    color: #94a3b8;
    margin-top: 3px;
}

/* IMPA badges */
.miq-quote-impa-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 6px;
}

.miq-impa-badge {
    display: inline-block;
    background: linear-gradient(135deg, #e0f7fa, #e8fafe);
    color: #04A1B8;
    padding: 2px 8px;
    border-radius: 5px;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
    border: 1px solid rgba(4, 161, 184, 0.1);
}

/* Price column */
.col-price {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    white-space: nowrap;
}

.price-on-request { color: #94a3b8; font-weight: 500; font-size: 12px; }

.miq-price-original {
    display: block;
    font-size: 12px;
    color: #cbd5e1;
    text-decoration: line-through;
    font-weight: 400;
    line-height: 1.2;
}

.miq-price-discounted {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: #16a34a;
    line-height: 1.3;
}

.miq-price-discount-badge {
    display: inline-block;
    background: #dcfce7;
    color: #16a34a;
    font-size: 10px;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 4px;
    margin-top: 2px;
}

.miq-subtotal-discounted { color: #16a34a; font-weight: 700; }

/* Unit & Subtotal */
.col-unit { font-size: 13px; color: #64748b; font-weight: 600; }
.col-subtotal { font-size: 15px; font-weight: 700; color: #00344B; white-space: nowrap; }

/* ─── Quantity Controls ─── */
.miq-qty-controls {
    display: inline-flex;
    align-items: center;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    background: white;
}

.miq-qty-btn {
    width: 34px;
    height: 36px;
    border: none;
    background: #f8fafc;
    color: #475569;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
    padding: 0;
    line-height: 1;
}

.miq-qty-btn:hover { background: #04A1B8; color: white; }

.miq-qty-input {
    width: 48px;
    height: 36px;
    border: none;
    border-left: 1px solid #e2e8f0;
    border-right: 1px solid #e2e8f0;
    text-align: center;
    font-size: 14px;
    font-weight: 700;
    color: #1e293b;
    outline: none;
    -moz-appearance: textfield;
    background: white;
}

.miq-qty-input::-webkit-outer-spin-button,
.miq-qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Remove button */
.miq-quote-remove {
    width: 34px;
    height: 34px;
    border: none;
    background: transparent;
    color: #cbd5e1;
    font-size: 18px;
    cursor: pointer;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    padding: 0;
    line-height: 1;
}

.miq-quote-remove:hover { background: #fef2f2; color: #ef4444; }

/* ─── Cart Summary ─── */
.miq-quote-summary {
    background: linear-gradient(135deg, #fafbfc, #f5f7fa);
    padding: 20px 28px;
    border-top: 1px solid #e2e8f0;
    border-radius: 0;
}

.miq-quote-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.miq-quote-summary-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.miq-quote-item-count { font-size: 14px; color: #64748b; }

.miq-quote-subtotal { font-size: 14px; color: #475569; }

.miq-quote-subtotal strong {
    font-family: 'Lato', sans-serif;
    color: #00344B;
    font-size: 22px;
    margin-left: 4px;
}

/* ═══════════════════════════════════════════════
   SAVE TO ACCOUNT — Subtle strip
   ═══════════════════════════════════════════════ */
.miq-save-account-strip {
    margin-top: 16px;
    background: white;
    border: 1px solid #e2e8f0;
    border-left: 3px solid #04A1B8;
    border-radius: 12px;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    gap: 14px;
    transition: all 0.2s;
}

.miq-save-account-strip:hover {
    border-color: #04A1B8;
    box-shadow: 0 2px 12px rgba(4, 161, 184, 0.08);
}

.miq-save-account-icon {
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, #e0f7fa, #f0fdfa);
    border: 1px solid rgba(4, 161, 184, 0.15);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.miq-save-account-icon svg { width: 18px; height: 18px; color: #04A1B8; }

.miq-save-account-text { flex: 1; min-width: 0; }

.miq-save-account-text strong {
    font-size: 14px;
    font-weight: 700;
    color: #00344B;
    display: block;
    line-height: 1.3;
}

.miq-save-account-text span {
    font-size: 12px;
    color: #94a3b8;
    line-height: 1.4;
}

.miq-save-account-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 20px;
    background: white;
    border: 1.5px solid #04A1B8;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #04A1B8;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    white-space: nowrap;
}

.miq-save-account-btn:hover { background: #04A1B8; color: white; }
.miq-save-account-btn svg { width: 14px; height: 14px; }

.miq-save-account-login { font-size: 12px; color: #64748b; }
.miq-save-account-login a { color: #04A1B8; font-weight: 600; text-decoration: none; }
.miq-save-account-login a:hover { text-decoration: underline; }

/* ═══════════════════════════════════════════════
   EXPORT / SAVE YOUR QUOTE — Prominent Feature
   ═══════════════════════════════════════════════ */
.miq-export-card {
    margin-top: 24px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 4px 16px rgba(0,0,0,0.04);
    overflow: hidden;
}

.miq-export-card-inner {
    display: flex;
    align-items: stretch;
}

.miq-export-info {
    flex: 0 0 320px;
    background: linear-gradient(135deg, #00344B 0%, #00567C 100%);
    padding: 36px 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.miq-export-info::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -30%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(4, 161, 184, 0.2) 0%, transparent 70%);
    border-radius: 50%;
}

.miq-export-info-icon {
    width: 56px;
    height: 56px;
    background: rgba(4, 161, 184, 0.15);
    border: 1px solid rgba(4, 161, 184, 0.25);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    position: relative;
}

.miq-export-info-icon svg { width: 28px; height: 28px; color: #04A1B8; }

.miq-export-info h3 {
    font-family: 'Lato', sans-serif;
    font-size: 22px !important;
    font-weight: 900;
    color: white !important;
    margin-bottom: 8px;
    position: relative;
    line-height: 1.3 !important;
}

.miq-export-info p {
    font-size: 14px;
    color: rgba(255,255,255,0.65) !important;
    line-height: 1.6;
    position: relative;
}

.miq-export-buttons {
    flex: 1;
    padding: 28px 32px;
    display: flex;
    gap: 16px;
    align-items: center;
    justify-content: center;
}

.miq-export-btn {
    flex: 1;
    max-width: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 28px 20px;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.25s;
    text-decoration: none;
    text-align: center;
}

.miq-export-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.miq-export-btn-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.miq-export-btn-icon svg { width: 26px; height: 26px; }

/* PDF */
.miq-export-btn-pdf .miq-export-btn-icon { background: #fef2f2; border: 1px solid #fecaca; }
.miq-export-btn-pdf .miq-export-btn-icon svg { color: #ef4444; }
.miq-export-btn-pdf:hover { border-color: #ef4444; background: #fff5f5; }

/* Excel */
.miq-export-btn-excel .miq-export-btn-icon { background: #f0fdf4; border: 1px solid #bbf7d0; }
.miq-export-btn-excel .miq-export-btn-icon svg { color: #16a34a; }
.miq-export-btn-excel:hover { border-color: #16a34a; background: #f0fdf4; }

/* Word */
.miq-export-btn-word .miq-export-btn-icon { background: #eff6ff; border: 1px solid #bfdbfe; }
.miq-export-btn-word .miq-export-btn-icon svg { color: #2563eb; }
.miq-export-btn-word:hover { border-color: #2563eb; background: #eff6ff; }

.miq-export-btn-label { font-size: 15px; font-weight: 700; color: #00344B; }
.miq-export-btn-desc { font-size: 12px; color: #94a3b8; line-height: 1.4; }

/* Export loading state */
.miq-export-btn.miq-export-loading {
    opacity: 0.6;
    pointer-events: none;
}
.miq-export-btn.miq-export-loading .miq-export-btn-icon {
    animation: miq-export-pulse 1s ease-in-out infinite;
}
@keyframes miq-export-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* ═══════════════════════════════════════════════
   ACTION BUTTONS
   ═══════════════════════════════════════════════ */
.miq-quote-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 24px;
    flex-wrap: wrap;
}

.miq-quote-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.25s;
    border: 2px solid transparent;
}

.miq-quote-btn-primary {
    background: linear-gradient(135deg, #04A1B8, #028a9e);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 16px rgba(4, 161, 184, 0.3);
}

.miq-quote-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(4, 161, 184, 0.4);
    color: white;
}

.miq-quote-btn-primary svg { width: 18px; height: 18px; }

.miq-quote-btn-secondary {
    background: white;
    color: #475569;
    border-color: #e2e8f0;
}

.miq-quote-btn-secondary:hover { border-color: #04A1B8; color: #04A1B8; }

/* ═══════════════════════════════════════════════
   FAQ — Subtle, collapsible
   ═══════════════════════════════════════════════ */
.miq-faq-toggle-wrap {
    margin-top: 32px;
    display: flex;
    justify-content: flex-start;
}

.miq-faq-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    padding: 8px 0;
    transition: color 0.2s;
}

.miq-faq-toggle-btn:hover { color: #04A1B8; }

.miq-faq-toggle-btn svg {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

.miq-faq-toggle-btn.open svg:last-child {
    transform: rotate(180deg);
}

.miq-faq-collapsible {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.miq-faq-collapsible.open {
    max-height: 1200px;
}

.miq-faq-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-top: 12px;
    max-width: 680px;
}

.miq-faq-item {
    background: white;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    transition: border-color 0.2s;
}

.miq-faq-item:hover { border-color: #cbd5e1; }
.miq-faq-item.open { border-color: #04A1B8; }

.miq-faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    cursor: pointer;
    gap: 12px;
    -webkit-user-select: none;
    user-select: none;
}

.miq-faq-question span {
    font-size: 13px;
    font-weight: 600;
    color: #475569;
    line-height: 1.4;
}

.miq-faq-item.open .miq-faq-question span { color: #04A1B8; }

.miq-faq-chevron {
    width: 16px;
    height: 16px;
    color: #94a3b8;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.miq-faq-item.open .miq-faq-chevron {
    transform: rotate(180deg);
    color: #04A1B8;
}

.miq-faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.miq-faq-item.open .miq-faq-answer { max-height: 300px; }

.miq-faq-answer-inner {
    padding: 0 18px 16px;
    font-size: 13px;
    color: #64748b;
    line-height: 1.6;
}

.miq-faq-answer-inner a {
    color: #04A1B8;
    font-weight: 600;
    text-decoration: none;
}

.miq-faq-answer-inner a:hover { text-decoration: underline; }

/* ═══════════════════════════════════════════════
   SUCCESS TOAST
   ═══════════════════════════════════════════════ */
.miq-toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translate(-50%, 20px);
    background: white;
    color: #1e293b;
    padding: 10px 20px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 500;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(0, 0, 0, 0.04);
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.25s ease, transform 0.25s ease;
    pointer-events: none;
}

.miq-toast.show {
    opacity: 1;
    transform: translate(-50%, 0);
    pointer-events: auto;
}

.miq-toast-icon {
    width: 22px;
    height: 22px;
    background: #16a34a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.miq-toast-icon svg { width: 12px; height: 12px; color: white; }

/* Highlight animation for newly added cart row */
@keyframes miq-row-highlight {
    0%   { background: #e0f5ee; }
    100% { background: transparent; }
}
.miq-quote-table tbody tr.miq-row-added {
    animation: miq-row-highlight 1.5s ease-out forwards;
}

/* ═══════════════════════════════════════════════
   Product Popup Modal
   ═══════════════════════════════════════════════ */
.miq-product-popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 52, 75, 0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.miq-product-popup-modal {
    position: relative;
    background: #fff;
    border-radius: 18px;
    max-width: 760px;
    width: 100%;
    max-height: 88vh;
    overflow-y: auto;
    box-shadow: 0 32px 64px rgba(0, 52, 75, .25), 0 8px 24px rgba(0, 52, 75, .1);
}

.miq-popup-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border: none;
    background: rgba(255, 255, 255, .95);
    color: #6b8291;
    font-size: 22px;
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .12);
    transition: all .15s;
    z-index: 10;
    line-height: 1;
    padding: 0;
}
.miq-popup-close:hover {
    background: #fff;
    color: #00344B;
    transform: scale(1.06);
}

.miq-popup-body { padding: 0; }

/* ─── Header: image + title block ─── */
.miq-popup-header {
    display: flex;
    gap: 24px;
    padding: 28px;
    background: linear-gradient(135deg, rgba(4, 161, 184, .07) 0%, rgba(0, 52, 75, .04) 100%);
    border-bottom: 1px solid #eef1f5;
}

.miq-popup-image {
    width: 180px;
    height: 180px;
    flex-shrink: 0;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #eef1f5;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 10px;
}
.miq-popup-image img { max-width: 100%; max-height: 100%; object-fit: contain; }
.miq-popup-no-image { font-size: 48px; color: #cbd5e1; }

.miq-popup-title-block {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.miq-popup-eyebrow {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.miq-popup-sku {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #6b8291;
}

.miq-popup-stock {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 10.5px;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: .06em;
}
.miq-popup-stock.in-stock {
    background: rgba(26, 158, 110, .14);
    color: #1a9e6e;
}
.miq-popup-stock.in-stock::before {
    content: '';
    width: 6px;
    height: 6px;
    background: #1a9e6e;
    border-radius: 50%;
}
.miq-popup-stock.out-of-stock {
    background: #fef2f2;
    color: #dc2626;
}
.miq-popup-stock.out-of-stock::before {
    content: '';
    width: 6px;
    height: 6px;
    background: #dc2626;
    border-radius: 50%;
}

.miq-popup-title {
    font-family: 'Lato', sans-serif;
    font-size: 22px !important;
    font-weight: 800;
    color: #00344B !important;
    line-height: 1.25 !important;
    margin: 0 0 14px !important;
}

.miq-popup-price-block {
    display: flex;
    align-items: baseline;
    gap: 10px;
    flex-wrap: wrap;
}

.miq-popup-price {
    font-family: 'Lato', sans-serif;
    font-size: 28px;
    font-weight: 900;
    color: #00344B;
    line-height: 1;
}
.miq-popup-price--request {
    font-size: 18px;
    color: #6b8291;
    font-weight: 700;
}

.miq-popup-unit {
    display: inline-block;
    padding: 4px 10px;
    background: #eef1f5;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    color: #6b8291;
    text-transform: uppercase;
    letter-spacing: .06em;
}

/* ─── Section wrapper (impa, desc, volume, specs) ─── */
.miq-popup-section {
    padding: 20px 28px;
    border-bottom: 1px solid #eef1f5;
}
.miq-popup-section:last-of-type { border-bottom: none; }

.miq-popup-section-label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}
.miq-popup-section-label svg { color: #04A1B8; flex-shrink: 0; }
.miq-popup-section-label span {
    font-family: 'Lato', sans-serif;
    font-size: 12px;
    font-weight: 800;
    color: #00344B;
    text-transform: uppercase;
    letter-spacing: .08em;
}

/* ─── IMPA codes ─── */
.miq-popup-impa-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.miq-popup-impa-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    background: #f8fbfc;
    border-radius: 8px;
}
.miq-popup-impa-row .miq-impa-badge {
    background: rgba(4, 161, 184, .12);
    color: #04A1B8;
    padding: 3px 9px;
    border-radius: 5px;
    font-size: 11px;
    font-weight: 800;
    white-space: nowrap;
    flex-shrink: 0;
    text-transform: none;
    letter-spacing: 0;
}
.miq-popup-impa-row .miq-impa-desc {
    font-size: 13px;
    color: #475569;
    line-height: 1.4;
}

/* ─── Description ─── */
.miq-popup-description p {
    font-size: 14px;
    color: #475569;
    line-height: 1.6;
    margin: 0;
}

/* ─── Volume pricing table — MIQ styled ─── */
.miq-popup-volume-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid #eef1f5;
    border-radius: 10px;
    overflow: hidden;
    font-size: 13px;
}
.miq-popup-volume-table thead th {
    background: linear-gradient(90deg, #00344B 0%, #004d6e 100%);
    color: #fff;
    padding: 10px 14px;
    font-size: 11px;
    font-weight: 800;
    text-align: left;
    text-transform: uppercase;
    letter-spacing: .06em;
}
.miq-popup-volume-table thead th:not(:first-child) { text-align: center; }
.miq-popup-volume-table tbody tr { transition: background .15s; }
.miq-popup-volume-table tbody tr:not(:last-child) td { border-bottom: 1px solid #f1f5f9; }
.miq-popup-volume-table tbody tr:hover { background: #fafbfc; }
.miq-popup-volume-table tbody td {
    padding: 11px 14px;
    color: #00344B;
    font-weight: 600;
}
.miq-popup-volume-table tbody td.qty-cell { font-weight: 700; }
.miq-popup-volume-table tbody td:not(:first-child) { text-align: center; }
.miq-popup-volume-table tbody td.discount-cell {
    color: #1a9e6e;
    font-weight: 800;
}
.miq-popup-volume-table tbody td.discount-cell.no-discount {
    color: #94a3b8;
    font-weight: 600;
}
.miq-popup-volume-table tbody td.price-cell {
    font-family: 'Lato', sans-serif;
    font-weight: 800;
    color: #00344B;
}

/* ─── Specifications — grid of cards ─── */
.miq-popup-specs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 12px;
}
.miq-popup-spec {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    background: #f8fbfc;
    border-radius: 8px;
    gap: 12px;
}
.miq-popup-spec-label {
    font-size: 11.5px;
    font-weight: 700;
    color: #6b8291;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.miq-popup-spec-value {
    font-size: 13px;
    font-weight: 700;
    color: #00344B;
    text-align: right;
}

/* ─── Footer action ─── */
.miq-popup-actions {
    padding: 18px 28px;
    background: #fafbfc;
    border-top: 1px solid #eef1f5;
}
.miq-popup-btn-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #04A1B8;
    color: #fff !important;
    padding: 12px 22px;
    border-radius: 10px;
    font-size: 13.5px;
    font-weight: 800;
    text-decoration: none;
    transition: all .15s;
}
.miq-popup-btn-link:hover {
    background: #0388a0;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(4, 161, 184, .3);
    color: #fff !important;
}

/* ─── Responsive ─── */
@media (max-width: 640px) {
    .miq-popup-header {
        flex-direction: column;
        padding: 22px;
        gap: 18px;
    }
    .miq-popup-image {
        width: 140px;
        height: 140px;
        margin: 0 auto;
    }
    .miq-popup-title-block {
        text-align: center;
        align-items: center;
    }
    .miq-popup-eyebrow,
    .miq-popup-price-block {
        justify-content: center;
    }
    .miq-popup-section { padding: 18px 22px; }
    .miq-popup-actions { padding: 16px 22px; }
    .miq-popup-specs-grid { grid-template-columns: 1fr; }
}

/* Popup loading */
.miq-popup-loading { text-align: center; padding: 48px; color: #64748b; }

.miq-popup-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid #e2e8f0;
    border-top-color: #04A1B8;
    border-radius: 50%;
    animation: miq-spin 0.7s linear infinite;
    margin: 0 auto 16px;
}

@keyframes miq-spin { to { transform: rotate(360deg); } }

.miq-popup-error { text-align: center; padding: 32px; color: #ef4444; }

/* ═══════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════ */
@media (max-width: 900px) {
    .miq-export-card-inner { flex-direction: column; }
    .miq-export-info { flex: none; padding: 28px 24px; }
    .miq-export-buttons { padding: 24px; flex-wrap: wrap; }
    .miq-export-btn { min-width: 140px; }
}

@media (max-width: 768px) {
    .miq-quote-hero { padding: 36px 16px 56px; }
    .miq-quote-hero h1 { font-size: 26px; }
    .miq-quote-hero .miq-quote-hero-subtitle { font-size: 14px; }

    .miq-quote-search-input {
        padding: 15px 48px 15px 48px;
        font-size: 15px;
    }

    .miq-quote-container { padding: 0 16px 40px; }

    /* Cart table responsive */
    .miq-quote-table thead { display: none; }

    .miq-quote-table tbody tr {
        display: flex;
        flex-wrap: wrap;
        padding: 16px 20px;
        gap: 12px;
        position: relative;
    }

    .miq-quote-table tbody td { padding: 0; }
    .miq-quote-table tbody td.col-product { width: 100%; }
    .miq-quote-table tbody td.col-unit { display: none; }

    .miq-quote-table tbody td.col-remove {
        position: absolute;
        top: 16px;
        right: 16px;
    }

    .miq-quote-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .miq-quote-btn { width: 100%; }

    .miq-quote-summary {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    .miq-quote-summary-info {
        flex-direction: column;
        gap: 8px;
        text-align: center;
        width: 100%;
    }

    .miq-save-account-strip {
        flex-wrap: wrap;
        gap: 10px;
        padding: 14px 18px;
    }

    .miq-save-account-btn {
        width: 100%;
        justify-content: center;
    }

    .miq-export-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .miq-export-btn {
        max-width: none;
        flex-direction: row;
        padding: 18px 20px;
        gap: 16px;
        text-align: left;
    }

    .miq-export-btn-icon { width: 44px; height: 44px; flex-shrink: 0; }
    .miq-export-btn-text { text-align: left; }

    /* Search results mobile */
    .miq-search-result-item { flex-wrap: wrap; }

    .miq-search-result-right {
        width: 100%;
        text-align: left;
        display: flex;
        align-items: center;
        gap: 12px;
        margin-top: 8px;
        padding-top: 8px;
        border-top: 1px solid #f1f5f9;
    }

    /* Popup responsive */
    .miq-product-popup-modal { max-height: 90vh; margin: 10px; border-radius: 16px; }
    .miq-popup-body { padding: 20px; }
    .miq-popup-header { flex-direction: column; align-items: center; text-align: center; }
    .miq-popup-image { width: 160px; height: 160px; }
    .miq-popup-meta { justify-content: center; }
    .miq-popup-impa-list { justify-content: center; }
}

@media (max-width: 480px) {
    .miq-quote-product-image { width: 48px; height: 48px; }
    .miq-quote-product-name { font-size: 13px; }
    .miq-qty-btn { width: 28px; height: 30px; }
    .miq-qty-input { width: 40px; height: 30px; font-size: 13px; }
}

/* ═══════════════════════════════════════════════
   SHIPPING CALCULATOR
   ═══════════════════════════════════════════════ */

/* ─── Shipping Strip (between cart and save-to-account) ─── */
.miq-shipping-strip {
    margin-top: 16px;
    background: white;
    border: 1px solid #e2e8f0;
    border-left: 3px solid #00567C;
    border-radius: 12px;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    gap: 14px;
    transition: all 0.2s;
}

.miq-shipping-strip:hover {
    border-color: #00567C;
    box-shadow: 0 2px 12px rgba(0, 86, 124, 0.08);
}

.miq-shipping-strip-icon {
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, #e8f4f8, #f0f8fb);
    border: 1px solid rgba(0, 86, 124, 0.15);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.miq-shipping-strip-icon svg { width: 18px; height: 18px; color: #00567C; }

.miq-shipping-strip-text { flex: 1; min-width: 0; }

.miq-shipping-strip-text strong {
    font-size: 14px;
    font-weight: 700;
    color: #00344B;
    display: block;
    line-height: 1.3;
}

.miq-shipping-strip-text span {
    font-size: 12px;
    color: #94a3b8;
    line-height: 1.4;
}

.miq-shipping-calc-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 20px;
    background: #00567C;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    color: white;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.miq-shipping-calc-btn:hover {
    background: #00344B;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 52, 75, 0.2);
}

/* ─── Selected Shipping Row (inside cart card) ─── */
.miq-quote-shipping-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 28px;
    background: linear-gradient(135deg, #f0f8fb, #f5fafc);
    border-top: 1px solid #e2e8f0;
    gap: 16px;
}

.miq-shipping-selected-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.miq-shipping-selected-icon {
    width: 36px;
    height: 36px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.miq-shipping-selected-icon svg { color: #00567C; }

.miq-shipping-selected-details strong {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #00344B;
    line-height: 1.3;
}

.miq-shipping-selected-details span {
    font-size: 11px;
    color: #64748b;
}

.miq-shipping-selected-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.miq-shipping-selected-price {
    font-size: 16px;
    font-weight: 700;
    color: #00344B;
    font-family: 'Lato', sans-serif;
}

/* Custom transport status badges */
.miq-shipping-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 11px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.02em;
}

.miq-shipping-status-badge::before {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
}

.miq-status-pending {
    background: rgba(100, 116, 139, 0.1);
    color: #475569;
    border: 1.5px solid rgba(100, 116, 139, 0.2);
}

.miq-status-pending::before {
    background: #94a3b8;
}

.miq-status-requested {
    background: rgba(232, 150, 63, 0.1);
    color: #E8963F;
    border: 1.5px solid rgba(232, 150, 63, 0.28);
}

.miq-status-requested::before {
    background: #E8963F;
}

.miq-shipping-change-btn {
    background: none;
    border: none;
    color: #04A1B8;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
    padding: 0;
}

.miq-shipping-change-btn:hover { color: #028a9e; }

/* ─── Shipping Popup Modal ─── */
.miq-shipping-popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 52, 75, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.miq-shipping-popup-modal {
    position: relative;
    background: white;
    border-radius: 20px;
    max-width: 560px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.2);
    padding: 32px;
}

.miq-shipping-popup-header {
    text-align: center;
    margin-bottom: 28px;
}

.miq-shipping-popup-header-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #00344B, #00567C);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    color: white;
}

.miq-shipping-popup-header h3 {
    font-family: 'Lato', sans-serif;
    font-size: 20px !important;
    font-weight: 700;
    color: #00344B !important;
    margin-bottom: 6px;
    line-height: 1.3 !important;
}

.miq-shipping-popup-header p {
    font-size: 14px;
    color: #64748b;
    line-height: 1.5;
    max-width: 400px;
    margin: 0 auto;
}

/* ─── Shipping Form ─── */
.miq-shipping-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.miq-shipping-form-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.miq-shipping-form-row label {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
}

.miq-shipping-form-row label .required {
    color: #E8963F;
}

.miq-shipping-postal-hint {
    font-weight: 400;
    color: #94a3b8;
    font-size: 11px;
}

.miq-shipping-select,
.miq-shipping-input {
    width: 100%;
    padding: 12px 16px;
    font-size: 14px;
    font-family: 'Open Sans', sans-serif;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    outline: none;
    background: white;
    color: #1e293b;
    transition: border-color 0.2s;
}

.miq-shipping-select:focus,
.miq-shipping-input:focus {
    border-color: #04A1B8;
    box-shadow: 0 0 0 3px rgba(4, 161, 184, 0.1);
}

.miq-shipping-select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 42px;
}

.miq-shipping-submit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px 24px;
    background: linear-gradient(135deg, #04A1B8, #028a9e);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s;
    margin-top: 4px;
}

.miq-shipping-submit-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(4, 161, 184, 0.3);
}

.miq-shipping-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* ─── Shipping Results ─── */
.miq-shipping-weight-info {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 12px;
    color: #64748b;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.miq-shipping-weight-info svg { flex-shrink: 0; color: #94a3b8; }

.miq-shipping-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.miq-shipping-option {
    display: flex;
    align-items: center;
    padding: 16px 18px;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
    gap: 14px;
}

.miq-shipping-option:hover {
    border-color: #04A1B8;
    background: #f8fdfe;
}

.miq-shipping-option.selected {
    border-color: #04A1B8;
    background: linear-gradient(135deg, #f0fdfa, #e8fafe);
    box-shadow: 0 0 0 3px rgba(4, 161, 184, 0.1);
}

.miq-shipping-option-radio {
    width: 20px;
    height: 20px;
    border: 2px solid #cbd5e1;
    border-radius: 50%;
    flex-shrink: 0;
    position: relative;
    transition: all 0.2s;
}

.miq-shipping-option.selected .miq-shipping-option-radio {
    border-color: #04A1B8;
    background: #04A1B8;
}

.miq-shipping-option.selected .miq-shipping-option-radio::after {
    content: '';
    position: absolute;
    top: 4px;
    left: 4px;
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
}

.miq-shipping-option-info { flex: 1; min-width: 0; }

.miq-shipping-option-label {
    font-size: 14px;
    font-weight: 700;
    color: #00344B;
    line-height: 1.3;
}

.miq-shipping-option-delivery {
    font-size: 12px;
    color: #64748b;
    margin-top: 2px;
}

.miq-shipping-option-address {
    font-size: 11px;
    color: #94a3b8;
    margin-top: 4px;
    font-style: italic;
}

.miq-shipping-option-price {
    font-size: 18px;
    font-weight: 700;
    font-family: 'Lato', sans-serif;
    color: #00344B;
    white-space: nowrap;
}

.miq-shipping-option-price.free-price {
    color: #16a34a;
}

/* Custom transport option */
.miq-shipping-option.custom-transport {
    border-color: rgba(232, 150, 63, 0.38);
    background: linear-gradient(135deg, #ffffff 0%, rgba(232, 150, 63, 0.04) 100%);
}

.miq-shipping-option.custom-transport:hover {
    border-color: #E8963F;
    background: rgba(232, 150, 63, 0.06);
}

.miq-shipping-option.custom-transport.selected {
    border-color: #E8963F;
    background: rgba(232, 150, 63, 0.07);
    box-shadow: 0 0 0 3px rgba(232, 150, 63, 0.12);
}

.miq-shipping-option.custom-transport .miq-shipping-option-radio {
    border-color: rgba(232, 150, 63, 0.5);
}

.miq-shipping-option.custom-transport.selected .miq-shipping-option-radio {
    border-color: #E8963F;
    background: #E8963F;
}

/* Label + badge row */
.miq-shipping-option-label-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.miq-shipping-option-custom-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #E8963F;
    color: #ffffff;
    border-radius: 4px;
    padding: 2px 7px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    flex-shrink: 0;
    line-height: 1.6;
}

.miq-shipping-option-message {
    font-size: 12px;
    color: #64748b;
    margin-top: 4px;
    line-height: 1.4;
}

/* Custom transport price badge */
.miq-shipping-option-price.custom-price {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #E8963F;
    background: rgba(232, 150, 63, 0.1);
    border: 1.5px solid rgba(232, 150, 63, 0.28);
    padding: 6px 13px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    font-family: 'Inter', sans-serif;
}

/* ─── Transport Status Banners ─── */
.miq-transport-banner {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 20px 24px;
    border-radius: 14px;
    margin-bottom: 20px;
    border: 1.5px solid;
    border-left-width: 4px;
}

.miq-transport-banner-icon {
    flex-shrink: 0;
    margin-top: 2px;
}

.miq-transport-banner-content {
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex: 1;
}

.miq-transport-banner-top {
    display: flex;
    align-items: center;
    gap: 9px;
    flex-wrap: wrap;
}

.miq-transport-banner-content strong {
    font-size: 14px;
    font-weight: 700;
}

.miq-transport-banner-content > span {
    font-size: 13px;
    line-height: 1.5;
}

.miq-transport-badge {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 2px 9px;
    border-radius: 20px;
}

/* Action buttons row inside the banner */
.miq-transport-banner-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.miq-transport-banner-account-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none !important;
    padding: 8px 14px;
    border-radius: 8px;
    transition: all 0.2s;
}

.miq-transport-banner-new-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 500;
    background: none;
    border-radius: 8px;
    padding: 8px 14px;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

/* Pending — MIQ navy/teal */
.miq-transport-banner--pending {
    border-color: rgba(4, 161, 184, 0.3);
    border-left-color: #04A1B8;
    background: #ffffff;
    color: #00344B;
    box-shadow: 0 4px 20px rgba(0, 52, 75, 0.08);
}

.miq-transport-banner--pending .miq-transport-banner-icon svg {
    stroke: #04A1B8;
}

.miq-transport-banner--pending .miq-transport-banner-content strong {
    color: #00344B;
}

.miq-transport-banner--pending .miq-transport-banner-content > span {
    color: #475569;
}

.miq-transport-banner--pending .miq-transport-badge {
    background: rgba(4, 161, 184, 0.1);
    color: #028a9e;
    border: 1px solid rgba(4, 161, 184, 0.25);
}

/* "Start New Quote" — primary teal filled */
.miq-transport-banner--pending .miq-transport-banner-new-btn {
    color: #ffffff;
    background: #04A1B8;
    border: none;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(4, 161, 184, 0.25);
}
.miq-transport-banner--pending .miq-transport-banner-new-btn:hover {
    background: #028a9e;
    box-shadow: 0 4px 14px rgba(4, 161, 184, 0.35);
}

/* "View in My Account" — subtle ghost */
.miq-transport-banner--pending .miq-transport-banner-account-link {
    color: #475569 !important;
    background: transparent;
    border: 1.5px solid #e2e8f0;
}
.miq-transport-banner--pending .miq-transport-banner-account-link:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #00344B !important;
}

/* Expired — neutral grey */
.miq-transport-banner--expired {
    border-color: #cbd5e1;
    border-left-color: #94a3b8;
    background: #f8fafc;
    color: #475569;
}
.miq-transport-banner--expired .miq-transport-banner-icon svg { stroke: #94a3b8; }
.miq-transport-banner--expired .miq-transport-banner-content strong { color: #334155; }

/* Quoted — teal */
.miq-transport-banner--quoted {
    border-color: #04A1B8;
    background: linear-gradient(135deg, #f0fdfa 0%, #e6faf8 100%);
    color: #134e4a;
    box-shadow: 0 4px 16px rgba(4, 161, 184, 0.08);
}

.miq-transport-banner--quoted .miq-transport-banner-icon svg {
    stroke: #04A1B8;
}

/* ─── New Quote Confirmation Modal ─── */
.miq-newquote-overlay {
    position: fixed;
    inset: 0;
    z-index: 100000;
    background: rgba(0, 52, 75, 0.5);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: miqFadeIn 0.15s ease;
}

@keyframes miqFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.miq-newquote-modal {
    background: #fff;
    border-radius: 16px;
    padding: 36px 32px 28px;
    max-width: 440px;
    width: 90%;
    text-align: center;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.18);
    animation: miqSlideUp 0.2s ease;
}

@keyframes miqSlideUp {
    from { transform: translateY(14px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.miq-newquote-modal-icon {
    width: 56px;
    height: 56px;
    background: rgba(245, 158, 11, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    color: #f59e0b;
}

.miq-newquote-modal h3 {
    font-size: 20px !important;
    font-weight: 700 !important;
    color: #00344B !important;
    margin: 0 0 8px !important;
    line-height: 1.3 !important;
}

.miq-newquote-modal > p {
    font-size: 14px;
    color: #64748b;
    margin: 0 0 20px !important;
    line-height: 1.55;
}

.miq-newquote-saved-info {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    text-align: left;
    background: rgba(4, 161, 184, 0.06);
    border: 1px solid rgba(4, 161, 184, 0.2);
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 24px;
}

.miq-newquote-saved-info svg {
    flex-shrink: 0;
    margin-top: 2px;
    color: #04A1B8;
}

/* Title-level strong — block */
.miq-newquote-saved-info > div > strong {
    font-size: 13px;
    font-weight: 600;
    color: #00344B;
    display: block;
    margin-bottom: 4px;
}

/* Inline strongs inside the description span — stay inline */
.miq-newquote-saved-info > div > span strong {
    display: inline;
    font-weight: 600;
    color: #00344B;
}

.miq-newquote-saved-info > div > span {
    font-size: 12px;
    color: #64748b;
    line-height: 1.55;
}

.miq-newquote-modal-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* "Yes, start a fresh quote" — primary teal */
.miq-newquote-btn-fresh {
    background: #04A1B8;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.2s;
    box-shadow: 0 2px 8px rgba(4, 161, 184, 0.25);
}
.miq-newquote-btn-fresh:hover { background: #028a9e; }

/* "Go to My Account" — ghost/outline */
.miq-newquote-btn-account {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: transparent;
    color: #475569 !important;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none !important;
    cursor: pointer;
    transition: all 0.2s;
}
.miq-newquote-btn-account:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #00344B !important;
}

.miq-newquote-btn-cancel {
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 13px;
    cursor: pointer;
    padding: 8px;
    font-family: inherit;
    transition: color 0.2s;
}
.miq-newquote-btn-cancel:hover { color: #475569; }

.miq-shipping-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    color: #64748b;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    padding: 8px 0;
    transition: color 0.2s;
}

.miq-shipping-back-btn:hover { color: #04A1B8; }

/* ─── Shipping Loading ─── */
.miq-shipping-loading {
    text-align: center;
    padding: 32px;
    color: #64748b;
}

/* ─── Responsive Shipping ─── */
@media (max-width: 768px) {
    .miq-shipping-strip {
        flex-wrap: wrap;
        gap: 10px;
        padding: 14px 18px;
    }

    .miq-shipping-calc-btn {
        width: 100%;
        justify-content: center;
    }

    .miq-shipping-popup-modal {
        padding: 24px 20px;
        margin: 10px;
        border-radius: 16px;
    }

    .miq-quote-shipping-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding: 14px 20px;
    }

    .miq-shipping-selected-right {
        width: 100%;
        justify-content: space-between;
    }
}

/* ═══════════════════════════════════════════════
   INLINE CONFIRM — Start New Quote
   ═══════════════════════════════════════════════ */
.miq-inline-confirm {
    margin-top: 10px;
    padding: 16px;
    background: #fef9ee;
    border: 1px solid #f0ddb0;
    border-radius: 10px;
}
.miq-inline-confirm-text {
    color: #5a6872;
    font-size: 13px;
    line-height: 1.55;
    margin: 0 0 12px;
    font-family: 'Inter', sans-serif;
}
.miq-inline-confirm-actions {
    display: flex;
    gap: 8px;
}
.miq-inline-confirm-yes {
    background: #e74c3c;
    color: #fff;
    border: none;
    border-radius: 7px;
    padding: 9px 18px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    transition: background .15s;
}
.miq-inline-confirm-yes:hover {
    background: #c0392b;
}
.miq-inline-confirm-yes:disabled {
    opacity: .6;
    cursor: not-allowed;
}
.miq-inline-confirm-no {
    background: #e8ecf0;
    color: #00344B;
    border: none;
    border-radius: 7px;
    padding: 9px 18px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    transition: background .15s;
}
.miq-inline-confirm-no:hover {
    background: #d6dce2;
}

/* ═══════════════════════════════════════════════
   TRANSPORT QUOTE — LOCKED APPROVE/DECLINE MODAL
   ═══════════════════════════════════════════════ */
.miq-tqmodal-overlay {
    position: fixed;
    inset: 0;
    z-index: 100001;
    background: rgba(0, 52, 75, 0.55);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: miqFadeIn 0.15s ease;
}
.miq-tqmodal {
    background: #fff;
    border-radius: 18px;
    padding: 32px 30px 26px;
    max-width: 460px;
    width: 100%;
    text-align: center;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.22);
    animation: miqSlideUp 0.2s ease;
    position: relative;
    overflow: hidden;
}
.miq-tqmodal::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, #04A1B8, #00567C);
}
.miq-tqmodal-head { margin-bottom: 20px; }
.miq-tqmodal-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #04A1B8;
    background: rgba(4, 161, 184, 0.1);
    border-radius: 20px;
    padding: 5px 14px;
    margin-bottom: 12px;
}
.miq-tqmodal-badge.expired {
    color: #b45309;
    background: rgba(245, 158, 11, 0.12);
}
.miq-tqmodal h3 {
    font-size: 21px !important;
    font-weight: 700 !important;
    color: #00344B !important;
    margin: 0 0 8px !important;
    line-height: 1.3 !important;
}
.miq-tqmodal-head p {
    font-size: 14px;
    color: #64748b;
    margin: 0 !important;
    line-height: 1.55;
}

/* Countdown */
.miq-tqmodal-timer-wrap {
    background: linear-gradient(135deg, rgba(4,161,184,0.06), rgba(0,86,124,0.06));
    border: 1px solid rgba(4,161,184,0.18);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 18px;
}
.miq-tqmodal-timer-wrap.is-urgent {
    background: #fef2f2;
    border-color: #fecaca;
}
.miq-tqmodal-timer-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.1px;
    color: #64748b;
    margin-bottom: 10px;
}
.miq-tqmodal-timer-wrap.is-urgent .miq-tqmodal-timer-label { color: #991b1b; }
.miq-tqmodal-timer {
    display: flex;
    justify-content: center;
    gap: 8px;
}
.miq-tqmodal-unit {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    min-width: 56px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 9px 6px 7px;
}
.miq-tqmodal-unit b {
    font-size: 26px;
    font-weight: 800;
    color: #00344B;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}
.miq-tqmodal-timer-wrap.is-urgent .miq-tqmodal-unit b { color: #b91c1c; }
.miq-tqmodal-unit i {
    font-style: normal;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #94a3b8;
    margin-top: 5px;
}
.miq-tqmodal-until {
    display: block;
    font-size: 12px;
    color: #64748b;
    margin-top: 10px;
}

/* Cost row */
.miq-tqmodal-cost {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f5f7fa;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 14px 18px;
    margin-bottom: 20px;
}
.miq-tqmodal-cost span { font-size: 14px; color: #64748b; }
.miq-tqmodal-cost strong { font-size: 20px; font-weight: 800; color: #00344B; }

/* Actions */
.miq-tqmodal-actions {
    display: flex;
    gap: 10px;
    align-items: stretch;
}
.miq-tqmodal-approve {
    flex: 1 1 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 22px;
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #16a34a, #22c55e);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(22,163,74,0.3);
    transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease;
}
.miq-tqmodal-approve:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(22,163,74,0.4); }
.miq-tqmodal-approve.loading { opacity: 0.7; cursor: default; }
.miq-tqmodal-approve svg { width: 18px; height: 18px; }
.miq-tqmodal-decline {
    flex: 0 0 auto;
    padding: 14px 22px;
    font-size: 15px;
    font-weight: 700;
    color: #ef4444;
    background: #fff;
    border: 2px solid #fecaca;
    border-radius: 10px;
    cursor: pointer;
    transition: border-color .15s ease;
}
.miq-tqmodal-decline:hover { border-color: #ef4444; }
.miq-tqmodal-note {
    font-size: 12px;
    color: #94a3b8;
    margin-top: 14px;
}

@media (max-width: 480px) {
    .miq-tqmodal { padding: 26px 20px 22px; }
    .miq-tqmodal-actions { flex-direction: column; }
    .miq-tqmodal-decline { width: 100%; }
    .miq-tqmodal-unit { min-width: 48px; }
    .miq-tqmodal-unit b { font-size: 22px; }
}
