.eo-consent {
    --eo-consent-accent: #b61817;
    --eo-consent-accent-dark: #8f1212;
    --eo-consent-border: #dedede;
    --eo-consent-muted: #5b6470;
    --eo-consent-surface: #ffffff;
    --eo-consent-text: #222222;
    color: var(--eo-consent-text);
    font-family: inherit;
    position: relative;
    z-index: 2147483000;
}

.eo-consent,
.eo-consent * {
    box-sizing: border-box;
}

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

.eo-consent-banner {
    background: var(--eo-consent-surface);
    border: 1px solid var(--eo-consent-border);
    border-radius: 14px;
    bottom: 18px;
    box-shadow: 0 16px 42px rgba(28, 28, 28, 0.2);
    max-width: 430px;
    padding: 18px;
    position: fixed;
    right: 18px;
    width: calc(100% - 36px);
}

.eo-consent-banner__title,
.eo-consent-dialog__title,
.eo-consent-category__title {
    color: var(--eo-consent-text);
    font-family: inherit;
    font-weight: 700;
    margin: 0;
}

.eo-consent-banner__title {
    font-size: 20px;
    line-height: 1.25;
}

.eo-consent-banner__text,
.eo-consent-dialog__intro,
.eo-consent-category__description,
.eo-consent-category__meta {
    color: var(--eo-consent-muted);
    line-height: 1.45;
    margin: 8px 0 0;
}

.eo-consent-banner__text {
    font-size: 14px;
}

.eo-consent-policy-link,
.eo-consent-withdraw__link {
    color: var(--eo-consent-accent-dark);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.eo-consent-policy-link {
    display: inline-block;
    font-size: 13px;
    margin-top: 8px;
}

.eo-consent-banner__actions,
.eo-consent-dialog__actions {
    display: grid;
    gap: 8px;
    grid-template-columns: 1fr 1fr;
    margin-top: 14px;
}

.eo-consent-button {
    align-items: center;
    border: 2px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    display: inline-flex;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    justify-content: center;
    line-height: 1.2;
    min-height: 42px;
    padding: 9px 12px;
    text-align: center;
}

.eo-consent-button--decision {
    background: var(--eo-consent-accent);
    border-color: var(--eo-consent-accent);
    color: #ffffff;
}

.eo-consent-button--decision:hover {
    background: var(--eo-consent-accent-dark);
    border-color: var(--eo-consent-accent-dark);
}

.eo-consent-button--settings {
    background: #ffffff;
    border-color: #6b7280;
    color: #333333;
    grid-column: 1 / -1;
}

.eo-consent-button:focus-visible,
.eo-consent-dialog__close:focus-visible,
.eo-consent-policy-link:focus-visible,
.eo-consent-withdraw__link:focus-visible,
.eo-consent-switch input:focus-visible + .eo-consent-switch__control {
    outline: 3px solid #ffbf47;
    outline-offset: 3px;
}

.eo-consent-dialog {
    align-items: center;
    display: flex;
    inset: 0;
    justify-content: center;
    padding: 20px;
    position: fixed;
}

.eo-consent-dialog__backdrop {
    background: rgba(20, 20, 20, 0.62);
    inset: 0;
    position: absolute;
}

.eo-consent-dialog__panel {
    background: var(--eo-consent-surface);
    border-radius: 14px;
    box-shadow: 0 22px 64px rgba(0, 0, 0, 0.32);
    max-height: min(88vh, 760px);
    max-width: 680px;
    overflow-y: auto;
    padding: 22px;
    position: relative;
    width: 100%;
}

.eo-consent-dialog__header,
.eo-consent-category__heading {
    align-items: flex-start;
    display: flex;
    gap: 16px;
    justify-content: space-between;
}

.eo-consent-dialog__title {
    font-size: 24px;
    line-height: 1.25;
}

.eo-consent-dialog__intro {
    font-size: 14px;
}

.eo-consent-dialog__close {
    align-items: center;
    background: #ffffff;
    border: 1px solid var(--eo-consent-border);
    border-radius: 50%;
    color: #333333;
    cursor: pointer;
    display: inline-flex;
    flex: 0 0 40px;
    font-size: 28px;
    height: 40px;
    justify-content: center;
    line-height: 1;
    padding: 0 0 3px;
    width: 40px;
}

.eo-consent-categories {
    display: grid;
    gap: 10px;
    margin-top: 18px;
}

.eo-consent-category {
    border: 1px solid var(--eo-consent-border);
    border-radius: 10px;
    padding: 14px;
}

.eo-consent-category__title {
    font-size: 17px;
    line-height: 1.3;
}

.eo-consent-category__locked {
    color: #28733c;
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    margin-top: 3px;
}

.eo-consent-category__description,
.eo-consent-category__meta {
    font-size: 13px;
}

.eo-consent-category__meta {
    margin-top: 5px;
}

.eo-consent-switch {
    display: inline-block;
    flex: 0 0 48px;
    height: 28px;
    position: relative;
}

.eo-consent-switch input {
    height: 1px;
    opacity: 0;
    position: absolute;
    width: 1px;
}

.eo-consent-switch__control {
    background: #777f88;
    border-radius: 20px;
    cursor: pointer;
    inset: 0;
    position: absolute;
    transition: background-color 160ms ease;
}

.eo-consent-switch__control::before {
    background: #ffffff;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
    content: "";
    height: 22px;
    left: 3px;
    position: absolute;
    top: 3px;
    transition: transform 160ms ease;
    width: 22px;
}

.eo-consent-switch input:checked + .eo-consent-switch__control {
    background: var(--eo-consent-accent);
}

.eo-consent-switch input:checked + .eo-consent-switch__control::before {
    transform: translateX(20px);
}

.eo-consent-switch input:disabled + .eo-consent-switch__control {
    cursor: not-allowed;
    opacity: 0.72;
}

.eo-consent-dialog__actions .eo-consent-button--settings {
    grid-column: auto;
}

.eo-consent-withdraw {
    font-size: 12px;
    padding: 14px 0;
    text-align: center;
}

.eo-consent-visually-hidden {
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    height: 1px;
    overflow: hidden;
    position: absolute;
    white-space: nowrap;
    width: 1px;
}

@media (max-width: 575px) {
    .eo-consent-banner {
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 0;
        bottom: 0;
        left: 0;
        max-width: none;
        padding: 14px;
        right: 0;
        width: 100%;
    }

    .eo-consent-banner__title {
        font-size: 18px;
    }

    .eo-consent-dialog {
        align-items: flex-end;
        padding: 0;
    }

    .eo-consent-dialog__panel {
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 0;
        max-height: 92vh;
        padding: 18px 14px;
    }

    .eo-consent-dialog__title {
        font-size: 21px;
    }
}

@media (max-width: 350px) {
    .eo-consent-banner__actions,
    .eo-consent-dialog__actions {
        grid-template-columns: 1fr;
    }

    .eo-consent-button--settings,
    .eo-consent-dialog__actions .eo-consent-button--settings {
        grid-column: 1;
    }
}

@media (prefers-reduced-motion: reduce) {
    .eo-consent-switch__control,
    .eo-consent-switch__control::before {
        transition: none;
    }
}
