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

.kh-cookie-banner {
    position: fixed;
    right: 102px;
    bottom: 22px;
    z-index: 9996;
    display: flex;
    justify-content: flex-end;
    pointer-events: none;
}

.kh-cookie-banner__body {
    width: 360px;
    max-width: calc(100vw - 126px);
    padding: 12px 14px 11px;
    border: 1px solid #e5edf8;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 12px 28px rgba(35, 70, 120, 0.14);
    pointer-events: auto;
}

.kh-cookie-settings__card h2,
.kh-cookie-toggle strong {
    color: #0f172a;
    font-weight: 800;
    letter-spacing: 0;
}

.kh-cookie-banner__text p,
.kh-cookie-settings__card p,
.kh-cookie-toggle small {
    margin: 0;
    color: #50617b;
    font-size: 12px;
    line-height: 1.42;
}

.kh-cookie-banner__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    margin-right: 4px;
    border: 1px solid #bcd5ff;
    border-radius: 50%;
    background: #f1f7ff;
    color: #3155dc;
    font-size: 11px;
    font-weight: 900;
    line-height: 1;
    vertical-align: 1px;
}

.kh-cookie-banner__text a,
.kh-cookie-banner__text a:hover {
    color: #3155dc;
    font-weight: 750;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.kh-cookie-banner__actions,
.kh-cookie-settings__actions {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: flex-end;
}

.kh-cookie-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    margin-top: 8px;
    padding: 0 12px;
    border-radius: 8px;
    font: inherit;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.kh-cookie-button:hover {
    transform: translateY(-1px);
}

.kh-cookie-button--primary {
    border: 0;
    background: linear-gradient(135deg, #7567ff 0%, #35c7ff 100%);
    color: #fff;
    box-shadow: 0 8px 18px rgba(80, 141, 255, 0.20);
}

.kh-cookie-button--ghost {
    border: 1px solid #dce9fb;
    background: #f7fbff;
    color: #3155dc;
}

.kh-cookie-button--ghost:hover {
    border-color: #bcd5ff;
    box-shadow: 0 8px 18px rgba(50, 105, 205, 0.10);
}

.kh-cookie-settings {
    position: fixed;
    inset: 0;
    z-index: 10010;
    display: grid;
    place-items: center;
    padding: 18px;
    background: rgba(17, 24, 39, 0.42);
    backdrop-filter: blur(5px);
}

.kh-cookie-settings__card {
    position: relative;
    width: min(540px, 100%);
    padding: 24px;
    border: 1px solid #e5edf8;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 24px 70px rgba(35, 70, 120, 0.20);
}

.kh-cookie-settings__card h2 {
    margin: 0 42px 8px 0;
    font-size: 24px;
    line-height: 1.2;
}

.kh-cookie-settings__close {
    position: absolute;
    top: 16px;
    right: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid #dce9fb;
    border-radius: 12px;
    background: #f7fbff;
    color: #0f172a;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.kh-cookie-toggle {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr);
    gap: 12px;
    margin-top: 14px;
    padding: 14px;
    border: 1px solid #e5edf8;
    border-radius: 16px;
    background: #f7fbff;
}

.kh-cookie-toggle input {
    width: 20px;
    height: 20px;
    margin: 2px 0 0;
    accent-color: #4a8cff;
}

.kh-cookie-toggle--locked {
    background: #f1f7ff;
}

.kh-cookie-settings__actions {
    margin-top: 18px;
}

@media (max-width: 767px) {
    .kh-cookie-banner {
        right: 74px;
        bottom: 12px;
    }

    .kh-cookie-banner__body {
        width: 280px;
        max-width: calc(100vw - 90px);
        padding: 11px 12px 10px;
    }

    .kh-cookie-banner__actions,
    .kh-cookie-settings__actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        width: 100%;
    }

    .kh-cookie-settings__actions {
        grid-template-columns: 1fr;
    }

    .kh-cookie-button {
        width: auto;
        min-height: 28px;
        padding: 0 10px;
    }

    .kh-cookie-settings {
        padding: 12px;
    }

    .kh-cookie-settings__card {
        padding: 20px 16px;
    }

    .kh-cookie-settings__card h2 {
        font-size: 22px;
    }
}
