[hidden] { display: none !important; }

body.roi-consent-open { overflow: hidden; }

.roi-consent,
.roi-consent button,
.roi-cookie-policy,
.roi-cookie-policy button {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.roi-consent-bar {
    position: fixed;
    z-index: 1200;
    right: 14px;
    bottom: 14px;
    left: 14px;
    width: min(880px, calc(100% - 28px));
    margin: 0 auto;
    padding: 14px 15px;
    box-sizing: border-box;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px 20px;
    align-items: end;
    color: #fff;
    background: rgba(5, 5, 5, .97);
    border: 1px solid rgba(255, 255, 255, .16);
    box-shadow: 0 16px 50px rgba(0, 0, 0, .24);
    backdrop-filter: blur(18px);
}

.roi-consent-bar__copy > span,
.roi-consent-dialog__eyebrow {
    display: block;
    margin-bottom: 8px;
    font-size: 8px;
    letter-spacing: .18em;
    color: rgba(255, 255, 255, .52);
}

.roi-consent-bar__copy > span { display: none; }

.roi-consent-bar__copy h2,
.roi-consent-dialog h2 {
    margin: 0;
    font-family: Didot, "Bodoni MT", "Times New Roman", serif;
    font-size: clamp(24px, 2.4vw, 36px);
    font-weight: 400;
    letter-spacing: -.035em;
}

.roi-consent-bar__copy h2 { font-size: 19px; letter-spacing: -.025em; }

.roi-consent-bar__copy p {
    max-width: 720px;
    margin: 4px 0 0;
    color: rgba(255, 255, 255, .7);
    font-size: 9px;
    line-height: 1.45;
}

.roi-consent-bar__copy a,
.roi-consent-dialog__policy {
    color: inherit;
    text-underline-offset: 3px;
}

.roi-consent-bar__actions,
.roi-consent-dialog__actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(82px, 1fr));
    gap: 6px;
}

.roi-consent-bar__actions button,
.roi-consent-dialog__actions button,
.roi-cookie-policy__settings {
    min-height: 36px;
    padding: 8px 10px;
    border: 1px solid currentColor;
    border-radius: 0;
    color: inherit;
    background: transparent;
    font-size: 7.5px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    cursor: pointer;
    transition: color .2s ease, background .2s ease, opacity .2s ease;
}

.roi-consent-bar__actions button:hover,
.roi-consent-bar__actions button:focus-visible {
    color: #050505;
    background: #fff;
}

.roi-consent button:disabled { cursor: wait; opacity: .55; }

.roi-consent-error {
    grid-column: 1 / -1;
    margin: -10px 0 0;
    color: #ffb8b8;
    font-size: 10px;
}

.roi-consent-backdrop {
    position: fixed;
    z-index: 1230;
    inset: 0;
    background: rgba(0, 0, 0, .56);
    backdrop-filter: blur(5px);
}

.roi-consent-dialog {
    position: fixed;
    z-index: 1240;
    top: 50%;
    left: 50%;
    width: min(620px, calc(100% - 36px));
    max-height: min(780px, calc(100vh - 36px));
    padding: clamp(28px, 4vw, 48px);
    box-sizing: border-box;
    overflow: auto;
    color: #111;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, .12);
    box-shadow: 0 32px 100px rgba(0, 0, 0, .3);
    transform: translate(-50%, -50%);
}

.roi-consent-dialog__close {
    position: absolute;
    top: 16px;
    right: 18px;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 0;
    color: #111;
    background: transparent;
    font-size: 26px;
    font-weight: 300;
    cursor: pointer;
}

.roi-consent-dialog__eyebrow { color: #77746f; }
.roi-consent-dialog > p { margin: 13px 0 28px; color: #68645f; font-size: 12px; line-height: 1.65; }

.roi-consent-option {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 24px;
    align-items: center;
    padding: 21px 0;
    border-top: 1px solid #e7e5e1;
}

.roi-consent-option strong { font-size: 12px; font-weight: 600; }
.roi-consent-option p { margin: 6px 0 0; color: #77746f; font-size: 10px; line-height: 1.55; }
.roi-consent-option__always { font-size: 8px; letter-spacing: .1em; text-transform: uppercase; color: #77746f; }

.roi-consent-option--toggle { cursor: pointer; }
.roi-consent-switch { position: relative; display: inline-block; width: 46px; height: 26px; flex: 0 0 auto; }
.roi-consent-switch input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.roi-consent-switch span { position: absolute; inset: 0; background: #d5d2cd; transition: background .2s ease; }
.roi-consent-switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; background: #fff; box-shadow: 0 2px 7px rgba(0, 0, 0, .22); transition: transform .2s ease; }
.roi-consent-switch input:checked + span { background: #0a0a0a; }
.roi-consent-switch input:checked + span::after { transform: translateX(20px); }
.roi-consent-switch input:focus-visible + span { outline: 2px solid #111; outline-offset: 3px; }

.roi-consent-dialog__policy { display: inline-block; margin: 4px 0 24px; color: #111; font-size: 10px; }
.roi-consent-dialog__actions button { color: #111; }
.roi-consent-dialog__actions button:hover,
.roi-consent-dialog__actions button:focus-visible { color: #fff; background: #050505; }

.roi-footer__privacy { display: flex; align-items: center; justify-content: center; gap: 14px; }
.roi-footer__privacy a,
.roi-footer__privacy button {
    padding: 0;
    border: 0;
    color: rgba(255, 255, 255, .72);
    background: transparent;
    font: inherit;
    letter-spacing: inherit;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}
.roi-footer__privacy a:hover,
.roi-footer__privacy button:hover { color: #fff; }

.roi-cookie-policy {
    width: min(calc(100% - 2 * var(--roi-gutter, 24px)), 1240px);
    margin: 0 auto;
    padding: clamp(54px, 8vw, 110px) 0 clamp(90px, 12vw, 160px);
    color: #111;
}

.roi-cookie-policy__header { padding-bottom: clamp(44px, 6vw, 76px); border-bottom: 1px solid rgba(17, 17, 17, .12); }
.roi-cookie-policy__header h1 { margin: 12px 0 14px; font-family: Didot, "Bodoni MT", "Times New Roman", serif; font-size: clamp(48px, 7vw, 92px); font-weight: 400; line-height: .96; letter-spacing: -.055em; }
.roi-cookie-policy__header p { margin: 0; color: #77746f; font-size: 10px; letter-spacing: .06em; }

.roi-cookie-policy__layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: clamp(48px, 8vw, 120px); padding-top: clamp(44px, 6vw, 76px); }
.roi-cookie-policy__layout aside { position: sticky; top: 120px; align-self: start; display: flex; flex-direction: column; gap: 13px; }
.roi-cookie-policy__layout aside span { margin-bottom: 8px; color: #77746f; font-size: 8px; letter-spacing: .16em; }
.roi-cookie-policy__layout aside a { color: #111; font-size: 10px; text-decoration: none; }
.roi-cookie-policy__layout aside a:hover { text-decoration: underline; text-underline-offset: 3px; }

.roi-cookie-policy article { max-width: 820px; }
.roi-cookie-policy article > section { padding: 0 0 clamp(48px, 6vw, 76px); margin-bottom: clamp(48px, 6vw, 76px); border-bottom: 1px solid rgba(17, 17, 17, .12); scroll-margin-top: 120px; }
.roi-cookie-policy article h2 { margin: 0 0 20px; font-family: Didot, "Bodoni MT", "Times New Roman", serif; font-size: clamp(30px, 4vw, 46px); font-weight: 400; letter-spacing: -.035em; }
.roi-cookie-policy article p { margin: 0 0 16px; color: #55514c; font-size: 13px; line-height: 1.8; }
.roi-cookie-policy article a { color: #111; text-underline-offset: 3px; }
.roi-cookie-policy article footer { color: #77746f; font-size: 9px; letter-spacing: .08em; }

.roi-cookie-table-wrap { margin: 28px 0 20px; overflow-x: auto; border: 1px solid rgba(17, 17, 17, .12); }
.roi-cookie-table { width: 100%; min-width: 720px; border-collapse: collapse; font-size: 10px; line-height: 1.55; }
.roi-cookie-table th,
.roi-cookie-table td { padding: 16px; border-right: 1px solid rgba(17, 17, 17, .1); border-bottom: 1px solid rgba(17, 17, 17, .1); text-align: left; vertical-align: top; }
.roi-cookie-table th { color: #77746f; background: #f6f5f2; font-size: 8px; letter-spacing: .12em; text-transform: uppercase; }
.roi-cookie-table tr:last-child td { border-bottom: 0; }
.roi-cookie-table th:last-child,
.roi-cookie-table td:last-child { border-right: 0; }
.roi-cookie-table code { font-size: 10px; word-break: break-all; }
.roi-cookie-policy__note { padding: 16px 18px; color: #3e3b37 !important; background: #f6f5f2; }
.roi-cookie-policy__settings { margin-top: 10px; color: #111; }
.roi-cookie-policy__settings:hover,
.roi-cookie-policy__settings:focus-visible { color: #fff; background: #050505; }

@media (max-width: 920px) {
    .roi-consent-bar { width: min(720px, calc(100% - 24px)); grid-template-columns: 1fr; align-items: stretch; gap: 11px; }
    .roi-cookie-policy__layout { grid-template-columns: 1fr; }
    .roi-cookie-policy__layout aside { position: static; display: none; }
}

@media (max-width: 640px) {
    .roi-consent-bar { right: 8px; bottom: 8px; left: 8px; width: calc(100% - 16px); padding: 13px; gap: 10px; }
    .roi-consent-bar__copy h2 { font-size: 18px; }
    .roi-consent-bar__copy p { font-size: 8.5px; }
    .roi-consent-bar__actions { grid-template-columns: repeat(3, 1fr); }
    .roi-consent-dialog__actions { grid-template-columns: 1fr; }
    .roi-consent-bar__actions button { min-height: 34px; padding: 6px 5px; font-size: 7px; }
    .roi-consent-dialog__actions button { min-height: 46px; }
    .roi-consent-dialog { width: calc(100% - 20px); max-height: calc(100vh - 20px); padding: 34px 22px 24px; }
    .roi-consent-option { gap: 15px; }
    .roi-footer__privacy { flex-direction: column; gap: 6px; }
    .roi-cookie-policy { width: calc(100% - 36px); }
}

@media (prefers-reduced-motion: reduce) {
    .roi-consent *,
    .roi-cookie-policy * { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
