/* CareEarth — Cookie consent banner */

.careearth-cookie-banner {
    position: fixed;
    left: 1.25rem;
    bottom: 1.25rem;
    z-index: 1080;
    width: min(22rem, calc(100vw - 2.5rem));
    background: #ffffff;
    color: #1f2937;
    border-radius: 14px;
    box-shadow:
        0 18px 40px -10px rgba(15, 23, 42, 0.28),
        0 6px 14px -4px rgba(15, 23, 42, 0.18);
    padding: 1rem 1.125rem 1rem 1.125rem;
    font-size: 0.8125rem;
    line-height: 1.55;
    transform: translateY(20px);
    opacity: 0;
    pointer-events: none;
    transition:
        transform 280ms cubic-bezier(0.2, 0.8, 0.2, 1),
        opacity 280ms ease;
}

.careearth-cookie-banner[data-state="visible"] {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.careearth-cookie-banner[hidden] {
    display: none !important;
}

.careearth-cookie-banner__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.careearth-cookie-banner__title {
    margin: 0;
    font-size: 0.9375rem;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: 0.01em;
}

.careearth-cookie-banner__close {
    flex: 0 0 auto;
    width: 1.75rem;
    height: 1.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    background: transparent;
    color: #64748b;
    border-radius: 50%;
    cursor: pointer;
    padding: 0;
    margin: -0.25rem -0.25rem 0 0;
    transition: background-color 150ms ease, color 150ms ease;
}

.careearth-cookie-banner__close:hover,
.careearth-cookie-banner__close:focus-visible {
    background: rgba(15, 23, 42, 0.06);
    color: #0f172a;
    outline: none;
}

.careearth-cookie-banner__close svg {
    width: 1rem;
    height: 1rem;
}

.careearth-cookie-banner__body {
    margin: 0 0 0.875rem;
    color: #475569;
}

.careearth-cookie-banner__link {
    color: #0f766e;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
    white-space: nowrap;
}

.careearth-cookie-banner__link:hover,
.careearth-cookie-banner__link:focus-visible {
    color: #115e59;
    text-decoration: underline;
}

.careearth-cookie-banner__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: flex-end;
}

.careearth-cookie-banner__btn {
    appearance: none;
    border: 1px solid transparent;
    border-radius: 8px;
    padding: 0.5rem 0.95rem;
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
    transition:
        background-color 150ms ease,
        color 150ms ease,
        border-color 150ms ease,
        transform 120ms ease,
        box-shadow 150ms ease;
}

.careearth-cookie-banner__btn:active {
    transform: translateY(1px);
}

.careearth-cookie-banner__btn--decline {
    background: #ffffff;
    color: #334155;
    border-color: #e2e8f0;
}

.careearth-cookie-banner__btn--decline:hover,
.careearth-cookie-banner__btn--decline:focus-visible {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #0f172a;
    outline: none;
}

.careearth-cookie-banner__btn--accept {
    background: #16a34a;
    color: #ffffff;
    border-color: #16a34a;
    box-shadow: 0 6px 14px -6px rgba(22, 163, 74, 0.55);
}

.careearth-cookie-banner__btn--accept:hover,
.careearth-cookie-banner__btn--accept:focus-visible {
    background: #15803d;
    border-color: #15803d;
    outline: none;
}

@media (max-width: 480px) {
    .careearth-cookie-banner {
        left: 0.75rem;
        right: 0.75rem;
        bottom: 0.75rem;
        width: auto;
        padding: 0.875rem 1rem;
    }

    .careearth-cookie-banner__actions {
        justify-content: stretch;
    }

    .careearth-cookie-banner__btn {
        flex: 1;
        text-align: center;
    }
}
