.cookie-consent {
    position: fixed;
    inset: auto 0 0 0;
    z-index: 100000;
    padding: 16px;
    background: rgba(0, 0, 0, .48);
}

.cookie-consent[hidden],
.cookie-consent__details[hidden],
.cookie-consent__actions[hidden] {
    display: none !important;
}

.cookie-consent__inner {
    width: min(1100px, 100%);
    margin: 0 auto;
    padding: 22px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 -4px 24px rgba(0, 0, 0, .18);
    display: flex;
    gap: 24px;
    align-items: center;
    justify-content: space-between;
}

.cookie-consent__content {
    flex: 1 1 auto;
    min-width: 0;
}

.cookie-consent__title {
    margin: 0 0 8px;
    font-size: 1.2rem;
    line-height: 1.3;
}

.cookie-consent__text {
    margin: 0;
    color: #444;
    line-height: 1.55;
}

.cookie-consent__links {
    margin: 6px 0 0;
}

.cookie-consent__links a,
.cookie-settings-link {
    text-decoration: underline;
    cursor: pointer;
}

.cookie-consent__actions {
    flex: 0 0 auto;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.cookie-consent__details {
    margin-top: 16px;
    border-top: 1px solid #e4e4e4;
}

.cookie-consent__choice {
    display: flex;
    gap: 20px;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    margin: 0;
    border-bottom: 1px solid #eee;
}

.cookie-consent__choice strong,
.cookie-consent__choice small {
    display: block;
}

.cookie-consent__choice small {
    margin-top: 4px;
    color: #666;
    font-weight: normal;
}

.cookie-consent__always-on {
    color: #555;
    white-space: nowrap;
    font-size: .875rem;
}

.cookie-consent__switch {
    position: relative;
    width: 46px;
    height: 26px;
    flex: 0 0 46px;
}

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

.cookie-consent__switch span {
    position: absolute;
    inset: 0;
    background: #bbb;
    border-radius: 999px;
    transition: .2s ease;
    cursor: pointer;
}

.cookie-consent__switch span::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    left: 3px;
    top: 3px;
    border-radius: 50%;
    background: #fff;
    transition: .2s ease;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .25);
}

.cookie-consent__switch input:checked + span {
    background: var(--bs-primary, #0d6efd);
}

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

.cookie-consent__switch input:focus-visible + span {
    outline: 3px solid rgba(13, 110, 253, .3);
    outline-offset: 2px;
}

@media (max-width: 767.98px) {
    .cookie-consent {
        padding: 10px;
    }

    .cookie-consent__inner {
        padding: 18px;
        align-items: stretch;
        flex-direction: column;
        gap: 16px;
        max-height: calc(100vh - 20px);
        overflow-y: auto;
    }

    .cookie-consent__actions {
        width: 100%;
        flex-direction: column-reverse;
    }

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

    .cookie-consent__choice {
        align-items: flex-start;
    }
}
