.sarv-divider {
  display: flex;
  align-items: center;
  gap: 20px;
  width: 100%;
  position: relative;
}

.sarv-divider svg,
.sarv-divider svg * {
  fill: currentColor;
}

.sarv-divider.style-2 {
  position: relative;
  justify-content: space-between;
  padding-top: 30px;
}

.sarv-divider.style-2 {
  align-items: stretch;
}

.sarv-divider.style-2::before {
  content: "";
  position: absolute;
  top: 0;
  width: 100%;
  height: 2px;
  background-color: #f2ede8;
}

.sarv-divider__line {
  flex: 1;
  min-width: 30px;
  height: 2px;

  background-image: linear-gradient(
    to left,
    var(--st-color-primary, #0d6efd) 33%,
    transparent 0%
  );

  background-position: top;
  background-size: 10px 2px;
  background-repeat: repeat-x;

  opacity: 0.5;
}

.sarv-divider__title-wrapper {
  position: relative;
  flex-shrink: 1;

  display: flex;
  align-items: center;
  gap: 10px;
}

.sarv-divider.style-2 .sarv-divider__title-wrapper::before {
  content: "";
  position: absolute;
  top: -30px;
  right: 0;
  width: 100%;
  height: 2px;
  background-color: var(--st-color-primary, #0d6efd);
}

.sarv-divider__icon svg {
  width: 20px;
  height: 20px;

  color: var(--st-color-primary, #0d6efd);

  filter: drop-shadow(0 0 10px rgba(168, 85, 247, 0.25));
}

.sarv-divider__title {
  margin: 0;

  font-size: clamp(18px, 2vw, 32px);
  font-weight: 900;
  line-height: 1.2;

  color: var(--sarvtheme-color-text, #0d6efd);

  white-space: nowrap;
}

.sarv-divider__title span {
  color: var(--st-color-primary, #0d6efd);
}

.sarv-divider__contents {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sarv-divider__description {
  margin-bottom: 0;
}

.sarv-divider__actions{
  display: flex;
  align-items: center;
  gap: 10px;
}

.sarv-divider__link {
  height: fit-content;
}

.sarv-divider .sarv-slider-nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sarv-divider .sarv-slider-prev,
.sarv-divider .sarv-slider-next {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  margin: 0;
  color: var(--st-product-muted, #6b7280);
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: none;
  transition:
    color 0.2s ease,
    background-color 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.sarv-divider .sarv-slider-prev svg,
.sarv-divider .sarv-slider-next svg {
  width: 16px;
  height: 16px;
}

.sarv-divider .sarv-slider-prev.swiper-button-disabled,
.sarv-divider .sarv-slider-next.swiper-button-disabled {
  opacity: 0.4;
  cursor: default;
  pointer-events: none;
}

.sarv-divider .sarv-slider-pagination {
  display: flex;
  align-items: center;
  gap: 6px;
}

.sarv-divider .sarv-slider-pagination .swiper-pagination-bullet {
  width: 8px;
  height: 8px;
  margin: 0;
  background: #d1d5db;
  opacity: 1;
  border-radius: 50%;
}

.sarv-divider .sarv-slider-pagination .swiper-pagination-bullet-active {
  background: var(--st-color-primary, #90c742);
}

/* ======================
   Actions position
====================== */

.sarv-divider--actions-left:not(.style-3) .sarv-divider__actions {
  order: -1;
}

.sarv-divider--actions-right:not(.style-3) .sarv-divider__actions {
  order: 0;
  margin-inline-start: auto;
}

.sarv-divider--actions-bottom:not(.style-3) {
  flex-wrap: wrap;
}

.sarv-divider--actions-bottom:not(.style-3) .sarv-divider__line {
  order: 2;
  flex: 1 1 100%;
  min-width: 100%;
}

.sarv-divider--actions-bottom:not(.style-3) .sarv-divider__actions {
  order: 3;
  width: 100%;
  justify-content: center;
  margin-top: 4px;
}

/* ======================
   Style 3 — watermark title
====================== */

.sarv-divider.style-3 {
  display: grid;
  align-items: end;
  justify-items: stretch;
  gap: 12px 24px;
  text-align: center;
}

.sarv-divider.style-3 .sarv-divider__title-wrapper {
  grid-area: title;
  display: flex;
  width: 100%;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  padding-block: 0;
  min-height: 0;
}

.sarv-divider.style-3 .sarv-divider__backdrop {
  position: relative;
  inset: auto;
  top: auto;
  z-index: 0;
  order: 1;
  display: block;
  transform: none;
  margin: 0;
  padding: 0 1rem;
  font-size: clamp(2.4rem, 7.5vw, 5.25rem);
  font-weight: 200;
  line-height: 1;
  letter-spacing: 0.01em;
  color: var(--sarv-divider-backdrop-color, #e8e8e8);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: clip;
  pointer-events: none;
  user-select: none;
}

.sarv-divider.style-3 .sarv-divider__backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to top,
    transparent 0%,
    var(--sarv-divider-backdrop-fade, #ffffff) 100%
  );
  pointer-events: none;
}

.sarv-divider.style-3 .sarv-divider__icon {
  position: relative;
  z-index: 1;
  order: 2;
}

.sarv-divider.style-3 .sarv-divider__contents {
  position: relative;
  z-index: 1;
  order: 3;
  align-items: center;
  gap: 8px;
  margin-top: -40px;
}

.sarv-divider.style-3 .sarv-divider__title {
  white-space: normal;
  font-size: clamp(1.35rem, 2.6vw, 2rem);
  font-weight: 800;
  line-height: 1.3;
  color: #111111;
  text-align: center;
}

.sarv-divider.style-3 .sarv-divider__description {
  margin: 0;
  max-width: 36rem;
  font-size: clamp(0.85rem, 1.4vw, 1rem);
  font-weight: 400;
  line-height: 1.7;
  color: #9ca3af;
  text-align: center;
}

.sarv-divider.style-3 .sarv-divider__actions {
  grid-area: actions;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  align-self: end;
  width: auto;
  flex-shrink: 0;
}

.sarv-divider.style-3.sarv-divider--actions-left {
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-areas: "actions title";
}

.sarv-divider.style-3.sarv-divider--actions-right {
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "title actions";
}

.sarv-divider.style-3.sarv-divider--actions-right .sarv-divider__actions {
  justify-content: flex-end;
}

.sarv-divider.style-3.sarv-divider--actions-bottom {
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas:
    "title"
    "actions";
  justify-items: center;
  align-items: center;
}

.sarv-divider.style-3.sarv-divider--actions-bottom .sarv-divider__actions {
  width: 100%;
  justify-content: center;
  align-self: center;
}

@media (max-width: 768px) {
  .sarv-divider {
    gap: 12px;
  }

  .sarv-divider__link {
    padding: 8px 12px;
    font-size: 12px;
  }

  .sarv-divider.style-3.sarv-divider--actions-left,
  .sarv-divider.style-3.sarv-divider--actions-right {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "title"
      "actions";
    justify-items: center;
    align-items: center;
  }

  .sarv-divider.style-3 .sarv-divider__actions {
    width: 100%;
    justify-content: center;
    align-self: center;
  }

  .sarv-divider.style-3 .sarv-divider__backdrop {
    white-space: normal;
  }
}

@media (max-width: 560px) {
  .sarv-divider {
    flex-wrap: wrap;
  }

  .sarv-divider__line {
    order: 3;
    flex-basis: 100%;
  }

  .sarv-divider__title {
    white-space: normal;
    font-size: 20px;
  }

  .sarv-divider.style-3 .sarv-divider__title {
    font-size: 1.25rem;
  }
}
