/* ✅ Already working - keep this */
.quote-info-msg {
    background: #ecd884;
    padding: 0.75em 1em;
    margin-top: 1em !important;
    border-left: 3px solid #9d915b;
    font-style: italic;
    font-size: 0.95em;
    color: #9d915b;
}

/* ✅ Updated Modal Styles */
#quote-preview-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    font-family: sans-serif;
    padding: 10px;
    box-sizing: border-box;
}

.quote-modal-content {
    background: white;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    border-radius: 8px;
    overflow: hidden;
}

@media (max-width: 600px) {
    .quote-modal-content {
        max-width: none;
        height: 100%;
        max-height: none;
        border-radius: 0;
    }
}

.quote-modal-body {
    padding: 1.5em 1.5em 0.5em;
    overflow-y: auto;
    flex-grow: 1;
}

.quote-summary {
    font-size: 9pt;
}

.quote-name-fields {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.quote-name-fields label {
    flex: 1;
    min-width: 120px;
}

.quote-modal-content label {
    display: block;
    margin-top: 10px;
}

.quote-modal-content input,
.quote-modal-content textarea {
    width: 100%;
    margin-bottom: 0;
}

.quote-modal-content li,
.quote-modal-content ul {
    margin-bottom: 0;
}

.quote-modal-content ul {
    margin-left: 15px;
}

#quote-note {
    min-height: 60px;
}

.quote-modal-actions {
    padding: 1em 1.5em;
    border-top: 1px solid #ddd;
    background: #f9f9f9;
    text-align: right;
    flex-shrink: 0;
}

.quote-modal-actions button {
    margin-bottom: 0;
    margin-right: 0;
}

#quote-cancel-btn {
    margin-right: 10px;
}

.mfp-container {
    padding: 10px !important;
}

.white-popup {
    position: relative;
    background: #fff;
    max-width: 700px !important;
    width: 90%;
    max-height: 90vh;
    margin: 0 auto;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    overflow: hidden; /* important! containment */
    padding: 0 !important; /* no outer padding so X reaches edge */
}

.modal-scrollable {
    padding: 30px;
    overflow-y: auto;
    max-height: 90vh;
    box-sizing: border-box;
}

.custom-mfp-close {
    position: absolute;
    margin: 0;
    right: 0;
    padding-right: 20px;
    z-index: 9999;
    background: transparent;
    border: none;
    font-size: 26px;
    font-weight: bold;
    color: #333;
    cursor: pointer;
    line-height: 1;
}

.custom-mfp-close:hover {
    color: #000;
}

.quote-help {
    background: var(--fs-color-primary);
    color: white;
    padding: 0 6px;
    border-radius: 20px;
    margin-left: 4px;
    font-weight: bold;
}

.woocommerce div.quantity {
    position: relative;
}

.ppu-info {
    position: absolute;
    left: 0;
    top: 100%;
    margin-top: 2px;
    font-size: 12px;
    color: #555;
    white-space: nowrap;
    pointer-events: none;
}

span.wapf-total.price.amount {
    font-size: 1em;
    margin: 0 !important;
    text-align: right;
}

.price-per-unit {
    font-size: 12px;
    color: #666;
    margin-top: 2px;
}

.price-per-booklet {
    font-size: 12px !important;
    color: #666 !important;
    margin-top: 2px;
    font-weight: 400;
    display: block;
}

.product-info .price {
    margin: 7px 0 !important;
}

.wapf-product-totals {
    margin-bottom: 35px;
}

/* Hide all but the first .wapf-product-totals inside .wapf */
.wapf .wapf-product-totals:not(:first-of-type) {
    display: none !important;
}
