/* WooCommerce WhatsApp Quote Widget Styles */

.wp-quote-widget {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 100%;
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.wp-quote-widget-notice {
    padding: 15px;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    color: #6c757d;
    text-align: center;
    font-size: 14px;
    line-height: 1.5;
}

/* Quantity selector styles removed - using external quantity selectors */

.wp-quote-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: #ffffff;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 16px;
    line-height: 1.4;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(37, 211, 102, 0.3);
    position: relative;
    overflow: hidden;
    min-height: 48px;
    text-align: center;
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.wp-quote-button:hover {
    background: linear-gradient(135deg, #128C7E 0%, #0F7B6C 100%);
    color: #ffffff;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
}

.wp-quote-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(37, 211, 102, 0.3);
}

.wp-quote-button:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.3);
}

.wp-quote-icon {
    font-size: 18px;
    line-height: 1;
    display: inline-block;
}

.wp-quote-text {
    font-weight: 600;
    line-height: 1.2;
}

/* WhatsApp Brand Colors */
.wp-quote-button.whatsapp-brand {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
}

.wp-quote-button.whatsapp-brand:hover {
    background: linear-gradient(135deg, #128C7E 0%, #0F7B6C 100%);
}

/* Loading State */
.wp-quote-button.loading {
    pointer-events: none;
    opacity: 0.7;
}

.wp-quote-button.loading .wp-quote-text::after {
    content: '...';
    animation: loading-dots 1.5s infinite;
}

@keyframes loading-dots {
    0%, 20% { content: ''; }
    40% { content: '.'; }
    60% { content: '..'; }
    80%, 100% { content: '...'; }
}

/* Responsive Design */
@media (max-width: 768px) {
    .wp-quote-widget {
        gap: 12px;
    }
    
    .wp-quote-button {
        padding: 14px 20px;
        font-size: 15px;
        min-height: 50px;
    }
}

@media (max-width: 480px) {
    .wp-quote-button {
        padding: 12px 16px;
        font-size: 14px;
        gap: 6px;
    }
    
    .wp-quote-icon {
        font-size: 16px;
    }
}

/* Elementor Editor Styles */
.elementor-editor .wp-quote-widget-notice {
    background-color: #fff3cd;
    border-color: #ffeaa7;
    color: #856404;
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .wp-quote-button {
        border: 2px solid #000000;
    }
    
    .wp-quantity-input {
        border: 2px solid #000000;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .wp-quote-button,
    .wp-quantity-input {
        transition: none;
    }
    
    .wp-quote-button:hover {
        transform: none;
    }
}

/* Print Styles */
@media print {
    .wp-quote-widget {
        display: none;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    /* Dark mode styles for external quantity selectors handled by their respective widgets */
}

/* Custom Animation for Button */
.wp-quote-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.wp-quote-button:hover::before {
    left: 100%;
}

/* Focus Visible for Accessibility */
.wp-quote-button:focus-visible {
    outline: 2px solid #25D366;
    outline-offset: 2px;
}

/* Quantity input number spinner styles removed - using external quantity selectors */

/* Button Disabled State */
.wp-quote-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

/* Success State */
.wp-quote-button.success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
}

.wp-quote-button.success:hover {
    background: linear-gradient(135deg, #20c997 0%, #17a2b8 100%);
}
