/* ── VP Frontend Styles ─────────────────────────────────────────────── */

/* Product options wrapper */
.vp-product-options {
    margin: 16px 0 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Field row */
.vp-field-row {
    display: grid;
    grid-template-columns: minmax(120px, 220px) 1fr;
    align-items: center;
    gap: 12px;
}
@media (max-width: 640px) {
    .vp-field-row {
        grid-template-columns: 1fr;
        gap: 4px;
    }
}

/* Label */
.vp-field-label {
    font-weight: 600;
    font-size: 0.9em;
    color: inherit;
}
.vp-required-star {
    color: #e00;
    margin-left: 2px;
}

/* Controls area: select + info button + surcharge */
.vp-field-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Select */
.vp-select {
    flex: 1;
    min-width: 0;
    max-width: 360px;
    height: 38px;
    padding: 4px 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: #fff;
    font-size: 0.95em;
    cursor: pointer;
    transition: border-color .2s;
}
.vp-select:focus {
    outline: none;
    border-color: #2271b1;
    box-shadow: 0 0 0 2px rgba(34,113,177,.25);
}

/* Info button */
.vp-product-options .vp-info-btn {
    background: #ED8E00 !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    cursor: pointer;
    line-height: 1;
    color: #fff !important;
    font-size: 1em;
    border-radius: 50% !important;
    width: 26px;
    height: 26px;
    min-width: 0;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s;
    flex-shrink: 0;
}
.vp-product-options .vp-info-btn:hover {
    background: #c97a00 !important;
}
.vp-info-icon { pointer-events: none; }

/* Option surcharge badge */
.vp-option-surcharge {
    font-size: 0.85em;
    color: #2a7a2a;
    font-weight: 600;
    white-space: nowrap;
    min-width: 60px;
}
.vp-option-surcharge:empty { display: none; }

/* Total price row */
.vp-price-total {
    padding: 10px 0 0;
    border-top: 1px solid #eee;
    margin-top: 4px;
    font-size: 1em;
}
.vp-price-total-label {
    font-weight: 600;
    margin-right: 4px;
}
.vp-price-total-value {
    color: #2a7a2a;
    font-weight: 700;
}

/* Inquiry button */
.vp-inquiry-button {
    display: inline-block;
    margin-top: 8px;
}

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

.vp-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity .22s ease;
}
.vp-modal-overlay:not([hidden]) {
    opacity: 1;
}
.vp-modal-overlay[hidden] {
    display: none !important;
}

.vp-modal {
    background: #fff;
    border-radius: 8px;
    max-width: 540px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 0;
    position: relative;
    box-shadow: 0 8px 32px rgba(0,0,0,.28);
    animation: vp-modal-in .22s ease;
    display: flex;
    flex-direction: column;
}
@keyframes vp-modal-in {
    from { transform: scale(.96) translateY(6px); opacity: 0; }
    to   { transform: scale(1)   translateY(0);   opacity: 1; }
}

/* Close button sits in its own row at the top-right */
.vp-modal-close {
    align-self: flex-end;
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
    color: #555;
    line-height: 1;
    padding: 10px 14px 4px;
    border-radius: 4px;
    transition: background .15s;
    flex-shrink: 0;
}
.vp-modal-close:hover { background: #f0f0f0; color: #000; }

/* Modal content sits below the close button, with its own padding */
.vp-modal-content {
    padding: 0 28px 24px;
    overflow-y: auto;
}

/* Modal content */
.vp-popup-image-wrap { margin-bottom: 16px; }
.vp-popup-image { max-width: 100%; height: auto; border-radius: 4px; }

.vp-popup-heading {
    font-size: 1.15em;
    font-weight: 700;
    margin: 0 0 10px;
    color: #1a1a1a;
}

.vp-popup-description {
    margin: 0 0 10px;
    line-height: 1.6;
    color: #333;
}

.vp-popup-bullets {
    margin: 0 0 10px;
    padding-left: 20px;
    line-height: 1.7;
    color: #333;
}
.vp-popup-bullets li { margin-bottom: 4px; }
.vp-popup-bullets li::marker { color: #2271b1; }

@media (max-width: 500px) {
    .vp-modal-content { padding: 0 16px 16px; }
}

/* ── Dual checkout buttons ───────────────────────────────────────────── */
.vp-dual-btns {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}
.vp-dual-btn {
    flex: 1 1 auto;
    min-width: 180px;
    text-align: center;
    padding: 14px 20px !important;
    font-size: 15px !important;
}
.vp-dual-btn--inquiry {
    background: #ED8E00 !important;
    border-color: #ED8E00 !important;
    color: #fff !important;
}
.vp-dual-btn--inquiry:hover {
    background: #c97a00 !important;
    border-color: #c97a00 !important;
}
@media (max-width: 500px) {
    .vp-dual-btns { flex-direction: column; }
    .vp-dual-btn  { min-width: 0; width: 100%; }
}
