/* ABC Motors Promotional Popup */
.abc-promo-popup {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .25s ease, visibility .25s ease;
}

.abc-promo-popup[hidden] {
    display: none !important;
}

.abc-promo-popup.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.abc-promo-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .75);
}

.abc-promo-container {
    position: relative;
    z-index: 1;
    width: fit-content;
    max-width: 100%;
    max-height: calc(100vh - 40px);
    border-radius: 8px;
}

.abc-promo-container picture {
    display: block;
}

.abc-promo-image {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: calc(100vh - 40px);
    object-fit: contain;
    border-radius: 8px;
}

.abc-promo-close {
    position: absolute;
    top: -14px;
    right: -14px;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #fff;
    color: #222;
    font-size: 26px;
    font-weight: 400;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 3px 12px rgba(0, 0, 0, .25);
    transition: background .2s ease, transform .2s ease;
}

.abc-promo-close:hover {
    background: #eee;
    transform: scale(1.08);
}

.abc-promo-close:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 3px;
}

/* Mobile */
@media (max-width: 767px) {
    .abc-promo-popup {
        padding: 16px;
    }

    .abc-promo-container {
        width: 100%;
        max-height: calc(100vh - 32px);
    }

    .abc-promo-image {
        width: 100%;
        height: auto;
        max-height: calc(100vh - 32px);
        object-fit: contain;
    }

    .abc-promo-close {
        top: -12px;
        right: -8px;
        width: 32px;
        height: 32px;
        font-size: 24px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .abc-promo-popup,
    .abc-promo-close {
        transition: none;
    }
}