/**
 * Cookie consent banner.
 *
 * Uses the theme's global colour tokens from style.css so the banner follows
 * any future brand change without a second edit here.
 */

.onemotion-consent {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1080; /* Above Bootstrap modals' backdrop (1050) but below tooltips. */
    background: #ffffff;
    border-top: 3px solid var(--global-color-primary, #f79420);
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.12);
    padding: 20px 16px;
}

.onemotion-consent-inner {
    max-width: 1140px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
    justify-content: space-between;
}

.onemotion-consent-text {
    flex: 1 1 420px;
    min-width: 0;
}

.onemotion-consent-text strong {
    display: block;
    margin-bottom: 4px;
    color: var(--global-color-heading, #000);
    font-size: 16px;
}

.onemotion-consent-text p {
    margin: 0;
    color: var(--one-motion-gloabl-text, #4b4b4b);
    font-size: 14px;
    line-height: 1.5;
}

.onemotion-consent-text a {
    color: var(--global-color-primary, #f79420);
    text-decoration: underline;
}

.onemotion-consent-actions {
    display: flex;
    gap: 10px;
    flex: 0 0 auto;
}

.onemotion-consent-btn {
    border: 1px solid var(--global-color-primary, #f79420);
    border-radius: 4px;
    padding: 10px 22px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    line-height: 1.2;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.onemotion-consent-btn-primary {
    background: var(--global-color-primary, #f79420);
    color: #ffffff;
}

.onemotion-consent-btn-primary:hover,
.onemotion-consent-btn-primary:focus {
    background: #d97d12;
    border-color: #d97d12;
}

.onemotion-consent-btn-secondary {
    background: transparent;
    color: var(--global-color-heading, #000);
}

.onemotion-consent-btn-secondary:hover,
.onemotion-consent-btn-secondary:focus {
    background: rgba(247, 148, 32, 0.1);
}

.onemotion-consent-btn:focus-visible {
    outline: 2px solid var(--global-color-secondary, #000);
    outline-offset: 2px;
}

@media (max-width: 575.98px) {
    .onemotion-consent-inner {
        gap: 14px;
    }

    .onemotion-consent-actions {
        width: 100%;
    }

    .onemotion-consent-btn {
        flex: 1 1 0;
    }
}
