/* =========================================================
   EVA GLOBAL PRODUCT AUDIO PLAYER
   ========================================================= */

.eva-audio-float {
    position: fixed;
    right: 0;
    bottom: 28px;
    z-index: 9998;

    width: 248px;
    min-height: 56px;

    display: flex;
    align-items: center;

    padding: 8px 8px 8px 10px;

    background: #292A2D;
    color: #F5F6F7;

    border: 1px solid rgba(255, 255, 255, 0.10);
    border-right: 0;
    border-radius: 8px 0 0 8px;

    box-shadow:
        0 8px 28px rgba(0, 0, 0, 0.22),
        0 2px 8px rgba(0, 0, 0, 0.12);

    font-family: "Lato", sans-serif;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transform: translateX(100%);

    transition:
        transform 0.22s ease,
        opacity 0.18s ease,
        visibility 0.18s ease;
}


.eva-audio-float.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;

    transform: translateX(0);
}


/* Play / Pause */

.eva-audio-float__toggle {
    width: 38px;
    height: 38px;
    min-width: 38px;
    min-height: 38px;

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

    margin: 0 !important;
    padding: 0 !important;

    border: 1px solid rgba(255, 255, 255, 0.16) !important;
    border-radius: 6px !important;

    background: rgba(255, 255, 255, 0.08) !important;
    color: #F5F6F7 !important;

    box-shadow: none !important;

    cursor: pointer;

    transition:
        background-color 0.15s ease,
        border-color 0.15s ease;
}


.eva-audio-float__toggle:hover {
    background: rgba(255, 255, 255, 0.14) !important;
    border-color: rgba(255, 255, 255, 0.25) !important;
}


.eva-audio-float__toggle:focus-visible,
.eva-audio-float__close:focus-visible {
    outline: 2px solid #F5F6F7;
    outline-offset: 2px;
}


/* Icon */

.eva-audio-float__icon {
    position: relative;

    width: 12px;
    height: 12px;

    display: block;
}


.eva-audio-float__icon::before {
    content: "";

    position: absolute;

    top: 50%;
    left: 50%;

    width: 0;
    height: 0;

    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    border-left: 8px solid #F5F6F7;

    transform: translate(-38%, -50%);
}


.eva-audio-float__icon::after {
    content: "";

    display: none;
}


/* Pause state */

.eva-audio-float__toggle.is-playing .eva-audio-float__icon::before {
    top: 50%;
    left: 2px;

    width: 3px;
    height: 10px;

    border: 0;

    background: #F5F6F7;

    transform: translateY(-50%);
}


.eva-audio-float__toggle.is-playing .eva-audio-float__icon::after {
    position: absolute;

    top: 50%;
    left: 8px;

    width: 3px;
    height: 10px;

    display: block;

    background: #F5F6F7;

    transform: translateY(-50%);
}


/* Product name */

.eva-audio-float__info {
    min-width: 0;
    flex: 1;

    padding: 0 10px;
}


.eva-audio-float__name {
    display: block;

    overflow: hidden;

    color: #F5F6F7;

    font-size: 13px;
    font-weight: 600;
    line-height: 1.25;

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


/* Close */

.eva-audio-float__close {
    width: 30px;
    height: 38px;
    min-width: 30px;

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

    margin: 0 !important;
    padding: 0 !important;

    border: 0 !important;

    background: transparent !important;
    color: #AEB5BE !important;

    box-shadow: none !important;

    font-family: Arial, sans-serif !important;
    font-size: 21px !important;
    font-weight: 300 !important;

    line-height: 1 !important;

    cursor: pointer;

    transition: color 0.15s ease;
}


.eva-audio-float__close:hover {
    color: #FFFFFF !important;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 767px) {

    .eva-audio-float {
        right: 0;
        bottom: 0;
        left: 0;

        width: 100%;
        min-height: 52px;

        padding:
            6px
            12px
            calc(6px + env(safe-area-inset-bottom));

        border-right: 0;
        border-bottom: 0;
        border-left: 0;

        border-radius: 0;

        transform: translateY(100%);

        box-shadow:
            0 -4px 18px rgba(0, 0, 0, 0.18);
    }


    .eva-audio-float.is-visible {
        transform: translateY(0);
    }


    .eva-audio-float__toggle {
        width: 38px;
        height: 38px;
    }


    .eva-audio-float__name {
        font-size: 13px;
    }


    .eva-audio-float__close {
        width: 36px;
        height: 38px;
    }

}