/* Save Cart & Request Quote - Frontend Styles */

/* Cart Actions Container */
.scrq-cart-actions {
    margin: 20px 0;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.scrq-cart-actions button {
    flex: 1;
    min-width: 200px;
}

/* Hide checkout when quote products present */
.scrq-quote-notice {
    background-color: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 15px;
    margin: 15px 0;
    border-radius: 4px;
}

.scrq-quote-notice p {
    margin: 0;
    color: #856404;
}

.scrq-quote-notice strong {
    display: block;
    margin-bottom: 5px;
}

.scrq-save-cart-btn {
    background-color: #f0f0f0 !important;
    color: #333 !important;
    border: 1px solid #ddd !important;
}

.scrq-save-cart-btn:hover {
    background-color: #e0e0e0 !important;
}

.scrq-support-request-btn {
    background-color: #28a745 !important;
    color: #fff !important;
    border: none !important;
}

.scrq-support-request-btn:hover {
    background-color: #218838 !important;
}

.scrq-request-quote-btn {
    background-color: #0073aa !important;
    color: #fff !important;
    border: none !important;
}

.scrq-request-quote-btn:hover {
    background-color: #005a87 !important;
}

/* Modal Styles */
.scrq-modal {
    display: none;
    position: fixed;
    z-index: 999999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.6);
}

.scrq-modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 30px;
    border: 1px solid #888;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.scrq-close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    line-height: 20px;
    cursor: pointer;
    position: absolute;
    right: 15px;
    top: 15px;
}

.scrq-close:hover,
.scrq-close:focus {
    color: #000;
}

.scrq-modal-content h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 24px;
}

.scrq-modal-content p {
    margin-bottom: 20px;
    color: #666;
}

/* Form Styles */
.scrq-modal-content form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.scrq-modal-content input[type="email"],
.scrq-modal-content input[type="text"],
.scrq-modal-content input[type="tel"],
.scrq-modal-content textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
}

.scrq-modal-content textarea {
    resize: vertical;
    min-height: 100px;
}

.scrq-modal-content button[type="submit"] {
    padding: 12px 24px;
    background-color: #0073aa;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

.scrq-modal-content button[type="submit"]:hover {
    background-color: #005a87;
}

.scrq-modal-content button[type="submit"]:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

/* Message Styles */
.scrq-message {
    margin-top: 15px;
    padding: 12px;
    border-radius: 4px;
    display: none;
}

.scrq-message:not(:empty) {
    display: block;
}

.scrq-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.scrq-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Responsive */
@media (max-width: 768px) {
    .scrq-cart-actions {
        flex-direction: column;
    }
    
    .scrq-cart-actions button {
        width: 100%;
        min-width: auto;
    }
    
    .scrq-modal-content {
        margin: 10% auto;
        padding: 20px;
        width: 95%;
    }
}
