/* Bottom banner — marketing opt-in for legacy customers */
.mconsent {
    position: fixed;
    inset-inline: 0;
    bottom: 0;
    z-index: 1080;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0));
    background: transparent;
    pointer-events: none;
}

.mconsent__inner {
    pointer-events: auto;
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 20px;
    width: min(960px, 100%);
    margin: 0 auto;
    padding: 16px 48px 16px 20px;
    border-radius: 16px;
    border: 1px solid rgba(41, 75, 44, 0.12);
    background: #fff;
    box-shadow: 0 12px 40px rgba(31, 42, 36, 0.18);
    font-family: var(--font-body, "Heebo", "Rubik", sans-serif);
}

.mconsent__copy {
    flex: 1 1 280px;
    min-width: 0;
}

.mconsent__title {
    margin: 0 0 4px;
    font-size: 1.05rem;
    font-weight: 700;
    color: #244f2d;
}

.mconsent__text {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.45;
    color: #5c6b63;
}

.mconsent__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    flex: 0 1 auto;
}

.mconsent__form {
    margin: 0;
}

.mconsent__accept {
    min-height: 44px;
    padding-inline: 18px;
    white-space: nowrap;
}

.mconsent__dismiss {
    min-height: 44px;
    padding-inline: 14px;
    white-space: nowrap;
}

.mconsent__close {
    position: absolute;
    inset-inline-end: 10px;
    top: 10px;
    width: 2rem;
    height: 2rem;
    border: 0;
    border-radius: 999px;
    background: rgba(245, 245, 239, 0.9);
    color: #5c6b63;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.mconsent__close:hover {
    background: #eef4ea;
    color: #244f2d;
}

@media (max-width: 575.98px) {
    .mconsent__inner {
        padding: 14px 40px 14px 14px;
        flex-direction: column;
        align-items: stretch;
    }

    .mconsent__actions {
        width: 100%;
    }

    .mconsent__accept,
    .mconsent__dismiss {
        flex: 1 1 auto;
        width: 100%;
    }

    .mconsent__actions {
        flex-direction: column;
    }
}

/* Leave room above WhatsApp float */
body:has(.mconsent:not([hidden])) .whatsapp-float {
    bottom: calc(7.5rem + env(safe-area-inset-bottom, 0));
}
