.showcase-carousel {
  position: relative;
  overflow: hidden;
  min-width: 0;
  border-radius: 22px;
}

/* Both panels stay opaque while their edges move across the viewport. */
.showcase-carousel > .showcase-panel {
  animation: none !important;
}

.showcase-carousel:has(> .showcase-panel:focus-visible) {
  outline: 3px solid #7b88ed;
  outline-offset: 5px;
}

.showcase-carousel > .is-carousel-incoming {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
}

.tab-list.has-carousel-indicator {
  position: relative;
  isolation: isolate;
}

.tab-list.has-carousel-indicator > .cap-tab-indicator-layer {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: inherit;
  z-index: 0;
  pointer-events: none;
}

.cap-tab-indicator-layer > .cap-tab-indicator {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
  pointer-events: none;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 3px 8px #3d4c8020;
}

.tab-list.has-carousel-indicator > .cap-tab {
  position: relative;
  z-index: 1;
}

.tab-list.has-carousel-indicator > .cap-tab[aria-selected=true] {
  background: transparent;
  box-shadow: none;
}

@media (max-width: 760px) {
  .showcase-carousel {
    border-radius: 18px;
  }
}
