/* Quick Order Modal */
.bqo-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bqo-modal-content {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    animation: bqoSlideIn 0.3s ease;
}

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

.bqo-close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 28px;
    font-weight: bold;
    color: #999;
    cursor: pointer;
    transition: color 0.2s;
    line-height: 1;
}

.bqo-close:hover,
.bqo-close:focus {
    color: #333;
}

.bqo-modal-content h2 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 24px;
    color: #333;
}

/* Form Styles */
#bqo-order-form {
    margin-bottom: 20px;
}

.bqo-selected-product {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.bqo-selected-product h3 {
    margin: 0;
    font-size: 18px;
    color: #333;
    font-weight: 600;
}

.bqo-variations {
    margin-bottom: 20px;
}

.bqo-variation-row {
    margin-bottom: 15px;
}

.bqo-variation-row label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #555;
}

.bqo-variation-row select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.bqo-quantity-row,
.bqo-phone-row {
    margin-bottom: 20px;
}

.bqo-quantity-row label,
.bqo-phone-row label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #555;
}

.bqo-quantity-input {
    width: 100px;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.bqo-phone-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.bqo-phone-hint {
    display: block;
    margin-top: 5px;
    color: #888;
    font-size: 12px;
}

.required {
    color: #e74c3c;
}

.bqo-form-actions {
    margin-top: 25px;
}

.bqo-submit-btn {
    width: 100%;
    padding: 12px 20px;
    background: #0073aa;
    border-color: #0073aa;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.bqo-submit-btn:hover:not(:disabled) {
    background: #005177;
    border-color: #005177;
}

.bqo-submit-btn:disabled {
    background: #ccc;
    border-color: #ccc;
    cursor: not-allowed;
}

/* Messages */
.bqo-message {
    padding: 20px;
    border-radius: 4px;
    margin-top: 15px;
    display: block;
}

.bqo-success {
    background: #d4edda;
    border: 1px solid #2ea12b;
    border-left: 5px solid #2ea12b;
    color: #155724;
}

.bqo-error {
    background: #f8d7da;
    border: 1px solid #e74c3c;
    border-left: 5px solid #e74c3c;
    color: #721c24;
}

/* Language Switcher */
.bqo-lang-switcher {
    margin-bottom: 20px;
}

.bqo-lang-switcher .button {
    margin-right: 5px;
}

/* Filter */
.bqo-filter {
    margin-bottom: 20px;
}

.bqo-filter .button {
    margin-right: 5px;
}

/* Status badges */
.bqo-status {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.bqo-status-new {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffc107;
}

.bqo-status-processed {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

/* Quick Order Button - Secondary button, smaller than Add to Cart */
.bqo-open-modal {
    width: 100%;
    display: block;
    background-color: transparent;
    border: 1px solid #556266;
    color: #556266;
    margin-top: 8px;
    margin-bottom: 5px;
    padding: 8px 15px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.3;
    text-align: center;
    border-radius: 3px;
    transition: all 0.2s;
    cursor: pointer;
    text-transform: uppercase;
}

.bqo-open-modal:hover,
.bqo-open-modal:focus {
    background: #f5f5f5;
    border-color: #3a4248;
    color: #3a4248;
    text-decoration: none;
}

.bqo-open-modal:active {
    transform: translateY(1px);
}

/* Modal open body class */
body.bqo-modal-open {
    overflow: hidden;
}

/* Responsive */
@media (max-width: 768px) {
    .bqo-modal-content {
        padding: 20px;
        margin: 10px;
    }

    .bqo-modal-content h2 {
        font-size: 20px;
    }

    .bqo-quantity-input {
        width: 100%;
    }
}
