/* WC Price Inquiry - Improved Frontend Styles */

/* ===== INQUIRY CART STYLES ===== */

.wc-inquiry-cart-improved {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Cart Header */
.inquiry-cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f1f1f1;
}

.cart-title {
    margin: 0;
    color: #333;
    font-size: 28px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.cart-title .dashicons {
    color: #2271b1;
    font-size: 32px;
}

.cart-stats {
    color: #666;
    font-size: 16px;
}

.items-count {
    background: #f8f9fa;
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid #dee2e6;
}

/* Login Required */
.wc-inquiry-cart-login-required {
    text-align: center;
    padding: 60px 20px;
}

.login-message {
    background: #fff;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    max-width: 400px;
    margin: 0 auto;
}

.login-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.login-message h3 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 24px;
}

.login-message p {
    margin: 0 0 25px 0;
    color: #666;
    font-size: 16px;
}

.login-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}

/* Empty Cart */
.inquiry-cart-empty {
    text-align: center;
    padding: 60px 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.empty-icon {
    font-size: 64px;
    margin-bottom: 20px;
    opacity: 0.6;
}

.inquiry-cart-empty h3 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 24px;
}

.inquiry-cart-empty p {
    margin: 0 0 25px 0;
    color: #666;
    font-size: 16px;
}

/* Cart Content */
.inquiry-cart-content {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 30px;
    margin-bottom: 30px;
}

.cart-items-section h3 {
    margin: 0 0 20px 0;
    color: #333;
    font-size: 20px;
    border-bottom: 1px solid #e1e5e9;
    padding-bottom: 10px;
}

/* Cart Items */
.cart-items-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.cart-item {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border: 1px solid #e1e5e9;
    display: grid;
    grid-template-columns: 80px 1fr auto auto;
    gap: 20px;
    align-items: center;
    transition: all 0.3s ease;
}

.cart-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.item-image {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
}

.item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.no-image {
    font-size: 32px;
    color: #999;
}

.item-details {
    flex: 1;
}

.item-name a {
    font-size: 16px;
    font-weight: 600;
    color: #2271b1;
    text-decoration: none;
    margin-bottom: 8px;
    display: block;
}

.item-name a:hover {
    color: #1e5a8a;
}

.item-variation {
    margin-bottom: 5px;
}

.variation-item {
    display: inline-block;
    background: #e3f2fd;
    color: #1976d2;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    margin-right: 5px;
    margin-bottom: 3px;
}

.item-sku {
    color: #666;
    font-size: 13px;
    font-family: monospace;
}

/* Quantity Controls */
.item-quantity {
    text-align: center;
}

.item-quantity label {
    display: block;
    font-size: 12px;
    color: #666;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.quantity-controls {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 6px;
    overflow: hidden;
}

.qty-btn {
    background: #f8f9fa;
    border: none;
    width: 32px;
    height: 32px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    transition: all 0.3s ease;
}

.qty-btn:hover {
    background: #e9ecef;
}

.quantity-input {
    border: none;
    width: 50px;
    height: 32px;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    background: #fff;
}

.quantity-input:focus {
    outline: none;
    background: #f0f8ff;
}

/* Item Actions */
.item-actions {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.remove-item {
    background: #dc3545;
    color: #fff;
    border: 1px solid #dc3545;
    border-radius: 6px;
    padding: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.remove-item:hover {
    background: #c82333;
    border-color: #c82333;
    transform: scale(1.05);
}

.remove-item .dashicons {
    font-size: 16px;
}

/* Cart Summary */
.cart-actions-section {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border: 1px solid #e1e5e9;
    height: fit-content;
    position: sticky;
    top: 20px;
}

.cart-summary h4 {
    margin: 0 0 20px 0;
    color: #333;
    font-size: 18px;
    border-bottom: 1px solid #e1e5e9;
    padding-bottom: 10px;
}

.summary-details {
    margin-bottom: 25px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f1f1f1;
}

.summary-row:last-child {
    border-bottom: none;
    font-weight: 600;
    color: #2271b1;
}

/* Cart Actions */
.cart-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fff;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.button:hover {
    background: #f8f9fa;
    border-color: #bbb;
    transform: translateY(-1px);
}

.button.button-primary {
    background: #2271b1;
    color: #fff;
    border-color: #2271b1;
}

.button.button-primary:hover {
    background: #1e5a8a;
    border-color: #1e5a8a;
}

.button.button-secondary {
    background: #6c757d;
    color: #fff;
    border-color: #6c757d;
}

.button.button-secondary:hover {
    background: #5a6268;
    border-color: #5a6268;
}

.button .dashicons {
    font-size: 16px;
}

/* Modal */
.inquiry-form-modal {
    position: fixed;
    z-index: 100000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background-color: #fff;
    margin: 5% auto;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    animation: slideIn 0.3s ease;
}

.modal-header {
    background: #f8f9fa;
    padding: 20px 25px;
    border-bottom: 1px solid #e1e5e9;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    color: #333;
    font-size: 18px;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

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

.modal-body {
    padding: 25px;
    max-height: 60vh;
    overflow-y: auto;
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    display: block;
}

.form-group label:after {
    content: " *";
    color: #dc3545;
    font-weight: bold;
}

.form-group label[for="inquiry-message"]:after,
.form-group label[for="inquiry-phone"]:after {
    content: "";
}

/* Inquiry Details */
.inquiry-warehouse,
.inquiry-message {
    background: #f8f9fa;
    border-left: 4px solid #2271b1;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 0 8px 8px 0;
}

.inquiry-warehouse h4,
.inquiry-message h4 {
    margin: 0 0 10px 0;
    color: #2271b1;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.inquiry-warehouse p,
.inquiry-message p {
    margin: 0;
    color: #333;
    line-height: 1.5;
}

/* PDF Buttons */
.generate-pdf,
.download-pdf {
    background: #dc3545 !important;
    border-color: #dc3545 !important;
    color: white !important;
    margin-left: 8px;
}

.generate-pdf:hover,
.download-pdf:hover {
    background: #c82333 !important;
    border-color: #bd2130 !important;
}

.generate-pdf .dashicons,
.download-pdf .dashicons {
    color: white;
}

.generate-pdf:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.pdf-pending {
    color: #666;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-left: 8px;
}

.pdf-pending .dashicons {
    font-size: 16px;
}

/* Accept Quote Button */
.accept-quote {
    background: #28a745 !important;
    border-color: #28a745 !important;
    color: white !important;
    margin-left: 8px;
}

.accept-quote:hover {
    background: #218838 !important;
    border-color: #1e7e34 !important;
}

.accept-quote:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.accept-quote .dashicons {
    color: white;
}

.accept-quote .spin {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Modal Improvements */
.inquiry-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #ddd;
    background: #f8f9fa;
}

.inquiry-modal-header h3 {
    margin: 0;
    color: #2271b1;
}

.modal-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-pdf-btn {
    background: #dc3545 !important;
    border-color: #dc3545 !important;
    color: white !important;
    padding: 6px 12px;
    font-size: 13px;
}

.modal-pdf-btn:hover {
    background: #c82333 !important;
    border-color: #bd2130 !important;
}

.modal-pdf-btn.disabled-pdf-modal {
    background: #6c757d !important;
    border-color: #6c757d !important;
    cursor: not-allowed;
    opacity: 0.6;
}

.modal-pdf-btn.disabled-pdf-modal:hover {
    background: #6c757d !important;
    border-color: #6c757d !important;
}

.inquiry-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.inquiry-modal-close:hover {
    color: #333;
}

/* Modal Content Styling */
.inquiry-modal-details {
    padding: 20px;
}

.inquiry-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #eee;
}

.inquiry-info h4 {
    margin: 0 0 5px 0;
    color: #2271b1;
    font-size: 18px;
}

.inquiry-date {
    color: #666;
    font-size: 14px;
    margin: 0;
}

.customer-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.detail-section {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #2271b1;
}

.detail-section h5 {
    margin: 0 0 10px 0;
    color: #2271b1;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-section p {
    margin: 5px 0;
    line-height: 1.5;
}

.items-section {
    margin-bottom: 25px;
}

.items-section h5 {
    margin: 0 0 15px 0;
    color: #2271b1;
    font-size: 16px;
    border-bottom: 2px solid #2271b1;
    padding-bottom: 8px;
}

.items-table-wrapper {
    overflow-x: auto;
    border: 1px solid #ddd;
    border-radius: 8px;
}

.inquiry-items-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.inquiry-items-table th {
    background: #2271b1;
    color: white;
    padding: 12px 8px;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid #1a5a8a;
}

.inquiry-items-table td {
    padding: 10px 8px;
    border-bottom: 1px solid #eee;
    vertical-align: top;
}

.inquiry-items-table tbody tr:hover {
    background: #f8f9fa;
}

.inquiry-items-table .seller-note {
    color: #666;
    font-style: italic;
}

.inquiry-items-table .pending-quote {
    color: #f39c12;
    font-style: italic;
}

.inquiry-items-table .price {
    color: #27ae60;
    font-weight: 600;
}

.inquiry-items-table .total-row {
    background: #f8f9fa;
    border-top: 2px solid #2271b1;
}

.inquiry-items-table .total-row td {
    padding: 12px 8px;
    font-weight: 600;
}

.admin-notes-section {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 15px;
    margin-top: 20px;
}

.admin-notes-section h5 {
    margin: 0 0 10px 0;
    color: #856404;
    font-size: 14px;
}

.admin-notes {
    color: #856404;
    line-height: 1.5;
}

/* Spinning animation for loading */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.spin {
    animation: spin 1s linear infinite;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .inquiry-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .customer-details {
        grid-template-columns: 1fr;
    }
    
    .modal-actions {
        flex-direction: column;
        gap: 5px;
    }
    
    .inquiry-modal-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2271b1;
    box-shadow: 0 0 0 2px rgba(34, 113, 177, 0.1);
}

.form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #e1e5e9;
}

/* Responsive Design */
@media (max-width: 768px) {
    .wc-inquiry-cart-improved {
        padding: 15px;
    }
    
    .cart-title {
        font-size: 24px;
    }
    
    .inquiry-cart-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .cart-item {
        grid-template-columns: 60px 1fr;
        gap: 15px;
        padding: 15px;
    }
    
    .item-image {
        width: 60px;
        height: 60px;
    }
    
    .item-quantity,
    .item-actions {
        grid-column: 1 / -1;
        margin-top: 15px;
        padding-top: 15px;
        border-top: 1px solid #e1e5e9;
    }
    
    .item-quantity {
        display: flex;
        align-items: center;
        gap: 15px;
    }
    
    .item-quantity label {
        margin-bottom: 0;
        white-space: nowrap;
    }
    
    .cart-actions {
        flex-direction: column;
    }
    
    .modal-content {
        width: 95%;
        margin: 2% auto;
    }
    
    .form-actions {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .cart-title {
        font-size: 20px;
    }
    
    .cart-item {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .item-image {
        margin: 0 auto;
    }
    
    .item-quantity {
        justify-content: center;
    }
}

/* PDF Export Button Styles */
#export-inquiry-pdf {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: #dc3545;
    color: #fff;
    border: 1px solid #dc3545;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

#export-inquiry-pdf:hover {
    background: #c82333;
    border-color: #c82333;
    color: #fff;
    transform: translateY(-1px);
}

#export-inquiry-pdf:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.pdf-icon {
    font-size: 16px;
}

.loading-spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Floating Button Styles for Shop */
.wc-inquiry-floating-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    background: rgba(0, 115, 170, 0.9);
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(4px);
}

.wc-inquiry-floating-btn:hover {
    background: rgba(0, 90, 135, 0.95);
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.wc-inquiry-floating-btn.added {
    background: rgba(70, 180, 80, 0.9);
    cursor: default;
}

.wc-inquiry-floating-btn.added:hover {
    background: rgba(70, 180, 80, 0.9);
    transform: scale(1.05);
}

.wc-inquiry-floating-btn .inquiry-icon {
    font-size: 16px;
    line-height: 1;
}

/* Product image container for floating button */
.woocommerce ul.products li.product {
    position: relative;
}

.woocommerce ul.products li.product .woocommerce-loop-product__link {
    position: relative;
    display: block;
}

/* Tooltip for floating button */
.wc-inquiry-floating-btn::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: -35px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 5px 8px;
    border-radius: 4px;
    font-size: 11px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.wc-inquiry-floating-btn:hover::after {
    opacity: 1;
    visibility: visible;
}

/* Mobile responsive for floating buttons */
@media (max-width: 768px) {
    .wc-inquiry-floating-btn {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .wc-inquiry-floating-btn {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
}

.wc-price-inquiry-frontend {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Header */
.inquiry-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f1f1f1;
}

.inquiry-title {
    margin: 0;
    color: #333;
    font-size: 28px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.inquiry-title .dashicons {
    color: #2271b1;
    font-size: 32px;
}

.inquiry-stats {
    color: #666;
    font-size: 16px;
}

.total-count {
    background: #f8f9fa;
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid #dee2e6;
}

/* Login Required */
.wc-price-inquiry-login-required {
    text-align: center;
    padding: 60px 20px;
}

.login-message {
    background: #fff;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    max-width: 400px;
    margin: 0 auto;
}

.login-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.login-message h3 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 24px;
}

.login-message p {
    margin: 0 0 25px 0;
    color: #666;
    font-size: 16px;
}

/* Empty State */
.inquiry-empty-state {
    text-align: center;
    padding: 60px 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.empty-icon {
    font-size: 64px;
    margin-bottom: 20px;
    opacity: 0.6;
}

.inquiry-empty-state h3 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 24px;
}

.inquiry-empty-state p {
    margin: 0 0 25px 0;
    color: #666;
    font-size: 16px;
}

/* Inquiries List */
.inquiries-list {
    display: grid;
    gap: 20px;
}

/* Inquiry Card */
.inquiry-card-frontend {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #e1e5e9;
}

.inquiry-card-frontend:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.inquiry-card-header {
    background: #f8f9fa;
    padding: 20px;
    border-bottom: 1px solid #e1e5e9;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.inquiry-id strong {
    font-size: 18px;
    color: #2271b1;
    margin-right: 15px;
}

.inquiry-date {
    color: #666;
    font-size: 14px;
}

.inquiry-status {
    margin-left: auto;
}

.status-badge {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge.pending {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.status-badge.quoted {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

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

.status-badge.cancelled {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Inquiry Card Body */
.inquiry-card-body {
    padding: 20px;
}

.inquiry-summary {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.summary-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.summary-label {
    font-size: 12px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
}

.summary-value {
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.summary-value.price {
    color: #2271b1;
}

/* Products Preview */
.inquiry-products-preview h4 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 16px;
    border-bottom: 1px solid #e1e5e9;
    padding-bottom: 10px;
}

.products-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.product-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e1e5e9;
}

.product-info {
    flex: 1;
}

.product-name {
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.product-qty {
    color: #666;
    font-size: 14px;
}

.product-price {
    font-weight: 600;
    color: #2271b1;
    font-size: 16px;
}

.product-status.pending {
    color: #856404;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.products-more {
    text-align: center;
    color: #666;
    font-style: italic;
    font-size: 14px;
    padding: 10px;
}

/* Inquiry Notes */
.inquiry-notes {
    margin-top: 20px;
    padding: 15px;
    background: #e3f2fd;
    border-radius: 8px;
    border-left: 4px solid #2196f3;
}

.inquiry-notes h4 {
    margin: 0 0 10px 0;
    color: #1976d2;
    font-size: 14px;
}

.inquiry-notes p {
    margin: 0;
    color: #333;
    font-size: 14px;
    line-height: 1.5;
}

/* Inquiry Card Footer */
.inquiry-card-footer {
    padding: 20px;
    border-top: 1px solid #e1e5e9;
    background: #f8f9fa;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fff;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.button:hover {
    background: #f8f9fa;
    border-color: #bbb;
    transform: translateY(-1px);
}

.button.button-primary {
    background: #2271b1;
    color: #fff;
    border-color: #2271b1;
}

.button.button-primary:hover {
    background: #1e5a8a;
    border-color: #1e5a8a;
}

.button .dashicons {
    font-size: 16px;
}

/* Pagination */
.inquiry-pagination {
    margin-top: 30px;
    text-align: center;
}

.inquiry-pagination .page-numbers {
    display: inline-block;
    padding: 10px 15px;
    margin: 0 3px;
    text-decoration: none;
    border: 1px solid #ddd;
    border-radius: 6px;
    color: #2271b1;
    transition: all 0.3s ease;
}

.inquiry-pagination .page-numbers:hover,
.inquiry-pagination .page-numbers.current {
    background: #2271b1;
    color: #fff;
    border-color: #2271b1;
}

/* Modal */
.inquiry-modal-frontend {
    display: none;
    position: fixed;
    z-index: 100000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6);
    animation: fadeIn 0.3s ease;
}

.inquiry-modal-content {
    background-color: #fff;
    margin: 2% auto;
    border-radius: 12px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    animation: slideIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

.inquiry-modal-header {
    background: #f8f9fa;
    padding: 20px 25px;
    border-bottom: 1px solid #e1e5e9;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.inquiry-modal-header h3 {
    margin: 0;
    color: #333;
    font-size: 20px;
}

.inquiry-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.inquiry-modal-close:hover {
    background: #e1e5e9;
    color: #333;
}

.inquiry-modal-body {
    padding: 25px;
    max-height: 70vh;
    overflow-y: auto;
}

/* Modal Content */
.inquiry-details-frontend {
    max-width: 100%;
}

.inquiry-header-modal {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f1f1f1;
}

.inquiry-id-status {
    display: flex;
    align-items: center;
    gap: 15px;
}

.inquiry-id-status h3 {
    margin: 0;
    color: #2271b1;
    font-size: 24px;
}

.inquiry-dates {
    text-align: right;
    font-size: 14px;
    color: #666;
}

.date-item {
    margin-bottom: 5px;
}

.date-item strong {
    color: #333;
}

/* Products Section */
.products-section-frontend h4 {
    margin: 0 0 20px 0;
    color: #333;
    font-size: 18px;
    border-bottom: 1px solid #e1e5e9;
    padding-bottom: 10px;
}

.products-table-frontend {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.product-row-frontend {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    border: 1px solid #e1e5e9;
}

.product-row-frontend .product-info {
    margin-bottom: 15px;
}

.product-row-frontend .product-name {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.product-row-frontend .product-sku {
    font-size: 13px;
    color: #666;
    font-family: monospace;
    margin-bottom: 3px;
}

.product-row-frontend .product-variation {
    font-size: 13px;
    color: #666;
    font-style: italic;
}

.product-quantity {
    margin-bottom: 15px;
    font-size: 14px;
}

.product-quantity strong {
    color: #333;
}

.product-pricing {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 15px;
}

.quoted-price,
.min-quantity,
.total-price {
    font-size: 14px;
}

.quoted-price strong,
.min-quantity strong,
.total-price strong {
    color: #333;
    display: block;
    margin-bottom: 3px;
}

.total-price {
    font-size: 16px;
    font-weight: 600;
    color: #2271b1;
}

.pending-quote {
    text-align: center;
    padding: 15px;
}

.status-pending {
    background: #fff3cd;
    color: #856404;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.seller-notes {
    margin-top: 15px;
    padding: 15px;
    background: #e3f2fd;
    border-radius: 6px;
    border-left: 4px solid #2196f3;
}

.seller-notes strong {
    color: #1976d2;
    font-size: 14px;
    display: block;
    margin-bottom: 8px;
}

.seller-notes p {
    margin: 0;
    color: #333;
    font-size: 14px;
    line-height: 1.5;
}

/* Admin Notes Section */
.admin-notes-section {
    margin-top: 25px;
    padding: 20px;
    background: #f0f8ff;
    border-radius: 8px;
    border: 1px solid #b3d9ff;
}

.admin-notes-section h4 {
    margin: 0 0 15px 0;
    color: #0066cc;
    font-size: 16px;
}

.notes-content {
    color: #333;
    font-size: 14px;
    line-height: 1.6;
}

/* Loading Spinner */
.loading-spinner {
    text-align: center;
    padding: 40px;
}

.spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #2271b1;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .wc-price-inquiry-frontend {
        padding: 15px;
    }
    
    .inquiry-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .inquiry-title {
        font-size: 24px;
    }
    
    .inquiry-card-header {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .inquiry-summary {
        flex-direction: column;
        gap: 15px;
    }
    
    .summary-item {
        flex-direction: row;
        justify-content: space-between;
    }
    
    .inquiry-card-footer {
        flex-direction: column;
        gap: 10px;
    }
    
    .button {
        justify-content: center;
        width: 100%;
    }
    
    .inquiry-modal-content {
        width: 95%;
        margin: 5% auto;
        max-height: 90vh;
    }
    
    .inquiry-header-modal {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .inquiry-dates {
        text-align: center;
    }
    
    .product-pricing {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .inquiry-modal-content {
        width: 98%;
        margin: 1% auto;
    }
    
    .inquiry-modal-header,
    .inquiry-modal-body {
        padding: 15px;
    }
    
    .inquiry-title {
        font-size: 20px;
    }
    
    .inquiry-id-status h3 {
        font-size: 20px;
    }
    
    .product-row-frontend {
        padding: 15px;
    }
}

/* ===== QUANTITY CONTROLS & CART ACTIONS ===== */

/* Update Cart Button */
.button-update {
    background: #17a2b8 !important;
    border-color: #17a2b8 !important;
    color: white !important;
    animation: pulse 2s infinite;
}

.button-update:hover {
    background: #138496 !important;
    border-color: #117a8b !important;
    color: white !important;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(23, 162, 184, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(23, 162, 184, 0); }
    100% { box-shadow: 0 0 0 0 rgba(23, 162, 184, 0); }
}

/* Cart Actions Layout */
.cart-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.cart-actions-left,
.cart-actions-right {
    display: flex;
    gap: 10px;
    align-items: center;
}

/* Quantity Controls */
.quantity-controls {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
    background: white;
}

.qty-btn {
    background: #f8f9fa;
    border: none;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.2s;
    color: #495057;
}

.qty-btn:hover {
    background: #e9ecef;
    color: #212529;
}

.qty-btn:active {
    background: #dee2e6;
}

.quantity-input {
    border: none;
    width: 60px;
    height: 32px;
    text-align: center;
    font-weight: bold;
    outline: none;
    -moz-appearance: textfield;
    background: white;
    color: #495057;
}

.quantity-input::-webkit-outer-spin-button,
.quantity-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.quantity-input.quantity-changed {
    background: #fff3cd !important;
    border-left: 3px solid #ffc107;
    border-right: 3px solid #ffc107;
}

/* Quantity Status Indicators */
.quantity-status {
    margin-top: 5px;
    text-align: center;
}

.quantity-status small {
    font-size: 11px;
    font-weight: bold;
}

.saving-indicator {
    color: #17a2b8;
}

.saved-indicator {
    color: #28a745;
}

.error-indicator {
    color: #dc3545;
}

/* Item Quantity Section */
.item-quantity {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.item-quantity label {
    font-size: 12px;
    color: #666;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .cart-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .cart-actions-left,
    .cart-actions-right {
        justify-content: center;
        width: 100%;
    }
    
    .quantity-controls {
        max-width: 120px;
        margin: 0 auto;
    }
    
    .item-quantity {
        align-items: center;
    }
}