/* ODIN Cookie Consent — Banner styles */
:root {
    --occ-bg: #ffffff;
    --occ-fg: #111827;
    --occ-muted: #6b7280;
    --occ-border: #e5e7eb;
    --occ-primary: #2563eb;
    --occ-primary-hover: #1d4ed8;
    --occ-secondary-bg: #f3f4f6;
    --occ-secondary-fg: #111827;
    --occ-overlay: rgba(0, 0, 0, .55);
    --occ-radius: 10px;
    --occ-shadow: 0 10px 30px rgba(0, 0, 0, .15);
    --occ-z: 2147483600;
}

.occ-banner,
.occ-modal,
.occ-floating-btn {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, "Helvetica Neue", sans-serif;
    color: var(--occ-fg);
    box-sizing: border-box;
}
.occ-banner *,
.occ-modal *,
.occ-floating-btn * { box-sizing: border-box; }

/* Banner --------------------------------------------------------------- */
.occ-banner {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    background: var(--occ-bg);
    border: 1px solid var(--occ-border);
    border-radius: var(--occ-radius);
    box-shadow: var(--occ-shadow);
    padding: 20px 22px;
    z-index: var(--occ-z);
    max-width: 1100px;
    margin: 0 auto;
}
.occ-banner[hidden] { display: none; }

.occ-banner__inner {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 24px;
    align-items: center;
    justify-content: space-between;
}
.occ-banner__content { flex: 1 1 380px; min-width: 280px; }
.occ-banner__title {
    margin: 0 0 6px;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.3;
}
.occ-banner__message {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: var(--occ-muted);
}
.occ-banner__links {
    margin: 8px 0 0;
    font-size: 13px;
}
.occ-banner__links a {
    color: var(--occ-primary);
    text-decoration: underline;
}
.occ-banner__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    flex-shrink: 0;
}

/* Buttons -------------------------------------------------------------- */
.occ-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.2;
    padding: 10px 16px;
    cursor: pointer;
    transition: background-color .15s, border-color .15s, color .15s;
    min-height: 40px;
    text-decoration: none;
    font-family: inherit;
}
.occ-btn--primary {
    background: var(--occ-primary);
    color: #fff;
    border-color: var(--occ-primary);
}
.occ-btn--primary:hover { background: var(--occ-primary-hover); border-color: var(--occ-primary-hover); }
.occ-btn--secondary {
    background: var(--occ-secondary-bg);
    color: var(--occ-secondary-fg);
    border-color: var(--occ-border);
}
.occ-btn--secondary:hover { background: #e5e7eb; }

/* Modal ---------------------------------------------------------------- */
.occ-modal {
    position: fixed;
    inset: 0;
    z-index: var(--occ-z);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.occ-modal[hidden] { display: none; }
.occ-modal__overlay {
    position: absolute;
    inset: 0;
    background: var(--occ-overlay);
}
.occ-modal__dialog {
    position: relative;
    background: var(--occ-bg);
    border-radius: var(--occ-radius);
    box-shadow: var(--occ-shadow);
    width: 100%;
    max-width: 640px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.occ-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 22px;
    border-bottom: 1px solid var(--occ-border);
}
.occ-modal__title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}
.occ-modal__close {
    background: transparent;
    border: 0;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    color: var(--occ-muted);
    padding: 0 4px;
}
.occ-modal__close:hover { color: var(--occ-fg); }
.occ-modal__body {
    padding: 20px 22px;
    overflow-y: auto;
}
.occ-modal__intro {
    margin: 0 0 16px;
    font-size: 14px;
    line-height: 1.5;
    color: var(--occ-muted);
}
.occ-modal__footer {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
    padding: 14px 22px;
    border-top: 1px solid var(--occ-border);
    background: #fafafa;
}

/* Categories ----------------------------------------------------------- */
.occ-categories { list-style: none; margin: 0; padding: 0; }
.occ-category {
    border: 1px solid var(--occ-border);
    border-radius: 8px;
    padding: 14px 16px;
    margin-bottom: 10px;
}
.occ-category__row {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    justify-content: space-between;
}
.occ-category__text { flex: 1; }
.occ-category__label {
    margin: 0 0 4px;
    font-size: 15px;
    font-weight: 600;
}
.occ-category__desc {
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
    color: var(--occ-muted);
}
.occ-category__toggle { flex-shrink: 0; }
.occ-locked {
    font-size: 12px;
    color: var(--occ-muted);
    font-weight: 500;
    margin-right: 6px;
}

/* Switch toggle */
.occ-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}
.occ-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}
.occ-switch__slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: #cbd5e1;
    border-radius: 24px;
    transition: background .2s;
}
.occ-switch__slider::before {
    content: "";
    position: absolute;
    height: 18px;
    width: 18px;
    left: 3px;
    top: 3px;
    background: #fff;
    border-radius: 50%;
    transition: transform .2s;
}
.occ-switch input:checked + .occ-switch__slider { background: var(--occ-primary); }
.occ-switch input:checked + .occ-switch__slider::before { transform: translateX(20px); }
.occ-switch input:disabled + .occ-switch__slider { opacity: .6; cursor: not-allowed; }

/* Floating button ------------------------------------------------------ */
.occ-floating-btn {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--occ-fg);
    color: #fff;
    border: 0;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,.2);
    z-index: calc(var(--occ-z) - 1);
    transition: transform .15s, background .15s;
}
.occ-floating-btn:hover { transform: scale(1.06); background: #000; }
.occ-floating-btn.is-visible { display: inline-flex; }

/* Mobile --------------------------------------------------------------- */
@media (max-width: 640px) {
    .occ-banner { left: 8px; right: 8px; bottom: 8px; padding: 16px; }
    .occ-banner__actions { width: 100%; }
    .occ-banner__actions .occ-btn { flex: 1 1 auto; }
    .occ-modal__footer { justify-content: stretch; }
    .occ-modal__footer .occ-btn { flex: 1 1 auto; }
    .occ-floating-btn { bottom: 12px; left: 12px; }
}
