.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9000;
    background-color: #ffffff;
    border-top: 1px solid var(--clr-light-border);
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08);
    color: var(--clr-btn-primary-txt);
    animation: cookie-slide-up 0.35s cubic-bezier(0.25, 0.1, 0.25, 1);
}
@keyframes cookie-slide-up {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}
.cookie-banner[hidden] { display: none; }
.cookie-banner-inner {
    width: 100%;
    max-width: var(--max-w-container);
    margin: 0 auto;
    padding: 20px 40px;
    display: flex;
    align-items: center;
    gap: 28px;
}
.cookie-banner-text {
    flex: 1;
    min-width: 0;
}
.cookie-banner-title {
    font-size: 14px;
    line-height: 20px;
    font-weight: bold;
    margin: 0 0 4px 0;
    color: var(--clr-btn-primary-txt);
}
.cookie-banner-body {
    font-size: 12px;
    line-height: 18px;
    color: #4a4a4a;
    margin: 0;
}
.cookie-banner-body a {
    color: var(--clr-accent);
    text-decoration: underline;
    text-underline-offset: 2px;
}
.cookie-banner-body a:hover { color: var(--clr-accent); text-decoration: underline; }
.cookie-banner-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}
.cookie-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    padding: 0 18px;
    border-radius: 5px;
    font-family: inherit;
    font-size: 13px;
    font-weight: normal;
    cursor: pointer;
    border: 1px solid transparent;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
    white-space: nowrap;
}
.cookie-btn-primary {
    background-color: var(--clr-accent);
    color: #ffffff;
}
.cookie-btn-primary:hover { background-color: #0d5cd1; }
.cookie-btn-secondary {
    background-color: #ffffff;
    color: var(--clr-btn-primary-txt);
    border-color: var(--clr-light-border);
}
.cookie-btn-secondary:hover {
    background-color: var(--clr-light-bg);
    border-color: #c8c8c8;
}
.cookie-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}
.cookie-modal[hidden] { display: none; }
.cookie-modal-backdrop {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.55);
    animation: cookie-fade 0.25s ease;
}
@keyframes cookie-fade {
    from { opacity: 0; }
    to { opacity: 1; }
}
.cookie-modal-panel {
    position: relative;
    width: 100%;
    max-width: 560px;
    max-height: calc(100vh - 60px);
    margin: 30px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: cookie-pop 0.25s cubic-bezier(0.25, 0.1, 0.25, 1);
}
@keyframes cookie-pop {
    from { opacity: 0; transform: translateY(10px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
.cookie-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 26px;
    border-bottom: 1px solid var(--clr-light-border);
}
.cookie-modal-header h2 {
    margin: 0;
    font-size: 16px;
    line-height: 22px;
    font-weight: bold;
    color: var(--clr-btn-primary-txt);
}
.cookie-modal-close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 0;
    background-color: transparent;
    color: var(--clr-btn-primary-txt);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.15s ease;
}
.cookie-modal-close:hover { background-color: var(--clr-light-bg); }
.cookie-modal-body {
    padding: 22px 26px;
    overflow-y: auto;
    flex: 1;
}
.cookie-modal-intro {
    font-size: 13px;
    line-height: 20px;
    color: var(--clr-btn-primary-txt);
    margin: 0 0 18px 0;
}
.cookie-modal-intro strong { font-weight: bold; }
.cookie-cat {
    padding: 14px 0;
    border-top: 1px solid var(--clr-light-border);
}
.cookie-cat:first-of-type { border-top: 0; padding-top: 6px; }
.cookie-cat-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 6px;
}
.cookie-cat-title {
    margin: 0;
    font-size: 14px;
    line-height: 20px;
    font-weight: bold;
    color: var(--clr-btn-primary-txt);
}
.cookie-cat-pill {
    display: inline-flex;
    align-items: center;
    height: 22px;
    padding: 0 10px;
    border-radius: 11px;
    font-size: 11px;
    line-height: 1;
    font-weight: 500;
    background-color: #e6f0ff;
    color: var(--clr-accent);
}
.cookie-cat-pill-locked { background-color: var(--clr-light-bg); color: #6b6b6b; }
.cookie-cat-desc {
    font-size: 12px;
    line-height: 18px;
    color: #4a4a4a;
    margin: 0;
}
.cookie-toggle {
    position: relative;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    flex-shrink: 0;
}
.cookie-toggle input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.cookie-toggle-track {
    width: 38px;
    height: 22px;
    background-color: #c8c8c8;
    border-radius: 11px;
    position: relative;
    transition: background-color 0.2s ease;
}
.cookie-toggle-track::before {
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    width: 18px;
    height: 18px;
    background-color: #ffffff;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease;
}
.cookie-toggle input:checked + .cookie-toggle-track {
    background-color: var(--clr-accent);
}
.cookie-toggle input:checked + .cookie-toggle-track::before {
    transform: translateX(16px);
}
.cookie-toggle input:focus-visible + .cookie-toggle-track {
    outline: 2px solid var(--clr-accent);
    outline-offset: 2px;
}
.cookie-toggle-label-sr {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}
.cookie-modal-note {
    font-size: 11px;
    line-height: 17px;
    color: #6b6b6b;
    margin: 16px 0 0 0;
    padding-top: 14px;
    border-top: 1px solid var(--clr-light-border);
}
.cookie-modal-note a {
    color: var(--clr-accent);
    text-decoration: underline;
    text-underline-offset: 2px;
}
.cookie-modal-note a:hover { color: var(--clr-accent); text-decoration: underline; }
.cookie-modal-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    padding: 18px 26px;
    border-top: 1px solid var(--clr-light-border);
    background-color: var(--clr-light-bg);
    flex-wrap: wrap;
}
@media (max-width: 1050px) {
    .cookie-banner-inner {
        padding: 18px 24px;
        flex-wrap: wrap;
        gap: 16px;
    }
    .cookie-banner-actions { width: 100%; justify-content: flex-end; }
}
@media (max-width: 750px) {
    .cookie-banner-inner {
        padding: 16px;
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
    }
    .cookie-banner-actions {
        flex-wrap: wrap;
        gap: 8px;
    }
    .cookie-banner-actions .cookie-btn {
        flex: 1 1 calc(50% - 4px);
        min-width: 0;
        padding: 0 10px;
        font-size: 12px;
    }
    .cookie-banner-actions .cookie-btn-primary {
        flex-basis: 100%;
        order: -1;
    }
    .cookie-modal-panel {
        margin: 0;
        max-height: 100vh;
        max-height: 100dvh;
        border-radius: 0;
        height: 100vh;
        height: 100dvh;
    }
    .cookie-modal-footer { flex-direction: column-reverse; align-items: stretch; }
    .cookie-modal-footer .cookie-btn { width: 100%; }
}
.cookie-gpc-notice {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    background-color: #f0f7ff;
    border: 1px solid #bcd9ff;
    border-radius: 6px;
    margin-bottom: 18px;
    color: #0d3a7d;
}
.cookie-gpc-notice[hidden] { display: none; }
.cookie-gpc-notice-icon {
    flex-shrink: 0;
    color: var(--clr-accent);
    display: flex;
    align-items: center;
    margin-top: 1px;
}
.cookie-gpc-notice-text {
    font-size: 12px;
    line-height: 18px;
}
.cookie-gpc-notice-text strong { font-weight: bold; }
#cookie-toast-host {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 24px;
    z-index: 11000;
    display: flex;
    justify-content: center;
    pointer-events: none;
    padding: 0 16px;
}
.cookie-toast {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: #0a0a0a;
    color: #ffffff;
    padding: 12px 20px;
    border-radius: 999px;
    font-size: 13px;
    line-height: 18px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    max-width: 560px;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}
.cookie-toast.cookie-toast-shown {
    opacity: 1;
    transform: translateY(0);
}
.cookie-toast-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background-color: #1f9d55;
    color: #ffffff;
    flex-shrink: 0;
}
.cookie-toast-text {
    text-align: left;
}
@media (max-width: 750px) {
    #cookie-toast-host { bottom: 16px; }
    .cookie-toast { font-size: 12px; padding: 10px 16px; }
}
