/* WooCommerce Quote Request Styles - Minimal & Chic */
.wc-quote-request-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: white !important;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    margin: 5px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.wc-quote-request-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%) !important;
    color: white !important;
}

.wc-quote-request-btn:disabled {
    background: #ccc !important;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.wc-quote-view-btn {
    background: linear-gradient(135deg, #10ac84 0%, #1dd1a1 100%) !important;
    color: white !important;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    margin: 5px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.wc-quote-view-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    background: linear-gradient(135deg, #0e9c7a 0%, #1ac191 100%) !important;
}

/* استایل‌های خاص برای دکمه‌های المنتور */
.elementor-widget-wc_quote_button .wc-quote-request-btn {
    background: var(--button-color, linear-gradient(135deg, #667eea 0%, #764ba2 100%)) !important;
    color: var(--text-color, white) !important;
    border: var(--button-border, none) !important;
    border-radius: var(--button-border-radius, 8px) !important;
    padding: var(--button-padding, 12px 24px) !important;
    font-family: var(--button-typography-font-family, inherit) !important;
    font-size: var(--button-typography-font-size, 14px) !important;
    font-weight: var(--button-typography-font-weight, 600) !important;
}

.elementor-widget-wc_quote_button .wc-quote-request-btn:hover {
    background: var(--button-hover-color, linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%)) !important;
    color: var(--text-hover-color, white) !important;
}

.wc-quote-count {
    background: #ff4757;
    color: white;
    border-radius: 50%;
    padding: 4px 8px;
    font-size: 12px;
    margin-left: 8px;
    vertical-align: top;
    min-width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

/* Toast Notification */
.wc-quote-toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: white;
    border-radius: 8px;
    padding: 16px 20px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    border-left: 4px solid #10ac84;
    z-index: 10001;
    max-width: 350px;
    transform: translateX(400px);
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    gap: 12px;
}

.wc-quote-toast.show {
    transform: translateX(0);
}

.wc-quote-toast-icon {
    width: 24px;
    height: 24px;
    background: #10ac84;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
}

.wc-quote-toast-content {
    flex: 1;
}

.wc-quote-toast-message {
    margin: 0;
    font-size: 14px;
    color: #2d3436;
    font-weight: 500;
}

.wc-quote-toast-close {
    background: none;
    border: none;
    color: #636e72;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: background 0.2s ease;
}

.wc-quote-toast-close:hover {
    background: #dfe6e9;
}

/* Quote Popup Modal - Minimal Design */
.wc-quote-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    z-index: 9998;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.wc-quote-popup-overlay.show {
    opacity: 1;
    display: block;
}

.wc-quote-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgb(255 255 255 / 20%);
    z-index: 9999;
    max-width: 90%;
    width: 473px;
    max-height: 90vh;
    overflow: scroll;
    display: none;
    opacity: 0;
    transition: all 0.3s ease;
}

.wc-quote-popup.show {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
    display: block;
}

.wc-quote-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    border-bottom: 1px solid #f1f2f6;
    background: linear-gradient(135deg, #464647 0%, #e5a93d3d 100%);
    color: white;
}

.wc-quote-popup-title {
    margin: 0;
    font-size: 20px;
    font-weight: 200;
    font-family: 'Plus Jakarta Sans';
    letter-spacing: 1px;
}

.wc-quote-popup-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: white;
    font-size: 18px;
    transition: background 0.2s ease;
}

.wc-quote-popup-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.wc-quote-popup-content {
    padding: 0;
    max-height: calc(90vh - 140px);
    overflow-y: auto;
}

.wc-quote-items {
    padding: 0;
}

.wc-quote-item {
    display: flex;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #f1f2f6;
    transition: background 0.2s ease;
}

.wc-quote-item:hover {
    background: #f8f9fa;
}

.wc-quote-item:last-child {
    border-bottom: none;
}

.wc-quote-item-image {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    margin-right: 16px;
    flex-shrink: 0;
}

.wc-quote-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wc-quote-item-info {
    flex: 1;
    min-width: 0;
}

.wc-quote-item-name {
    font-weight: 600;
    margin-bottom: 4px;
    color: #2d3436;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wc-quote-item-price {
    color: #636e72;
    font-size: 14px;
}

.wc-quote-item-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: 16px;
}

/* استایل جدید برای فیلد کوانتیتی ساده */
.wc-quote-quantity-input {
    width: 70px;
    height: 36px;
    border: 1px solid #ddd;
    border-radius: 6px;
    text-align: center;
    background: white;
    font-size: 14px;
    padding: 0 8px;
}

.wc-quote-quantity-input:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.1);
}

.wc-quote-remove-btn {
    background: none;
    border: none;
    color: #e74c3c;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: background 0.2s ease;
}

.wc-quote-remove-btn:hover {
    background: #ffeaea;
}

.wc-quote-totals {
    background: #f8f9fa;
    padding: 20px 24px;
    border-top: 1px solid #f1f2f6;
}

.wc-quote-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.wc-quote-total-row:last-child {
    margin-bottom: 0;
    font-size: 18px;
    font-family: 'Plus Jakarta Sans';
    font-weight: 400;
    color: #2d3436;
    background: linear-gradient(45deg, #e3d0bf, transparent);
    padding-top: 8px;
    border-top: 1px solid #e9ecef;
    border-radius: 5px;
    padding: 5px;
}

.wc-quote-form {
    padding: 24px;
    background: #f8f9fa;
}

.wc-quote-form-group {
    margin-bottom: 16px;
}

.wc-quote-form-label {
    display: block;
    margin-bottom: 6px;
    font-weight: 400;
    color: #2d3436;
    font-size: 12px;
    font-family: 'Plus Jakarta Sans';
    letter-spacing: 1px;
}

.wc-quote-form-input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.2s ease;
    background: white;
}

.wc-quote-form-input:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.wc-quote-form-textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    min-height: 100px;
    resize: vertical;
    transition: border-color 0.2s ease;
    background: white;
}

.wc-quote-form-textarea:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.wc-quote-submit-btn {
background: linear-gradient(135deg, #ffffff 0%, #c6c6c6 100%);
    color: #000000 !important;
    border: 1px solid black !important;
    padding: 14px 24px !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    font-size: 16px !important;
    font-weight: 400 !important;
    letter-spacing: 1px;
    width: 100% !important;
    transition: all 0.3s 
ease !important;
    box-shadow: 0 4px 15px rgb(0 0 0 / 16%) !important;    
}

.wc-quote-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 172, 132, 0.4);
}

.wc-quote-submit-btn:disabled {
    background: #bdc3c7;
    transform: none;
    box-shadow: none;
    cursor: not-allowed;
}

.wc-quote-empty {
    text-align: center;
    padding: 60px 24px;
    color: #636e72;
}

.wc-quote-empty-icon {
    font-size: 64px;
    margin-bottom: 16px;
    color: #bdc3c7;
}

.wc-quote-empty-title {
    margin: 0 0 8px 0;
    font-size: 18px;
    font-weight: 600;
    color: #2d3436;
}

.wc-quote-empty-text {
    margin: 0;
    font-size: 14px;
}

/* Loading States */
.wc-quote-loading {
    opacity: 0.7;
    pointer-events: none;
    position: relative;
}

.wc-quote-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 768px) {
    .wc-quote-popup {
        width: 95%;
        border-radius: 12px;
        overflow:scroll;
        z-index:9999999999 !important;
    }
    
    .wc-quote-popup-header {
        padding: 20px;
    }
    
    .wc-quote-item {
        padding: 16px 20px;
        flex-wrap: wrap;
    }
    
    .wc-quote-item-controls {
        margin-left: 76px;
        margin-top: 12px;
        width: calc(100% - 76px);
        justify-content: space-between;
    }
    
    .wc-quote-toast {
        right: 10px;
        left: 10px;
        max-width: none;
    }
}