/* Quote Button Styles */


.raq-my-quotes-menu-item a::before {
    content: "\f498"; /* Use the 'list-view' dashicon */
    font-family: dashicons;
    margin-right: 8px;
    vertical-align: middle;
}

.raq-add-to-quote-wrapper {
    margin-top: 10px;
}

.raq-add-to-quote-btn {
    background-color: #0073aa;
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 3px;
    font-size: 14px;
}

.raq-add-to-quote-btn:hover {
    background-color: #005a87;
}

/* Quote Cart Styles */
.raq-quote-cart {
    max-width: 1000px;
    margin: 0 auto;
    background-color: #fff;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.raq-quote-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    background-color: #fff;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.raq-quote-table th,
.raq-quote-table td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: left;
}

.raq-quote-table th {
    background-color: #f8f8f8;
    color: #333;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.5px;
}

.raq-quote-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.raq-quantity-input {
    width: 60px;
    padding: 5px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.raq-remove-item {
    background-color: #dc3232;
    color: white;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
    border-radius: 3px;
}

.raq-notes-section {
    margin: 20px 0;
}

.raq-notes-section label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.raq-notes-section textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 3px;
    background-color: #fff;
}

.raq-actions {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
    margin-top: 20px !important;
    flex-direction: row !important;
}

.raq-email-section {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    margin: 10px 0 !important;
    flex-direction: row !important;
}

.raq-email-section input {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 3px;
    background-color: #fff;
}

/* Save as Quote Button */
.raq-save-cart-as-quote {
    margin-top: 10px;
}

.raq-save-cart-quote-btn {
    background-color: #0073aa !important;
    color: white !important;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 3px;
    width: 100% !important;
    margin-bottom: 10px !important;
}

.raq-save-cart-quote-btn:hover {
    background-color: #005a87 !important;
}

/* My Quotes Styles */
.raq-my-quotes {
    margin: 20px 0;
    background-color: #fff;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.raq-quotes-table {
    width: 100%;
    border-collapse: collapse;
    background-color: #fff;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.raq-quotes-table th,
.raq-quotes-table td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: left;
}

.raq-quotes-table th {
    background-color: #f8f8f8;
    color: #333;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.5px;
}

.raq-quotes-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

/* Button improvements */
.button, 
.raq-add-to-quote-btn, 
.raq-remove-item, 
.raq-save-cart-quote-btn,
#raq-generate-pdf,
#raq-email-pdf,
#raq-email-quote,
#raq-submit-quote,
.raq-download-pdf,
.raq-proceed-checkout,
#raq-proceed-checkout,
.raq-email-quote,
.raq-delete-quote {
    display: inline-block !important;
    padding: 8px 16px !important;
    border-radius: 4px !important;
    font-weight: 600 !important;
    text-align: center !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
    cursor: pointer !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1) !important;
    margin: 5px !important;
    border: none !important;
    color: #fff !important;
    background-color: #0073aa !important;
}

.button:hover, 
.raq-add-to-quote-btn:hover, 
.raq-save-cart-quote-btn:hover,
#raq-generate-pdf:hover,
#raq-email-pdf:hover,
#raq-email-quote:hover,
#raq-submit-quote:hover,
.raq-download-pdf:hover,
.raq-proceed-checkout:hover,
#raq-proceed-checkout:hover,
.raq-email-quote:hover,
.raq-delete-quote:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1) !important;
    background-color: #005a87 !important;
}

.raq-remove-item {
    background-color: #dc3232 !important;
    color: white !important;
}

.raq-remove-item:hover {
    background-color: #b32121 !important;
}

.button.button-primary,
#raq-submit-quote,
.raq-proceed-checkout,
#raq-proceed-checkout {
    background-color: #0073aa !important;
    color: white !important;
}

.button.button-primary:hover,
#raq-submit-quote:hover,
.raq-proceed-checkout:hover,
#raq-proceed-checkout:hover {
    background-color: #005a87 !important;
}

.raq-delete-quote {
    background-color: #dc3232 !important;
}

.raq-delete-quote:hover {
    background-color: #b32121 !important;
}

/* Make sure inputs have proper styling */
.raq-email-section input[type="email"] {
    padding: 8px 12px !important;
    border: 1px solid #ddd !important;
    border-radius: 4px !important;
    width: 250px !important;
    margin-right: 5px !important;
    background-color: #fff !important;
}

/* Fix for the email section layout */
.raq-email-section {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    margin: 10px 0 !important;
}

/* Error message styling */
.raq-message-container {
    padding: 10px !important;
    border-radius: 4px !important;
    margin-top: 10px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.raq-message-container.error {
    background-color: #f8d7da !important;
    border: 1px solid #f5c6cb !important;
    color: #721c24 !important;
}

.raq-message-container.success {
    background-color: #d4edda !important;
    border: 1px solid #c3e6cb !important;
    color: #155724 !important;
}

/* Modal Styles */
.raq-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.5);
}

.raq-modal-content {
    background-color: #fff;
    margin: 10% auto;
    padding: 20px;
    border-radius: 5px;
    width: 80%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.raq-modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
}

.raq-modal-actions {
    margin-top: 20px;
}

.raq-modal-actions .button {
    margin-bottom: 10px;
    display: inline-block;
}

.raq-email-message {
    display: block;
    margin-top: 5px;
    font-size: 14px;
}

/* Text color fixes */
.raq-quote-cart,
.raq-my-quotes,
.raq-quote-table,
.raq-quotes-table,
.raq-quote-cart h2,
.raq-my-quotes h3,
.raq-notes-section label,
.raq-quote-table th,
.raq-quote-table td,
.raq-quotes-table th,
.raq-quotes-table td,
.raq-quote-table a,
.raq-quotes-table a {
    color: #333 !important;
}

.raq-quote-table a:hover,
.raq-quotes-table a:hover {
    color: #0073aa !important;
}

/* Admin bulk actions */
.raq-bulk-actions {
    margin-bottom: 15px;
    padding: 10px;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.raq-bulk-email {
    display: flex;
    align-items: center;
    gap: 10px;
}

.raq-bulk-email input[type="email"] {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 3px;
    width: 250px;
}

.raq-bulk-message {
    margin-left: 10px;
}

/* My Quotes tab icon */
.woocommerce-MyAccount-navigation-link--my-quotes a:before {
    content: "\f15b"; /* List icon from Font Awesome */
    font-family: dashicons;
    margin-right: 5px;
    opacity: 0.8;
}

/* Responsive styles for tables */
@media (max-width: 768px) {
    .raq-actions,
    .raq-email-section {
        flex-direction: column !important;
        align-items: stretch !important;
    }
    
    .raq-quote-table,
    .raq-quotes-table {
        font-size: 14px;
    }
    
    /* Make tables responsive */
    .raq-quote-table,
    .raq-quotes-table {
        display: block;
        width: 100%;
        overflow-x: auto;
    }
    
    .raq-quote-table th,
    .raq-quote-table td,
    .raq-quotes-table th,
    .raq-quotes-table td {
        white-space: nowrap;
        min-width: 100px;
    }
    
    .raq-email-section input[type="email"] {
        width: 100% !important;
        margin-bottom: 10px !important;
    }
    
    /* Stack buttons vertically on mobile */
    .raq-actions button,
    .raq-actions a,
    .raq-email-section button {
        width: 100% !important;
        margin: 5px 0 !important;
    }
}
