/* ===== Quick Order Popup ===== */

.djivani-qo-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.djivani-qo-overlay.djivani-qo-active {
    opacity: 1;
    visibility: visible;
}

.djivani-qo-modal {
    background: #fff;
    border-radius: 20px;
    width: 100%;
    max-width: 440px;
    padding: 32px;
    position: relative;
    box-shadow: 0 25px 80px rgba(0,0,0,0.25);
    transform: translateY(30px) scale(0.95);
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.djivani-qo-overlay.djivani-qo-active .djivani-qo-modal {
    transform: translateY(0) scale(1);
}

.djivani-qo-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border: none;
    background: #f5f5f5;
    border-radius: 50%;
    font-size: 22px;
    line-height: 1;
    color: #666;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    padding: 0;
    z-index: 2;
}
.djivani-qo-close:hover {
    background: #e0e0e0;
    color: #000;
    transform: rotate(90deg);
}

/* Header */
.djivani-qo-header {
    display: flex;
    gap: 16px;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.djivani-qo-product-image {
    width: 72px;
    height: 72px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
    background: #f8f8f8;
}
.djivani-qo-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.djivani-qo-product-info {
    min-width: 0;
}
.djivani-qo-product-name {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 6px 0;
    line-height: 1.3;
    font-family: 'Gilroy', sans-serif;
}
.djivani-qo-product-price {
    font-size: 18px;
    font-weight: 700;
    color: #2d7d46;
    font-family: 'Gilroy', sans-serif;
}
.djivani-qo-product-price del {
    color: #999;
    font-size: 14px;
    font-weight: 400;
    margin-right: 8px;
}
.djivani-qo-product-price ins {
    text-decoration: none;
}

/* Form */
.djivani-qo-field {
    margin-bottom: 16px;
}
.djivani-qo-field label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #555;
    margin-bottom: 6px;
    font-family: 'Gilroy', sans-serif;
}
.djivani-qo-field input {
    width: 100%;
    height: 50px;
    padding: 0 16px;
    border: 2px solid #e8e8e8;
    border-radius: 12px;
    font-size: 15px;
    font-family: 'Gilroy', sans-serif;
    color: #1a1a1a;
    background: #fafafa;
    transition: all 0.2s ease;
    box-sizing: border-box;
}
.djivani-qo-field input:focus {
    outline: none;
    border-color: #2d7d46;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(45, 125, 70, 0.1);
}
.djivani-qo-field input::placeholder {
    color: #aaa;
}

/* Submit button - matches wc-buy-now-btn style */
.djivani-qo-submit {
    width: 100%;
    height: 52px;
    background: #E2E2E2 !important;
    color: #000 !important;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    font-family: 'Gilroy', sans-serif;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 8px;
    text-decoration: none !important;
    box-shadow: none !important;
    transform: none !important;
}
.djivani-qo-submit:hover {
    background: #d0d0d0 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1) !important;
}
.djivani-qo-submit:active {
    transform: translateY(0) !important;
}
.djivani-qo-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.djivani-qo-submit-loader {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* Consent */
.djivani-qo-consent {
    font-size: 11px;
    color: #999;
    text-align: center;
    margin-top: 12px;
    line-height: 1.4;
    font-family: 'Gilroy', sans-serif;
}
.djivani-qo-consent a {
    color: #2d7d46;
    text-decoration: underline;
}

/* Success */
.djivani-qo-success {
    text-align: center;
    padding: 20px 0;
}
.djivani-qo-success-icon {
    margin-bottom: 16px;
}
.djivani-qo-success h4 {
    font-size: 20px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 8px 0;
    font-family: 'Gilroy', sans-serif;
}
.djivani-qo-success p {
    font-size: 14px;
    color: #666;
    margin: 0;
    font-family: 'Gilroy', sans-serif;
}

/* Prevent body scroll when popup open */
body.djivani-qo-open {
    overflow: hidden !important;
    padding-right: var(--scrollbar-width, 0px);
}

/* Mobile */
@media (max-width: 480px) {
    .djivani-qo-modal {
        padding: 24px 20px;
        border-radius: 16px 16px 0 0;
        max-width: 100%;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        transform: translateY(100%);
    }
    .djivani-qo-overlay.djivani-qo-active .djivani-qo-modal {
        transform: translateY(0);
    }
    .djivani-qo-overlay {
        align-items: flex-end;
        padding: 0;
        background: rgba(0,0,0,0.4);
    }
}
