:root {
  --dwp-header-height: 90px;
}

/**
 * Carousel Hero - Full Width Breakout
 */
.dwp--carousel-hero {
  margin-bottom: 54px;
}

.dwp--carousel-hero.alignfull {
  width: 100vw;
  max-width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}

body:not(.wp-admin) .dwp--carousel-hero.alignfull {
  margin-top: calc(-1 * (var(--dwp-header-height, 90px) + 1.5rem));
  margin-bottom: 54px;
}

.dwp--carousel-hero.carousel-fade .carousel-item {
  opacity: 0;
  transition-duration: 0.6s;
  transition-property: opacity;
}

.dwp--carousel-hero.carousel-fade .carousel-item.active,
.dwp--carousel-hero.carousel-fade .carousel-item-next.carousel-item-start,
.dwp--carousel-hero.carousel-fade .carousel-item-prev.carousel-item-end {
  z-index: 1;
  opacity: 1;
}

.dwp--carousel-hero.carousel-fade .active.carousel-item-start,
.dwp--carousel-hero.carousel-fade .active.carousel-item-end {
  z-index: 0;
  opacity: 0;
  transition: opacity 0s 0.6s;
}

.dwp--carousel-hero .carousel-indicators [data-bs-target] {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin-left: 6px;
  margin-right: 6px;
}

.dwp--carousel-hero .carousel-control-prev {
  width: auto;
  left: 30px;
}

.dwp--carousel-hero .carousel-control-next {
  width: auto;
  right: 30px;
}

.dwp--carousel-hero .dwp--carousel-slide-content {
  padding-top: calc(3rem + var(--dwp-header-height, 90px));
}

/**
 * Editor Appender & Controls
 */
.dwp--carousel-editor-wrapper {
  pointer-events: auto !important;
}

.dwp--carousel-editor-wrapper .block-list-appender {
  position: relative !important;
  right: auto !important;
  left: auto !important;
  bottom: auto !important;
  display: block !important;
  width: 100% !important;
  margin-top: 1rem !important;
  pointer-events: auto !important;
  transform: none !important;
}

.dwp--carousel-editor-wrapper .dwp--custom-appender-wrapper {
  display: block;
  width: 100%;
}

.dwp--carousel-editor-wrapper .dwp--add-row-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 40px;
  border: 1px dashed #757575;
  border-radius: 4px;
  background: #ffffff;
  color: #2c3338;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer !important;
  gap: 8px;
  transition: all 0.3s ease-in-out;
  pointer-events: auto !important;
}

.dwp--carousel-editor-wrapper .dwp--add-row-button:hover {
  border-color: #2271b1;
  background: #f0f0f1;
  color: #2271b1;
}

.dwp--carousel-editor-wrapper .dwp--add-row-button * {
  pointer-events: none;
}

