/**
 * Preview สไลด์ในหน้า shop-banner (หลังบ้าน)
 * ใช้ CSS variables จาก _slider_live_preview (--sbp-preview-*)
 */
.shop-banner-live-preview {
    max-width: 100%;
    margin: 0 auto;
}

.shop-banner-live-preview .home-hero__slider {
    position: relative;
    width: 100%;
}

.shop-banner-live-preview .home-hero__slider .slider {
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    background: #e8edf2;
}

.shop-banner-live-preview .home-hero__slider .slide_viewer {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 8px;
    aspect-ratio: var(--sbp-preview-aspect, 3.05 / 1);
    max-height: var(--sbp-preview-max-h, 300px);
    height: auto;
}

.shop-banner-live-preview .home-hero__slider .slide_group {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.shop-banner-live-preview .home-hero__slider .slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease-in-out, visibility 0.5s ease-in-out;
    z-index: 0;
}

.shop-banner-live-preview .home-hero__slider .slide.is-active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
}

.shop-banner-live-preview .home-hero__slider .rectangle-1212s {
    width: 100%;
    height: 100%;
    object-fit: var(--sbp-preview-fit, contain);
    object-position: center center;
    display: block;
    border-radius: 10px;
    background: #e8edf2;
}

.shop-banner-live-preview .home-hero__slider .slide_buttons {
    position: absolute;
    left: 50%;
    bottom: 8px;
    transform: translateX(-50%);
    z-index: 9;
    display: flex;
    align-items: center;
    background: transparent;
    line-height: 1;
}

.shop-banner-live-preview .home-hero__slider .slide_buttons .slide_btn {
    display: inline-block;
    margin: 0 0.15em;
    color: #fff;
    font-size: 28px;
    line-height: 1;
    text-decoration: none;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}

.shop-banner-live-preview .home-hero__slider .slide_buttons .slide_btn.active {
    color: #e2231a;
}

.shop-banner-live-preview .home-hero__slider:not([data-show-arrows="1"]) .home-slider-nav {
    display: none !important;
}

.shop-banner-live-preview .shop-banner-slide-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 120px;
    background: #f0f0f0;
    color: #888;
    border-radius: 10px;
}
