.wp-block-eurotech-custom-woo-hero-banner.ecw-hero-banner {
  position: relative;
  display: flex;
  overflow: hidden;
  min-height: var(--ecw-hero-banner-min-height, 360px);
  align-items: var(--ecw-hero-banner-content-align, center);
  border-radius: var(--ecw-hero-banner-radius, 8px);
  background: var(--et-color-background-surface);
  color: inherit;
}

@media (max-width: 1024px) {
  .wp-block-eurotech-custom-woo-hero-banner.ecw-hero-banner {
    min-height: var(
      --ecw-hero-banner-min-height-tablet,
      var(--ecw-hero-banner-min-height, 360px)
    );
  }
}

@media (max-width: 767px) {
  .wp-block-eurotech-custom-woo-hero-banner.ecw-hero-banner {
    min-height: var(
      --ecw-hero-banner-min-height-mobile,
      var(
        --ecw-hero-banner-min-height-tablet,
        var(--ecw-hero-banner-min-height, 360px)
      )
    );
  }
}

.ecw-hero-banner__link {
  position: relative;
  z-index: 0;
  display: flex;
  flex: 1 1 auto;
  width: 100%;
  min-height: 100%;
  align-self: stretch;
  align-items: var(--ecw-hero-banner-content-align, center);
  color: inherit;
  text-decoration: none;
}

.ecw-hero-banner__image,
.ecw-hero-banner__overlay {
  position: absolute;
  inset: 0;
}

.ecw-hero-banner__image {
  background-image: var(--ecw-hero-banner-image-url, none);
  background-position: var(--ecw-hero-banner-position-x, 50%)
    var(--ecw-hero-banner-position-y, 50%);
  background-repeat: no-repeat;
  background-size: var(--ecw-hero-banner-size, cover);
  transform: scale(1);
  transform-origin: center center;
  transition: transform 0.45s ease;
}

.ecw-hero-banner__overlay {
  background: linear-gradient(
    var(--ecw-hero-banner-overlay-direction, to top),
    var(--ecw-hero-banner-overlay-color-one, #141414)
      var(--ecw-hero-banner-overlay-stop-one, 5%),
    var(--ecw-hero-banner-overlay-color-two, #14141400)
      var(--ecw-hero-banner-overlay-stop-two, 40%)
  );
  opacity: var(--ecw-hero-banner-overlay-opacity, 1);
  pointer-events: none;
}

.ecw-hero-banner__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  flex-direction: column;
  width: 100%;
  padding: clamp(20px, 4vw, 48px);
}

.ecw-hero-banner--is-linked:hover .ecw-hero-banner__image,
.ecw-hero-banner--is-linked:focus-within .ecw-hero-banner__image {
  transform: scale(1.2);
}

.ecw-hero-banner__content > *:first-child {
  margin-top: 0;
}

.ecw-hero-banner__content > *:last-child {
  margin-bottom: 0;
}

.ecw-hero-banner__content .block-editor-inner-blocks,
.ecw-hero-banner__content .block-editor-block-list__layout {
  width: 100%;
}

.ecw-hero-banner__media-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.ecw-hero-banner__unit-control {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(110px, 1fr);
  gap: 12px;
}

.ecw-hero-banner__suffix-control {
  display: flex;
  align-items: center;
  overflow: hidden;
  border: 1px solid #949494;
  border-radius: 2px;
  background: #fff;
}

.ecw-hero-banner__suffix-control .components-text-control__input {
  border: 0;
  box-shadow: none;
}

.ecw-hero-banner__suffix {
  padding: 0 12px;
  color: #50575e;
  font-size: 12px;
  line-height: 1;
}

.ecw-hero-banner__placeholder-notice {
  position: absolute;
  inset: 16px;
  z-index: 2;
  display: inline-flex;
  width: calc(100% - 32px);
  max-width: 320px;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px dashed rgba(255, 255, 255, 0.55);
  border-radius: 8px;
  background: rgba(20, 20, 20, 0.75);
  color: #fff;
}

.ecw-hero-banner__placeholder-notice .components-button {
  flex-shrink: 0;
}

@media (max-width: 781px) {
  .ecw-hero-banner__unit-control {
    grid-template-columns: 1fr;
  }

  .ecw-hero-banner__content {
    padding: 24px;
  }
}
