.tz-marketing-consent[hidden],
.tz-cookie-settings[hidden] {
    display: none !important;
}

.tz-marketing-consent {
    position: fixed;
    z-index: 999999;
    right: 1rem;
    bottom: 1rem;
    left: 1rem;
    display: flex;
    max-width: 70rem;
    margin-inline: auto;
    padding: 1rem;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
    color: #0f1c22;
    background: #ffffff;
    border: 1px solid #cbd7dc;
    border-top: 4px solid #007d86;
    border-radius: 0.25rem;
    max-height: calc(100dvh - 2rem);
    overflow: auto;
}

.tz-marketing-consent__copy {
    max-width: 48rem;
}

.tz-marketing-consent h2 {
    margin: 0 0 0.35rem;
    font-size: 1.125rem;
    line-height: 1.3;
}

.tz-marketing-consent p {
    margin: 0 0 0.35rem;
    font-size: 0.9375rem;
    line-height: 1.55;
}

.tz-marketing-consent a {
    color: #006d75;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 0.15em;
}

.tz-marketing-consent__actions {
    display: flex;
    flex: 0 0 auto;
    flex-wrap: wrap;
    max-width: 24rem;
    gap: 0.625rem;
}

.tz-consent-options { display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; margin: 0.75rem 0; }
.tz-consent-options label { display: flex; align-items: center; gap: 0.5rem; min-height: 2.75rem; cursor: pointer; font-size: 0.9375rem; }
.tz-consent-options input { width: 1.25rem; height: 1.25rem; accent-color: #172f3d; }
.tz-consent-options input:focus-visible { outline: 3px solid #172f3d; outline-offset: 3px; }
.tz-marketing-consent { border-color: #bdcbd3; border-top-color: #172f3d; }
.tz-marketing-consent a { color: #172f3d; }
.tz-marketing-consent__button, .tz-cookie-settings { border-color: #172f3d; }
.tz-marketing-consent__button { background: #172f3d; }

.tz-marketing-consent__button,
.tz-cookie-settings {
    min-height: 2.75rem;
    padding: 0.65rem 1rem;
    border: 2px solid #007d86;
    border-radius: 0.2rem;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.tz-marketing-consent__button {
    color: #ffffff;
    background: #007d86;
}

.tz-marketing-consent__button--primary {
    color: #ffffff;
    background: #007d86;
}

.tz-cookie-settings {
    color: #0f1c22;
    background: #ffffff;
}

.tz-marketing-consent__button:hover,
.tz-cookie-settings:hover {
    filter: brightness(0.94);
}

.tz-marketing-consent__button:focus-visible,
.tz-cookie-settings:focus-visible,
.tz-marketing-consent a:focus-visible {
    outline: 3px solid #f0b541;
    outline-offset: 3px;
}

.tz-cookie-settings {
    position: fixed;
    z-index: 999998;
    left: 1rem;
    bottom: 1rem;
    min-height: 2.5rem;
    padding: 0.5rem 0.75rem;
    background: #ffffff;
    box-shadow: 0 0.35rem 1rem rgba(15, 28, 34, 0.18);
    font-size: 0.875rem;
}

@media (max-width: 48rem) {
    .tz-marketing-consent {
        align-items: stretch;
        flex-direction: column;
    }

    .tz-marketing-consent__actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 24rem) {
    .tz-marketing-consent__actions {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .tz-marketing-consent *,
    .tz-cookie-settings {
        scroll-behavior: auto !important;
        transition: none !important;
    }
}


/* Manual-only analytics settings: footer entry, never an automatic banner. */
.tz-privacy-settings-footer {
    padding: 0.25rem 1rem;
    text-align: center;
    color: #dce6eb;
    background: #1b3039;
}
.tz-cookie-settings--footer {
    position: static;
    min-height: 2.75rem;
    max-width: 100%;
    border: 0;
    border-radius: 0;
    color: inherit;
    background: transparent;
    box-shadow: none;
    font-weight: 500;
    overflow-wrap: anywhere;
    text-decoration: underline;
    text-underline-offset: 0.2em;
}
.tz-marketing-consent--manual {
    max-width: 48rem;
    align-items: flex-start;
}
.tz-marketing-consent--manual p,
.tz-marketing-consent--manual .tz-consent-options label {
    font-size: 1rem;
    overflow-wrap: anywhere;
}
.tz-marketing-consent--manual .tz-marketing-consent__actions { min-width: 0; }
.tz-marketing-consent__button--close { color: #172f3d; background: #ffffff; }

.tz-marketing-consent--manual .tz-marketing-consent__button {
    background: #172f3d;
    border-color: #172f3d;
}
.tz-marketing-consent--manual .tz-marketing-consent__button--close {
    color: #172f3d;
    background: #ffffff;
}
.tz-marketing-consent--manual :is(button, a, input):focus-visible {
    outline: 3px solid #172f3d;
    outline-offset: 3px;
}
