/* Banner Wrapper */
.promo-banner-wrapper {
    margin: 20px auto;
    padding: 20px;
    box-sizing: border-box;
    position: relative;
    border-radius: 8px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

/* Banner Columns (Desktop Defaults) */
.promo-one-col-desktop .promo-banner-text {
    width: 100%;
}
.promo-two-cols-desktop .promo-banner-image,
.promo-two-cols-desktop .promo-banner-text {
    width: 48%;
}

/* Banner Columns (Mobile Defaults) */

.promo-two-cols-mobile .promo-banner-image,
.promo-two-cols-mobile .promo-banner-text {
    width: 100%;
}

/* Mobile Width Override */
.promo-banner-wrapper[style*="--mobile-width"] {
    max-width: var(--mobile-width);
    width: 100%;
}

/* Banner Image */
.promo-banner-image img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 6px;
}
.promo-banner-image.order-last {
    order: 2;
}
.promo-banner-image.order-first {
    order: 1;
}

/* Text Styling */
.promo-banner-text {
    line-height: 1.5;
    font-size: 16px;
}

/* Close Button */
.promo-close-btn {
    position: absolute;
    top: 8px;
    right: 12px;
    background: transparent;
    border: none;
    font-size: 24px;
    color: inherit;
    cursor: pointer;
    font-weight: bold;
}

/* Restore Icon */
.promo-banner-restore {
    position: fixed;
    bottom: 15px;
    right: 15px;
    z-index: 9999;
}
.promo-restore-btn {
    width: 100px;
    height: 100px;
    background: #000;
    opacity: 0.7;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    background-image: url('data:image/svg+xml;utf8,<svg fill="white" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M10 1a9 9 0 1 0 9 9H17a7 7 0 1 1-7-7V1z"/></svg>');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 40%;
}

/* Responsive */
@media screen and (max-width: 768px) {
    .promo-two-cols-desktop .promo-banner-image,
    .promo-two-cols-desktop .promo-banner-text {
        width: 100%;
    }
}

.promo-image-preview-wrap {
    margin-top: 10px;
    position: relative;
    display: inline-block;
}
.promo-image-preview-wrap img {
    border: 1px solid #ccc;
    border-radius: 4px;
}
.promo-remove-image {
    position: absolute;
    top: 0;
    right: 0;
    background: red;
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    font-size: 16px;
    cursor: pointer;
    line-height: 1;
}
.promo-image-preview-wrap {
    padding:10px;
}
.promo-banner-inner {
    display:flex;
}