.ks-cookie-consent-overlay {
    --ks-cookie-accent: #171755;
    --ks-cookie-accent-hover: #6969a9;
    --ks-cookie-accent-soft: rgba(23, 23, 85, 0.12);
    position: fixed;
    inset: 0;
    z-index: 2147483000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(15, 23, 42, 0.45);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.ks-cookie-consent-overlay.ks-cookie-consent--visible {
    display: flex;
    opacity: 1;
}

#ks-cookie-consent {
    width: min(920px, 100%);
    max-height: min(90vh, 720px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.18);
    color: #1f2937;
    font-size: 0.9rem;
    line-height: 1.5;
}

.ks-cookie-consent__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.35rem 0.75rem;
    border-bottom: 1px solid #e5e7eb;
}

.ks-cookie-consent__logo img {
    display: block;
    max-height: 36px;
    max-width: 148px;
    width: auto;
    height: auto;
}

.ks-cookie-consent__logo-text {
    font-weight: 700;
    font-size: 1.05rem;
    color: #111827;
}

.ks-cookie-consent__brand {
    font-size: 0.78rem;
    color: #6b7280;
    white-space: nowrap;
}

.ks-cookie-consent__tabs {
    display: flex;
    gap: 0;
    padding: 0 1.35rem;
    border-bottom: 1px solid #e5e7eb;
}

.ks-cookie-consent__tab {
    appearance: none;
    border: none;
    background: transparent;
    padding: 0.85rem 1rem;
    font: inherit;
    font-weight: 600;
    color: #6b7280;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    margin-bottom: -1px;
}

.ks-cookie-consent__tab.is-active {
    color: var(--ks-cookie-accent);
    border-bottom-color: var(--ks-cookie-accent-hover);
}

.ks-cookie-consent__body {
    overflow: auto;
    padding: 1.25rem 1.35rem 1rem;
}

.ks-cookie-consent__panel--hidden {
    display: none;
}

.ks-cookie-consent__title {
    margin: 0 0 0.65rem;
    font-size: 1.05rem;
    font-weight: 700;
    color: #111827;
}

.ks-cookie-consent__text {
    margin: 0 0 1.15rem;
    color: #4b5563;
}

.ks-cookie-consent__toggles {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
}

.ks-cookie-consent__toggle-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 0.65rem;
    text-align: center;
    border-right: 1px solid #e5e7eb;
}

.ks-cookie-consent__toggle-col:last-child {
    border-right: none;
}

.ks-cookie-consent__toggle-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: #374151;
}

.ks-cookie-consent__switch {
    position: relative;
    display: inline-block;
    width: 46px;
    height: 24px;
    flex-shrink: 0;
}

.ks-cookie-consent__switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.ks-cookie-consent__slider {
    position: absolute;
    inset: 0;
    cursor: pointer;
    background: #111827;
    border-radius: 999px;
    transition: background 0.2s ease;
}

.ks-cookie-consent__slider::before {
    content: '';
    position: absolute;
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.2s ease;
}

.ks-cookie-consent__switch input:checked + .ks-cookie-consent__slider {
    background: var(--ks-cookie-accent);
}

.ks-cookie-consent__switch input:checked + .ks-cookie-consent__slider::before {
    transform: translateX(22px);
}

.ks-cookie-consent__switch--locked .ks-cookie-consent__slider {
    background: var(--ks-cookie-accent);
    cursor: not-allowed;
    opacity: 0.85;
}

.ks-cookie-consent__switch--locked input:checked + .ks-cookie-consent__slider::before {
    transform: translateX(22px);
}

.ks-cookie-consent__details-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.ks-cookie-consent__details-item + .ks-cookie-consent__details-item {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #eef2f7;
}

.ks-cookie-consent__details-item strong {
    display: block;
    margin-bottom: 0.35rem;
    color: #111827;
}

.ks-cookie-consent__details-item p {
    margin: 0;
    color: #4b5563;
    font-size: 0.86rem;
}

.ks-cookie-consent__link {
    color: var(--ks-cookie-accent);
    font-weight: 600;
}

.ks-cookie-consent__footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.65rem;
    padding: 0.85rem 1.35rem 1.15rem;
    border-top: 1px solid #e5e7eb;
}

.ks-cookie-consent__btn {
    border-radius: 999px;
    padding: 0.55rem 1.25rem;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.ks-cookie-consent__btn--deny {
    border: 1px solid var(--ks-cookie-accent-hover);
    background: #fff;
    color: #111827;
}

.ks-cookie-consent__btn--deny:hover {
    background: var(--ks-cookie-accent-soft);
}

.ks-cookie-consent__btn--selected {
    border: 1px solid var(--ks-cookie-accent);
    background: #fff;
    color: var(--ks-cookie-accent);
}

.ks-cookie-consent__btn--allow {
    border: none;
    background: var(--ks-cookie-accent);
    color: #fff;
}

.ks-cookie-consent__btn--allow:hover {
    background: var(--ks-cookie-accent-hover);
}

@media (max-width: 768px) {
    .ks-cookie-consent__toggles {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ks-cookie-consent__toggle-col:nth-child(2) {
        border-right: none;
    }

    .ks-cookie-consent__toggle-col:nth-child(1),
    .ks-cookie-consent__toggle-col:nth-child(2) {
        border-bottom: 1px solid #e5e7eb;
    }

    .ks-cookie-consent__footer {
        justify-content: stretch;
    }

    .ks-cookie-consent__footer .ks-cookie-consent__btn {
        flex: 1 1 auto;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .ks-cookie-consent__tabs {
        overflow-x: auto;
    }

    .ks-cookie-consent__tab {
        flex: 0 0 auto;
        padding-inline: 0.75rem;
    }
}
