:root {
    --ro-consent-bg: #f6f2eb;
    --ro-consent-panel: #fffdf9;
    --ro-consent-text: #1f1d1a;
    --ro-consent-muted: #686158;
    --ro-consent-line: #d8d0c5;
    --ro-consent-accent: #24211d;
    --ro-consent-focus: #6f573e;
    --ro-consent-shadow: 0 20px 60px rgba(24, 20, 16, .14);
    --ro-consent-font: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.ro-consent,
.ro-consent button,
.ro-consent input {
    font-family: var(--ro-consent-font);
}

.ro-consent-banner {
    position: fixed;
    z-index: 100000;
    right: 24px;
    bottom: 24px;
    left: 24px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 28px;
    align-items: end;
    max-width: 1180px;
    margin-inline: auto;
    padding: 22px 24px;
    border: 1px solid var(--ro-consent-line);
    background: var(--ro-consent-bg);
    color: var(--ro-consent-text);
    box-shadow: var(--ro-consent-shadow);
}

.ro-consent-banner[hidden],
.ro-consent-manage[hidden],
.ro-consent-dialog[hidden],
.ro-consent-dialog-backdrop[hidden] {
    display: none !important;
}

.ro-consent-banner h2,
.ro-consent-dialog h2,
.ro-consent-category h3,
.ro-consent-category legend {
    margin: 0;
    color: var(--ro-consent-text);
    font-weight: 600;
    letter-spacing: -.01em;
}

.ro-consent-banner h2 {
    margin-bottom: 8px;
    font-size: 1rem;
}

.ro-consent-banner p,
.ro-consent-dialog p {
    margin: 0;
    color: var(--ro-consent-muted);
    font-size: .92rem;
    line-height: 1.55;
}

.ro-consent-banner__copy {
    max-width: 740px;
}

.ro-consent-banner__actions,
.ro-consent-dialog__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ro-consent-button,
.ro-consent-manage,
.ro-consent-preferences-trigger,
.ro-consent-dialog__close {
    min-height: 44px;
    border: 1px solid var(--ro-consent-line);
    background: transparent;
    color: var(--ro-consent-text);
    cursor: pointer;
    font: inherit;
}

.ro-consent-button {
    padding: 10px 16px;
}

.ro-consent-button--primary {
    border-color: var(--ro-consent-accent);
    background: var(--ro-consent-accent);
    color: #fff;
}

.ro-consent-button--text {
    border-color: transparent;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.ro-consent-button:focus-visible,
.ro-consent-manage:focus-visible,
.ro-consent-preferences-trigger:focus-visible,
.ro-consent-dialog__close:focus-visible,
.ro-consent-choice input:focus-visible + span {
    outline: 3px solid var(--ro-consent-focus);
    outline-offset: 3px;
}

.ro-consent-manage {
    position: fixed;
    z-index: 99998;
    right: 18px;
    bottom: 18px;
    min-height: 40px;
    padding: 8px 12px;
    border-color: var(--ro-consent-line);
    background: var(--ro-consent-panel);
    color: var(--ro-consent-muted);
    box-shadow: 0 8px 26px rgba(24, 20, 16, .08);
    font-size: .8rem;
}

.ro-consent-preferences-trigger {
    min-height: 44px;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.ro-consent-dialog-backdrop {
    position: fixed;
    z-index: 100001;
    inset: 0;
    background: rgba(20, 18, 15, .34);
}

.ro-consent-dialog {
    position: fixed;
    z-index: 100002;
    top: 50%;
    left: 50%;
    width: min(600px, calc(100vw - 32px));
    max-height: calc(100vh - 48px);
    overflow: auto;
    transform: translate(-50%, -50%);
    padding: 24px;
    border: 1px solid var(--ro-consent-line);
    background: var(--ro-consent-panel);
    color: var(--ro-consent-text);
    box-shadow: var(--ro-consent-shadow);
}

.ro-consent-dialog__header {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    justify-content: space-between;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--ro-consent-line);
}

.ro-consent-dialog__eyebrow {
    margin-bottom: 6px !important;
    text-transform: uppercase;
    letter-spacing: .12em;
    font-size: .72rem !important;
}

.ro-consent-dialog__close {
    width: 44px;
    min-width: 44px;
    padding: 0;
    font-size: 1.45rem;
}

.ro-consent-category {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 20px;
    align-items: center;
    margin: 0;
    padding: 20px 0;
    border: 0;
    border-bottom: 1px solid var(--ro-consent-line);
}

.ro-consent-category legend {
    float: left;
    width: 100%;
    margin-bottom: 7px;
    font-size: .95rem;
}

.ro-consent-category__fixed {
    color: var(--ro-consent-muted);
    font-size: .82rem;
    white-space: nowrap;
}

.ro-consent-choice {
    display: flex;
    gap: 10px;
    align-items: center;
}

.ro-consent-choice label {
    cursor: pointer;
}

.ro-consent-choice input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.ro-consent-choice span {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    box-sizing: border-box;
    padding: 8px 12px;
    border: 1px solid var(--ro-consent-line);
}

.ro-consent-choice input:checked + span {
    border-color: var(--ro-consent-accent);
    background: var(--ro-consent-accent);
    color: #fff;
}

.ro-consent-dialog__actions {
    padding-top: 20px;
    justify-content: flex-end;
}

.ro-consent-dialog-open {
    overflow: hidden;
}

@media (max-width: 768px) {
    .ro-consent-banner {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .ro-consent-banner__actions {
        width: 100%;
    }

    .ro-consent-button {
        flex: 1 1 auto;
    }
}

@media (max-width: 640px) {
    .ro-consent-banner {
        right: 12px;
        bottom: 12px;
        left: 12px;
        padding: 18px;
    }

    .ro-consent-banner__actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .ro-consent-button--text {
        grid-column: 1 / -1;
    }

    .ro-consent-category {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .ro-consent-choice {
        width: 100%;
    }

    .ro-consent-choice label {
        flex: 1 1 0;
    }

    .ro-consent-choice span {
        justify-content: center;
        width: 100%;
    }

    .ro-consent-dialog__actions .ro-consent-button {
        width: 100%;
    }
}

@media (max-width: 375px) {
    .ro-consent-banner__actions {
        grid-template-columns: 1fr;
    }

    .ro-consent-button--text {
        grid-column: auto;
    }
}
