.cookie-consent {
    position: fixed;
    inset-inline: 0;
    bottom: 0;
    z-index: 1000;
    background: #1f2937;
    color: #fff;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.15);
    transform: translateY(100%);
    transition: transform 0.3s ease-out;
    font-family: 'Heebo', system-ui, sans-serif;
}

.cookie-consent.is-visible {
    transform: translateY(0);
}

.cookie-consent__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.cookie-consent__text {
    flex: 1 1 320px;
    font-size: 14px;
    line-height: 1.5;
}

.cookie-consent__text p {
    margin: 0;
}

.cookie-consent__text a {
    color: #93c5fd;
    text-decoration: underline;
}

.cookie-consent__actions {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 12px;
}

.cookie-consent__btn {
    flex: 0 0 auto;
    background: #16a34a;
    color: #fff;
    /* Transparent rather than 0 so the outlined Refuse variant, which does draw a border, ends up
       exactly the same height as this one. */
    border: 1px solid transparent;
    border-radius: 999px;
    padding: 10px 28px;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s ease-out;
}

.cookie-consent__btn:hover,
.cookie-consent__btn:focus-visible {
    background: #15803d;
    outline: none;
}

/* Refuse is deliberately the quieter of the two - outlined rather than filled - but it keeps the
   same size and hit area as Accept, so it reads as a real choice and not as a discouraged one. */
.cookie-consent__btn--refuse {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.55);
}

.cookie-consent__btn--refuse:hover,
.cookie-consent__btn--refuse:focus-visible {
    background: rgba(255, 255, 255, 0.12);
    border-color: #fff;
}

@media (max-width: 600px) {
    .cookie-consent__inner {
        padding: 12px 16px;
        gap: 12px;
    }
    .cookie-consent__text { font-size: 13px; }
    /* The two buttons share the row rather than stacking, so the toast does not grow tall enough
       to cover the content behind it on a phone. */
    .cookie-consent__actions {
        width: 100%;
        gap: 8px;
    }
    .cookie-consent__btn {
        flex: 1 1 0;
        padding: 8px 12px;
        font-size: 13px;
    }
}
