/**
 * ElectWatch - Download Button Styles
 */

/* Bouton téléchargement */
.ew-download-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.ew-download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.ew-download-btn:active {
    transform: translateY(0);
}

/* Tailles bouton */
.ew-download-btn-small {
    padding: 10px 20px;
    font-size: 14px;
}

.ew-download-btn-medium {
    padding: 14px 28px;
    font-size: 16px;
}

.ew-download-btn-large {
    padding: 18px 36px;
    font-size: 18px;
}

/* Icône téléchargement */
.ew-download-btn svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* Modal téléchargement */
.ew-download-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 200000;
    /* Above product details (100000) */
}

.ew-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.ew-modal-content {
    position: relative;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    z-index: 100000;
}

.ew-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 30px;
    height: 30px;
    border: none;
    background: #f5f5f5;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #666;
    transition: all 0.2s;
}

.ew-modal-close:hover {
    background: #e5e5e5;
    color: #333;
}

/* Contenu modal */
.ew-modal-content h3 {
    margin: 0 0 10px 0;
    font-size: 24px;
    color: #333;
}

.ew-modal-content p {
    margin: 0 0 20px 0;
    color: #666;
    font-size: 15px;
    line-height: 1.6;
}

/* Formulaire */
#download-phone-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

#download-phone {
    padding: 14px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
}

#download-phone:focus {
    outline: none;
    border-color: #FF6B35;
}

#download-phone-form button[type="submit"] {
    padding: 14px 24px;
    background: #FF6B35;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

#download-phone-form button[type="submit"]:hover:not(:disabled) {
    background: #e55a2a;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

#download-phone-form button[type="submit"]:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Responsive */
@media (max-width: 768px) {
    .ew-modal-content {
        padding: 20px;
    }

    .ew-download-btn {
        width: 100%;
        justify-content: center;
    }
}