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

.cookie-consent-root:focus {
    outline: 0;
}

.screenreader {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.cookie-consent-banner,
.cookie-preferences-backdrop,
.cookie-preferences-dialog,
.cookie-consent-button,
.cookie-preferences-close {
    box-sizing: border-box;
}

.cookie-consent-banner {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 10000;
    max-height: calc(100vh - 16px);
    max-height: calc(100dvh - 16px);
    overflow-y: auto;
    border-top: 4px solid #9b111e;
    background: #242424;
    color: #ffffff;
    box-shadow: 0 -4px 18px rgba(0, 0, 0, 0.35);
}

.cookie-consent-banner-inner {
    display: flex;
    align-items: center;
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 18px 20px;
}

.cookie-consent-copy {
    flex: 1 1 auto;
    min-width: 0;
}

.cookie-consent-copy h2,
.cookie-preferences-dialog h2,
.cookie-preferences-dialog h3 {
    margin-top: 0;
}

.cookie-consent-copy h2 {
    margin-bottom: 8px;
    color: #ffffff;
    font-size: 21px;
}

.cookie-consent-copy p {
    margin: 0;
    line-height: 1.5;
}

.cookie-consent-banner a,
.cookie-consent-banner a:link,
.cookie-consent-banner a:visited {
    color: #ffffff;
}

.cookie-consent-actions,
.cookie-preferences-actions {
    display: flex;
    flex: 0 0 auto;
    gap: 10px;
}

.cookie-consent-button,
.cookie-preferences-close {
    min-height: 44px;
    border: 2px solid #9b111e;
    border-radius: 3px;
    font: inherit;
    font-weight: bold;
    cursor: pointer;
}

.cookie-consent-button {
    padding: 9px 16px;
}

.cookie-consent-button-choice {
    background: #9b111e;
    color: #ffffff;
}

.cookie-consent-button-secondary {
    background: transparent;
    color: inherit;
}

.cookie-consent-button:hover,
.cookie-consent-button:focus-visible,
.cookie-preferences-close:hover,
.cookie-preferences-close:focus-visible {
    outline: 3px solid #ffffff;
    outline-offset: 2px;
}

.cookie-preferences-backdrop {
    position: fixed;
    inset: 0;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.72);
}

.cookie-preferences-dialog {
    width: min(720px, 100%);
    max-height: calc(100vh - 40px);
    max-height: calc(100dvh - 40px);
    overflow-y: auto;
    padding: 24px;
    border: 4px solid #9b111e;
    background: #ffffff;
    color: #111111;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.45);
}

.cookie-preferences-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.cookie-preferences-header h2 {
    margin-bottom: 12px;
}

.cookie-preferences-close {
    flex: 0 0 44px;
    padding: 0;
    background: #333333;
    color: #ffffff;
    font-size: 28px;
    line-height: 1;
}

.cookie-preference-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-top: 18px;
    padding: 18px 0;
    border-top: 1px solid #b5b5b5;
}

.cookie-preference-row h3,
.cookie-preference-row p {
    margin-bottom: 6px;
}

.cookie-preference-toggle {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    font-weight: bold;
    cursor: pointer;
}

.cookie-preference-toggle input {
    width: 22px;
    height: 22px;
}

.cookie-preference-toggle-disabled {
    cursor: default;
}

.cookie-preferences-policy-link {
    margin: 18px 0;
}

.cookie-preferences-dialog a,
.cookie-preferences-dialog a:link,
.cookie-preferences-dialog a:visited {
    color: #9b111e;
    text-decoration: underline;
}

.cookie-preferences-dialog a:focus-visible {
    outline: 3px solid #9b111e;
    outline-offset: 2px;
}

.cookie-preferences-actions {
    justify-content: flex-end;
    padding-top: 18px;
    border-top: 1px solid #b5b5b5;
}

.cookie-preferences-dialog .cookie-consent-button-secondary {
    border-color: #333333;
    color: #111111;
}

.cookie-preferences-dialog .cookie-consent-button:hover,
.cookie-preferences-dialog .cookie-consent-button:focus-visible,
.cookie-preferences-dialog .cookie-preferences-close:hover,
.cookie-preferences-dialog .cookie-preferences-close:focus-visible {
    outline-color: #333333;
}

body.cookie-preferences-open {
    overflow: hidden;
}

.cookie-table-wrapper {
    max-width: 100%;
    margin: 16px 0;
    overflow-x: auto;
}

.cookie-table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
}

.cookie-table th,
.cookie-table td {
    padding: 10px;
    border: 1px solid #999999;
    text-align: left;
    vertical-align: top;
}

.cookie-table th {
    background: #333333;
    color: #ffffff;
}

@media only screen and (min-width: 768px) and (max-width: 1099px) {
    .cookie-consent-banner-inner {
        align-items: flex-start;
        gap: 18px;
    }

    .cookie-consent-copy {
        flex: 1 1 48%;
    }

    .cookie-consent-actions {
        display: grid;
        flex: 1 1 52%;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .cookie-consent-actions .cookie-consent-button {
        width: 100%;
    }

    .cookie-consent-actions [data-consent-customize] {
        grid-column: 1 / -1;
    }
}

@media only screen and (max-width: 767px) {
    .cookie-consent-banner {
        max-height: 80vh;
        max-height: 80dvh;
    }

    .cookie-consent-banner-inner,
    .cookie-consent-actions,
    .cookie-preferences-actions,
    .cookie-preference-row {
        flex-direction: column;
        align-items: stretch;
    }

    .cookie-consent-banner-inner {
        gap: 16px;
        padding: 18px;
        padding-bottom: calc(18px + env(safe-area-inset-bottom));
    }

    .cookie-consent-actions,
    .cookie-preferences-actions {
        width: 100%;
    }

    .cookie-consent-button {
        width: 100%;
    }

    .cookie-preferences-backdrop {
        align-items: flex-end;
        padding: 0;
    }

    .cookie-preferences-dialog {
        width: 100%;
        max-height: 100vh;
        max-height: 100dvh;
        padding: 20px;
        padding-bottom: calc(20px + env(safe-area-inset-bottom));
        border-right: 0;
        border-bottom: 0;
        border-left: 0;
    }

    .cookie-preference-row {
        gap: 8px;
    }
}
