/* Cover slider. Colours come from the theme variables the storefront already uses (--brand-accent), so it re-skins with the restaurant. */
.cs { position: relative; width: 100%; aspect-ratio: var(--cs-ratio, 16 / 7); max-height: 400px; overflow: hidden; margin-bottom: 1rem; background: var(--surface-muted, #eef1f6); isolation: isolate; -webkit-tap-highlight-color: transparent; }
.cs[hidden] { display: none; }
.cs-rounded { border-radius: 20px; box-shadow: 0 10px 30px rgba(1, 31, 71, .12); }
@media (max-width: 575.98px) { .cs { aspect-ratio: var(--cs-ratio-m, 16 / 9); border-radius: 16px; } }

/* the first picture is already in the page; the slider replaces it without a visible jump */
.cs-first, .cs-first img { width: 100%; height: 100%; display: block; object-fit: cover; }

.cs-swiper { width: 100%; height: 100%; }
.cs .swiper-wrapper { height: 100%; } /* a single picture is shown without the slider library, so it needs this itself */
.cs-slide { position: relative; height: 100%; overflow: hidden; }
.cs-box, .cs-link { position: relative; display: block; width: 100%; height: 100%; color: inherit; text-decoration: none; }
.cs-img { width: 100%; height: 100%; display: block; object-fit: cover; user-select: none; -webkit-user-drag: none; transform: scale(1); }

/* a slow, gentle zoom on the picture that is showing (lasts as long as the timer) */
.cs-kb .swiper-slide-active .cs-img { animation: cs-kb var(--cs-kb-dur, 6s) ease-out forwards; }
@keyframes cs-kb { from { transform: scale(1); } to { transform: scale(1.08); } }

.cs-shade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(to top, rgba(0, 0, 0, var(--cs-shade, .35)) 0%, rgba(0, 0, 0, calc(var(--cs-shade, .35) * .45)) 42%, rgba(0, 0, 0, 0) 78%); }
.cs-shade-soft { background: rgba(0, 0, 0, calc(var(--cs-shade, .35) * .5)); }
.cs-caption { position: absolute; inset-inline: 0; bottom: 0; padding: 1.2rem 1.3rem 2rem; max-width: min(100%, 640px); color: #fff; z-index: 2; text-align: start; }
.cs-title { font-weight: 700; font-size: clamp(1.1rem, 3.6vw, 1.9rem); line-height: 1.25; text-shadow: 0 2px 12px rgba(0, 0, 0, .45); }
.cs-sub { margin-top: .25rem; font-size: clamp(.82rem, 2.3vw, 1.02rem); line-height: 1.5; opacity: .95; text-shadow: 0 1px 8px rgba(0, 0, 0, .5); }
.cs-cta { display: inline-flex; align-items: center; gap: .55rem; margin-top: .8rem; padding: .5rem 1.15rem; border-radius: 999px; background: var(--brand-accent, #fc8503); color: #fff; font-weight: 700; font-size: .9rem; text-decoration: none; box-shadow: 0 6px 18px rgba(0, 0, 0, .28); transition: transform .2s ease, filter .2s ease; }
.cs-cta:hover { transform: translateY(-1px); filter: brightness(.92); color: #fff; }
.cs-cta:focus-visible, .cs-nav:focus-visible, .cs-pause:focus-visible, .cs-seg:focus-visible, .cs-link:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }

/* arrows: frosted glass circles, only where there is a mouse (phones swipe) */
.cs-nav { position: absolute; top: 50%; z-index: 4; width: 40px; height: 40px; margin-top: -20px; display: none; align-items: center; justify-content: center; border: 0; border-radius: 50%; color: #fff; background: rgba(0, 0, 0, .32); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); cursor: pointer; transition: background .2s ease, transform .2s ease, opacity .2s ease; opacity: 0; }
.cs-prev { inset-inline-start: 12px; } .cs-next { inset-inline-end: 12px; }
@media (hover: hover) { .cs-nav { display: inline-flex; } .cs:hover .cs-nav, .cs:focus-within .cs-nav { opacity: 1; } .cs-nav:hover { background: var(--brand-accent, #fc8503); transform: scale(1.08); } }
.cs-nav.swiper-button-disabled { opacity: .35 !important; cursor: default; }

/* the timer: one bar per slide, the current one fills as the seconds pass */
.cs-segs { position: absolute; inset-inline: 1rem; bottom: .7rem; z-index: 4; display: flex; gap: 6px; }
.cs-seg { flex: 1; height: 14px; padding: 5px 0; border: 0; background: none; cursor: pointer; display: block; }
.cs-seg i { display: block; height: 3px; border-radius: 3px; background: #fff; transform: scaleX(0); transform-origin: left center; }
.cs-seg { position: relative; } .cs-seg::before { content: ''; position: absolute; inset-inline: 0; top: 5px; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .38); }
.cs-seg i { position: relative; z-index: 1; }
.cs[dir="rtl"] .cs-seg i, .cs[dir="rtl"] .cs-bar i { transform-origin: right center; }
.cs-bar { position: absolute; inset-inline: 0; bottom: 0; z-index: 4; height: 4px; background: rgba(255, 255, 255, .3); }
.cs-bar i { display: block; height: 100%; background: var(--brand-accent, #fc8503); transform: scaleX(0); transform-origin: left center; }

.cs-pause { position: absolute; inset-inline-end: 12px; top: 12px; z-index: 4; width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 50%; font-size: .72rem; color: #fff; background: rgba(0, 0, 0, .32); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); cursor: pointer; transition: background .2s ease; }
.cs-pause:hover { background: var(--brand-accent, #fc8503); }
@media (prefers-reduced-motion: reduce) { .cs-kb .swiper-slide-active .cs-img { animation: none; } .cs-nav, .cs-cta { transition: none; } }