/* Global Chocolenka newsletter — Shoptet footer on every storefront page. */
body .odber { margin: 72px 0 0; padding: 0; background: transparent; }
body .odber-in { max-width: 1380px; margin: 0 auto; padding: 0 30px; }
body .custom-footer__newsletter {
  box-sizing: border-box;
  display: grid !important;
  grid-template-columns: 210px minmax(380px, 1fr) minmax(220px, .55fr);
  grid-template-rows: auto auto;
  align-items: center;
  column-gap: clamp(28px, 4vw, 58px);
  row-gap: 16px;
  min-height: 250px;
  padding: 36px clamp(28px, 4vw, 58px) 30px 0;
  border-radius: 14px;
  background: linear-gradient(115deg, #351d0d 0%, #603914 65%, #7b471b 100%);
  color: #fff;
  box-shadow: 0 18px 45px rgba(53,29,13,.16);
}
body .ch-newsletter-visual { grid-column: 1; grid-row: 1 / 3; align-self: stretch; min-height: 250px; border-radius: 14px 42% 42% 14px; background: linear-gradient(rgba(53,29,13,.08),rgba(53,29,13,.18)),url('https://www.chocolenka.cz/user/documents/upload/KPupravy/bannery-homepage-bez-textu-55.jpg') 51% center/cover no-repeat; box-shadow: inset -12px 0 30px rgba(53,29,13,.2); }
body .custom-footer__newsletter .newsletter-header { grid-column: 2; grid-row: 1; width: 100% !important; margin: 0; align-self: end; }
body .custom-footer__newsletter .newsletter-header::before { content: "CHOCOLENKA DO E-MAILU"; display: block; margin-bottom: 8px; color: #e8ad5f; font-size: 11px; font-weight: 800; letter-spacing: .1em; }
body .custom-footer__newsletter .topic { margin: 0; color: #fff; font: inherit; }
body .custom-footer__newsletter .topic span { color: #fff; font-size: clamp(27px,2.6vw,38px); font-weight: 800; line-height: 1.15; }
body .ch-newsletter-copy { max-width: 440px; margin: 10px 0 0; color: #e5d8cd; font-size: 14px; line-height: 1.5; }
body .custom-footer__newsletter form { grid-column: 2; grid-row: 2; width: 100% !important; max-width: none; margin: 0; align-self: start; }
body .custom-footer__newsletter fieldset { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 10px; align-items: stretch; margin: 0; }
body .custom-footer__newsletter .validator-msg-holder { min-width: 0; }
body .custom-footer__newsletter input[type="email"] { width: 100%; height: 54px; padding: 0 18px; border: 1px solid rgba(255,255,255,.4); border-radius: 7px; background: #fff; color: #33251c; font-size: 15px; box-shadow: none; }
body .custom-footer__newsletter .btn-arrow-right { width: auto; min-width: 148px; height: 54px; padding: 0 21px; border: 0; border-radius: 7px; background: #d68123; color: #fff; font-weight: 800; }
body .ch-newsletter-submit-text { display: inline; }
body .custom-footer__newsletter fieldset > div:last-of-type { grid-column: 1 / -1; grid-row: 2; }
body .custom-footer__newsletter .consents { margin: 0; }
body .custom-footer__newsletter .consents label { color: #d9cabe; font-size: 11px; line-height: 1.45; }
body .custom-footer__newsletter .consents a { color: #fff; text-decoration: underline; }
body .ch-newsletter-benefits { grid-column: 3; grid-row: 1 / 3; display: flex; flex-direction: column; justify-content: center; gap: 10px; min-height: 132px; padding-left: 28px; border-left: 1px solid rgba(255,255,255,.18); }
body .ch-newsletter-benefits strong { color: #fff; font-size: 18px; line-height: 1.25; }
body .ch-newsletter-benefits span { position: relative; padding-left: 20px; color: #e5d8cd; font-size: 13px; line-height: 1.4; }
body .ch-newsletter-benefits span::before { content: "✓"; position: absolute; left: 0; color: #e8ad5f; font-weight: 800; }

/* Shoptet uses a stronger flex layout for the extended newsletter outside HP. */
html body:not(.in-index) .odber .odber-in .custom-footer__newsletter.extended {
  width: 100% !important;
  height: auto !important;
  min-height: 250px !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;
  flex-flow: initial !important;
}
html body:not(.in-index) .odber .custom-footer__newsletter .ch-newsletter-visual {
  width: auto !important;
  height: auto !important;
  min-height: 250px !important;
}
html body:not(.in-index) .odber .custom-footer__newsletter .newsletter-header,
html body:not(.in-index) .odber .custom-footer__newsletter form,
html body:not(.in-index) .odber .custom-footer__newsletter .ch-newsletter-benefits {
  max-width: none !important;
}

@media (max-width:767px) {
  body .odber { margin-top: 52px; }
  body .odber-in { padding: 0 12px; }
  body .custom-footer__newsletter { grid-template-columns: 1fr; grid-template-rows: auto; gap: 22px; min-height: 0; padding: 34px 22px; border-radius: 10px; }
  html body:not(.in-index) .odber .odber-in .custom-footer__newsletter.extended { grid-template-columns: 1fr !important; grid-template-rows: auto !important; min-height: 0 !important; }
  body .ch-newsletter-visual { display: none; }
  body .custom-footer__newsletter .newsletter-header,body .custom-footer__newsletter form,body .ch-newsletter-benefits { grid-column: 1; grid-row: auto; }
  body .ch-newsletter-benefits { min-height: 0; padding: 18px 0 0; border-left: 0; border-top: 1px solid rgba(255,255,255,.18); }
  body .custom-footer__newsletter form fieldset { display: flex !important; flex-direction: column; align-items: stretch; gap: 11px; }
  body .custom-footer__newsletter .validator-msg-holder { width: 100% !important; max-width: none !important; flex: 0 0 100% !important; height: auto !important; min-height: 52px; display: block !important; position: static !important; inset: auto !important; overflow: visible !important; clip: auto !important; transform: none !important; opacity: 1 !important; visibility: visible !important; order: 1; }
  html body .custom-footer__newsletter .validator-msg-holder > input.form-control[type="email"] { width: 100% !important; min-width: 100% !important; max-width: none !important; height: 52px !important; min-height: 52px !important; display: block !important; position: static !important; margin: 0 !important; padding: 0 16px !important; border: 1px solid rgba(255,255,255,.55) !important; background: #fff !important; color: #33251c !important; -webkit-appearance: none !important; opacity: 1 !important; visibility: visible !important; }
  html body #formNewsletterWidget .js-validated-element-wrapper:has(> input[name="email"]) { display: block !important; width: 100% !important; min-width: 100% !important; height: 52px !important; min-height: 52px !important; flex: 0 0 52px !important; overflow: visible !important; opacity: 1 !important; visibility: visible !important; }
  html body #formNewsletterWidget input[name="email"].form-control { display: block !important; width: 100% !important; height: 52px !important; min-height: 52px !important; opacity: 1 !important; visibility: visible !important; }
  body .custom-footer__newsletter .btn-arrow-right { width: 100%; min-height: 52px; order: 2; }
  body .custom-footer__newsletter fieldset > div:last-of-type { width: 100%; grid-column: auto; grid-row: auto; order: 3; }
}
