.bali-reels, .bali-reels * { box-sizing: border-box; }
.bali-reels {
    width: 100%; min-width: 0; margin: 34px 0 46px; overflow: hidden;
    color: var(--main-foreground, #111); background: var(--main-background, #fff);
    font-family: var(--body-font, sans-serif);
}
.bali-reels__sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.bali-reels__viewport { position: relative; }
.bali-reels__track {
    position: relative; display: flex; align-items: flex-start; gap: 14px;
    width: 100%; min-width: 0; margin: 0; padding: 22px 18px 26px;
    overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory;
    scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.bali-reels__track::-webkit-scrollbar { display: none; }
.bali-reel {
    flex: 0 0 188px; width: 188px; max-width: 188px; min-width: 0;
    scroll-snap-align: center; transform: scale(.91); transform-origin: center center;
    opacity: .83; transition: transform 280ms ease, opacity 280ms ease;
}
.bali-reel.is-active { transform: scale(1.09); opacity: 1; z-index: 1; }
.bali-reel__media { position: relative; width: 100%; aspect-ratio: 9 / 16; overflow: hidden; border-radius: 14px; background: #f0f0f0; }
.bali-reel__video { display: block; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.bali-reel__open { position: absolute; inset: 0; display: block; width: 100%; height: 100%; padding: 0; border: 0; border-radius: inherit; color: #fff; background: transparent; cursor: pointer; }
.bali-reel__status { position: absolute; inset: auto 6px 6px; margin: 0; padding: 8px; border-radius: 4px; color: #fff; background: #111; font-size: 11px; line-height: 1.4; pointer-events: none; }
.bali-reel__status[hidden] { display: none; }
.bali-reel__product {
    display: flex; align-items: center; gap: 7px; min-width: 0; min-height: 52px;
    margin-top: 6px; padding: 5px; border: 1px solid var(--main-foreground-opacity-10, #e7e7e7);
    border-radius: 7px; color: inherit; background: var(--main-background, #fff); text-decoration: none;
}
.bali-reel__product img { display: block; flex: 0 0 38px; width: 38px; height: 40px; border-radius: 3px; object-fit: cover; }
.bali-reel__info { display: block; flex: 1; min-width: 0; }
.bali-reel__name { display: block; font-size: 11px; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bali-reel__price { display: block; margin-top: 2px; font-size: 11px; line-height: 1.3; font-weight: 600; }
.bali-reel__stock, .bali-reel__color { display: block; font-size: 10px; line-height: 1.3; }
.bali-reel__cta, .bali-reel__complement { display: none; }
.bali-reels__navigation { position: absolute; inset: 0; pointer-events: none; z-index: 3; }
.bali-reels__arrow, .bali-reels__autoplay {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; padding: 0; border: 1px solid currentColor; border-radius: 50%;
    color: var(--main-foreground, #111); background: var(--main-background, #fff); cursor: pointer;
}
.bali-reels__arrow { position: absolute; top: 35%; font: 26px/1 Arial, sans-serif; pointer-events: auto; }
.bali-reels__arrow:disabled { opacity: .4; cursor: default; }
.bali-reels .js-reels-prev { left: 5px; }
.bali-reels .js-reels-next { right: 5px; }
.bali-reels__autoplay { position: absolute; z-index: 4; top: 0; right: 12px; width: 36px; height: 36px; font: 12px/1 Arial, sans-serif; }
.bali-reels__autoplay::after { content: ""; position: absolute; inset: -4px; }
.bali-reels a:focus-visible, .bali-reels button:focus-visible, .bali-reels__track:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.bali-reels .bali-reel__open:focus-visible { outline: 3px solid #fff; outline-offset: -5px; }
.bali-reels-modal[hidden] { display: none !important; }
.bali-reels-modal {
    position: fixed; z-index: 2147483000; inset: 0; display: flex; align-items: center; justify-content: center;
    padding: 16px; background: rgba(0, 0, 0, .85); overscroll-behavior: contain;
}
.bali-reels-modal__panel { position: relative; width: min(430px, 100%); max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); overflow-y: auto; border-radius: 14px; color: var(--main-foreground, #111); background: var(--main-background, #fff); }
.bali-reels-modal__video { display: block; width: 100%; max-height: calc(100vh - 220px); max-height: calc(100dvh - 220px); aspect-ratio: 9 / 16; object-fit: contain; background: #000; }
.bali-reels-modal__close { position: absolute; z-index: 2; top: 8px; right: 8px; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; color: #111; background: #fff; font: 28px/1 Arial, sans-serif; cursor: pointer; }
.bali-reels-modal__products { padding: 12px; }
.bali-reels-modal .bali-reel__product { margin: 0; padding: 8px; min-height: 76px; gap: 12px; }
.bali-reels-modal .bali-reel__product img { flex-basis: 44px; width: 44px; height: 56px; object-fit: contain; }
.bali-reels-modal .bali-reel__name { font-size: 14px; white-space: normal; }
.bali-reels-modal .bali-reel__price { font-size: 16px; margin-top: 4px; }
.bali-reels-modal .bali-reel__cta { display: block; margin-top: 6px; font-size: 13px; line-height: 1.4; text-decoration: underline; }
.bali-reels-modal .bali-reel__complement { display: block; min-height: 44px; margin-top: 12px; padding: 8px; color: inherit; font-size: 13px; line-height: 1.4; text-decoration: underline; }
.bali-reels-modal .bali-reel__complement > span:first-child { display: block; font-weight: 600; }
.bali-reels-modal__status { margin: 12px 12px 0; font-size: 13px; line-height: 1.4; }
.bali-reels-modal__status[hidden] { display: none; }
body.bali-reels-modal-open { overflow: hidden; }
@media (max-width: 767px) {
    .bali-reels { margin: 23px 0 32px; }
    .bali-reels__track { gap: 11px; padding-right: 12px; padding-left: 12px; }
    .bali-reel { flex-basis: min(37vw, 152px); width: min(37vw, 152px); max-width: 152px; }
    .bali-reel__media { border-radius: 12px; }
    .bali-reel__product { min-height: 44px; gap: 5px; padding: 4px; }
    .bali-reel__product img { flex-basis: 30px; width: 30px; height: 34px; }
    .bali-reel__name, .bali-reel__price { font-size: 10px; }
    .bali-reels__navigation { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    .bali-reel { transition: none; }
    .bali-reels__track { scroll-behavior: auto; }
}
