/* Motion Consent 1.0.0 — locally served, no remote assets. */
.motion-consent-preview__toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25rem 1rem;
    margin-bottom: 0.75rem;
}

.motion-consent-preview__toggle {
    appearance: none;
    background: none;
    border: none;
    padding: 0;
    min-height: 44px;
    font: inherit;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 0.25em;
    cursor: pointer;
    color: inherit;
}

.motion-consent-preview__note {
    font-size: 0.875rem;
    opacity: 0.7;
}

.motion-consent {
    --motion-consent-bg: #201a17;
    --motion-consent-text: #ffffff;
    --motion-consent-link: #f5c6c6;
    --motion-consent-button-bg: #b71c1c;
    --motion-consent-button-text: #ffffff;
    --motion-consent-radius: 0.75rem;
    --motion-consent-shadow: 0 1rem 2.5rem rgba(0, 0, 0, 0.35);
    position: fixed;
    z-index: 2147483000;
    color: var(--motion-consent-text);
    font-family: inherit;
    font-size: 0.9375rem;
    line-height: 1.5;
    color-scheme: light;
    box-sizing: border-box;
}

.motion-consent *,
.motion-consent *::before,
.motion-consent *::after {
    box-sizing: border-box;
}

.motion-consent [x-cloak][hidden] {
    display: none !important;
}

.motion-consent[data-appearance="dark"] {
    color-scheme: dark;
}

.motion-consent[data-appearance="system"] {
    color-scheme: light dark;
}

.motion-consent--top {
    top: 0;
    left: 0;
    right: 0;
}

.motion-consent--bottom {
    bottom: 0;
    left: 0;
    right: 0;
}

.motion-consent--bottom-left {
    left: 1rem;
    bottom: 1rem;
    width: min(28rem, calc(100vw - 2rem));
}

.motion-consent--bottom-right {
    right: 1rem;
    bottom: 1rem;
    width: min(28rem, calc(100vw - 2rem));
}

.motion-consent__banner,
.motion-consent__dialog {
    background-color: var(--motion-consent-bg);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: var(--motion-consent-radius);
    box-shadow: var(--motion-consent-shadow);
    padding: 1.25rem;
}

.motion-consent--full .motion-consent__banner {
    border-left: none;
    border-right: none;
    border-radius: 0;
}

.motion-consent--top.motion-consent--full .motion-consent__banner {
    border-top: none;
}

.motion-consent--bottom.motion-consent--full .motion-consent__banner {
    border-bottom: none;
}

.motion-consent--full .motion-consent__banner {
    max-width: none;
    margin-left: 0;
    margin-right: 0;
}

.motion-consent__heading {
    margin: 0 0 0.5rem;
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--motion-consent-text);
}

.motion-consent__message {
    margin: 0 0 1rem;
    max-width: 70ch;
    color: var(--motion-consent-text);
}

.motion-consent__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.motion-consent__button {
    appearance: none;
    min-height: 44px;
    padding: 0.625rem 1.125rem;
    border-radius: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: transparent;
    color: var(--motion-consent-text);
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}

.motion-consent__button:hover {
    border-color: var(--motion-consent-text);
}

.motion-consent__button--primary {
    background-color: var(--motion-consent-button-bg);
    border-color: var(--motion-consent-button-bg);
    color: var(--motion-consent-button-text);
}

.motion-consent__button--primary:hover {
    border-color: var(--motion-consent-button-text);
}

.motion-consent__button--quiet {
    border-color: transparent;
    text-decoration: underline;
    text-underline-offset: 0.2em;
}

.motion-consent__button:focus-visible,
.motion-consent__link:focus-visible,
.motion-consent__checkbox:focus-visible {
    outline: 3px solid var(--motion-consent-link);
    outline-offset: 2px;
}

.motion-consent__policy {
    margin: 0.75rem 0 0;
    font-size: 0.875rem;
}

.motion-consent__link {
    color: var(--motion-consent-link);
    text-underline-offset: 0.2em;
}

.motion-consent__backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
}

.motion-consent__dialog {
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: min(32rem, calc(100vw - 2rem));
    max-height: calc(100dvh - 2rem);
    overflow-y: auto;
}

.motion-consent__categories {
    list-style: none;
    margin: 0 0 1rem;
    padding: 0;
    display: grid;
    gap: 0.75rem;
}

.motion-consent__category {
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 0.5rem;
    padding: 0.75rem;
}

.motion-consent__category-label {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    cursor: pointer;
    min-height: 44px;
}

.motion-consent__checkbox {
    flex-shrink: 0;
    width: 1.375rem;
    height: 1.375rem;
    margin-top: 0.125rem;
    accent-color: var(--motion-consent-button-bg);
}

.motion-consent__category-text {
    display: grid;
    gap: 0.125rem;
}

.motion-consent__category-name {
    font-weight: 700;
}

.motion-consent__category-description {
    font-size: 0.875rem;
    opacity: 0.9;
}

.motion-consent__category-always {
    display: inline-block;
    margin-top: 0.25rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    opacity: 0.85;
}

@media (max-width: 40rem) {
    .motion-consent--bottom-left,
    .motion-consent--bottom-right {
        left: 0.5rem;
        right: 0.5rem;
        bottom: 0.5rem;
        width: auto;
    }

    .motion-consent__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .motion-consent__button {
        width: 100%;
        text-align: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .motion-consent__button {
        transition: none;
    }
}
