/*
 * VORIK Sticky Action Bar
 *
 * La barre est volontairement placée hors du Bottom Sheet.
 * Elle reste donc visible pendant le déplacement du panneau.
 */

.vorik-sticky-action-bar {
    position: fixed;
    left: 50%;
    right: auto;
    bottom: 0;

    z-index: 1000;

    width: min(100%, 760px);

    display: flex;
    align-items: center;
    gap: 10px;

    padding:
        10px
        14px
        calc(10px + env(safe-area-inset-bottom));

    background: rgba(255, 255, 255, 0.98);

    border-top: 1px solid rgba(17, 24, 39, 0.08);

    box-shadow:
        0 -8px 30px rgba(15, 23, 42, 0.12);

    transform: translateX(-50%);

    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
}

.vorik-action-icon {
    width: 50px;
    height: 50px;

    flex: 0 0 50px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 0;

    border: 1px solid rgba(17, 24, 39, 0.08);
    border-radius: 16px;

    background: #f4f5f7;
    color: #15171a;

    cursor: pointer;

    -webkit-tap-highlight-color: transparent;

    transition:
        background-color 160ms ease,
        transform 160ms ease,
        box-shadow 160ms ease;
}

.vorik-action-icon svg {
    width: 23px;
    height: 23px;

    display: block;
}

.vorik-action-icon:hover {
    background: #e9ebee;
}

.vorik-action-icon:active {
    transform: scale(0.96);
}

.vorik-action-icon:focus-visible,
.vorik-action-primary:focus-visible {
    outline: 3px solid rgba(255, 198, 41, 0.38);
    outline-offset: 2px;
}

.vorik-action-primary {
    min-width: 0;
    height: 50px;

    flex: 1;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;

    padding: 0 16px;

    border: 0;
    border-radius: 16px;

    background: #ffc629;
    color: #111315;

    font: inherit;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.1;

    cursor: pointer;

    box-shadow:
        0 7px 18px rgba(255, 198, 41, 0.24);

    -webkit-tap-highlight-color: transparent;

    transition:
        transform 160ms ease,
        box-shadow 160ms ease,
        filter 160ms ease;
}

.vorik-action-primary span {
    overflow: hidden;

    text-overflow: ellipsis;
    white-space: nowrap;
}

.vorik-action-primary svg {
    width: 20px;
    height: 20px;

    flex: 0 0 20px;
}

.vorik-action-primary:hover {
    filter: brightness(0.98);

    box-shadow:
        0 9px 22px rgba(255, 198, 41, 0.30);
}

.vorik-action-primary:active {
    transform: scale(0.985);
}

/*
 * Réserve l’espace nécessaire afin que le bas du contenu
 * ne soit jamais caché derrière la barre fixe.
 */
.vorik-vtc-app {
    padding-bottom:
        calc(82px + env(safe-area-inset-bottom));
}

@media (max-width: 420px) {
    .vorik-sticky-action-bar {
        gap: 8px;

        padding-left: 10px;
        padding-right: 10px;
    }

    .vorik-action-icon {
        width: 46px;
        height: 46px;

        flex-basis: 46px;

        border-radius: 14px;
    }

    .vorik-action-icon svg {
        width: 21px;
        height: 21px;
    }

    .vorik-action-primary {
        height: 46px;

        padding-right: 12px;
        padding-left: 12px;

        border-radius: 14px;

        font-size: 14px;
    }
}
