/* Scoped carousel rules; mobile Elementor override is limited to the carousel's own parent flex container. */
.cgbc-widget,
.cgbc-widget * { box-sizing: border-box; }
.cgbc-widget {
  position: static;
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: 0;
  left: auto;
  transform: none;
  overflow: visible;
  container-type: inline-size;
  color: #fff;
  font-family: "Funnel Display", sans-serif;
  line-height: 1.5;
}
.cgbc-widget .cgbc-inner {
  position: relative;
  display: block;
  width: 100%;
  max-width: 1240px;
  min-width: 0;
  margin: 0;
  padding: 0 0 0;
}
.cgbc-widget .cgbc-carousel {
  position: relative;
  width: 100%;
  min-width: 0;
  padding: 0;
  margin: 0;
  outline: none;
}
.cgbc-widget .cgbc-carousel:focus-visible { outline: 2px solid #ff2b8a; outline-offset: 3px; border-radius: 16px; }
.cgbc-widget .cgbc-viewport {
  display: block;
  width: 100%;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* hide the horizontal scrollbar entirely */
  -ms-overflow-style: none;
}
.cgbc-widget .cgbc-viewport::-webkit-scrollbar { display: none; width: 0; height: 0; }
.cgbc-widget .cgbc-track {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 8px;
  min-width: 0;
  width: 100%;
}
.cgbc-widget .cgbc-slide {
  display: block;
  position: relative;
  flex: 0 0 100%;
  min-width: 0;
  scroll-snap-align: start;
  scroll-snap-stop: normal;
}
.cgbc-widget .cgbc-slide-link {
  position: relative;
  display: block;
  width: 100%;
  min-width: 0;
  overflow: hidden;
  border-radius: 16px;
  text-decoration: none !important;
  color: #fff;
  background: linear-gradient(132deg, #292039, #180d29 50%, #322038);
  outline-offset: -3px;
}
.cgbc-widget .cgbc-picture { display: block; width: 100%; }
.cgbc-widget .cgbc-image {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 408 / 400;
  object-fit: cover;
  object-position: center;
  border: 0;
  border-radius: 16px;
  margin: 0;
  padding: 0;
  color: transparent;
}
.cgbc-widget .cgbc-fallback {
  display: none;
  position: absolute;
  inset: 0;
  align-items: center;
  justify-content: center;
  padding: 22px;
  font: 700 clamp(20px, 3.5cqw, 32px)/1.2 "Funnel Display", sans-serif;
  text-align: center;
  color: #fff;
}
.cgbc-widget .cgbc-slide-link.is-image-error .cgbc-image { opacity: 0; }
.cgbc-widget .cgbc-slide-link.is-image-error .cgbc-fallback { display: flex; }
.cgbc-widget .cgbc-actions {
  position: absolute;
  z-index: 4;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
}
.cgbc-widget .cgbc-carousel:hover .cgbc-actions,
.cgbc-widget .cgbc-carousel:focus-within .cgbc-actions { opacity: 1; }
.cgbc-widget .cgbc-arrow {
  position: absolute;
  z-index: 2;
  top: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  min-width: 40px;
  padding: 8px;
  margin: 0;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(35,31,44,.80);
  color: #fff;
  box-shadow: 0 6px 24px rgba(0,0,0,.22);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transform: translateY(-50%);
  transition: background-color .18s ease, opacity .18s ease;
  cursor: pointer;
  pointer-events: auto;
}
.cgbc-widget .cgbc-arrow:hover:not(:disabled) { background: #231f2c; }
.cgbc-widget .cgbc-arrow:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.cgbc-widget .cgbc-arrow:disabled { opacity: .25; cursor: default; }
.cgbc-widget .cgbc-prev { left: 16px; }
.cgbc-widget .cgbc-next { right: 16px; }
.cgbc-widget .cgbc-arrow svg { display: block; width: 24px; height: 24px; flex-shrink: 0; }
.cgbc-widget .cgbc-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  column-gap: 8px;
  row-gap: 6px;
  min-height: 13px;
  margin: 19px 0 0;
  padding: 0;
}
.cgbc-widget .cgbc-dot {
  display: block;
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  min-width: 8px;
  min-height: 8px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.20);
  box-shadow: none;
  outline-offset: 3px;
  cursor: pointer;
  transition: background-color .3s ease, width .3s ease, height .3s ease;
}
.cgbc-widget .cgbc-dot:hover { background: rgba(255,255,255,.40); }
.cgbc-widget .cgbc-dot.is-active { width: 10px; height: 10px; min-width: 10px; min-height: 10px; background: #ff2b8a; }
.cgbc-widget .cgbc-dot:focus-visible { outline: 2px solid #fff; }
@container (min-width: 760px) {
  .cgbc-widget .cgbc-slide { flex-basis: calc((100% - 16px) / 3); }
}
@media (hover: none) {
  .cgbc-widget .cgbc-actions { opacity: 1; }
  .cgbc-widget .cgbc-arrow { pointer-events: auto; }
}
@media (max-width: 480px) {
  .cgbc-widget .cgbc-arrow { width: 36px; height: 36px; min-width: 36px; }
  .cgbc-widget .cgbc-prev { left: 12px; }
  .cgbc-widget .cgbc-next { right: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .cgbc-widget .cgbc-viewport { scroll-behavior: auto; }
  .cgbc-widget .cgbc-actions,
  .cgbc-widget .cgbc-dot { transition: none; }
}

/* v1.0.1: prevent Elementor's mobile --flex-wrap-mobile from making the
   banner and subsequent homepage widgets wrap into adjacent columns/overlap.
   The JS adds this class to the NEAREST Elementor flex container containing
   this shortcode. The :has rules prevent a flash of the wrapped layout in
   modern browsers before JavaScript initializes. Other containers are intact. */
@media (max-width: 767px) {
  .e-con.e-flex.cgbc-elementor-host {
    --flex-wrap-mobile: nowrap !important;
    --flex-wrap: nowrap !important;
    flex-wrap: nowrap !important;
  }
  .e-con.e-flex:has(> .elementor-widget-shortcode .cgbc-widget),
  .e-con.e-flex:has(> .e-con-inner > .elementor-widget-shortcode .cgbc-widget) {
    --flex-wrap-mobile: nowrap !important;
    --flex-wrap: nowrap !important;
    flex-wrap: nowrap !important;
  }
  .cgbc-widget {
    min-height: 0;
    height: auto;
  }
}
