.terms-consent {
    --terms-track-width: 58px;
    display: flex;
    align-items: center;
    gap: .26em;
    color: var(--ink);
    font-size: .9375rem;
    white-space: nowrap;
}
.terms-consent .terms-switch {
    position: relative;
    display: flex;
    min-height: 44px;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}
.terms-switch input[type="checkbox"] {
    position: absolute;
    inset: 0 auto 0 0;
    z-index: 1;
    width: var(--terms-track-width);
    height: 100%;
    margin: 0;
    opacity: 0;
    cursor: pointer;
}
.terms-track {
    position: relative;
    display: flex;
    flex: none;
    width: var(--terms-track-width);
    height: 32px;
    align-items: center;
    padding: 3px;
    border: 1px solid #777b88;
    border-radius: 99px;
    background: #14161e;
    transition: background 180ms ease, border-color 180ms ease;
}
.terms-track::after {
    content: "";
    position: absolute;
    left: 12px;
    width: 6px;
    height: 11px;
    border: solid #302410;
    border-width: 0 2px 2px 0;
    opacity: 0;
    transform: translateY(-1px) rotate(45deg);
    transition: opacity 160ms ease;
}
.terms-ball {
    width: 24px;
    height: 24px;
    border: 2px solid #24252e;
    border-radius: 50%;
    background:
        radial-gradient(circle, #fff9e9 15%, #24252e 16% 27%, transparent 28%),
        linear-gradient(#f9615f 0 43%, #24252e 44% 56%, #fff7e8 57%);
    box-shadow: 0 1px 3px #14161e88;
    transition: transform 330ms cubic-bezier(.2,.82,.36,1.15);
}
.terms-switch:hover .terms-track { border-color: var(--gold); }
.terms-switch input:focus-visible + .terms-track { outline: 3px solid var(--gold); outline-offset: 3px; }
.terms-switch input:checked + .terms-track { border-color: var(--gold); background: var(--gold); }
.terms-switch input:checked + .terms-track::after { opacity: 1; }
.terms-switch input:checked + .terms-track .terms-ball { transform: translateX(calc(var(--terms-track-width) - 34px)) rotate(360deg); }
.terms-consent > a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: var(--gold);
    font-weight: 650;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.terms-consent > a:hover { color: #ffe5af; }
@media (max-width: 359px) {
    .terms-consent { --terms-track-width: 50px; font-size: .875rem; }
    .terms-consent .terms-switch { gap: 7px; }
}
:is(
    button[data-terms-submit]:disabled,
    form:has(.terms-switch input:not(:checked)) button[data-terms-submit]
) {
    background: #3b3e47;
    border-color: #555a68;
    color: #c4c7d1;
    cursor: not-allowed;
    filter: grayscale(1);
    opacity: 1;
    transform: none;
}
