/**
 * 2007-2026 PrestaShop
 *
 * EasyQuote - Feuille de styles Front-Office
 *
 * @author    Elyès Amor
 * @copyright 2026 Elyès Amor
 * @license   https://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
 */

/* Conteneur flottant principal */
.easyquote-container {
    position: fixed;
    bottom: 24px;
    z-index: 999999;
    display: inline-flex;
    flex-direction: column;
    align-items: flex-end;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    user-select: none;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s ease;
}

/* Positionnement : En bas à droite */
.easyquote-container.easyquote-bottom-right {
    right: 24px;
    left: auto;
    align-items: flex-end;
}

/* Positionnement : En bas à gauche */
.easyquote-container.easyquote-bottom-left {
    left: 24px;
    right: auto;
    align-items: flex-start;
}

/* Bouton déclencheur */
.easyquote-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: none;
    outline: none;
    cursor: pointer;
    color: #ffffff;
    padding: 12px 20px;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2), 0 2px 6px rgba(0, 0, 0, 0.12);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

/* Effet au survol et focus */
.easyquote-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25), 0 3px 8px rgba(0, 0, 0, 0.16);
    filter: brightness(1.08);
}

.easyquote-btn:active {
    transform: translateY(0);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.easyquote-btn:focus-visible {
    outline: 3px solid rgba(0, 0, 0, 0.3);
    outline-offset: 2px;
}

/* Icône du bouton */
.easyquote-btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.easyquote-btn-icon svg {
    display: block;
    width: 20px;
    height: 20px;
}

/* Texte du bouton */
.easyquote-btn-text {
    white-space: nowrap;
}

/* Point d'ancrage modal / popin */
.easyquote-modal-placeholder {
    position: relative;
}

/* Optimisation pour écrans mobiles */
@media (max-width: 768px) {
    .easyquote-container {
        bottom: 16px;
    }

    .easyquote-container.easyquote-bottom-right {
        right: 16px;
    }

    .easyquote-container.easyquote-bottom-left {
        left: 16px;
    }

    .easyquote-btn {
        padding: 10px 16px;
        font-size: 14px;
    }
}
