/* jOpenSim Cookie Consent v1.2 — Liquid Glass UI */

#jop-cookie-consent-root {
    --jop-cc-glass-bg: rgba(12, 14, 26, 0.52);
    --jop-cc-glass-bg-strong: rgba(8, 10, 22, 0.72);
    --jop-cc-glass-blur: 28px;
    --jop-cc-glass-saturate: 165%;
    --jop-cc-glass-border: rgba(255, 255, 255, 0.14);
    --jop-cc-glass-highlight: rgba(255, 255, 255, 0.22);
    --jop-cc-glass-shadow: 0 24px 64px rgba(0, 0, 0, 0.45), 0 8px 24px rgba(0, 0, 0, 0.28);
    --jop-cc-glow-gold: rgba(245, 197, 24, 0.35);
    --jop-cc-glow-blue: rgba(47, 107, 255, 0.28);
    --jop-cc-muted: rgba(244, 247, 255, 0.72);
    --jop-cc-border: rgba(255, 255, 255, 0.1);
    --jop-cc-surface-2: rgba(255, 255, 255, 0.06);
    --jop-cc-primary-soft: rgba(var(--jop-cc-primary-rgb), 0.16);
    --jop-cc-primary-hover: color-mix(in srgb, var(--jop-cc-primary, #f5c518) 90%, #fff);
    --jop-cc-ease: cubic-bezier(0.22, 1, 0.36, 1);
    font-family: var(--jop-cc-font, Bahnschrift, "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif);
    z-index: 999999;
    -webkit-font-smoothing: antialiased;
}

#jop-cookie-consent-root,
#jop-cookie-consent-root * {
    box-sizing: border-box;
}

#jop-cookie-consent-root[data-theme="light"] {
    --jop-cc-glass-bg: rgba(255, 255, 255, 0.72);
    --jop-cc-glass-bg-strong: rgba(255, 255, 255, 0.88);
    --jop-cc-glass-border: rgba(15, 23, 42, 0.1);
    --jop-cc-glass-highlight: rgba(255, 255, 255, 0.85);
    --jop-cc-muted: rgba(15, 23, 42, 0.62);
    --jop-cc-border: rgba(15, 23, 42, 0.08);
    --jop-cc-surface-2: rgba(15, 23, 42, 0.04);
}

/* ── Backdrop ── */
.jop-cc-backdrop {
    position: fixed;
    inset: 0;
    z-index: 999998;
    background: rgba(4, 5, 12, 0.55);
    backdrop-filter: blur(10px) saturate(120%);
    -webkit-backdrop-filter: blur(10px) saturate(120%);
    opacity: 0;
    animation: jop-cc-fade-in 0.4s var(--jop-cc-ease) forwards;
}

.jop-cc-backdrop--light {
    background: rgba(4, 5, 12, 0.32);
}

.jop-cc-backdrop--consent {
    background: rgba(4, 5, 12, 0.48);
    backdrop-filter: blur(14px) saturate(130%);
    -webkit-backdrop-filter: blur(14px) saturate(130%);
    pointer-events: auto;
}

/* ── Shell ── */
.jop-cc-shell {
    position: fixed;
    z-index: 999999;
    pointer-events: none;
}

.jop-cc-shell--bottom-bar {
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    justify-content: center;
    padding: 0 1rem 1.1rem;
}

.jop-cc-shell--bottom-left { left: 1.25rem; bottom: 1.25rem; }
.jop-cc-shell--bottom-right { right: 1.25rem; bottom: 1.25rem; }

.jop-cc-shell--center-modal {
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
}

/* ── Liquid glass card ── */
.jop-cc-card {
    position: relative;
    pointer-events: auto;
    color: var(--jop-cc-text, #f4f7ff);
    border-radius: var(--jop-cc-radius, 20px);
    overflow: hidden;
    isolation: isolate;
    opacity: 0;
    transform: translateY(20px) scale(0.97);
    animation: jop-cc-rise-in 0.5s var(--jop-cc-ease) forwards;
}

.jop-cc-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: var(--jop-cc-glass-bg);
    backdrop-filter: blur(var(--jop-cc-glass-blur)) saturate(var(--jop-cc-glass-saturate));
    -webkit-backdrop-filter: blur(var(--jop-cc-glass-blur)) saturate(var(--jop-cc-glass-saturate));
    z-index: 0;
}

.jop-cc-card::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(
        145deg,
        var(--jop-cc-glow-gold) 0%,
        var(--jop-cc-glass-border) 35%,
        var(--jop-cc-glow-blue) 70%,
        rgba(255, 255, 255, 0.08) 100%
    );
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    z-index: 2;
}

.jop-cc-glass-shine {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background:
        linear-gradient(180deg, var(--jop-cc-glass-highlight) 0%, transparent 38%),
        radial-gradient(120% 80% at 100% 0%, rgba(47, 107, 255, 0.12), transparent 55%),
        radial-gradient(90% 60% at 0% 100%, rgba(245, 197, 24, 0.1), transparent 50%);
    opacity: 0.55;
    pointer-events: none;
    z-index: 1;
}

.jop-cc-glass-body {
    position: relative;
    z-index: 3;
}

.jop-cc-shell--bottom-bar.jop-cc-shell--split-bar {
    padding: 0 1rem 1rem;
}

.jop-cc-shell--bottom-bar .jop-cc-card--split-bar {
    width: min(calc(100vw - 2rem), var(--jop-cc-max-width, 680px));
    max-width: var(--jop-cc-max-width, 680px);
    box-shadow: 0 -4px 32px rgba(0, 0, 0, 0.35), var(--jop-cc-glass-shadow);
}

.jop-cc-card--split-bar {
    transform: translateY(12px) scale(1);
    animation: jop-cc-slide-up 0.45s var(--jop-cc-ease) forwards;
}

@keyframes jop-cc-slide-up {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}

.jop-cc-card--split-bar .jop-cc-glass-body {
    padding: 0;
}

.jop-cc-shell--bottom-left .jop-cc-card,
.jop-cc-shell--bottom-right .jop-cc-card {
    width: min(calc(100vw - 2.5rem), var(--jop-cc-max-width, 640px));
    box-shadow: var(--jop-cc-glass-shadow);
}

.jop-cc-shell--center-modal .jop-cc-card,
.jop-cc-card--prefs {
    width: min(100%, 36rem);
    max-height: min(92vh, 720px);
    display: flex;
    flex-direction: column;
    min-height: 0;
    box-shadow: var(--jop-cc-glass-shadow);
}

.jop-cc-card--prefs .jop-cc-glass-body {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
}

.jop-cc-prefs-header,
.jop-cc-prefs-intro,
.jop-cc-prefs-footer {
    flex-shrink: 0;
}

/* ── Banner ── */
.jop-cc-banner-inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 1.25rem 1.5rem;
    align-items: center;
    padding: 1.35rem 1.5rem;
}

.jop-cc-shell--bottom-bar .jop-cc-banner-inner:not(.jop-cc-banner-inner--split) {
    grid-template-columns: 1fr;
    gap: 0.9rem;
    padding: 1.15rem 1.25rem 1.2rem;
}

.jop-cc-glass-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.55rem;
}

.jop-cc-brand {
    display: flex;
    align-items: center;
    min-height: 2rem;
    max-width: 100%;
}

.jop-cc-brand .jop-cc-logo {
    display: block;
    height: 2rem;
    width: auto;
    max-width: 9.5rem;
    object-fit: contain;
    object-position: left center;
    filter: drop-shadow(0 2px 10px rgba(245, 197, 24, 0.22));
}

.jop-cc-icon-wrap {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 11px;
    background: var(--jop-cc-primary-soft);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--jop-cc-primary, #f5c518);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.jop-cc-icon-wrap svg {
    width: 1.25rem;
    height: 1.25rem;
}

.jop-cc-title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.25;
    background: linear-gradient(90deg, var(--jop-cc-text, #f4f7ff) 0%, color-mix(in srgb, var(--jop-cc-text, #f4f7ff) 82%, var(--jop-cc-primary, #f5c518)) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

#jop-cookie-consent-root[data-theme="light"] .jop-cc-title {
    background: none;
    -webkit-background-clip: unset;
    background-clip: unset;
    color: var(--jop-cc-text, #0f172a);
}

.jop-cc-message {
    margin: 0;
    font-size: 0.8125rem;
    line-height: 1.62;
    color: var(--jop-cc-muted);
}

.jop-cc-links {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.85rem;
    margin-top: 0.5rem;
}

.jop-cc-link {
    color: var(--jop-cc-primary, #f5c518);
    font-size: 0.78rem;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid rgba(var(--jop-cc-primary-rgb), 0.35);
    transition: opacity 0.15s ease;
}

.jop-cc-link:hover { opacity: 0.85; }

.jop-cc-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    justify-content: flex-end;
    align-items: center;
}

.jop-cc-shell--bottom-bar .jop-cc-actions {
    justify-content: stretch;
}

.jop-cc-shell--bottom-bar .jop-cc-btn {
    flex: 1 1 auto;
    min-width: 0;
    text-align: center;
}

/* ── Glass buttons ── */
.jop-cc-btn {
    appearance: none;
    border: none;
    border-radius: calc(var(--jop-cc-radius, 20px) * 0.55);
    padding: 0.6rem 1rem;
    font-family: inherit;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1.2;
    cursor: pointer;
    white-space: nowrap;
    transition: transform 0.14s ease, box-shadow 0.14s ease, background 0.14s ease;
}

.jop-cc-btn:active { transform: scale(0.98); }

.jop-cc-btn--primary {
    background: linear-gradient(135deg, var(--jop-cc-primary, #f5c518) 0%, color-mix(in srgb, var(--jop-cc-primary, #f5c518) 75%, #fff) 100%);
    color: #111;
    box-shadow: 0 6px 20px rgba(var(--jop-cc-primary-rgb), 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.jop-cc-btn--primary:hover {
    box-shadow: 0 8px 26px rgba(var(--jop-cc-primary-rgb), 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.jop-cc-btn--outline {
    background: rgba(255, 255, 255, 0.06);
    color: var(--jop-cc-text, #f4f7ff);
    border: 1px solid var(--jop-cc-glass-border);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.jop-cc-btn--outline:hover {
    background: rgba(255, 255, 255, 0.1);
}

.jop-cc-btn--ghost {
    background: transparent;
    color: var(--jop-cc-muted);
    padding-left: 0.55rem;
    padding-right: 0.55rem;
}

.jop-cc-btn--ghost:hover {
    color: var(--jop-cc-text, #f4f7ff);
    background: rgba(255, 255, 255, 0.05);
}

.jop-cc-btn--icon {
    width: 2.15rem;
    height: 2.15rem;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--jop-cc-glass-border);
    color: var(--jop-cc-muted);
}

.jop-cc-btn--icon:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--jop-cc-text, #f4f7ff);
}

.jop-cc-btn--icon svg { width: 0.95rem; height: 0.95rem; }

/* ── Preferences ── */
.jop-cc-prefs-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 0.75rem;
    padding: 1.15rem 1.35rem 0.95rem;
    border-bottom: 1px solid var(--jop-cc-border);
}

.jop-cc-prefs-title {
    margin: 0;
    justify-self: start;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.jop-cc-prefs-brand-slot {
    justify-self: center;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
}

.jop-cc-prefs-brand-slot .jop-cc-brand {
    display: flex;
    align-items: center;
    justify-content: center;
}

.jop-cc-prefs-brand-slot .jop-cc-logo {
    display: block;
    height: 1.85rem;
    width: auto;
    max-width: 9rem;
    object-fit: contain;
    object-position: center center;
    filter: drop-shadow(0 2px 10px rgba(245, 197, 24, 0.22));
}

.jop-cc-prefs-header .jop-cc-btn--icon {
    justify-self: end;
}

.jop-cc-prefs-intro {
    margin: 0;
    padding: 0 1.35rem 0.95rem;
    font-size: 0.8rem;
    line-height: 1.55;
    color: var(--jop-cc-muted);
    border-bottom: 1px solid var(--jop-cc-border);
}

.jop-cc-prefs-list {
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 0.75rem 1.35rem;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.22) transparent;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}

.jop-cc-prefs-list::-webkit-scrollbar {
    width: 6px;
}

.jop-cc-prefs-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.22);
    border-radius: 999px;
}

.jop-cc-cat {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--jop-cc-border);
    border-radius: calc(var(--jop-cc-radius, 20px) * 0.55);
    padding: 0.9rem 0.95rem;
    margin-bottom: 0.55rem;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.jop-cc-cat-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.jop-cc-cat-title {
    font-size: 0.875rem;
    font-weight: 600;
}

.jop-cc-cat-desc {
    margin: 0.35rem 0 0;
    font-size: 0.75rem;
    line-height: 1.5;
    color: var(--jop-cc-muted);
}

.jop-cc-badge {
    display: inline-flex;
    padding: 0.18rem 0.5rem;
    border-radius: 999px;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    background: rgba(52, 211, 153, 0.14);
    color: #6ee7b7;
    border: 1px solid rgba(52, 211, 153, 0.22);
}

.jop-cc-toggle {
    position: relative;
    width: 2.55rem;
    height: 1.45rem;
    flex-shrink: 0;
}

.jop-cc-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

.jop-cc-toggle-track {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.22s var(--jop-cc-ease);
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2);
}

.jop-cc-toggle-track::after {
    content: "";
    position: absolute;
    top: 0.12rem;
    left: 0.12rem;
    width: 1.1rem;
    height: 1.1rem;
    background: linear-gradient(180deg, #fff 0%, #e2e8f0 100%);
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
    transition: transform 0.22s var(--jop-cc-ease);
}

.jop-cc-toggle input:checked + .jop-cc-toggle-track {
    background: rgba(var(--jop-cc-primary-rgb), 0.55);
    border-color: rgba(var(--jop-cc-primary-rgb), 0.4);
}

.jop-cc-toggle input:checked + .jop-cc-toggle-track::after {
    transform: translateX(1.1rem);
}

.jop-cc-prefs-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: space-between;
    padding: 0.95rem 1.35rem 1.15rem;
    border-top: 1px solid var(--jop-cc-border);
}

.jop-cc-prefs-footer .jop-cc-actions { margin-left: auto; }

/* ── Float button (glass pill) ── */
.jop-cc-float {
    position: fixed;
    left: var(--jop-cc-float-x, 1.15rem);
    bottom: var(--jop-cc-float-y, 1.15rem);
    z-index: 999997;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    border: 1px solid var(--jop-cc-glass-border);
    border-radius: 999px;
    background: var(--jop-cc-glass-bg-strong);
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    color: var(--jop-cc-text, #f4f7ff);
    font-family: var(--jop-cc-font);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.5rem 0.85rem 0.5rem 0.55rem;
    box-shadow: var(--jop-cc-glass-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.jop-cc-float:hover {
    transform: translateY(-2px);
}

.jop-cc-float-icon {
    width: 1.55rem;
    height: 1.55rem;
    border-radius: 50%;
    background: var(--jop-cc-primary-soft);
    color: var(--jop-cc-primary, #f5c518);
    display: flex;
    align-items: center;
    justify-content: center;
}

.jop-cc-float-icon svg { width: 0.85rem; height: 0.85rem; }

/* ── Animations ── */
@keyframes jop-cc-fade-in { to { opacity: 1; } }

@keyframes jop-cc-rise-in {
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.jop-cc-card.jop-cc-leaving {
    animation: jop-cc-leave 0.28s var(--jop-cc-ease) forwards;
}

@keyframes jop-cc-leave {
    to { opacity: 0; transform: translateY(10px) scale(0.98); }
}

@media (max-width: 860px) {
    .jop-cc-banner-inner { padding: 1rem 1.05rem 1.05rem; }
    .jop-cc-actions { width: 100%; flex-direction: column-reverse; }
    .jop-cc-btn { width: 100%; text-align: center; }
    .jop-cc-prefs-footer { flex-direction: column; }
    .jop-cc-prefs-footer .jop-cc-actions { width: 100%; flex-direction: column-reverse; margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .jop-cc-card, .jop-cc-backdrop { animation: none; opacity: 1; transform: none; }
}

/* ── Split layout (testo sx, pulsanti dx) — Cookiebot-style bar ── */
.jop-cc-banner-inner--split {
    display: flex !important;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.8rem 1.15rem 0.85rem !important;
    grid-template-columns: unset !important;
}

.jop-cc-banner-top {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 1.65rem;
}

.jop-cc-banner-top .jop-cc-glass-header {
    margin: 0;
    flex: 1 1 auto;
    min-width: 0;
}

.jop-cc-banner-top .jop-cc-title {
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.25;
}

.jop-cc-banner-bottom {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.jop-cc-banner-logo {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
}

.jop-cc-banner-logo--inline {
    justify-content: flex-end;
    align-self: center;
    padding-left: 0.5rem;
}

.jop-cc-banner-logo--inline .jop-cc-brand {
    margin: 0;
}

.jop-cc-banner-logo--inline .jop-cc-logo {
    display: block;
    height: 1.35rem;
    width: auto;
    max-width: 5.5rem;
    object-fit: contain;
    object-position: right center;
    filter: drop-shadow(0 2px 10px rgba(245, 197, 24, 0.22));
}

.jop-cc-banner-inner--has-logo {
    gap: 0.4rem;
}

.jop-cc-banner-left {
    flex: 1 1 auto;
    min-width: 0;
}

.jop-cc-banner-left .jop-cc-brand {
    margin-bottom: 0.35rem;
}

.jop-cc-banner-left .jop-cc-brand .jop-cc-logo {
    height: 1.35rem;
    max-width: 7rem;
}

.jop-cc-banner-left .jop-cc-glass-header {
    margin-bottom: 0.25rem;
}

.jop-cc-banner-left .jop-cc-title {
    font-size: 0.95rem;
    margin: 0 0 0.2rem;
}

.jop-cc-banner-left .jop-cc-message {
    font-size: 0.78rem;
    line-height: 1.45;
    margin: 0;
}

.jop-cc-banner-left .jop-cc-links {
    margin-top: 0.3rem;
}

.jop-cc-banner-right {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.jop-cc-banner-right .jop-cc-actions {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.4rem;
    width: auto;
}

.jop-cc-banner-right .jop-cc-btn {
    flex: 0 0 auto;
    width: auto;
    white-space: nowrap;
    padding: 0.52rem 0.85rem;
    font-size: 0.75rem;
}

.jop-cc-banner-right .jop-cc-btn--ghost {
    order: 1;
}

.jop-cc-banner-right .jop-cc-btn--outline {
    order: 2;
}

.jop-cc-banner-right .jop-cc-btn--primary {
    order: 3;
}

/* ── Cookie registry (Cookiebot-style) ── */
.jop-cc-cat-toggle {
    appearance: none;
    border: none;
    background: transparent;
    padding: 0;
    margin: 0;
    cursor: pointer;
    text-align: left;
    color: inherit;
    font: inherit;
    flex: 1;
    min-width: 0;
}

.jop-cc-cat-title-wrap {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.jop-cc-cat-chevron {
    display: inline-flex;
    width: 0.85rem;
    height: 0.85rem;
    color: var(--jop-cc-muted);
    transition: transform 0.2s var(--jop-cc-ease);
}

.jop-cc-cat-chevron svg {
    width: 100%;
    height: 100%;
}

.jop-cc-cat-toggle[aria-expanded="true"] .jop-cc-cat-chevron {
    transform: rotate(90deg);
}

.jop-cc-cat-count {
    display: block;
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--jop-cc-muted);
    margin-top: 0.15rem;
}

.jop-cc-cookie-details {
    display: none;
    margin-top: 0.65rem;
    max-height: min(42vh, 320px);
    overflow: auto;
    overscroll-behavior: contain;
    border-radius: calc(var(--jop-cc-radius, 20px) * 0.35);
    border: 1px solid var(--jop-cc-border);
    background: rgba(0, 0, 0, 0.12);
}

.jop-cc-cookie-details--open {
    display: block;
}

.jop-cc-cookie-table {
    width: 100%;
    min-width: 34rem;
    border-collapse: collapse;
    font-size: 0.72rem;
}

.jop-cc-cookie-table th,
.jop-cc-cookie-table td {
    padding: 0.4rem 0.45rem;
    border-bottom: 1px solid var(--jop-cc-border);
    text-align: left;
    vertical-align: top;
}

.jop-cc-cookie-table th {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--jop-cc-muted);
    font-weight: 700;
}

.jop-cc-cookie-table code {
    font-size: 0.68rem;
    background: rgba(255, 255, 255, 0.06);
    padding: 0.1rem 0.3rem;
    border-radius: 4px;
}

/* ── Block modes ── */
html.jop-cc-body-locked,
html.jop-cc-body-locked body {
    overflow: hidden !important;
    height: 100%;
}

.jop-cc-backdrop--block {
    pointer-events: auto;
    z-index: 999997;
}

.jop-cc-card--wall {
    width: min(100%, 26rem);
    text-align: center;
}

.jop-cc-wall-body {
    padding: 1.5rem 1.35rem 1.35rem;
}

.jop-cc-wall-icon {
    margin: 0 auto 0.85rem;
}

.jop-cc-wall-actions {
    justify-content: center;
    margin-top: 1rem;
    flex-direction: column;
}

.jop-cc-wall-actions .jop-cc-btn {
    width: 100%;
}

@media (max-width: 860px) {
    .jop-cc-banner-inner--split {
        gap: 0.55rem;
    }

    .jop-cc-banner-top {
        flex-wrap: wrap;
        gap: 0.35rem 0.75rem;
    }

    .jop-cc-banner-logo--inline {
        margin-left: auto;
    }

    .jop-cc-banner-bottom {
        flex-direction: column;
        align-items: stretch;
    }

    .jop-cc-banner-right .jop-cc-actions {
        flex-direction: column-reverse;
        width: 100%;
    }

    .jop-cc-banner-right .jop-cc-btn {
        width: 100%;
    }

    .jop-cc-cookie-table {
        font-size: 0.68rem;
    }
}

