/* Cookie consent bar — shared (marketing + public business pages) */
.cp-cookie-consent {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1100;
    padding: 0.75rem 0;
    padding-bottom: max(0.75rem, env(safe-area-inset-bottom));
    background: #fff;
    border-top: 1px solid rgba(15, 23, 42, 0.12);
    box-shadow: 0 -8px 32px rgba(15, 23, 42, 0.12);
    transform: translateY(110%);
    opacity: 0;
    transition: transform 0.35s ease, opacity 0.35s ease;
    pointer-events: none;
}

.cp-cookie-consent.is-visible {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.cp-cookie-consent[hidden] {
    display: block !important;
}

.cp-cookie-consent[hidden]:not(.is-visible) {
    visibility: hidden;
}

.cp-cookie-consent__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem 1.25rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.cp-cookie-consent__text {
    flex: 1 1 280px;
    min-width: 0;
}

.cp-cookie-consent__text p {
    margin: 0;
    font-size: 0.8125rem;
    line-height: 1.5;
    color: #475569;
}

.cp-cookie-consent__text strong {
    color: #0f172a;
}

.cp-cookie-consent__text a {
    color: #2563eb;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.cp-cookie-consent__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    flex-shrink: 0;
}

.cp-cookie-consent__btn {
    min-height: 40px;
    padding: 0.5rem 1rem;
    border-radius: 10px;
    font: inherit;
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.cp-cookie-consent__btn--ghost {
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.18);
    color: #334155;
}

.cp-cookie-consent__btn--ghost:hover {
    background: #f8fafc;
    border-color: rgba(15, 23, 42, 0.28);
}

.cp-cookie-consent__btn--primary {
    background: #2563eb;
    border: 1px solid #2563eb;
    color: #fff;
}

.cp-cookie-consent__btn--primary:hover {
    background: #1d4ed8;
    border-color: #1d4ed8;
}

body.cp-cookie-consent-open {
    padding-bottom: calc(72px + env(safe-area-inset-bottom));
}

body.cp-cookie-consent-open .cp-sticky-cta {
    display: none;
}

@media (max-width: 575px) {
    .cp-cookie-consent__inner {
        flex-direction: column;
        align-items: stretch;
    }

    .cp-cookie-consent__actions {
        width: 100%;
    }

    .cp-cookie-consent__btn {
        flex: 1 1 auto;
        text-align: center;
    }
}
