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

.cookie-consent {
    position: fixed;
    left: 50%;
    bottom: calc(14px + env(safe-area-inset-bottom, 0px));
    z-index: 99970;
    width: min(900px, calc(100vw - 20px));
    max-height: min(760px, calc(100vh - 28px));
    opacity: 0;
    transform: translate(-50%, 18px);
    pointer-events: none;
    transition: opacity 0.22s ease, transform 0.22s ease;
}

.cookie-consent.is-visible {
    opacity: 1;
    transform: translate(-50%, 0);
    pointer-events: auto;
}

.cookie-consent__panel {
    display: grid;
    grid-template-rows: auto auto minmax(0, 1fr) auto;
    overflow: hidden;
    max-height: inherit;
    border: 1px solid rgba(15, 23, 42, 0.14);
    border-radius: 8px;
    background: #ffffff;
    color: #171717;
    box-shadow: 0 22px 70px rgba(15, 23, 42, 0.24);
}

.cookie-consent__brand {
    display: flex;
    justify-content: flex-end;
    min-height: 76px;
    padding: 24px 30px 18px;
    border-bottom: 1px solid #e5e7eb;
}

.cookie-consent__brand img {
    display: block;
    width: clamp(168px, 19vw, 201px);
    max-width: 100%;
    height: auto;
}

.cookie-consent__tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-bottom: 1px solid #e5e7eb;
}

.cookie-consent__tab {
    position: relative;
    min-height: 56px;
    border: 0;
    background: #ffffff;
    color: #171717;
    font: inherit;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
}

.cookie-consent__tab::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    background: transparent;
}

.cookie-consent__tab.is-active {
    color: #009cf0;
}

.cookie-consent__tab.is-active::after {
    background: #0ea5e9;
}

.cookie-consent__body {
    min-height: 0;
    overflow: auto;
    padding: 26px 26px 28px;
}

.cookie-consent__view {
    display: none;
}

.cookie-consent__view.is-active {
    display: block;
}

.cookie-consent__view h2 {
    margin: 0 0 14px;
    color: #171717;
    font-size: 16px;
    line-height: 1.35;
}

.cookie-consent__view p,
.cookie-consent__lead {
    margin: 0;
    color: #222222;
    font-size: 15px;
    line-height: 1.55;
}

.cookie-consent__view p + p {
    margin-top: 18px;
}

.cookie-consent__groups {
    display: grid;
    gap: 0;
}

.cookie-consent__group {
    border-top: 1px solid #d7d7d7;
}

.cookie-consent__group:first-child {
    margin-top: 20px;
}

.cookie-consent__group-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: start;
    padding: 14px 0;
}

.cookie-consent__group-trigger {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    width: 100%;
    border: 0;
    background: transparent;
    padding: 8px 0;
    text-align: left;
    cursor: pointer;
}

.cookie-consent__group-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
}

.cookie-consent__chevron {
    width: 10px;
    height: 10px;
    border-right: 2px solid #171717;
    border-bottom: 2px solid #171717;
    transform: rotate(45deg);
    transition: transform 0.16s ease;
}

.cookie-consent__group.is-open .cookie-consent__chevron {
    transform: rotate(225deg);
}

.cookie-consent__group-copy {
    min-width: 0;
}

.cookie-consent__group-copy strong {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    color: #171717;
    font-size: 15px;
    line-height: 1.35;
}

.cookie-consent__group-copy strong span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 999px;
    background: #e5e7eb;
    color: #525252;
    font-size: 12px;
}

.cookie-consent__group-text {
    display: block;
    color: #292929;
    font-size: 15px;
    line-height: 1.55;
}

.cookie-consent__state {
    align-self: start;
    padding-top: 4px;
    color: #525252;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.cookie-consent__switch {
    position: relative;
    display: inline-flex;
    width: 58px;
    height: 32px;
    align-self: center;
    flex: 0 0 auto;
    border: 0;
    padding: 0;
    background: transparent;
    cursor: pointer;
}

.cookie-consent__switch input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.cookie-consent__switch span {
    position: absolute;
    inset: 0;
    border-radius: 999px;
    background: #111111;
    transition: background 0.16s ease;
}

.cookie-consent__switch span::after {
    content: '';
    position: absolute;
    top: 4px;
    left: 4px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #ffffff;
    transition: transform 0.16s ease;
}

.cookie-consent__switch input:checked + span {
    background: #0ea5e9;
}

.cookie-consent__switch input:checked + span::after {
    transform: translateX(26px);
}

.cookie-consent__switch[aria-pressed="true"] span {
    background: #0ea5e9;
}

.cookie-consent__switch[aria-pressed="true"] span::after {
    transform: translateX(26px);
}

.cookie-consent__switch input:focus-visible + span,
.cookie-consent__switch:focus-visible span,
.cookie-consent__group-trigger:focus-visible {
    outline: 2px solid #0ea5e9;
    outline-offset: 2px;
}

.cookie-consent__group-body {
    display: none;
    padding: 0 0 20px 40px;
}

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

.cookie-consent__table {
    overflow: hidden;
    border: 1px solid #d6d6d6;
    border-radius: 8px;
}

.cookie-consent__table-row {
    display: grid;
    grid-template-columns: 1fr 1fr 2fr 1fr 1fr;
}

.cookie-consent__table-row + .cookie-consent__table-row {
    border-top: 1px solid #d6d6d6;
}

.cookie-consent__table-row span {
    min-width: 0;
    padding: 10px 12px;
    color: #222222;
    font-size: 12px;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.cookie-consent__table-row span + span {
    border-left: 1px solid #d6d6d6;
}

.cookie-consent__table-row--head span {
    background: #f5f7fb;
    color: #171717;
    font-weight: 800;
}

.cookie-consent__providers {
    margin-top: 16px;
}

.cookie-consent__providers-title {
    margin: 0 0 10px;
    color: #171717;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.cookie-consent__provider-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.cookie-consent__provider-links a,
.cookie-consent__links a {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0 14px;
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    color: #0369a1;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
}

.cookie-consent__links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.cookie-consent__provider-links a:hover,
.cookie-consent__links a:hover {
    color: #075985;
    border-color: #0ea5e9;
}

.cookie-consent__actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 8px;
    padding: 16px 24px 22px;
    border-top: 1px solid #e5e7eb;
    background: #ffffff;
}

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

.cookie-consent__button {
    border: none;
    border-radius: 5px;
    font: inherit;
    min-height: 52px;
    padding: 0 14px;
    background: #0ea5e9;
    color: #000000;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    transition: filter 0.16s ease, transform 0.16s ease;
}

.cookie-consent__button:hover,
.cookie-consent__button:focus-visible {
    transform: translateY(-1px);
    filter: brightness(1.03);
}

.cookie-consent__button span {
    margin-left: 8px;
    font-size: 24px;
    line-height: 0;
}

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

.cookie-consent-modal {
    position: fixed;
    inset: 0;
    z-index: 99995;
    display: grid;
    place-items: center;
    padding: 24px;
}

.cookie-consent-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.42);
}

.cookie-consent-modal__dialog {
    position: relative;
    width: min(420px, calc(100vw - 32px));
    padding: 24px;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.28);
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.cookie-consent-modal.is-visible .cookie-consent-modal__dialog {
    opacity: 1;
    transform: translateY(0);
}

.cookie-consent-modal__dialog h2 {
    margin: 0 0 10px;
    color: #171717;
    font-size: 20px;
    line-height: 1.3;
}

.cookie-consent-modal__dialog p {
    margin: 0;
    color: #292929;
    font-size: 15px;
    line-height: 1.6;
}

.cookie-consent-modal__button {
    min-width: 120px;
    min-height: 46px;
    margin-top: 18px;
    border: 0;
    border-radius: 8px;
    background: #0ea5e9;
    color: #000000;
    font: inherit;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
}

.cookie-consent-modal__button:focus-visible {
    outline: 2px solid #0ea5e9;
    outline-offset: 2px;
}

@media (max-width: 760px) {
    .cookie-consent {
        left: 8px;
        right: 8px;
        bottom: calc(12px + env(safe-area-inset-bottom, 0px));
        width: auto;
        max-height: calc(100vh - 24px);
        transform: translateY(18px);
    }

    .cookie-consent.is-visible {
        transform: translateY(0);
    }

    .cookie-consent__brand {
        min-height: 60px;
        padding: 16px 18px 12px;
    }

    .cookie-consent__brand img {
        width: clamp(156px, 42vw, 182px);
    }

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

    .cookie-consent__tab {
        min-height: 50px;
        font-size: 13px;
    }

    .cookie-consent__body {
        padding: 20px 18px;
    }

    .cookie-consent__group-head {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .cookie-consent__group-trigger {
        grid-template-columns: 24px minmax(0, 1fr);
        gap: 10px;
    }

    .cookie-consent__switch,
    .cookie-consent__state {
        justify-self: start;
    }

    .cookie-consent__group-body {
        padding-left: 0;
    }

    .cookie-consent__table {
        overflow: visible;
        border: 0;
        border-radius: 0;
        background: transparent;
    }

    .cookie-consent__table-row,
    .cookie-consent__table-row--head {
        display: block;
    }

    .cookie-consent__table-row--head {
        display: none;
    }

    .cookie-consent__table-row {
        overflow: hidden;
        border: 1px solid #d6d6d6;
        border-radius: 12px;
        background: #ffffff;
    }

    .cookie-consent__table-row + .cookie-consent__table-row {
        margin-top: 12px;
        border-top: 1px solid #d6d6d6;
    }

    .cookie-consent__table-row span {
        display: grid;
        grid-template-columns: 104px minmax(0, 1fr);
        align-items: start;
        gap: 12px;
        padding: 11px 12px;
        font-size: 13px;
        background: #ffffff;
    }

    .cookie-consent__table-row span::before {
        content: attr(data-label);
        color: #525252;
        font-weight: 800;
    }

    .cookie-consent__table-row span:first-child {
        display: block;
        padding: 12px 14px;
        border-bottom: 1px solid #e5e7eb;
        background: #f7fbff;
        color: #171717;
        font-size: 14px;
        font-weight: 800;
    }

    .cookie-consent__table-row span:first-child::before {
        display: block;
        margin-bottom: 4px;
        color: #64748b;
        font-size: 10px;
        font-weight: 800;
        letter-spacing: 0.05em;
        text-transform: uppercase;
    }

    .cookie-consent__table-row span:first-child + span {
        border-top: 0;
    }

    .cookie-consent__table-row span + span {
        border-left: 0;
        border-top: 1px solid #e5e7eb;
    }

    .cookie-consent__actions {
        grid-template-columns: 1fr;
        padding: 14px 18px 18px;
    }

    .cookie-consent__button {
        width: auto;
        min-height: 48px;
    }

    .cookie-consent-modal {
        padding: 16px;
    }

    .cookie-consent-modal__dialog {
        width: min(100%, 420px);
        padding: 20px;
    }
}

@media (max-width: 420px) {
    .cookie-consent__table-row span:not(:first-child) {
        grid-template-columns: 1fr;
        gap: 4px;
    }
}