/* ── Quick Order Button ─────────────────────────────────────────────────── */

.qow-quick-order-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    background-color: rgb(24, 24, 24) !important;
    color: #fff !important;
    border-color: rgb(24, 24, 24) !important;
    font-weight: 600;
    letter-spacing: .02em;
    transition: background-color .2s, border-color .2s, transform .1s;
    cursor: pointer;
}

.qow-quick-order-btn::before {
    content: "⚡";
    font-style: normal;
}

.qow-quick-order-btn:hover,
.qow-quick-order-btn:focus {
    background-color: rgb(45, 45, 45) !important;
    border-color: rgb(45, 45, 45) !important;
    color: #fff !important;
    outline: 2px solid rgba(24, 24, 24, 0.35);
    outline-offset: 2px;
}

.qow-quick-order-btn:active {
    transform: scale(.97);
}

/* ── Overlay ────────────────────────────────────────────────────────────── */

.qow-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .55);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    animation: qow-fade-in .18s ease;
}

.qow-overlay[hidden] {
    display: none;
}

@keyframes qow-fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}

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

.qow-modal {
    position: relative;
    background: #fff;
    border-radius: 12px;
    padding: 36px 40px 32px;
    width: 100%;
    max-width: 440px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .18);
    animation: qow-slide-up .22s ease;
}

@keyframes qow-slide-up {
    from { transform: translateY(20px); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}

/* Close button */
.qow-modal-close {
    position: absolute;
    top: 14px;
    right: 16px;
    background: transparent;
    border: none;
    font-size: 24px;
    line-height: 1;
    color: #888;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    transition: color .15s, background .15s;
}

.qow-modal-close:hover {
    color: #333;
    background: #f0f0f0;
}

/* Title */
.qow-modal h2 {
    margin: 0 0 6px;
    font-size: 1.35rem;
    color: #1a1a1a;
}

/* Product name subtitle */
.qow-product-name {
    margin: 0 0 24px;
    font-size: .92rem;
    color: #666;
    font-style: italic;
}

/* ── Form fields ────────────────────────────────────────────────────────── */

.qow-field {
    margin-bottom: 18px;
}

.qow-field label {
    display: block;
    margin-bottom: 6px;
    font-size: .9rem;
    font-weight: 600;
    color: #333;
}

.qow-field label span {
    color: #e02020;
}

.qow-field input[type="text"],
.qow-field input[type="tel"] {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid #d0d0d0;
    border-radius: 8px;
    font-size: 1rem;
    color: #1a1a1a;
    transition: border-color .18s, box-shadow .18s;
    box-sizing: border-box;
    background: #fafafa;
}

.qow-field input:focus {
    outline: none;
    border-color: #ff6b35;
    box-shadow: 0 0 0 3px rgba(255, 107, 53, .15);
    background: #fff;
}

.qow-field input.qow-input-error {
    border-color: #e02020;
}

.qow-error {
    display: block;
    margin-top: 5px;
    font-size: .82rem;
    color: #e02020;
    min-height: 1.2em;
}

/* ── Submit button ──────────────────────────────────────────────────────── */

.qow-actions {
    margin-top: 8px;
}

#qow-submit {
    width: 100%;
    padding: 13px;
    font-size: 1rem;
    font-weight: 700;
    background: rgb(24, 24, 24) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 8px !important;
    cursor: pointer;
    transition: background .2s, transform .1s;
    letter-spacing: .02em;
}

#qow-submit:hover {
    background: rgb(45, 45, 45) !important;
}

#qow-submit:active {
    transform: scale(.98);
}

#qow-submit:disabled {
    opacity: .65;
    cursor: not-allowed;
    transform: none;
}

/* ── Success / error message ────────────────────────────────────────────── */

.qow-message {
    margin-top: 18px;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: .92rem;
    line-height: 1.5;
}

.qow-message[hidden] {
    display: none;
}

.qow-message.qow-success {
    background: #eafaf1;
    border: 1px solid #4caf86;
    color: #1a6640;
}

.qow-message.qow-error-msg {
    background: #fdecea;
    border: 1px solid #e57373;
    color: #b71c1c;
}

/* ── Mobile tweaks ──────────────────────────────────────────────────────── */

@media (max-width: 480px) {
    .qow-modal {
        padding: 28px 20px 24px;
        border-radius: 16px;
    }
}
