/* enconco-popup-height-v6: keep the desktop popup a little taller; stop mobile from stretching to the viewport. */
@media (min-width: 700px) {
  body.enconco-annabary-3577 casaluce-newsletter-dialog[data-layout="image_left"] dialog {
    inset: auto !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: min(880px, calc(100vw - 40px)) !important;
    height: auto !important;
    min-height: 560px !important;
    min-height: min(560px, calc(100dvh - 48px)) !important;
    max-height: calc(100dvh - 40px) !important;
    margin: 0 !important;
    overflow: hidden;
  }
  body.enconco-annabary-3577 casaluce-newsletter-dialog[data-layout="image_left"] .casa-newsletter-shell,
  body.enconco-annabary-3577 casaluce-newsletter-dialog[data-layout="image_left"] .casa-newsletter-media {
    min-height: 560px !important;
    min-height: min(560px, calc(100dvh - 48px)) !important;
  }
  body.enconco-annabary-3577 casaluce-newsletter-dialog[data-layout="image_left"] .casa-newsletter-media img {
    object-position: center 42%;
  }
  body.enconco-annabary-3577 casaluce-newsletter-dialog[data-layout="image_left"] .casa-newsletter-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px 40px 36px !important;
  }
}
@media (max-width: 699px) {
  body.enconco-annabary-3577 casaluce-newsletter-dialog[data-layout="image_left"] dialog {
    position: fixed !important;
    inset: auto !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: min(420px, calc(100vw - 24px)) !important;
    max-width: calc(100vw - 24px) !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: calc(100dvh - 24px) !important;
    max-height: calc(100vh - 24px) !important;
    margin: 0 !important;
    overflow: auto;
  }
  body.enconco-annabary-3577 casaluce-newsletter-dialog[data-layout="image_left"] .casa-newsletter-shell {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    min-height: 0 !important;
    height: auto !important;
  }
  body.enconco-annabary-3577 casaluce-newsletter-dialog[data-layout="image_left"] .casa-newsletter-media {
    display: block !important;
    width: 100% !important;
    height: clamp(168px, 28vh, 210px) !important;
    min-height: 0 !important;
    max-height: 210px !important;
  }
  body.enconco-annabary-3577 casaluce-newsletter-dialog[data-layout="image_left"] .casa-newsletter-media img {
    object-position: center 46%;
  }
  body.enconco-annabary-3577 casaluce-newsletter-dialog[data-layout="image_left"] .casa-newsletter-content {
    display: block !important;
    padding: 20px 18px 18px !important;
  }
  body.enconco-annabary-3577 casaluce-newsletter-dialog[data-layout="image_left"] h2 {
    font-size: 28px !important;
    line-height: 1.2 !important;
    margin: 0 36px 12px 0 !important;
  }
  body.enconco-annabary-3577 casaluce-newsletter-dialog[data-layout="image_left"] #casa-newsletter-description {
    margin-bottom: 16px !important;
  }
  body.enconco-annabary-3577 casaluce-newsletter-dialog[data-layout="image_left"] .casa-newsletter-close {
    top: 8px;
    right: 8px;
    background: #F7F8FB;
  }
}
@media (max-width: 699px) and (max-height: 740px) {
  body.enconco-annabary-3577 casaluce-newsletter-dialog[data-layout="image_left"] .casa-newsletter-media {
    height: 148px !important;
    max-height: 148px !important;
  }
  body.enconco-annabary-3577 casaluce-newsletter-dialog[data-layout="image_left"] .casa-newsletter-content {
    padding: 16px 16px 14px !important;
  }
}
