.dfam-promo-bar {
    position: fixed;
    z-index: 40;
    right: 1rem;
    bottom: max(0.75rem, env(safe-area-inset-bottom));
    left: 1rem;
    color: #fff;
    background: #111827;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 0.75rem;
    box-shadow: 0 8px 28px rgba(17, 24, 39, 0.2);
}

.dfam-promo-bar[hidden] {
    display: none;
}

.dfam-promo-inner {
    display: flex;
    align-items: center;
    gap: 1rem;
    max-width: var(--site-max-width);
    min-height: 3rem;
    margin: 0 auto;
    padding: 0.375rem 1rem;
}

.dfam-promo-copy {
    min-width: 0;
    flex: 1 1 auto;
}

.dfam-promo-title {
    margin: 0;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.35;
}

.dfam-promo-cta {
    flex: 0 0 auto;
    color: #111827;
    background: #fff;
    border-radius: 0.5rem;
    padding: 4px 1rem;
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    transition: background-color 150ms ease, color 150ms ease;
}

.dfam-promo-cta:hover {
    color: #111827;
    background: #e5e7eb;
}

.dfam-promo-close {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    margin: -0.25rem -0.25rem -0.25rem 0;
    color: #d1d5db;
    background: transparent;
    border: 0;
    border-radius: 0.375rem;
    cursor: pointer;
    font-size: 1.35rem;
    line-height: 1;
}

.dfam-promo-close:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.dfam-promo-cta:focus-visible,
.dfam-promo-close:focus-visible {
    outline: 3px solid #93c5fd;
    outline-offset: 2px;
}

body.dfam-promo-visible {
    padding-bottom: 4.5rem;
}

@media (max-width: 640px) {
    .dfam-promo-bar {
        right: 0.65rem;
        left: 0.65rem;
    }

    .dfam-promo-inner {
        align-items: center;
        gap: 0.5rem;
        min-height: 0;
        padding: 0.25rem 0.7rem 0.25rem 0.85rem;
    }

    .dfam-promo-title {
        font-size: 0.82rem;
    }

    .dfam-promo-cta {
        align-self: center;
        padding: 4px 0.7rem;
        font-size: 0.72rem;
        white-space: nowrap;
    }

    body.dfam-promo-visible {
        padding-bottom: 5rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .dfam-promo-cta {
        transition: none;
    }
}