/*
 * Chocolenka newsletter v3
 * Stabilises the same branded component on homepage, category, product and content pages.
 */

html body .odber {
  height: auto !important;
  min-height: 0 !important;
  margin: 72px 0 0 !important;
  padding: 0 !important;
  background: transparent !important;
}

html body .odber .odber-in {
  width: 100% !important;
  max-width: 1380px !important;
  height: auto !important;
  min-height: 0 !important;
  margin: 0 auto !important;
  padding: 0 30px !important;
}

html body .odber .odber-in .custom-footer__newsletter.extended {
  box-sizing: border-box !important;
  width: 100% !important;
  max-width: none !important;
  height: auto !important;
  min-height: 250px !important;
  max-height: none !important;
  margin: 0 !important;
  padding: 36px clamp(28px, 4vw, 58px) 30px 0 !important;
  display: grid !important;
  grid-template-columns: 210px minmax(380px, 1fr) minmax(220px, .55fr) !important;
  grid-template-rows: auto auto !important;
  align-items: center !important;
  align-content: normal !important;
  justify-content: normal !important;
  gap: 16px clamp(28px, 4vw, 58px) !important;
  border-radius: 14px !important;
  overflow: hidden !important;
}

html body .odber .custom-footer__newsletter .ch-newsletter-visual {
  width: auto !important;
  height: auto !important;
  min-height: 250px !important;
  max-height: none !important;
  grid-column: 1 !important;
  grid-row: 1 / 3 !important;
  align-self: stretch !important;
}

html body .odber .custom-footer__newsletter .newsletter-header {
  width: 100% !important;
  max-width: none !important;
  height: auto !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  grid-column: 2 !important;
  grid-row: 1 !important;
  align-self: end !important;
}

html body .odber .custom-footer__newsletter form.subscribe-form {
  width: 100% !important;
  max-width: none !important;
  height: auto !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  grid-column: 2 !important;
  grid-row: 2 !important;
  align-self: start !important;
}

html body .odber .custom-footer__newsletter form.subscribe-form fieldset {
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  align-items: stretch !important;
  gap: 10px !important;
}

html body .odber .custom-footer__newsletter .ch-newsletter-benefits {
  width: auto !important;
  max-width: none !important;
  height: auto !important;
  min-height: 132px !important;
  margin: 0 !important;
  grid-column: 3 !important;
  grid-row: 1 / 3 !important;
}

html body .odber .custom-footer__newsletter button[type="submit"] {
  width: auto !important;
  min-width: 170px !important;
  height: 54px !important;
  min-height: 54px !important;
  max-height: 54px !important;
  margin: 0 !important;
  padding: 0 20px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border: 0 !important;
  border-radius: 7px !important;
  background: #d68123 !important;
  color: #fff !important;
  font-size: 0 !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  white-space: nowrap !important;
}

html body .odber .custom-footer__newsletter button[type="submit"]:hover {
  background: #b96512 !important;
}

html body .odber .custom-footer__newsletter button[type="submit"] .ch-newsletter-submit-text {
  display: inline !important;
  color: #fff !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
}

@media (min-width: 768px) {
  html body .odber .custom-footer__newsletter form.subscribe-form button[type="submit"] {
    align-self: end !important;
    margin-bottom: 12px !important;
  }
}

@media (max-width: 767px) {
  html body .odber {
    margin-top: 52px !important;
  }

  html body .odber .odber-in {
    padding: 0 12px !important;
  }

  html body .odber .odber-in .custom-footer__newsletter.extended {
    min-height: 0 !important;
    padding: 34px 22px !important;
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-rows: auto !important;
    gap: 22px !important;
    border-radius: 10px !important;
  }

  html body .odber .custom-footer__newsletter .ch-newsletter-visual {
    display: none !important;
  }

  html body .odber .custom-footer__newsletter .newsletter-header,
  html body .odber .custom-footer__newsletter form.subscribe-form,
  html body .odber .custom-footer__newsletter .ch-newsletter-benefits {
    width: 100% !important;
    grid-column: 1 !important;
    grid-row: auto !important;
  }

  html body .odber .custom-footer__newsletter form.subscribe-form fieldset {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 11px !important;
  }

  html body .odber .custom-footer__newsletter .form-group.smart-label-wrapper,
  html body .odber .custom-footer__newsletter .form-control-wrapper,
  html body .odber .custom-footer__newsletter input[type="email"] {
    width: 100% !important;
    min-width: 100% !important;
    max-width: none !important;
  }

  html body .odber .custom-footer__newsletter .form-control-wrapper,
  html body .odber .custom-footer__newsletter input[type="email"] {
    height: 52px !important;
    min-height: 52px !important;
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
  }

  html body .odber .custom-footer__newsletter button[type="submit"] {
    width: 100% !important;
    min-width: 0 !important;
    height: 52px !important;
    min-height: 52px !important;
    max-height: 52px !important;
  }

  html body .odber .custom-footer__newsletter .ch-newsletter-benefits {
    min-height: 0 !important;
  }
}
