/* =========================================================
   FLOATING ACTIONS
   ========================================================= */

.floating-actions {
    position: fixed;

    right: 22px;
    bottom: 22px;

    display: flex;
    flex-direction: column;
    align-items: flex-end;

    gap: 10px;

    z-index: 9999;
}


/* =========================================================
   BASE BUTTON
   ========================================================= */

.floating-action-btn {
    width: 52px;
    height: 52px;

    padding: 0;

    border: none;
    border-radius: 50%;

    background: #18392b;
    color: #ffffff;

    display: flex;
    align-items: center;
    justify-content: center;

    cursor: pointer;

    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.20);

    transition:
        background 0.2s ease,
        transform 0.2s ease,
        border-radius 0.2s ease,
        box-shadow 0.2s ease;

    -webkit-tap-highlight-color: transparent;
}


.floating-action-btn svg {
    width: 23px;
    height: 23px;

    fill: currentColor;
}


.floating-action-btn:hover {
    background: #23513d;
    transform: translateY(-2px);
}


/* =========================================================
   BACK TO TOP
   ========================================================= */

.top-btn {
    opacity: 0;
    visibility: hidden;

    transform: translateY(8px);

    pointer-events: none;

    transition:
        opacity 0.2s ease,
        visibility 0.2s ease,
        transform 0.2s ease,
        background 0.2s ease;
}


.top-btn.visible {
    opacity: 1;
    visibility: visible;

    transform: translateY(0);

    pointer-events: auto;
}


.top-btn.visible:hover {
    transform: translateY(-2px);
}


/* =========================================================
   WOLT WRAPPER
   ========================================================= */

.wolt-action-wrapper {
    position: relative;

    display: flex;
    flex-direction: column;
    align-items: flex-end;
}


/* =========================================================
   WOLT BUTTON
   ========================================================= */

.wolt-btn {
    position: relative;

    z-index: 2;
}


.wolt-btn.active {
    border-radius: 50% 0 50% 50%;

    transform: none;

    box-shadow: 0 7px 18px rgba(0, 0, 0, 0.18);
}


.wolt-btn.active:hover {
    transform: none;
}


.wolt-logo {
    width: 31px;
    height: 31px;

    object-fit: contain;

    display: block;
}


/* =========================================================
   WOLT POPUP
   ========================================================= */

.wolt-popup {
    position: absolute;

    right: 0;
    bottom: 52px;

    width: 290px;

    background: #18392b;
    color: #ffffff;

    /*
    Bottom-right corner is square so it connects
    directly to the Wolt button.
    */
    border-radius: 18px 18px 0 18px;

    overflow: hidden;

    box-shadow: 0 12px 38px rgba(0, 0, 0, 0.22);

    opacity: 0;
    visibility: hidden;

    transform:
        translateY(10px)
        scale(0.97);

    transform-origin: bottom right;

    pointer-events: none;

    transition:
        opacity 0.2s ease,
        visibility 0.2s ease,
        transform 0.2s ease;

    z-index: 1;
}


.wolt-popup.active {
    opacity: 1;
    visibility: visible;

    transform:
        translateY(0)
        scale(1);

    pointer-events: auto;
}


/* =========================================================
   HEADER
   ========================================================= */

.wolt-popup-header {
    padding: 18px 18px 12px;
}


.wolt-popup-header h3 {
    margin: 0;

    color: #ffffff;

    font-size: 19px;
    font-weight: 700;
}


/* =========================================================
   LOCATION LIST
   ========================================================= */

.wolt-location-list {
    padding: 4px 8px 10px;
}


.wolt-location {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 15px;

    min-height: 48px;

    padding: 10px 10px;

    border-radius: 10px;

    color: #ffffff;

    text-decoration: none;

    font-size: 14px;
    font-weight: 600;

    transition:
        background 0.15s ease,
        transform 0.15s ease;
}


.wolt-location span {
    color: #ffffff;
}


.wolt-location svg {
    width: 19px;
    height: 19px;

    flex-shrink: 0;

    fill: #ffffff;

    transition: transform 0.15s ease;
}


.wolt-location:hover {
    background: rgba(255, 255, 255, 0.10);

    transform: translateX(2px);
}


.wolt-location:hover svg {
    transform: translateX(2px);
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 600px) {

    .floating-actions {
        right: 15px;
        bottom: 15px;
    }


    .floating-action-btn {
        width: 50px;
        height: 50px;
    }


    .wolt-popup {
        bottom: 50px;

        width: min(
            290px,
            calc(100vw - 30px)
        );
    }

}


/* =========================================================
   VERY SMALL SCREENS
   ========================================================= */

@media (max-width: 360px) {

    .wolt-popup {
        width: calc(100vw - 30px);
    }

}