/* cookie-consent.css — GDPR cookie consent banner
   BoundaryFinder UK — boundaryfinder.co.uk
*/

/* ── Banner container ──────────────────────────── */
.cookie-consent {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: var(--color-bg-dark, #1a1a2e);
    color: #e0e0e0;
    padding: 1.25rem 1.5rem;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.25);
    animation: cookieSlideUp 0.35s ease-out;
}

.cookie-consent.is-visible {
    display: block;
}

@keyframes cookieSlideUp {
    from { transform: translateY(100%); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}

/* ── Inner layout ──────────────────────────────── */
.cookie-consent__inner {
    max-width: var(--max-width, 1200px);
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.cookie-consent__text {
    flex: 1 1 400px;
    font-size: 0.9rem;
    line-height: 1.55;
}

.cookie-consent__text a {
    color: var(--color-accent, #e8a838);
    text-decoration: underline;
}

.cookie-consent__text a:hover {
    color: #fff;
}

/* ── Buttons ───────────────────────────────────── */
.cookie-consent__actions {
    display: flex;
    gap: 0.75rem;
    flex-shrink: 0;
}

.cookie-consent__btn {
    padding: 0.6rem 1.4rem;
    border: none;
    border-radius: var(--border-radius-sm, 4px);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    white-space: nowrap;
}

.cookie-consent__btn:active {
    transform: scale(0.97);
}

.cookie-consent__btn--accept {
    background: var(--color-primary, #1a5632);
    color: #fff;
}

.cookie-consent__btn--accept:hover {
    background: var(--color-primary-light, #2a7a4a);
}

.cookie-consent__btn--reject {
    background: transparent;
    color: #ccc;
    border: 1px solid #555;
}

.cookie-consent__btn--reject:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

/* ── Responsive ────────────────────────────────── */
@media (max-width: 600px) {
    .cookie-consent {
        padding: 1rem;
    }

    .cookie-consent__inner {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .cookie-consent__actions {
        width: 100%;
        justify-content: center;
    }

    .cookie-consent__btn {
        flex: 1;
    }
}
