section.coody-homeslider {
  position: relative;
  width: 100%;
  max-width: 100%;
  margin-left: 0;
  margin-right: 0;
  overflow: hidden;
  margin-bottom: 1.5rem;
  box-sizing: border-box;
}

section.coody-homeslider.coody-homeslider--wide-peek {
  overflow: visible;
}

section.coody-homeslider .coody-homeslider__inner {
  position: relative;
}

section.coody-homeslider .coody-homeslider__nav {
  position: absolute;
  left: 50%;
  bottom: 10px;
  z-index: 12;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  width: fit-content;
  max-width: min(920px, calc(100% - 2rem));
  margin: 0;
  gap: 0;
  padding: 0;
  min-height: 0;
  transform: translateX(-50%);
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
  overflow: hidden;
  font-size: 12px;
  line-height: 1.2;
}

section.coody-homeslider .coody-homeslider__titles {
  flex: 0 1 auto;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: stretch;
  justify-content: flex-start;
  gap: 0;
  width: auto;
  max-width: 100%;
  min-width: 0;
  margin: 0 -1px;
  padding: 0;
  list-style: none;
  overflow-x: hidden;
  overflow-y: hidden;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

section.coody-homeslider .coody-homeslider__titles::-webkit-scrollbar {
  display: none;
}

section.coody-homeslider .coody-homeslider__titles > li {
  flex: 0 0 auto;
  display: flex;
  align-items: stretch;
  margin: 0;
  padding: 0;
}

section.coody-homeslider button.coody-homeslider__title-item {
  display: inline-flex;
  align-items: center;
  align-self: stretch;
  width: auto;
  max-width: none;
  height: auto;
  min-height: 0;
  min-width: 0;
  margin: 0;
  background: transparent;
  border: none;
  border-radius: 0;
  outline: none;
  box-shadow: none;
  color: #333;
  font-family: inherit;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.2;
  text-transform: none;
  letter-spacing: normal;
  cursor: pointer;
  padding: 8px 10px;
  white-space: nowrap;
  writing-mode: horizontal-tb;
  appearance: none;
  -webkit-appearance: none;
  transition: color 0.2s ease, background-color 0.2s ease;
}

section.coody-homeslider .coody-homeslider__titles > li:first-child .coody-homeslider__title-item,
section.coody-homeslider .coody-homeslider__titles > li + li .coody-homeslider__title-item {
  margin-left: -1px;
}

section.coody-homeslider .coody-homeslider__titles > li:has(.coody-homeslider__title-item.is-active),
section.coody-homeslider .coody-homeslider__titles > li:has(.coody-homeslider__title-item:hover),
section.coody-homeslider .coody-homeslider__titles > li:has(.coody-homeslider__title-item:focus-visible) {
  position: relative;
  z-index: 1;
  background: #e8e8e8;
}

section.coody-homeslider .coody-homeslider__title-item:hover,
section.coody-homeslider .coody-homeslider__title-item:focus-visible,
section.coody-homeslider .coody-homeslider__title-item.is-active {
  color: #111;
}

section.coody-homeslider .coody-homeslider__nav-btn:hover,
section.coody-homeslider .coody-homeslider__nav-btn:focus-visible {
  position: relative;
  z-index: 1;
  color: #111;
  background: #e8e8e8;
  border-radius: 0;
}

section.coody-homeslider button.coody-homeslider__nav-btn {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: stretch;
  width: auto;
  min-width: 0;
  min-height: 0;
  height: auto;
  margin: 0;
  max-width: none;
  padding: 0 10px;
  border: none;
  border-radius: 0;
  outline: none;
  box-shadow: none;
  background: transparent;
  color: #333;
  font-family: inherit;
  font-size: 12px;
  font-weight: 400;
  line-height: 1;
  text-transform: none;
  letter-spacing: normal;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  transition: color 0.2s ease, background-color 0.2s ease;
}

section.coody-homeslider .coody-homeslider__nav-btn--prev {
  margin-right: -1px;
}

section.coody-homeslider .coody-homeslider__nav-btn--next {
  margin-left: -1px;
}

section.coody-homeslider button.coody-homeslider__nav-btn svg.coody-homeslider__nav-icon {
  display: block;
  width: 12px;
  height: 12px;
  flex-shrink: 0;
  pointer-events: none;
}

section.coody-homeslider .coody-homeslider__carousel {
  opacity: 0;
  transition: opacity 0.4s ease;
}

section.coody-homeslider .coody-homeslider__carousel.owl-loaded {
  opacity: 1;
}

section.coody-homeslider .coody-homeslider__carousel .owl-nav {
  display: none !important;
}

section.coody-homeslider .coody-homeslider__carousel,
section.coody-homeslider .owl-carousel,
section.coody-homeslider .owl-stage-outer,
section.coody-homeslider .owl-stage,
section.coody-homeslider .coody-homeslider__slide {
  width: 100%;
  display: block;
}

/* Motyw (Bootstrap) ukrywa .carousel-item bez .active — Owl nie dodaje tej klasy */
section.coody-homeslider .carousel-item {
  display: block !important;
}

section.coody-homeslider .coody-homeslider__slide > a,
section.coody-homeslider figure {
  display: block;
  width: 100%;
  margin: 0;
}

section.coody-homeslider figure {
  position: relative;
  overflow: hidden;
  height: clamp(240px, 42vw, 410px);
}

section.coody-homeslider picture {
  display: block;
  width: 100%;
  height: 100%;
}

section.coody-homeslider .coody-homeslider__carousel img,
section.coody-homeslider picture img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  object-position: center center;
}

section.coody-homeslider .coody-homeslider__carousel .owl-carousel .owl-stage-outer,
section.coody-homeslider .coody-homeslider__carousel .owl-carousel.owl-drag .owl-item {
  min-height: clamp(240px, 42vw, 410px);
}

section.coody-homeslider .coody-homeslider__carousel {
  max-height: none;
}

section.coody-homeslider .coody-homeslider__carousel .owl-dots {
  display: none !important;
}

@media (max-width: 767px) {
  section.coody-homeslider .coody-homeslider__nav {
    display: none;
  }

  section.coody-homeslider .coody-homeslider__titles {
    overflow-x: auto;
  }

  section.coody-homeslider .coody-homeslider__carousel {
    overflow: visible;
  }

  section.coody-homeslider .coody-homeslider__carousel .owl-item {
    border-radius: 4px;
    overflow: hidden;
  }

  section.coody-homeslider .coody-homeslider__carousel .owl-item figure {
    transition: opacity 0.3s ease;
  }

  section.coody-homeslider .coody-homeslider__carousel .owl-item:not(.center) figure {
    opacity: 0.55;
  }

  section.coody-homeslider .coody-homeslider__carousel .owl-item.center figure {
    opacity: 1;
  }
}

@media (min-width: 1921px) {
  section.coody-homeslider .coody-homeslider__inner {
    overflow: visible;
  }

  section.coody-homeslider .coody-homeslider__carousel {
    overflow: visible !important;
  }

  section.coody-homeslider .coody-homeslider__carousel .owl-stage-outer {
    overflow: hidden;
  }

  section.coody-homeslider .coody-homeslider__carousel .owl-item {
    border-radius: 6px;
    overflow: hidden;
  }

  section.coody-homeslider .coody-homeslider__carousel .owl-item figure {
    transition: opacity 0.3s ease;
  }

  section.coody-homeslider .coody-homeslider__carousel .owl-item:not(.center) figure {
    opacity: 0.55;
  }

  section.coody-homeslider .coody-homeslider__carousel .owl-item.center figure {
    opacity: 1;
  }
}
