.storefront-carousel { min-width: 0; max-width: 100%; color: var(--store-text); font-family: var(--store-font); }
.storefront-carousel__title { margin: 0 0 12px; font-family: var(--store-title-font); font-size: 1.2rem; font-weight: var(--store-font-weight-strong); text-align: var(--content-align); overflow-wrap: anywhere; }
.storefront-carousel__track { display: flex; gap: 12px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; scrollbar-width: none; padding: 2px 2px 10px; -webkit-overflow-scrolling: touch; }
.storefront-carousel__track::-webkit-scrollbar { display: none; }
.storefront-carousel__slide { position: relative; flex: 0 0 128px; min-width: 0; aspect-ratio: 4 / 5; overflow: hidden; scroll-snap-align: start; border-radius: var(--media-radius); border: var(--link-border-width) solid var(--store-border); box-shadow: var(--link-shadow); background: var(--store-surface); color: var(--store-text); }
.storefront-carousel__slide img { width: 100%; height: 100%; object-fit: cover; }
.storefront-carousel__slide:focus-visible, .storefront-carousel__track:focus-visible { outline: 2px solid var(--store-text); outline-offset: -3px; }
@media (min-width: 700px) { .storefront-carousel__slide { flex-basis: 152px; } }
.carousel-editor { max-width: 720px; margin-inline: auto; }
.carousel-editor form { display: flex; flex-direction: column; gap: 22px; }
.carousel-editor input[type=text], .carousel-editor input[type=url] { width: 100%; min-height: 48px; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: var(--surface); color: var(--ink); }
.carousel-editor__title label { font-weight: 600; }
.carousel-editor__title > span { margin-left: 8px; color: var(--muted); font-size: 13px; }
.carousel-editor__title input { margin-top: 8px; }
.carousel-editor__heading { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; }
.carousel-editor__heading h2 { font-size: 18px; margin: 0; }
.carousel-editor__hint { margin: -15px 0 0; font-size: 12px; color: var(--muted); }
.carousel-editor__images { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.carousel-editor__image { min-width: 0; border: 1px solid var(--line); padding: 8px; border-radius: 18px; background: var(--surface); }
.carousel-editor__image img { width: 100%; height: 128px; object-fit: cover; border-radius: 12px; background: var(--canvas); }
.carousel-editor__image-controls { display: flex; gap: 4px; padding-top: 6px; }
.carousel-editor__image-controls button { flex: 1; min-height: 40px; border: 0; border-radius: 8px; background: var(--canvas); cursor: pointer; }
.carousel-editor__image-controls button:disabled { opacity: .3; cursor: default; }
.carousel-editor__image-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; font-size: 11px; padding: 6px 0; }
.carousel-editor__replace { cursor: pointer; text-decoration: underline; text-underline-offset: 3px; padding: 5px 0; }
.carousel-editor__status { color: var(--muted); overflow-wrap: anywhere; }
.carousel-editor__image-url { display: block; font-size: 11px; }
.carousel-editor__image-url[hidden] { display: none; }
.carousel-editor__image-url input { margin-top: 5px; font-size: 13px; }
.carousel-editor__upload { position: relative; display: flex; align-items: center; justify-content: center; min-height: 90px; border: 1px dashed #aaa; border-radius: 18px; cursor: pointer; font-weight: 600; background: var(--surface); }
.carousel-editor__upload:focus-within, .carousel-editor__replace:focus-within { outline: 2px solid var(--ink); outline-offset: 2px; }
.carousel-editor input[type=file] { position: absolute; width: 1px; height: 1px; opacity: 0; }
.carousel-editor__modes { border: 0; padding: 0; margin: 8px 0 0; }
.carousel-editor__modes legend { font-weight: 600; margin-bottom: 12px; }
.carousel-editor__modes label { display: flex; align-items: center; gap: 12px; padding: 12px 0; cursor: pointer; }
.carousel-editor__modes input { width: 20px; height: 20px; accent-color: var(--ink); }
.carousel-editor__actions { display: flex; align-items: center; flex-wrap: wrap; gap: 18px; padding-bottom: 20px; }
.carousel-editor__error { color: var(--danger); margin: 0; font-size: 14px; }
.carousel-editor__error:empty { display: none; }
.content-add-menu__label { display: block; padding: 8px 12px 2px; color: var(--muted); font-size: 11px; }
@media (min-width: 700px) { .carousel-editor__images { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.storefront-carousel__caption { position: absolute; inset: auto 0 0; padding: 24px 9px 9px; background: linear-gradient(transparent, rgb(0 0 0 / 65%)); color: #fff; font-size: 12px; line-height: 1.35; font-weight: 600; overflow-wrap: anywhere; pointer-events: none; }
.storefront-carousel__caption[hidden] { display: none; }
.carousel-editor__thumbnail { position: relative; overflow: hidden; border-radius: 12px; }
.carousel-editor__thumbnail img { display: block; }
.carousel-editor__image-name input[type=text] { min-height: 36px; margin-top: 6px; padding: 8px; font-size: 12px; }
