

.tw-cookies {
    position: fixed;
    bottom: 16px;
    left: 16px;
    z-index: 2147483000;
    width: min(460px, calc(100% - 32px));
    max-height: calc(100vh - 32px);
    overflow-y: auto;
    background: #fff;
    color: var(--tw-text);
    font-family: var(--tw-font);
    font-size: 14px;
    line-height: 1.6;
    border: 1px solid #ddd;
}

.tw-cookies[hidden],
.tw-cookies [hidden] { display: none !important; }

.tw-cookies__box {
    position: relative;
    padding: 1.75rem;
    border-top: 4px solid var(--tw-accent);
}

.tw-cookies__title {
    margin: 0 0 .75rem;
    padding-right: 2rem;
    color: var(--tw-dark);
    font-family: var(--tw-font-heading);
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.3;
}

.tw-cookies p { margin: 0 0 .75rem; }

.tw-cookies__link {
    color: var(--tw-accent);
    text-decoration: underline;
}

.tw-cookies__close {
    position: absolute;
    top: .75rem;
    right: .75rem;
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 50%;
    background: none;
    color: #888;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.tw-cookies__close:hover { background: #f2f2f2; color: var(--tw-dark); }

.tw-cookies__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 1.25rem;
}

.tw-cookies__btn {
    flex: 1 1 auto;
    padding: .75rem 1rem;
    border: 2px solid var(--tw-dark);
    background: #fff;
    color: var(--tw-dark);
    font-family: var(--tw-font-heading);
    font-size: 15px;
    cursor: pointer;
    transition: filter .15s ease, background-color .15s ease;
}

.tw-cookies__btn:hover { background: #f5f5f5; }

.tw-cookies__btn--primary {
    border-color: var(--tw-accent);
    background: var(--tw-accent);
    color: #fff;
}

.tw-cookies__btn--primary:hover { background: var(--tw-accent); filter: brightness(.9); }

.tw-cookies__more {
    flex-basis: 100%;
    padding: .25rem 0 0;
    border: 0;
    background: none;
    color: var(--tw-dark);
    font: inherit;
    text-align: left;
    text-decoration: underline;
    cursor: pointer;
}

.tw-cookies__more:hover { color: var(--tw-accent); }

.tw-cookies__list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.tw-cookies__list li {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: .9rem 0;
    border-top: 1px solid var(--tw-border);
}

.tw-cookies__list h3 {
    margin: 0 0 .25rem;
    color: var(--tw-dark);
    font-family: var(--tw-font-heading);
    font-size: 15px;
    font-weight: 700;
}

.tw-cookies__list p {
    margin: 0;
    color: #666;
    font-size: 13px;
}

.tw-switch-toggle {
    display: flex;
    flex-shrink: 0;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    cursor: pointer;
}

.tw-switch-toggle input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.tw-switch-toggle span {
    position: relative;
    display: block;
    width: 44px;
    height: 24px;
    border-radius: 999px;
    background: #ccc;
    transition: background-color .2s ease;
}

.tw-switch-toggle span::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    transition: transform .2s ease;
}

.tw-switch-toggle input:checked + span { background: var(--tw-accent); }
.tw-switch-toggle input:checked + span::after { transform: translateX(20px); }
.tw-switch-toggle input:focus-visible + span { outline: 2px solid var(--tw-accent); outline-offset: 2px; }
.tw-switch-toggle.is-locked { cursor: default; opacity: .6; }

.tw-switch-toggle em {
    color: #888;
    font-size: 11px;
    font-style: normal;
}

.tw-cookies-reopen {
    position: fixed;
    bottom: 16px;
    left: 16px;
    z-index: 2147482000;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--tw-border);
    border-radius: 50%;
    background: #fff;
    color: var(--tw-dark);
    cursor: pointer;
}

.tw-cookies-reopen[hidden] { display: none; }
.tw-cookies-reopen:hover { color: var(--tw-accent); }

@media (max-width: 560px) {
    .tw-cookies {
        bottom: 0;
        left: 0;
        width: 100%;
        max-height: 85vh;
    }

    .tw-cookies__box { padding: 1.25rem; }
    .tw-cookies__btn { flex-basis: 100%; }
}