@layer block {
  .newsletter-lightbox-root {
    position: fixed;
    z-index: 10;
    inset: 0;
  }

  .newsletter-popup-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: var(--backdrop-color);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    padding: var(--gutter-m);
  }
  
  .newsletter-popup-overlay.active {
    display: flex;
  }
  
  .newsletter-popup-wrapper {
    background: #fff;
    border-radius: var(--dialog-border-radius);
    padding: var(--gutter-xl);
    max-width: var(--dialog-width);
    width: 100%;
    box-shadow: 0 4px 24px rgb(0 0 0 /0.2);
    position: relative;
    animation: fade-in 0.25s ease-out;
  }

  .newsletter-popup-container {
    background: #fff;
    border-radius: var(--dialog-border-radius);
    border: 3px solid var(--clr-brand-primary);
    padding: var(--gutter-xl);
    width: 100%;
    box-shadow: 0 4px 24px rgb(0 0 0 / 0.15);
    text-align: center;
  }

  .newsletter-close {
    position: absolute;
    top: 2px;
    right: 2px;
    background: transparent;
    font-size: 2.4rem;
    border: none;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    color: #000;
    line-height: 1;
  }

  .newsletter-close:hover,
  .newsletter-close:focus-visible {
    opacity: 0.7;
  }

  .newsletter-logo {
    margin: 0 auto;
    width: 25%;
    min-width: 15rem;
  }

  .newsletter-title {
    margin: 20px 0 10px;
  }

  .newsletter-form {
    position: relative;
  }
  
  .newsletter-form input {
    width: 100%;
    padding: 10px 12px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 4px;
  }
  
  .newsletter-submit {
    width: 100%;
  }
  
  .newsletter-honeypot {
    display: none !important;
  }
  
  .newsletter-error {
    color: var(--clr-warning);
    display: none;
  }
  
  .newsletter-success {
    color: var(--clr-success-200);
    min-height: 18px;
    display: none;
    margin: 28px 0;
  }

  .newsletter-form.is-success .newsletter-submit {
    display: none;
  }

  .newsletter-error:not(:empty),
  .newsletter-success:not(:empty) {
    display: block;
  }

  body:has(.minicart-wrapper.nav-tools-wrapper.active) .newsletter-lightbox-root {
    display: none !important;
  }

  header.header-wrapper.lightbox-active {
      z-index: 9 !important;
  }

  @media (max-width: 500px) {
    .newsletter-popup-overlay {
      align-items: stretch;
      padding: 0;
    }
  
    .newsletter-popup-wrapper {
      max-width: initial;
      height: 100%;
    }
  
    .newsletter-popup-container {
      height: 100%;
      display: flex;
      flex-direction: column;
      justify-content: center;
    }
  }

  #_lpSurveyPopover {
    display: none !important;
  }

  @keyframes fade-in {
    from {
      opacity: 0;
      transform: scale(0.96);
    }

    to {
      opacity: 1;
      transform: scale(1);
    }
  }
}
