.ff-signup-offer {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 99999;
    box-sizing: border-box;
    max-height: 45vh;
    overflow-y: auto;
    padding: 20px 26px calc(20px + env(safe-area-inset-bottom));
    border: 1px solid #f4f4f4;
    border-radius: 6px 6px 0 0;
    background: var(--ff-surface);
    box-shadow: 0 -1px 10px 0 #acabab4d;
    color: var(--ff-ink);
    transform: translateY(100%);
    transition: transform 0.3s ease-out;
}

.ff-signup-offer.is-open {
    transform: none;
}

.ff-signup-offer[hidden] {
    display: none;
}

.ff-signup-offer__close {
    position: absolute;
    top: 4px;
    right: 4px;
    width: var(--ff-tap-target);
    height: var(--ff-tap-target);
    padding: 0;
    border: 0;
    background: none;
    color: var(--ff-ink);
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.ff-signup-offer__close:focus-visible {
    outline: var(--ff-focus-ring);
}

.ff-signup-offer__title {
    margin: 0 var(--ff-tap-target) 12px 0;
    color: var(--ff-ink);
    font-size: 18px;
    font-weight: 700;
    line-height: 24px;
}

.ff-signup-offer__text,
.ff-signup-offer__sent {
    margin: 0 0 12px;
    font-size: 14px;
    line-height: 20px;
}

.ff-signup-offer__sent {
    margin: 0;
    color: var(--ff-success);
    font-weight: 700;
}

.ff-signup-offer .mc-container {
    padding: 0;
}

.ff-signup-offer .mc-container + .mc-container {
    margin-top: 10px;
    font-size: 13px;
}

.ff-signup-offer .ff-cta {
    margin-top: 12px;
}

.ff-signup-offer .ff-cta:is(:hover, :focus, :active) {
    opacity: 1;
}

.ff-signup-offer .ff-consent:has([aria-invalid="true"]),
.ff-signup-offer .ff-consent:has([aria-invalid="true"]) a {
    color: #b81c23;
}

.ff-signup-offer .ff-consent:has([aria-invalid="true"]) .required {
    opacity: 1;
}

.ff-signup-offer .ff-consent [aria-invalid="true"] {
    outline: 1px solid #b81c23;
    outline-offset: 1px;
}

.ff-signup-offer__error {
    margin: 0;
    padding-top: var(--ff-space-xs);
    color: #b81c23;
    font-size: 12px;
    line-height: 1.4;
}

.ff-signup-offer .mc4wp-alert {
    margin-top: 10px;
    font-size: 14px;
}

@media (min-width: 768px) {
    .ff-signup-offer {
        right: auto;
        bottom: 20px;
        left: 20px;
        width: 440px;
        border-radius: 6px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ff-signup-offer {
        transition: none;
    }
}
