.cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--card, #fdfcf9);
    color: var(--ink, #37352f);
    padding: 18px 20px;
    box-shadow: 0 -4px 18px rgba(0, 0, 0, 0.14);
    border-top: 1px solid var(--rule, #ece7dd);
    z-index: 1050;
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}
.cookie-consent-banner-text {
    font-size: 15px;
    line-height: 1.5;
    flex-grow: 1;
}
.cookie-consent-banner-text a {
    color: var(--brand-ink, #e8590c);
    text-decoration: underline;
}
.cookie-consent-inline-link {
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    font: inherit;
    color: var(--brand-ink, #e8590c);
    text-decoration: underline;
    cursor: pointer;
}
.cookie-consent-banner-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}
.cookie-consent-btn {
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
}
.cookie-consent-btn:hover {
    transform: translateY(-2px);
}
.cookie-consent-btn.primary,
.cookie-consent-btn.secondary {
    background-color: color-mix(in srgb, var(--ink, #37352f) 7%, transparent);
    color: var(--ink, #37352f);
    border: 1.5px solid color-mix(in srgb, var(--ink, #37352f) 26%, transparent);
}
.cookie-consent-btn.tertiary {
    background: none;
    color: var(--ink-2, #57544c);
    text-decoration: underline;
    padding: 10px;
}
.cookie-preferences-modal-backdrop {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1060;
    display: none;
    align-items: center;
    justify-content: center;
}
.cookie-preferences-modal-content {
    background-color: var(--paper, #faf9f6);
    color: var(--ink, #37352f);
    width: 90%;
    max-width: 550px;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
    display: flex;
    flex-direction: column;
    max-height: 90vh;
}
.cookie-preferences-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--rule, #ece7dd);
    padding-bottom: 15px;
    margin-bottom: 20px;
}
.cookie-preferences-modal-header h3 {
    margin: 0;
    font-size: 20px;
}
.cookie-preferences-modal-header .close-button {
    background: none;
    border: none;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    color: var(--muted, #78756c);
}
.cookie-preferences-modal-body {
    overflow-y: auto;
    padding-right: 10px;
    margin-right: -10px;
}
.cookie-preferences-modal-footer {
    border-top: 1px solid var(--rule, #ece7dd);
    padding-top: 20px;
    margin-top: 20px;
    text-align: right;
}
.cookie-category {
    padding: 15px 0;
    border-bottom: 1px solid var(--rule, #ece7dd);
}
.cookie-category:last-child {
    border-bottom: none;
}
.cookie-category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
}
.cookie-category-header h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}
.cookie-category-description {
    font-size: 14px;
    color: var(--ink-2, #57544c);
    margin-top: 8px;
    line-height: 1.6;
}
.cookie-category-description a {
    color: var(--brand-ink, #e8590c);
}
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 28px;
    flex-shrink: 0;
    margin-left: 15px;
}
.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}
.slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background-color: color-mix(in srgb, var(--ink, #37352f) 26%, transparent);
    transition: .3s;
    border-radius: 28px;
}
.slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 4px;
    bottom: 4px;
    background-color: #ffffff;
    transition: .3s;
    border-radius: 50%;
}
input:checked + .slider {
    background-color: var(--brand, #f7941d);
}
input:checked + .slider:before {
    transform: translateX(22px);
}
input:disabled + .slider {
    background-color: color-mix(in srgb, var(--ink, #37352f) 18%, transparent);
    cursor: not-allowed;
}
input:disabled + .slider:before {
    background-color: #e5e5e5;
}
.cookie-preferences-info {
    margin-top: 1rem;
    padding: 0.75rem;
    background: color-mix(in srgb, var(--brand, #f7941d) 8%, transparent);
    border: 1px solid var(--rule, #ece7dd);
    border-radius: 6px;
    font-size: 0.85rem;
    line-height: 1.5;
    color: var(--ink, #37352f);
}
.cookie-preferences-info a {
    color: var(--brand-ink, #e8590c);
}
@media (max-width: 768px) {
    .cookie-consent-banner {
        flex-direction: column;
        text-align: center;
        padding-bottom: 20px;
    }
    .cookie-consent-banner-actions {
        width: 100%;
        justify-content: center;
        margin-top: 15px;
    }
    .cookie-consent-btn {
        flex-grow: 1;
        text-align: center;
    }
}
