/*
============================================================
MORTALIS COOKIE CONSENT V1
============================================================
*/

.mt-cookie-banner {
    position: fixed;

    left: 22px;
    right: 22px;
    bottom: 22px;

    z-index: 999999;

    max-width: 1180px;

    margin: 0 auto;

    color: #eef7ff;

    background:
        linear-gradient(
            145deg,
            rgba(12, 22, 31, .98),
            rgba(5, 10, 16, .99)
        );

    border:
        1px solid
        rgba(43, 180, 255, .32);

    border-radius: 18px;

    box-shadow:
        0 20px 70px
        rgba(0, 0, 0, .58);

    backdrop-filter:
        blur(14px);
}


.mt-cookie-banner[hidden],
.mt-cookie-modal[hidden] {
    display: none !important;
}


.mt-cookie-banner-inner {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        auto;

    align-items: center;

    gap: 28px;

    padding:
        24px
        26px;
}


.mt-cookie-eyebrow {
    display: block;

    margin-bottom: 7px;

    color: #2abaff;

    font-size: .7rem;
    font-weight: 900;

    letter-spacing: .16em;
}


.mt-cookie-copy h2,
.mt-cookie-panel h2 {
    margin:
        0
        0
        8px;

    color: #fff;

    font-size: 1.45rem;
}


.mt-cookie-copy p,
.mt-cookie-panel p {
    margin: 0;

    color: #b3c0cd;

    line-height: 1.55;
}


.mt-cookie-small {
    margin-top: 6px !important;

    font-size: .78rem;

    color: #82909e !important;
}


.mt-cookie-actions,
.mt-cookie-modal-actions {
    display: flex;

    align-items: center;

    gap: 9px;

    flex-wrap: wrap;
}


.mt-cookie-btn {
    min-height: 42px;

    padding:
        0
        16px;

    cursor: pointer;

    border:
        1px solid
        rgba(43, 180, 255, .34);

    border-radius: 9px;

    background:
        rgba(43, 180, 255, .05);

    color: #f2f8fd;

    font: inherit;
    font-size: .82rem;
    font-weight: 800;

    transition:
        transform .16s ease,
        border-color .16s ease,
        background .16s ease;
}


.mt-cookie-btn:hover {
    transform: translateY(-1px);

    border-color: #2abaff;

    background:
        rgba(43, 180, 255, .11);
}


.mt-cookie-primary {
    color: #03111b;

    border-color: #28b9ff;

    background:
        linear-gradient(
            135deg,
            #42c8ff,
            #0b9de9
        );
}


/*
 * MODAL
 */

.mt-cookie-modal {
    position: fixed;

    inset: 0;

    z-index: 1000000;
}


.mt-cookie-modal-backdrop {
    position: absolute;

    inset: 0;

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

    backdrop-filter:
        blur(5px);
}


.mt-cookie-panel {
    position: absolute;

    top: 50%;
    left: 50%;

    width:
        min(
            640px,
            calc(100% - 32px)
        );

    max-height:
        calc(100vh - 40px);

    overflow-y: auto;

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

    padding:
        30px;

    color: #eef7ff;

    background:
        linear-gradient(
            145deg,
            #0d1822,
            #070c12
        );

    border:
        1px solid
        rgba(43, 180, 255, .3);

    border-radius: 18px;

    box-shadow:
        0 25px 90px
        rgba(0, 0, 0, .7);
}


.mt-cookie-close {
    position: absolute;

    top: 13px;
    right: 15px;

    width: 36px;
    height: 36px;

    border: 0;

    cursor: pointer;

    color: #9fafbd;

    background: transparent;

    font-size: 1.7rem;
}


.mt-cookie-intro {
    margin-bottom:
        22px !important;
}


.mt-cookie-option {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        auto;

    align-items: center;

    gap: 22px;

    padding:
        18px
        0;

    border-top:
        1px solid
        rgba(255, 255, 255, .08);
}


.mt-cookie-option strong {
    display: block;

    margin-bottom: 5px;

    color: #fff;
}


.mt-cookie-option p {
    font-size: .84rem;
}


.mt-cookie-required {
    padding:
        6px
        9px;

    white-space: nowrap;

    border:
        1px solid
        rgba(43, 180, 255, .22);

    border-radius: 999px;

    color: #69ceff;

    font-size: .68rem;
    font-weight: 800;
}


/*
 * Toggle
 */

.mt-cookie-switch {
    position: relative;

    width: 48px;
    height: 27px;

    flex: 0 0 auto;
}


.mt-cookie-switch input {
    position: absolute;

    opacity: 0;

    pointer-events: none;
}


.mt-cookie-switch span {
    position: absolute;

    inset: 0;

    cursor: pointer;

    border:
        1px solid
        #46525e;

    border-radius: 999px;

    background: #202a33;

    transition: .18s ease;
}


.mt-cookie-switch span::before {
    content: "";

    position: absolute;

    top: 3px;
    left: 3px;

    width: 19px;
    height: 19px;

    border-radius: 50%;

    background: #dce7ef;

    transition: .18s ease;
}


.mt-cookie-switch input:checked + span {
    border-color: #19aeff;

    background: #087ab7;
}


.mt-cookie-switch input:checked + span::before {
    transform:
        translateX(21px);

    background: #fff;
}


.mt-cookie-modal-actions {
    margin-top: 22px;

    padding-top: 20px;

    border-top:
        1px solid
        rgba(255, 255, 255, .08);
}


.mt-cookie-policy-link {
    margin-top:
        18px !important;

    font-size: .8rem;
}


.mt-cookie-policy-link a {
    color: #39bfff;
}


.mt-cookie-modal-open {
    overflow: hidden;
}


/*
 * Footer settings button
 */

#mt-cookie-settings-open {
    padding: 0;

    border: 0;

    cursor: pointer;

    color: inherit;

    background: transparent;

    font: inherit;

    text-align: left;
}


#mt-cookie-settings-open:hover {
    color: #36bfff;
}


/*
 * MOBILE
 */

@media (max-width: 760px) {

    .mt-cookie-banner {
        left: 10px;
        right: 10px;
        bottom: 10px;
    }


    .mt-cookie-banner-inner {
        grid-template-columns: 1fr;

        gap: 18px;

        padding:
            20px;
    }


    .mt-cookie-actions {
        display: grid;

        grid-template-columns: 1fr;
    }


    .mt-cookie-btn {
        width: 100%;
    }


    .mt-cookie-panel {
        padding:
            26px
            20px;
    }


    .mt-cookie-option {
        gap: 14px;
    }


    .mt-cookie-modal-actions {
        display: grid;

        grid-template-columns: 1fr;
    }

}
