.ecb-banner,
.ecb-prefs,
.ecb-prefs__dialog,
.ecb-pref {
    box-sizing: border-box;
}

#ecb-banner[hidden],
#ecb-prefs[hidden],
#ecb-prefs [hidden] {
    display: none !important;
}

.ecb-banner {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 99998;
    background: #fff;
    border-top: 4px solid #c8102e;
    box-shadow: 0 -12px 40px rgba(15, 23, 42, .18);
    font-family: inherit;
    color: #1f2937;
}

.ecb-banner__inner {
    display: flex;
    align-items: center;
    gap: 28px;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 20px 0;
}

.ecb-banner__copy {
    flex: 1 1 auto;
    min-width: 0;
}

.ecb-banner__title {
    margin: 0 0 6px;
    font-size: 18px;
    line-height: 1.25;
    font-weight: 800;
    color: #111827;
}

.ecb-banner p {
    margin: 0 0 6px;
    font-size: 13px;
    line-height: 1.5;
}

.ecb-banner p:last-child {
    margin-bottom: 0;
}

.ecb-link {
    color: #c8102e;
    font-weight: 700;
    text-decoration: underline;
}

.ecb-banner__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    flex: 0 0 auto;
    justify-content: flex-end;
}

.ecb-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 16px;
    border-radius: 999px;
    border: 1px solid transparent;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    cursor: pointer;
    transition: background-color .2s ease, color .2s ease, border-color .2s ease;
    text-decoration: none;
}

.ecb-btn--primary {
    background: #c8102e;
    border-color: #c8102e;
    color: #fff;
}

.ecb-btn--primary:hover {
    background: #a50d25;
    border-color: #a50d25;
}

.ecb-btn--outline {
    background: #fff;
    border-color: #c8102e;
    color: #c8102e;
}

.ecb-btn--outline:hover {
    background: #fff1f4;
}

.ecb-btn--link {
    background: transparent;
    color: #4b5563;
    text-decoration: underline;
}

.ecb-btn--link:hover {
    color: #c8102e;
}

.ecb-prefs {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: grid;
    place-items: center;
    padding: 20px;
}

.ecb-prefs__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, .55);
}

.ecb-prefs__dialog {
    position: relative;
    z-index: 1;
    width: min(620px, 100%);
    max-height: min(86vh, 760px);
    overflow: auto;
    padding: 28px;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 24px 70px rgba(15, 23, 42, .35);
    color: #1f2937;
}

.ecb-prefs__close {
    position: absolute;
    top: 12px;
    right: 14px;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    background: #f3f4f6;
    color: #111827;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.ecb-prefs__title {
    margin: 0 2.5rem 8px 0;
    font-size: 21px;
    line-height: 1.25;
    font-weight: 800;
}

.ecb-prefs__intro {
    margin: 0 0 18px;
    font-size: 14px;
    line-height: 1.5;
}

.ecb-pref {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    padding: 14px 0;
    border-top: 1px solid #e5e7eb;
    font-size: 14px;
    line-height: 1.45;
}

.ecb-pref:first-of-type {
    border-top: 0;
}

.ecb-pref p {
    margin: 3px 0 0;
    font-size: 12px;
    color: #4b5563;
    line-height: 1.45;
}

.ecb-pref input[type="checkbox"] {
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    margin-top: 2px;
    accent-color: #c8102e;
}

.ecb-pref__always {
    flex: 0 0 auto;
    padding: 5px 10px;
    border-radius: 999px;
    background: #e5e7eb;
    color: #374151;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.ecb-prefs__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
}

@media (max-width: 900px) {
    .ecb-banner__inner {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
        padding: 18px 0;
    }

    .ecb-banner__actions {
        justify-content: flex-start;
    }
}

@media (max-width: 520px) {
    .ecb-banner__actions {
        flex-direction: column;
    }

    .ecb-btn {
        width: 100%;
    }

    .ecb-prefs {
        padding: 10px;
    }

    .ecb-prefs__dialog {
        padding: 22px 18px;
        border-radius: 14px;
    }
}
