@import url('https://fonts.googleapis.com/css2?family=Google+Sans+Flex:wght@100..1000&display=swap');

:root {
    --color-black: #000000;
    --color-white: #ffffff;
    --color-dark-gray: #1c1c1c;
    --color-gray: #9b9b9b;
    --color-soft-white: #fafafa;
}

.muysl-cookie-notice {
    position: fixed;
    left: 50%;
    bottom: calc(max(20px, env(safe-area-inset-bottom)));
    z-index: 10000000;
    width: min(520px, calc(100vw - 32px));
    max-height: min(46vh, 360px);
    padding: 18px 18px 16px;
    overflow-y: auto;
    overflow-x: hidden;
    background-color: var(--color-black);
    color: var(--color-soft-white);
    border: 1px solid var(--color-dark-gray);
    font-family: 'Google Sans Flex', -apple-system, BlinkMacSystemFont, sans-serif;
    transform: translateX(-50%);
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}

.muysl-cookie-notice.is-hidden {
    display: none;
}

.muysl-cookie-text {
    margin: 0 0 14px;
    color: var(--color-soft-white);
    font-size: 0.6875rem;
    font-weight: 300;
    line-height: 1.45;
    letter-spacing: 0;
    text-align: left;
}

.muysl-cookie-link,
.muysl-cookie-link:link,
.muysl-cookie-link:visited,
.muysl-cookie-link:active {
    color: var(--color-white);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;
}

.muysl-cookie-link:hover {
    color: var(--color-gray);
}

.muysl-cookie-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 96px;
    height: 34px;
    padding: 0 18px;
    color: var(--color-black);
    background-color: var(--color-soft-white);
    border: none;
    border-radius: 0;
    cursor: pointer;
    font-family: 'Google Sans Flex', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 0.75rem;
    font-weight: 400;
    line-height: 1;
    letter-spacing: 0;
    text-align: center;
    text-transform: uppercase;
    transition: background-color 0.3s ease, color 0.3s ease;
    appearance: none;
    -webkit-appearance: none;
}

.muysl-cookie-button:hover {
    color: var(--color-black);
    background-color: var(--color-white);
}

.muysl-cookie-button:focus-visible {
    outline: 1px solid var(--color-white);
    outline-offset: 3px;
}

@media (min-width: 1921px) {
    .muysl-cookie-notice {
        width: min(620px, calc(100vw - 64px));
        max-height: min(42vh, 420px);
        padding: 22px 22px 20px;
    }

    .muysl-cookie-text {
        margin-bottom: 16px;
        font-size: 0.6875rem;
    }

    .muysl-cookie-button {
        min-width: 112px;
        height: 38px;
        padding: 0 22px;
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .muysl-cookie-notice {
        bottom: calc(max(14px, env(safe-area-inset-bottom)));
        width: calc(100vw - 28px);
        max-height: min(42vh, 320px);
        padding: 14px;
    }

    .muysl-cookie-text {
        margin-bottom: 14px;
        font-size: 0.6875rem;
        line-height: 1.4;
    }

    .muysl-cookie-button {
        width: 100%;
        min-width: 0;
        height: 34px;
        font-size: 0.75rem;
    }
}

@media (max-width: 320px) {
    .muysl-cookie-notice {
        bottom: calc(max(10px, env(safe-area-inset-bottom)));
        width: calc(100vw - 20px);
        max-height: min(40vh, 260px);
        padding: 12px;
    }

    .muysl-cookie-text {
        margin-bottom: 12px;
        font-size: 0.6875rem;
        line-height: 1.35;
        word-break: break-word;
        overflow-wrap: anywhere;
    }

    .muysl-cookie-button {
        height: 32px;
        font-size: 0.75rem;
    }
}

@media (max-width: 280px), (max-height: 240px) {
    .muysl-cookie-notice {
        display: none !important;
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
    }
}