:root {
    --promo-brand: #582A8A;
    --promo-brand-dark: #431f6c;
    --promo-brand-soft: #f6f0fc;
    --promo-accent: #7b46b2;
    --promo-text: #1f1728;
    --promo-text-soft: #6f6380;
    --promo-border: rgba(88, 42, 138, 0.12);
    --promo-shadow: 0 24px 60px rgba(45, 20, 72, 0.18);
}

/* Remove dark Bootstrap backdrop */
.modal-backdrop.show {
    opacity: 0 !important;
    background: transparent !important;
}

.promo-modal .modal-dialog {
    max-width: 620px;
    width: 100%;
    padding: 0.75rem;
    margin: 0 auto;
}

.promo-modal .modal-content {
    position: relative;
    border: 0;
    border-radius: 22px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: var(--promo-shadow);
}

.promo-modal-card {
    display: flex;
    flex-direction: column;
}

.promo-modal-media-wrap {
    position: relative;
    background: #ffffff;
}

.promo-modal-media {
    display: block;
    text-decoration: none;
    color: inherit;
}

.promo-modal-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
    transition: transform 0.45s ease;
}

.promo-modal-media:hover .promo-modal-image {
    transform: scale(1.02);
}

/* removed old overlay/badge visual */
.promo-modal-overlay,
.promo-modal-badge {
    display: none !important;
}

.promo-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 5;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    opacity: 1;
    background-color: rgba(255, 255, 255, 0.96);
    box-shadow: 0 10px 24px rgba(45, 20, 72, 0.14);
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.promo-modal-close:hover {
    transform: rotate(90deg);
    background-color: #ffffff;
}

.promo-modal-body-content {
    padding: 20px 20px 16px;
    background: #ffffff;
}

.promo-modal-eyebrow {
    display: inline-block;
    margin-bottom: 0.45rem;
    color: var(--promo-brand);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.promo-modal-title {
    margin: 0 0 0.55rem;
    font-size: 1.42rem;
    line-height: 1.15;
    font-weight: 800;
    color: var(--promo-text);
    letter-spacing: -0.02em;
}

.promo-modal-description {
    margin: 0 0 0.9rem;
    font-size: 0.92rem;
    line-height: 1.7;
    color: var(--promo-text-soft);
}

.promo-modal-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding-top: 0.9rem;
    border-top: 1px solid var(--promo-border);
}

.promo-modal-check {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    cursor: pointer;
    color: var(--promo-text-soft);
    font-size: 0.78rem;
    line-height: 1.4;
    user-select: none;
    flex: 1 1 auto;
}

.promo-modal-check input[type="checkbox"] {
    width: 15px;
    height: 15px;
    margin-top: 0;
    accent-color: var(--promo-brand);
    flex-shrink: 0;
}

.promo-modal-actions {
    display: flex;
    justify-content: flex-end;
    flex-shrink: 0;
}

/* extra-small outline button */
.promo-modal-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 32px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid var(--promo-brand);
    background: transparent;
    color: var(--promo-brand) !important;
    text-decoration: none;
    font-size: 0.76rem;
    font-weight: 700;
    line-height: 1;
    box-shadow: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.promo-modal-btn:hover {
    background: var(--promo-brand);
    color: #fff !important;
    border-color: var(--promo-brand);
    transform: translateY(-1px);
    box-shadow: 0 10px 18px rgba(88, 42, 138, 0.16);
}

.promo-modal-btn svg {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
}

.promo-modal.fade .modal-dialog {
    transform: translateY(12px) scale(0.98);
    transition: transform 0.28s ease, opacity 0.28s ease;
}

.promo-modal.show .modal-dialog {
    transform: translateY(0) scale(1);
}

@media (max-width: 767.98px) {
    .promo-modal .modal-dialog {
        max-width: 100%;
        padding: 0.65rem;
    }

    .promo-modal-image {
        height: 240px;
    }

    .promo-modal-body-content {
        padding: 18px 16px 16px;
    }

    .promo-modal-title {
        font-size: 1.2rem;
    }

    .promo-modal-description {
        font-size: 0.88rem;
    }

    .promo-modal-bottom {
        flex-direction: row;
        align-items: center;
        gap: 10px;
    }

    .promo-modal-check {
        font-size: 0.74rem;
    }

    .promo-modal-btn {
        min-height: 30px;
        padding: 0 11px;
        font-size: 0.74rem;
    }
}

@media (max-width: 479.98px) {
    .promo-modal-image {
        height: 210px;
    }

    .promo-modal-title {
        font-size: 1.08rem;
    }

    .promo-modal-description {
        font-size: 0.84rem;
        line-height: 1.6;
    }

    .promo-modal-bottom {
        flex-direction: column;
        align-items: stretch;
    }

    .promo-modal-actions {
        width: 100%;
        justify-content: flex-end;
    }

    .promo-modal-btn {
        min-height: 30px;
        padding: 0 10px;
        font-size: 0.73rem;
    }

    .promo-modal-check {
        font-size: 0.72rem;
    }

    .promo-modal-close {
        width: 34px;
        height: 34px;
        top: 12px;
        right: 12px;
    }
}
