:root {
    --hrcc-yellow: #ffcd08;
    --hrcc-yellow-dark: #d4a900;
    --hrcc-black: #111111;
    --hrcc-charcoal: #242424;
    --hrcc-white: #ffffff;
    --hrcc-grey: #666666;
    --hrcc-light: #f5f5f3;
    --hrcc-border: #ddddda;
    --hrcc-shadow: 0 18px 55px rgba(0, 0, 0, .28);
}

html.hrcc-open,
html.hrcc-open body {
    overflow: hidden !important;
}

.hrcc-root,
.hrcc-root * {
    box-sizing: border-box;
}

.hrcc-root {
    font-family: inherit;
    line-height: 1.5;
}

.hrcc-banner[hidden],
.hrcc-modal[hidden],
.hrcc-backdrop[hidden],
.hrcc-floating[hidden] {
    display: none !important;
}

.hrcc-banner {
    position: fixed;
    z-index: 2147483000;
    left: 50%;
    bottom: 18px;
    width: min(1180px, calc(100% - 32px));
    transform: translateX(-50%);
    background: var(--hrcc-white);
    color: var(--hrcc-black);
    border: 2px solid var(--hrcc-black);
    box-shadow: var(--hrcc-shadow);
}

.hrcc-banner__accent {
    height: 8px;
    background: var(--hrcc-yellow);
}

.hrcc-banner__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
    align-items: center;
    gap: 28px;
    padding: 24px 26px;
}

.hrcc-banner__eyebrow,
.hrcc-modal__eyebrow {
    display: block;
    margin-bottom: 4px;
    color: #806700;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .15em;
}

.hrcc-banner h2,
.hrcc-modal h2 {
    margin: 0;
    color: var(--hrcc-black);
    font-size: clamp(25px, 3vw, 38px);
    line-height: 1.08;
    font-weight: 900;
    text-transform: none;
}

.hrcc-banner p {
    margin: 9px 0 0;
    color: #4b4b4b;
    font-size: 15px;
}

.hrcc-banner__links {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.hrcc-banner__links a {
    color: var(--hrcc-black);
    font-weight: 800;
    text-decoration: underline;
    text-decoration-color: var(--hrcc-yellow);
    text-decoration-thickness: 3px;
    text-underline-offset: 3px;
}

.hrcc-banner__actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 9px;
}

.hrcc-button,
.hrcc-inline-button {
    appearance: none;
    border-radius: 0;
    min-height: 48px;
    padding: 12px 16px;
    border: 2px solid var(--hrcc-black);
    font: inherit;
    font-size: 13px;
    font-weight: 900;
    line-height: 1.2;
    text-align: center;
    cursor: pointer;
    transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}

.hrcc-button:hover,
.hrcc-inline-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 0 rgba(0, 0, 0, .16);
}

.hrcc-button:focus-visible,
.hrcc-inline-button:focus-visible,
.hrcc-modal__close:focus-visible,
.hrcc-floating:focus-visible,
.hrcc-switch input:focus-visible + span {
    outline: 4px solid rgba(255, 205, 8, .7);
    outline-offset: 3px;
}

.hrcc-button--yellow {
    background: var(--hrcc-yellow);
    color: var(--hrcc-black);
}

.hrcc-button--yellow:hover {
    background: #ffda3e;
}

.hrcc-button--dark,
.hrcc-inline-button {
    background: var(--hrcc-black);
    color: var(--hrcc-white);
}

.hrcc-button--outline {
    background: var(--hrcc-white);
    color: var(--hrcc-black);
}

.hrcc-backdrop {
    position: fixed;
    z-index: 2147483001;
    inset: 0;
    background: rgba(0, 0, 0, .72);
    backdrop-filter: blur(3px);
}

.hrcc-modal {
    position: fixed;
    z-index: 2147483002;
    top: 50%;
    left: 50%;
    width: min(720px, calc(100% - 28px));
    max-height: min(86vh, 850px);
    transform: translate(-50%, -50%);
    overflow: auto;
    background: var(--hrcc-white);
    color: var(--hrcc-black);
    border: 3px solid var(--hrcc-black);
    box-shadow: var(--hrcc-shadow);
}

.hrcc-modal__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding: 24px 26px 21px;
    background: var(--hrcc-yellow);
    border-bottom: 3px solid var(--hrcc-black);
}

.hrcc-modal__close {
    appearance: none;
    width: 43px;
    height: 43px;
    flex: 0 0 43px;
    border: 2px solid var(--hrcc-black);
    border-radius: 0;
    background: var(--hrcc-black);
    color: var(--hrcc-white);
    font: inherit;
    font-size: 30px;
    line-height: 35px;
    cursor: pointer;
}

.hrcc-modal__body {
    padding: 24px 26px 10px;
}

.hrcc-modal__intro {
    margin: 0 0 18px;
    color: #4d4d4d;
}

.hrcc-gpc {
    padding: 12px 14px;
    border-left: 5px solid var(--hrcc-yellow);
    background: var(--hrcc-light);
    color: var(--hrcc-black);
    font-weight: 700;
}

.hrcc-category {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 20px;
    padding: 18px 0;
    border-top: 1px solid var(--hrcc-border);
}

.hrcc-category__text h3 {
    margin: 0 0 4px;
    color: var(--hrcc-black);
    font-size: 18px;
    font-weight: 900;
}

.hrcc-category__text p {
    margin: 0;
    color: var(--hrcc-grey);
    font-size: 14px;
}

.hrcc-switch {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    cursor: pointer;
}

.hrcc-switch input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.hrcc-switch span {
    position: relative;
    width: 54px;
    height: 30px;
    border: 2px solid var(--hrcc-black);
    background: #dedede;
    transition: background .18s ease;
}

.hrcc-switch span::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    background: var(--hrcc-white);
    border: 2px solid var(--hrcc-black);
    transition: transform .18s ease;
}

.hrcc-switch input:checked + span {
    background: var(--hrcc-yellow);
}

.hrcc-switch input:checked + span::after {
    transform: translateX(24px);
}

.hrcc-switch em {
    color: var(--hrcc-grey);
    font-size: 12px;
    font-style: normal;
    font-weight: 800;
    white-space: nowrap;
}

.hrcc-switch--locked {
    cursor: default;
}

.hrcc-modal__footer {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    padding: 18px 26px 24px;
    background: var(--hrcc-light);
    border-top: 2px solid var(--hrcc-black);
}

.hrcc-floating {
    position: fixed;
    z-index: 2147482999;
    left: 16px;
    bottom: 15px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 8px 13px;
    border: 2px solid var(--hrcc-black);
    border-radius: 0;
    background: var(--hrcc-white);
    color: var(--hrcc-black);
    box-shadow: 0 5px 18px rgba(0, 0, 0, .16);
    font: inherit;
    font-size: 12px;
    font-weight: 900;
    cursor: pointer;
}

.hrcc-floating span {
    width: 11px;
    height: 11px;
    background: var(--hrcc-yellow);
    border: 2px solid var(--hrcc-black);
}

.hrcc-embed {
    padding: 28px;
    border: 2px solid var(--hrcc-black);
    border-top: 8px solid var(--hrcc-yellow);
    background: var(--hrcc-light);
    text-align: center;
}

.hrcc-embed strong {
    display: block;
    color: var(--hrcc-black);
    font-size: 18px;
}

.hrcc-inline-button {
    display: inline-block;
}

@media (max-width: 920px) {
    .hrcc-banner__inner {
        grid-template-columns: 1fr;
        gap: 18px;
    }
}

@media (max-width: 700px) {
    .hrcc-banner {
        left: 0;
        bottom: 0;
        width: 100%;
        transform: none;
        border-right: 0;
        border-bottom: 0;
        border-left: 0;
    }

    .hrcc-banner__inner,
    .hrcc-modal__header,
    .hrcc-modal__body {
        padding-right: 18px;
        padding-left: 18px;
    }

    .hrcc-banner__actions,
    .hrcc-modal__footer {
        grid-template-columns: 1fr;
    }

    .hrcc-modal {
        top: auto;
        bottom: 0;
        left: 0;
        width: 100%;
        max-height: 92vh;
        transform: none;
        border-right: 0;
        border-bottom: 0;
        border-left: 0;
    }

    .hrcc-category {
        align-items: start;
    }

    .hrcc-modal__footer {
        padding: 16px 18px 20px;
    }

    .hrcc-floating {
        left: 8px;
        bottom: 8px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hrcc-root *,
    .hrcc-root *::before,
    .hrcc-root *::after {
        scroll-behavior: auto !important;
        transition: none !important;
    }
}
