.csh-cookie-consent,
.csh-cookie-consent * {
    box-sizing: border-box;
}

.csh-cookie-consent {
    position: fixed;
    z-index: 99990;
    right: 18px;
    bottom: 18px;
    left: 18px;
    font-family: inherit;
}

.csh-cookie-consent[hidden],
.csh-cookie-modal[hidden],
.csh-cookie-reopen[hidden] {
    display: none !important;
}

.csh-cookie-consent--bottom-left {
    right: auto;
    max-width: 760px;
}

.csh-cookie-consent--bottom-right {
    left: auto;
    max-width: 760px;
}

.csh-cookie-banner {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    width: min(100%, 1440px);
    margin: 0 auto;
    padding: 18px;
    border: 1px solid rgba(214, 175, 89, .4);
    border-radius: 18px;
    background:
        linear-gradient(
            135deg,
            rgba(10, 28, 49, .985),
            rgba(16, 41, 69, .985)
        );
    box-shadow:
        0 22px 60px rgba(2, 8, 23, .32);
    color: #fff;
}

.csh-cookie-banner__icon {
    display: grid;
    width: 50px;
    height: 50px;
    place-items: center;
    border: 1px solid rgba(222, 183, 92, .3);
    border-radius: 15px;
    background: rgba(255, 255, 255, .07);
    font-size: 24px;
}

.csh-cookie-banner__content h2 {
    margin: 0 0 6px;
    color: #fff;
    font-size: 17px;
}

.csh-cookie-banner__content p {
    max-width: 850px;
    margin: 0;
    color: #cbd5e1;
    font-size: 12px;
    line-height: 1.55;
}

.csh-cookie-banner__links {
    display: flex;
    flex-wrap: wrap;
    gap: 13px;
    margin-top: 7px;
}

.csh-cookie-banner__links a {
    color: #e3bd66;
    font-size: 10.5px;
    font-weight: 750;
    text-underline-offset: 3px;
}

.csh-cookie-banner__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.csh-cookie-button {
    min-height: 40px;
    padding: 0 15px;
    border: 1px solid transparent;
    border-radius: 10px;
    cursor: pointer;
    font: inherit;
    font-size: 11px;
    font-weight: 850;
    transition:
        transform .16s ease,
        filter .16s ease,
        background .16s ease;
}

.csh-cookie-button:hover {
    filter: brightness(1.06);
    transform: translateY(-1px);
}

.csh-cookie-button--primary {
    border-color: #c89a38;
    background:
        linear-gradient(
            135deg,
            #b78628,
            #d8b35d
        );
    color: #10233b;
}

.csh-cookie-button--secondary {
    border-color: rgba(255, 255, 255, .22);
    background: rgba(255, 255, 255, .08);
    color: #fff;
}

.csh-cookie-button--ghost {
    border-color: rgba(255, 255, 255, .12);
    background: transparent;
    color: #cbd5e1;
}

.csh-cookie-modal {
    position: fixed;
    z-index: 100000;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 20px;
}

.csh-cookie-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(2, 8, 23, .68);
    backdrop-filter: blur(5px);
}

.csh-cookie-preferences {
    position: relative;
    z-index: 1;
    width: min(100%, 720px);
    max-height: min(90vh, 850px);
    overflow-y: auto;
    border: 1px solid #e5e7eb;
    border-radius: 21px;
    background: #fff;
    box-shadow:
        0 30px 90px rgba(2, 8, 23, .35);
}

.csh-cookie-preferences__header {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    justify-content: space-between;
    padding: 22px 22px 15px;
    border-bottom: 1px solid #e8edf3;
}

.csh-cookie-preferences__header span {
    display: block;
    margin-bottom: 5px;
    color: #a47720;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.csh-cookie-preferences__header h2 {
    margin: 0;
    color: #14243a;
    font-size: 23px;
}

.csh-cookie-close {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 1px solid #dce3eb;
    border-radius: 11px;
    background: #f8fafc;
    color: #475569;
    cursor: pointer;
    font-size: 23px;
}

.csh-cookie-preferences__intro {
    margin: 0;
    padding: 17px 22px;
    color: #64748b;
    font-size: 12px;
    line-height: 1.6;
}

.csh-cookie-categories {
    display: grid;
    gap: 10px;
    padding: 0 22px 22px;
}

.csh-cookie-category {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    padding: 16px;
    border: 1px solid #e5e9ef;
    border-radius: 14px;
    background: #fbfcfe;
}

.csh-cookie-category strong {
    display: block;
    margin-bottom: 5px;
    color: #17233a;
    font-size: 13px;
}

.csh-cookie-category p {
    margin: 0;
    color: #64748b;
    font-size: 11px;
    line-height: 1.55;
}

.csh-cookie-required {
    padding: 6px 9px;
    border-radius: 999px;
    background: #ecfdf5;
    color: #166534;
    font-size: 9px;
    font-weight: 850;
    text-transform: uppercase;
    white-space: nowrap;
}

.csh-cookie-switch {
    position: relative;
    display: inline-flex;
    cursor: pointer;
}

.csh-cookie-switch input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.csh-cookie-switch > span:first-of-type {
    position: relative;
    width: 46px;
    height: 26px;
    border-radius: 999px;
    background: #cbd5e1;
    transition: background .18s ease;
}

.csh-cookie-switch > span:first-of-type::after {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    box-shadow:
        0 2px 6px rgba(15, 23, 42, .22);
    content: "";
    transition: transform .18s ease;
}

.csh-cookie-switch input:checked + span {
    background: #bd8c2e;
}

.csh-cookie-switch input:checked + span::after {
    transform: translateX(20px);
}

.csh-cookie-preferences__footer {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    justify-content: flex-end;
    padding: 17px 22px;
    border-top: 1px solid #e5e9ef;
    background: #f8fafc;
}

.csh-cookie-preferences
.csh-cookie-button--ghost {
    border-color: #d5dce6;
    color: #475569;
}

.csh-cookie-reopen {
    position: fixed;
    z-index: 99980;
    right: 14px;
    bottom: 14px;
    display: grid;
    width: 43px;
    height: 43px;
    place-items: center;
    border: 1px solid #c89a38;
    border-radius: 50%;
    background: #102a46;
    box-shadow:
        0 10px 26px rgba(2, 8, 23, .25);
    color: #fff;
    cursor: pointer;
    font-size: 18px;
}

html.csh-cookie-modal-open {
    overflow: hidden;
}

@media (max-width: 900px) {
    .csh-cookie-banner {
        grid-template-columns: 44px minmax(0, 1fr);
    }

    .csh-cookie-banner__actions {
        grid-column: 1 / -1;
        justify-content: stretch;
    }

    .csh-cookie-banner__actions
    .csh-cookie-button {
        flex: 1 1 150px;
    }
}

@media (max-width: 560px) {
    .csh-cookie-consent {
        right: 10px;
        bottom: 10px;
        left: 10px;
    }

    .csh-cookie-banner {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 15px;
    }

    .csh-cookie-banner__icon {
        display: none;
    }

    .csh-cookie-banner__actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .csh-cookie-modal {
        align-items: end;
        padding: 0;
    }

    .csh-cookie-preferences {
        width: 100%;
        max-height: 92vh;
        border-radius: 20px 20px 0 0;
    }

    .csh-cookie-category {
        align-items: start;
    }

    .csh-cookie-preferences__footer {
        display: grid;
        grid-template-columns: 1fr;
    }
}
