.section-newsletter {
  padding: 0 20px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: var(--newsletter-min-height, auto);
  overflow: hidden;
}

@keyframes zoomBg {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.1);
  }
}

.section-newsletter--has-bg .newsletter-bg {
  animation: zoomBg 20s linear infinite alternate;
  transform-origin: center center;
  will-change: transform;
}

.newsletter-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
}

.newsletter-content {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  position: relative;
  z-index: 2;
  width: 100%;
}

.newsletter-button-group {
  display: flex;
  justify-content: center;
  margin-top: 15px;
  width: 100%;
}

.newsletter-desc {
  margin-top: 15px;
}

.newsletter--field {
  margin-bottom: 0;
  width: 260px;
  margin-right: 10px;
  background-color: transparent;
  color: #fff;
}

.newsletter--field::after,
.newsletter--field:hover::after,
.newsletter--field:focus::after,
.newsletter--field:focus-within::after {
  border-color: rgba(255, 255, 255, 1);
  box-shadow: none;
}

.newsletter--field .field__label {
  color: rgba(255, 255, 255, 0.85);
}

.newsletter--field .field__input {
  color: rgba(255, 255, 255, 1);
}

@media screen and (max-width: 959px) {
  .newsletter-content form {
    width: 100%;
  }
  .newsletter--field {
    width: 100%;
  }
  .newsletter-button-group .shopline-localization-form {
    flex: 1;
  }
}

.newsletter-commit--message .icon {
  width: 14px;
  margin-right: 4px;
}

.newsletter--button {
  min-width: 90px;
}

.newsletter-form {
  width: 100%;
}

/* The ipad end responds to the mobile end in vertical screen */

/* @custom-media --tablet (max-width: 959px); */

/* @custom-media --gt-mobile (min-width: 751px); */

/* detectingScreen need to consider the configuration of the tablet */

/* 新增一个订阅邮件的背景色区域 */
.section-newsletter {
  background: #232323;
}

.section-newsletter--has-bg::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: calc(var(--newsletter-overlay-opacity, 0) / 100);
  background-color: #000;
  display: block;
  z-index: 1;
  pointer-events: none;
}
