/* ========================================
   FLOATING MOTORCYCLE RENT
======================================== */

.hec-rent-trigger {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 9000;

    width: 160px;
    min-height: 70px;

    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 5px;

    background: #cfcdc2;
    border: 3px solid #cf3518;
    border-right: 0;
    border-radius: 60px 0 0 60px;

    cursor: pointer;

    transition:
        transform .3s ease,
        background .3s ease;
}

.hec-rent-trigger:hover {
    transform: translateY(-50%) translateX(-1px);
    background-color: #ffffff;
    color: #f56a13 !important;
    border-right: 3px solid #f56a13;
}

.hec-rent-trigger__icon {
    width: 110px;
    flex: 0 0 110px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 65px;
    line-height: 1;
    filter: grayscale(1);
}

.hec-rent-trigger__text {
    color: #cf3518;
    font-size: 15px;
    line-height: 1.1;
    font-weight: 800;
    text-align: left;
}


/* OVERLAY */

.hec-rent-overlay {
    position: fixed;
    inset: 0;
    z-index: 9997;

    background: rgba(0, 0, 0, .48);

    opacity: 0;
    visibility: hidden;

    transition:
        opacity .35s ease,
        visibility .35s ease;
}


/* PANEL */

.hec-rent-panel {
    position: fixed;
    top: 0;
    right: 0;

    z-index: 9999;

    width: min(100%, 420px);
    height: 100dvh;

    background: #202222;

    transform: translateX(100%);

    transition:
        transform .45s cubic-bezier(.77, 0, .18, 1);
}

.hec-rent-panel.is-open {
    transform: translateX(0);
}

.hec-rent-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

.hec-rent-panel__close {
    position: absolute;
    top: 45px;
    left: 45px;

    width: 52px;
    height: 52px;

    padding: 0;
    border: 0;
    background: transparent;

    cursor: pointer;
}

.hec-rent-panel__close:hover {
    background-color: transparent;
}

.hec-rent-panel__close span {
    position: absolute;
    top: 24px;
    left: 0;

    width: 52px;
    height: 5px;

    border-radius: 5px;

    background: #d73516;
}

.hec-rent-panel__close span:first-child {
    transform: rotate(45deg);
}

.hec-rent-panel__close span:last-child {
    transform: rotate(-45deg);
}

.hec-rent-panel__content {
    height: 100%;

    padding: 190px 45px 60px;

    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.hec-rent-panel__content h2 {
    margin: 0 0 35px;

    color: #fff;

    font-size: clamp(34px, 4vw, 48px);
    line-height: 1.15;
    font-weight: 700;
}

.hec-rent-panel__button {
    width: 100%;
    max-width: 300px;
    min-height: 70px;
    margin-bottom: 28px;
    padding: 20px 30px;

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

    border-radius: 60px;

    background: #d73516;
    color: #fff !important;

    font-size: 20px;
    line-height: 1.15;
    font-weight: 800;
    text-align: center;
    text-decoration: none !important;

    transition:
        transform .25s ease,
        background .25s ease;
}

.hec-rent-panel__button:hover {
    transform: translateY(-3px);
    background: #cf3518;
}


/* MOBILE */

@media (max-width: 767px) {

    .hec-rent-trigger {
        top: auto;
        right: 15px;
        bottom: 20px;

        width: auto;
        min-height: 58px;

        padding: 8px 17px;

        border: 2px solid #cf3518;
        border-radius: 40px;

        transform: none;

        gap: 10px;
    }

    .hec-rent-trigger:hover {
        transform: translateY(-3px);
    }

    .hec-rent-trigger__icon {
        width: 45px;
        flex-basis: 45px;
        font-size: 32px;
    }

    .hec-rent-trigger__text {
        font-size: 13px;
    }

    .hec-rent-panel {
        width: 100%;
    }

    .hec-rent-panel__close {
        top: 30px;
        left: 30px;
    }

    .hec-rent-panel__content {
        padding:
            180px 30px max(40px, env(safe-area-inset-bottom));
    }

    .hec-rent-panel__content h2 {
        font-size: 38px;
    }

    .hec-rent-panel__button {
        min-height: 75px;
        margin-bottom: 20px;
        font-size: 20px;
    }
}