@import url('https://fonts.googleapis.com/css2?family=poppins:wght@300;400;500;600;700;800;900&display=swap');
@import url("https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.min.css");

/*START OF EMAIL SELLER's <style> */
    /* Optional: Style improvements */
/* ============ DARK MODE STYLING ============ */
    :root {
        --bg-primary: #ffffff;
        --bg-secondary: #f5f5f5;
        --text-primary: #333333;
        --text-secondary: #666666;
        --border-color: #dddddd;
        --input-bg: #ffffff;
        --button-bg: #25D366;
        --button-hover: #128C7E;
        --success-color: #4CAF50;
        --error-color: #f44336;
        --warning-color: #ff9800;
        --shadow: rgba(0,0,0,0.1);
    }
    
    [data-theme="dark"] {
        --bg-primary: #1a1a1a;
        --bg-secondary: #2d2d2d;
        --text-primary: #ffffff;
        --text-secondary: #b3b3b3;
        --border-color: #404040;
        --input-bg: #333333;
        --button-bg: #25D366;
        --button-hover: #128C7E;
        --success-color: #66bb6a;
        --error-color: #ef5350;
        --warning-color: #ffa726;
        --shadow: rgba(255,255,255,0.1);
    }
    
    /* Apply dark mode styles */
    .products-preview .contact_seller .emailSeller .online_chat {
        display: inline-grid;
        text-align: center;
        align-items: center;
        justify-content: center;
        gap: 0.5em;
        background: var(--bg-primary);
        color: var(--text-primary);
        transition: all 0.3s ease;
        border-radius: 15px;
        border: inset 1px;
        padding: 1em;
        /* margin: 1em; */
        margin-top: 0.2em;
        /* width: 100%;
        max-width: 500px; */
    }
    
    .products-preview .contact_seller .emailSeller .online_chat input,
    .products-preview .contact_seller .emailSeller .online_chat textarea,
    .products-preview .contact_seller .emailSeller .online_chat select {
        background-color: var(--input-bg);
        color: var(--text-primary);
        border: 1px solid var(--border-color);
        padding: 10px;
        border-radius: 6px;
        font-family: inherit;
        transition: all 0.3s ease;
        /* width: 100%; */
        box-sizing: border-box;
        font-size: clamp(1rem, (5vh + 1em), 1em);
    }
    
    .products-preview .contact_seller .emailSeller .online_chat input:focus,
    .products-preview .contact_seller .emailSeller .online_chat textarea:focus {
        outline: none;
        border-color: var(--button-bg);
        box-shadow: 0 0 0 2px rgba(37, 211, 102, 0.2);
    }
    
    .products-preview .contact_seller .emailSeller .online_chat button {
        background-color: var(--button-bg);
        color: white;
        border: none;
        padding: 12px;
        border-radius: 6px;
        cursor: pointer;
        font-weight: bold;
        transition: all 0.3s ease;
        width: 100%;
    }
    
    .products-preview .contact_seller .emailSeller .online_chat button:hover:not(:disabled) {
        background-color: var(--button-hover);
        transform: translateY(-1px);
    }
    
    .products-preview .contact_seller .emailSeller .online_chat button:disabled {
        opacity: 0.6;
        cursor: not-allowed;
    }
    
    #charCount {
        font-size: 12px;
        text-align: right;
        margin-top: -8px;
        color: var(--button-bg);
    }
    
    #formStatus {
        margin-top: 10px;
        padding: 10px;
        border-radius: 6px;
        animation: fadeIn 0.3s ease;
    }
    
    .status-success {
        background-color: rgba(76, 175, 80, 0.1);
        color: var(--success-color);
        border-left: 3px solid var(--success-color);
        padding: 10px;
        border-radius: 6px;
    }
    
    .status-error {
        background-color: rgba(244, 67, 54, 0.1);
        color: var(--error-color);
        border-left: 3px solid var(--error-color);
        padding: 10px;
        border-radius: 6px;
    }
    
    .status-warning {
        background-color: rgba(255, 152, 0, 0.1);
        color: var(--warning-color);
        border-left: 3px solid var(--warning-color);
        padding: 10px;
        border-radius: 6px;
    }
    
    /* Dark mode toggle button */
    .products-preview .contact_seller .emailSeller .dark-mode-toggle {
        position: relative;
        display: inline-block;
        width: 60px;
        height: 30px;
        margin-bottom: 15px;
    }
    
    .products-preview .contact_seller .emailSeller .dark-mode-toggle input {
        opacity: 0;
        width: 0;
        height: 0;
    }
    
    .products-preview .contact_seller .emailSeller .toggle-slider {
        position: absolute;
        cursor: pointer;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: #ccc;
        transition: 0.4s;
        border-radius: 30px;
    }
    
    .products-preview .contact_seller .emailSeller .toggle-slider:before {
        position: absolute;
        content: "☀️";
        height: 22px;
        width: 22px;
        left: 4px;
        bottom: 4px;
        background-color: white;
        transition: 0.4s;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 12px;
    }
    
    .products-preview .contact_seller .emailSeller .dark-mode-toggle input:checked + .toggle-slider {
        background-color: var(--button-bg);
    }
    
    .products-preview .contact_seller .emailSeller .dark-mode-toggle input:checked + .toggle-slider:before {
        transform: translateX(30px);
        content: "🌙";
    }
    
    /* reCAPTCHA styling */
    .products-preview .contact_seller .g-recaptcha {
        background: #fff;
        color: green;
        margin: 10px 0;
        display: flex;
        justify-content: center;
    }
    
    /* Animations */
    @keyframes fadeIn {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    /* Responsive design */
    /* @media (max-width: 480px) {
        .products-preview .contact_seller .emailSeller .online_chat {
            width: 95%;
            margin: 0.5em;
        }
        
        .products-preview .contact_seller .emailSeller .g-recaptcha {
            transform: scale(0.85);
            transform-origin: center;
        }
    }
     */
    /* Loading spinner */
    .spinner {
        display: inline-block;
        width: 16px;
        height: 16px;
        border: 2px solid #fff;
        border-radius: 50%;
        border-top-color: transparent;
        animation: spin 0.6s linear infinite;
        margin-right: 8px;
        vertical-align: middle;
    }
    
    @keyframes spin {
        to { transform: rotate(360deg); }
    }