/* Banner trong luồng trang — trước Hộp bánh / đầu nội dung shop */

.promo-tao-don {
    display: block;
    position: relative;
    z-index: 2;
    margin: 0.75rem auto 1.25rem;
    max-width: 1140px;
    width: calc(100% - 24px);
    border-radius: 12px;
    overflow: hidden;
    background:
        linear-gradient(100deg, #9a1020 0%, #ca1515 42%, #7a0a1c 100%);
    box-shadow:
        0 8px 24px rgba(18, 8, 8, 0.22),
        0 0 0 1px rgba(255, 255, 255, 0.08) inset;
    transition: opacity 0.25s ease, transform 0.25s ease, max-height 0.25s ease;
}

body.layout-boxed .promo-tao-don {
    width: 100%;
    max-width: none;
    margin: 0 0 1.15rem;
}

.promo-tao-don.is-dismissed {
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    max-height: 0;
    margin-top: 0;
    margin-bottom: 0;
    overflow: hidden;
}

.promo-tao-don__inner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.95rem 2.75rem 0.95rem 1.25rem;
    color: #fff;
}

.promo-tao-don__copy {
    min-width: 0;
    flex: 1;
}

.promo-tao-don__title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.3;
    color: #fff;
}

.promo-tao-don__title span {
    font-weight: 800;
    color: #ffe8a3;
}

.promo-tao-don__note {
    margin: 0.2rem 0 0;
    font-size: 0.88rem;
    font-weight: 600;
    line-height: 1.35;
    color: rgba(255, 255, 255, 0.92);
}

.promo-tao-don__cta {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.65rem 1.15rem;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 800;
    color: #7a1010 !important;
    background: #fff;
    text-decoration: none !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
    white-space: nowrap;
    transition: transform 0.2s ease, background 0.2s ease;
}

.promo-tao-don__cta:hover {
    background: #ffe8a3;
    color: #5c0c0c !important;
    transform: translateY(-1px);
}

.promo-tao-don__close {
    position: absolute;
    top: 50%;
    right: 0.55rem;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: background 0.2s ease;
}

.promo-tao-don__close:hover {
    background: rgba(255, 255, 255, 0.28);
}

@media (max-width: 768px) {
    .promo-tao-don {
        width: calc(100% - 16px);
        border-radius: 10px;
        margin: 0.5rem auto 1rem;
    }

    body.layout-boxed .promo-tao-don {
        width: 100%;
        margin: 0 0 1rem;
    }

    .promo-tao-don__inner {
        gap: 0.65rem;
        padding: 0.75rem 2.35rem 0.75rem 0.85rem;
    }

    .promo-tao-don__title {
        font-size: 0.9rem;
    }

    .promo-tao-don__note {
        font-size: 0.76rem;
    }

    .promo-tao-don__cta {
        padding: 0.55rem 0.8rem;
        font-size: 0.84rem;
    }

    .promo-tao-don__close {
        right: 0.4rem;
        width: 28px;
        height: 28px;
        font-size: 0.85rem;
    }
}

@media (max-width: 420px) {
    .promo-tao-don__inner {
        flex-wrap: wrap;
        padding-right: 2.2rem;
    }

    .promo-tao-don__cta {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .promo-tao-don,
    .promo-tao-don__cta {
        transition: none;
    }
}
