/* ── Overlay ──────────────────────────────────────────────────────────── */
.wcqg-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 99999;
    align-items: center;
    justify-content: center;
}
.wcqg-overlay.active {
    display: flex;
}

/* ── Modal ───────────────────────────────────────────────────────────── */
.wcqg-modal {
    background: #fff;
    border-radius: 10px;
    padding: 32px 28px 24px;
    width: 92%;
    max-width: 460px;
    box-shadow: 0 16px 50px rgba(0, 0, 0, 0.22);
    position: relative;
    animation: wcqgFadeIn 0.18s ease;
}

@keyframes wcqgFadeIn {
    from { opacity: 0; transform: translateY(-12px); }
    to   { opacity: 1; transform: translateY(0); }
}

.wcqg-modal__title {
    margin: 0 0 6px;
    font-size: 1.25em;
    color: #294e7a;
    line-height: 1.3;
}
.wcqg-modal__subtitle {
    margin: 0 0 22px;
    font-size: 0.85em;
    color: #888;
}

.wcqg-close {
    position: absolute;
    top: 14px;
    right: 16px;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    color: #aaa;
    background: none;
    border: none;
    padding: 0;
    transition: color 0.15s;
}
.wcqg-close:hover { color: #444; }

/* ── Form ────────────────────────────────────────────────────────────── */
.wcqg-form-row {
    margin-bottom: 14px;
}
.wcqg-form-row label {
    display: block;
    font-size: 0.85em;
    font-weight: 600;
    color: #444;
    margin-bottom: 5px;
}
.wcqg-form-row input {
    width: 100%;
    padding: 9px 11px;
    border: 1px solid #d0d5dd;
    border-radius: 5px;
    font-size: 0.95em;
    color: #222;
    box-sizing: border-box;
    transition: border-color 0.15s, box-shadow 0.15s;
    background: #fafafa;
}
.wcqg-form-row input:focus {
    outline: none;
    border-color: #294e7a;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(41, 78, 122, 0.12);
}
.wcqg-required { color: #c00; }

.wcqg-form-row--half {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
@media (max-width: 400px) {
    .wcqg-form-row--half {
        grid-template-columns: 1fr;
    }
}

/* ── Submit button ───────────────────────────────────────────────────── */
.wcqg-submit-btn {
    width: 100%;
    padding: 11px;
    background: #294e7a;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 1em;
    font-weight: 700;
    cursor: pointer;
    margin-top: 6px;
    transition: background 0.15s;
    letter-spacing: 0.02em;
}
.wcqg-submit-btn:hover { background: #1e3d62; }
.wcqg-submit-btn:disabled {
    background: #8ba3bc;
    cursor: wait;
}

/* ── Error ───────────────────────────────────────────────────────────── */
.wcqg-error-msg {
    display: none;
    background: #fff0f0;
    border: 1px solid #f5c2c7;
    color: #842029;
    border-radius: 4px;
    padding: 8px 12px;
    font-size: 0.87em;
    margin-top: 10px;
}

/* ── Trigger buttons ─────────────────────────────────────────────────── */
.wcqg-cart-button-wrap {
    margin-top: 14px;
}
.wcqg-quote-btn.button {
    background-color: #294e7a !important;
    color: #fff !important;
    border-color: #294e7a !important;
    padding: 10px 20px !important;
    font-weight: 600 !important;
}
.wcqg-quote-btn.button:hover {
    background-color: #1e3d62 !important;
    border-color: #1e3d62 !important;
}

/* ── Mini cart / carrito flotante ────────────────────────────────────── */
.wcqg-mini-cart-btn.button {
    display: block !important;
    width: 100% !important;
    text-align: center !important;
    margin-top: 8px !important;
    padding: 9px 14px !important;
    font-size: 0.9em !important;
}

/* ── Xoo Side Cart ───────────────────────────────────────────────────── */
a.wcqg-xoo-btn.xoo-wsc-ft-btn,
a.wcqg-xoo-btn.xoo-wsc-btn {
    background-color: #294e7a !important;
    color: #fff !important;
    border-color: #294e7a !important;
    text-align: center !important;
}
a.wcqg-xoo-btn.xoo-wsc-ft-btn:hover,
a.wcqg-xoo-btn.xoo-wsc-btn:hover {
    background-color: #1e3d62 !important;
    border-color: #1e3d62 !important;
    color: #fff !important;
}
