/* Cookie consent — centered modal (Cookiebot / parallelum-style) */
.cookie-consent {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    pointer-events: none;
}

.cookie-consent[hidden] {
    display: none !important;
}

.cookie-consent__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(16, 21, 28, 0.55);
    pointer-events: auto;
}

.cookie-consent__panel {
    position: relative;
    z-index: 1;
    width: min(720px, calc(100vw - 40px));
    max-height: min(90vh, 720px);
    display: flex;
    flex-direction: column;
    background: #fff;
    color: #4b5563;
    border-radius: 10px;
    box-shadow: 0 28px 70px rgba(16, 21, 28, 0.28);
    overflow: hidden;
    pointer-events: auto;
}

.cookie-consent__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 24px 10px;
}

.cookie-consent__logo {
    height: 36px;
    width: auto;
    max-width: 220px;
    object-fit: contain;
}

.cookie-consent__tabs {
    display: flex;
    gap: 28px;
    padding: 0 24px;
    border-bottom: 1px solid rgba(16, 21, 28, 0.1);
}

.cookie-consent__tab {
    appearance: none;
    background: none;
    border: 0;
    border-bottom: 3px solid transparent;
    margin-bottom: -1px;
    padding: 12px 0;
    font-size: 14px;
    font-weight: 600;
    color: #6b7280;
    cursor: pointer;
}

.cookie-consent__tab.is-active {
    color: var(--accent-color, #0f6fbc);
    border-bottom-color: var(--accent-color, #0f6fbc);
}

.cookie-consent__body {
    padding: 22px 24px 8px;
    overflow: auto;
    flex: 1 1 auto;
}

.cookie-consent__pane[hidden] {
    display: none !important;
}

.cookie-consent__title {
    font-family: var(--accent-font, 'General Sans', sans-serif);
    font-size: 26px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 14px;
    line-height: 1.25;
}

.cookie-consent__text {
    font-size: 14.5px;
    line-height: 1.65;
    margin: 0 0 22px;
}

.cookie-consent__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    border-top: 1px solid rgba(16, 21, 28, 0.1);
    border-bottom: 1px solid rgba(16, 21, 28, 0.1);
    margin-bottom: 8px;
}

.cookie-consent__grid-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 18px 10px;
    text-align: center;
    border-right: 1px solid rgba(16, 21, 28, 0.1);
}

.cookie-consent__grid-item:last-child {
    border-right: 0;
}

.cookie-consent__grid-item span {
    font-size: 13.5px;
    font-weight: 600;
    color: #111827;
}

.cookie-consent__about p {
    font-size: 14.5px;
    line-height: 1.65;
    margin: 0 0 14px;
}

.cookie-consent__about a {
    color: var(--accent-color, #0f6fbc);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.cookie-consent__details {
    list-style: none;
    margin: 0;
    padding: 0;
}

.cookie-consent__detail {
    border-bottom: 1px solid rgba(16, 21, 28, 0.1);
}

.cookie-consent__detail-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 0;
    background: none;
    border: 0;
    cursor: pointer;
    text-align: left;
}

.cookie-consent__detail-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 700;
    color: #111827;
}

.cookie-consent__chevron {
    width: 8px;
    height: 8px;
    border-right: 2px solid #6b7280;
    border-bottom: 2px solid #6b7280;
    transform: rotate(-45deg);
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.cookie-consent__detail.is-open .cookie-consent__chevron {
    transform: rotate(45deg);
}

.cookie-consent__detail-body {
    display: none;
    padding: 0 0 16px 18px;
    font-size: 14px;
    line-height: 1.6;
    color: #4b5563;
}

.cookie-consent__detail.is-open .cookie-consent__detail-body {
    display: block;
}

.cookie-consent__actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    padding: 16px 24px 22px;
    border-top: 1px solid rgba(16, 21, 28, 0.08);
    background: #fff;
}

.cookie-consent__btn {
    appearance: none;
    border: 1px solid transparent;
    border-radius: 6px;
    padding: 12px 14px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.cookie-consent__btn--primary {
    background: var(--accent-color, #0f6fbc);
    color: #fff;
}

.cookie-consent__btn--primary:hover {
    background: var(--accent-dark, #0b527f);
}

.cookie-consent__btn--outline {
    background: #fff;
    color: #111827;
    border-color: rgba(16, 21, 28, 0.35);
}

.cookie-consent__btn--outline:hover {
    border-color: var(--accent-color, #0f6fbc);
    color: var(--accent-color, #0f6fbc);
}

.cookie-consent__switch {
    position: relative;
    display: inline-block;
    width: 46px;
    height: 26px;
    flex-shrink: 0;
}

.cookie-consent__switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.cookie-consent__slider {
    position: absolute;
    inset: 0;
    background: #111827;
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.cookie-consent__slider::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    left: 3px;
    top: 3px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.2s ease;
    box-shadow: 0 1px 3px rgba(16, 21, 28, 0.25);
}

.cookie-consent__switch input:checked + .cookie-consent__slider {
    background: var(--accent-color, #0f6fbc);
}

.cookie-consent__switch input:checked + .cookie-consent__slider::before {
    transform: translateX(20px);
}

.cookie-consent__switch input:disabled + .cookie-consent__slider {
    opacity: 0.85;
    cursor: not-allowed;
}

html.cookie-consent-open,
html.cookie-consent-open body {
    overflow: hidden;
}

@media (max-width: 767px) {
    .cookie-consent {
        padding: 10px;
        align-items: flex-end;
    }

    .cookie-consent__panel {
        width: 100%;
        max-height: 92vh;
        border-radius: 12px 12px 8px 8px;
    }

    .cookie-consent__header {
        padding-top: 14px;
        padding-bottom: 6px;
    }

    .cookie-consent__logo {
        height: 30px;
        max-width: 180px;
    }

    .cookie-consent__header,
    .cookie-consent__tabs,
    .cookie-consent__body,
    .cookie-consent__actions {
        padding-left: 14px;
        padding-right: 14px;
    }

    .cookie-consent__title {
        font-size: 20px;
    }

    .cookie-consent__text,
    .cookie-consent__about p,
    .cookie-consent__detail-body {
        font-size: 13.5px;
    }

    .cookie-consent__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .cookie-consent__grid-item {
        padding: 14px 8px;
        gap: 10px;
    }

    .cookie-consent__grid-item span {
        font-size: 12.5px;
    }

    .cookie-consent__grid-item:nth-child(2) {
        border-right: 0;
    }

    .cookie-consent__grid-item:nth-child(1),
    .cookie-consent__grid-item:nth-child(2) {
        border-bottom: 1px solid rgba(16, 21, 28, 0.1);
    }

    .cookie-consent__actions {
        grid-template-columns: 1fr;
        gap: 8px;
        padding-top: 12px;
        padding-bottom: 14px;
    }

    .cookie-consent__btn {
        width: 100%;
        padding: 12px 12px;
        font-size: 13.5px;
    }

    .cookie-consent__tabs {
        gap: 16px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .cookie-consent__tab {
        white-space: nowrap;
        font-size: 13px;
        padding: 10px 0;
    }

    .cookie-consent__detail-label {
        font-size: 14px;
    }
}

@media (max-width: 390px) {
    .cookie-consent__grid-item span {
        font-size: 12px;
    }

    .cookie-consent__switch {
        width: 42px;
        height: 24px;
    }

    .cookie-consent__slider::before {
        width: 18px;
        height: 18px;
    }

    .cookie-consent__switch input:checked + .cookie-consent__slider::before {
        transform: translateX(18px);
    }
}
