/* Dreamy.cz — popup „uvítací sleva za e-mail“ + záložka vlevo (newsletter-popup.css, 2026-10-28). Patří k newsletter-popup.js. */
.dm-nl-tab {
  position: fixed;
  left: 0;
  top: 42%;
  z-index: 9990;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: translateY(-50%);
  animation: dm-nl-slide 0.35s ease-out;
}
.dm-nl-tab[hidden], .dm-nl[hidden] { display: none !important; }
.dm-nl-tab__open {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  background: #d90074;
  color: #fff;
  border: 0;
  border-radius: 10px 0 0 10px; /* po otočení o 180° = zaoblení na straně od okraje okna */
  padding: 16px 9px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.04em;
  cursor: pointer;
  box-shadow: 2px 2px 10px rgba(20, 17, 24, 0.18);
}
.dm-nl-tab__open:hover, .dm-nl-tab__open:focus-visible { background: #b8005f; outline: none; }
.dm-nl-tab__x {
  margin-top: 4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 0;
  background: #fff;
  color: #141118;
  font-size: 15px;
  line-height: 22px;
  padding: 0;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(20, 17, 24, 0.25);
  opacity: 0.85;
}
.dm-nl-tab__x:hover { opacity: 1; }
@keyframes dm-nl-slide { from { transform: translate(-100%, -50%); } to { transform: translate(0, -50%); } }

.dm-nl { position: fixed; inset: 0; z-index: 9995; display: flex; align-items: center; justify-content: center; padding: 16px; }
.dm-nl__backdrop { position: absolute; inset: 0; background: rgba(20, 17, 24, 0.55); opacity: 0; transition: opacity 0.2s; }
.dm-nl__box {
  position: relative;
  width: 100%;
  max-width: 440px;
  max-height: calc(100vh - 32px);
  overflow: auto;
  background: #fff;
  color: #141118;
  border-radius: 16px;
  padding: 32px 28px 24px;
  box-shadow: 0 20px 60px rgba(20, 17, 24, 0.3);
  transform: translateY(12px);
  opacity: 0;
  transition: transform 0.25s ease-out, opacity 0.25s;
  font-family: inherit;
}
.dm-nl.is-in .dm-nl__backdrop { opacity: 1; }
.dm-nl.is-in .dm-nl__box { transform: none; opacity: 1; }
.dm-nl__x {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent;
  font-size: 26px;
  line-height: 1;
  color: #8a8792;
  cursor: pointer;
}
.dm-nl__x:hover { color: #141118; }
.dm-nl__kicker { margin: 0 0 6px; color: #d90074; font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.dm-nl__title { margin: 0 0 10px; font-size: 26px; line-height: 1.2; font-weight: 700; color: #141118; }
.dm-nl__lead { margin: 0 0 18px; font-size: 15px; line-height: 1.5; color: #3b3640; }
.dm-nl__label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.dm-nl__input {
  width: 100%;
  box-sizing: border-box;
  height: 48px;
  padding: 0 14px;
  border: 1px solid #e3e1e7;
  border-radius: 10px;
  font-size: 16px; /* iOS nezoomuje */
  font-family: inherit;
}
.dm-nl__input:focus { border-color: #d90074; outline: 2px solid rgba(217, 0, 116, 0.2); }
.dm-nl__hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.dm-nl__consent { display: flex; gap: 10px; align-items: flex-start; margin: 14px 0 16px; font-size: 12.5px; line-height: 1.45; color: #5d5862; cursor: pointer; }
.dm-nl__consent input { margin-top: 2px; width: 18px; height: 18px; flex: none; accent-color: #d90074; }
.dm-nl__consent a { color: inherit; text-decoration: underline; }
.dm-nl__btn {
  width: 100%;
  height: 50px;
  border: 0;
  border-radius: 10px;
  background: #d90074;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
}
.dm-nl__btn:hover { background: #b8005f; }
.dm-nl__btn:disabled { opacity: 0.6; cursor: wait; }
.dm-nl__btn--ghost { background: #efe9ec; color: #141118; margin-top: 8px; }
.dm-nl__btn--ghost:hover { background: #e3dbe0; }
.dm-nl__err { margin: 10px 0 0; color: #b42318; font-size: 13px; }
.dm-nl__fine { margin: 14px 0 0; font-size: 12px; line-height: 1.4; color: #8a8792; }
html.dm-nl-open { overflow: hidden; }

@media (max-width: 767px) {
  .dm-nl-tab { top: auto; bottom: 110px; transform: none; animation: none; }
  .dm-nl-tab__open { padding: 12px 7px; font-size: 12.5px; }
  .dm-nl { align-items: flex-end; padding: 0; }
  .dm-nl__box { max-width: none; border-radius: 16px 16px 0 0; padding: 28px 20px calc(20px + env(safe-area-inset-bottom)); transform: translateY(40px); }
  .dm-nl__title { font-size: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .dm-nl-tab, .dm-nl__box, .dm-nl__backdrop { animation: none; transition: none; }
}

/* ── Pojistka proti stylům šablony Shoptetu (ověřeno na dreamy.cz 28. 10. 2026: checkboxy display:none, tlačítka tyrkysová a flex) ── */
.dm-nl .dm-nl__consent input[type="checkbox"] {
  display: inline-block !important;
  -webkit-appearance: checkbox !important;
  appearance: auto !important;
  position: static !important;
  opacity: 1 !important;
  visibility: visible !important;
  width: 18px !important;
  height: 18px !important;
  margin: 2px 0 0 !important;
  flex: none !important;
  accent-color: #d90074;
}
.dm-nl button.dm-nl__btn {
  display: block !important;
  width: 100% !important;
  height: 50px !important;
  padding: 0 16px !important;
  background: #d90074 !important;
  color: #fff !important;
  border: 0 !important;
  border-radius: 10px !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  line-height: 50px !important;
  text-align: center !important;
  text-transform: none !important;
  box-shadow: none !important;
}
.dm-nl button.dm-nl__btn:hover { background: #b8005f !important; }
.dm-nl button.dm-nl__btn--ghost { background: #efe9ec !important; color: #141118 !important; }
.dm-nl button.dm-nl__btn--ghost:hover { background: #e3dbe0 !important; }
.dm-nl button.dm-nl__x {
  display: block !important;
  width: 36px !important;
  height: 36px !important;
  padding: 0 !important;
  background: transparent !important;
  color: #8a8792 !important;
  border: 0 !important;
  box-shadow: none !important;
  font-size: 26px !important;
  line-height: 36px !important;
}
.dm-nl-tab button.dm-nl-tab__open {
  display: block !important;
  width: auto !important;
  height: auto !important;
  padding: 16px 9px !important;
  background: #d90074 !important;
  color: #fff !important;
  border: 0 !important;
  border-radius: 10px 0 0 10px !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  text-transform: none !important;
  writing-mode: vertical-rl !important;
  transform: rotate(180deg) !important;
}
.dm-nl-tab button.dm-nl-tab__open:hover { background: #b8005f !important; }
.dm-nl-tab button.dm-nl-tab__x {
  display: block !important;
  width: 22px !important;
  height: 22px !important;
  padding: 0 !important;
  background: #fff !important;
  color: #141118 !important;
  border: 0 !important;
  border-radius: 50% !important;
  font-size: 15px !important;
  line-height: 22px !important;
}
@media (max-width: 767px) {
  .dm-nl-tab button.dm-nl-tab__open { padding: 12px 7px !important; font-size: 12.5px !important; }
}

/* ── v2: hero se dvěma slevami (29. 10. 2026) ── */
.dm-nl .dm-nl__box { max-width: 480px; }
.dm-nl .dm-nl__hero {
  margin: -32px -28px 18px;
  padding: 30px 28px 22px;
  border-radius: 16px 16px 0 0;
  background: radial-gradient(120% 90% at 0% 0%, #ffd9ea 0%, #fff0f6 55%, #ffffff 100%);
  text-align: center;
}
.dm-nl .dm-nl__hero .dm-nl__kicker { margin-bottom: 8px; }
.dm-nl .dm-nl__hero .dm-nl__title { font-size: 27px; margin: 0 0 18px; }
.dm-nl .dm-nl__hero .dm-nl__title em { font-style: normal; color: #d90074; }
.dm-nl .dm-nl__offers { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.dm-nl .dm-nl__offer {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 16px 10px 14px;
  background: #fff;
  border: 1.5px solid #f6c3db;
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(217, 0, 116, 0.10);
}
.dm-nl .dm-nl__offer-ico { display: inline-flex; width: 40px; height: 40px; align-items: center; justify-content: center; border-radius: 50%; background: #fde4ef; color: #d90074; margin-bottom: 2px; }
.dm-nl .dm-nl__offer-where { font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: #5d5862; }
.dm-nl .dm-nl__offer-amt { font-size: 30px; line-height: 1.1; font-weight: 800; color: #d90074; letter-spacing: -0.01em; }
.dm-nl .dm-nl__offer-cond { font-size: 12px; line-height: 1.3; color: #5d5862; }
.dm-nl .dm-nl__offer--hot { background: #d90074; border-color: #d90074; box-shadow: 0 8px 22px rgba(217, 0, 116, 0.30); }
.dm-nl .dm-nl__offer--hot .dm-nl__offer-ico { background: rgba(255, 255, 255, 0.2); color: #fff; }
.dm-nl .dm-nl__offer--hot .dm-nl__offer-where,
.dm-nl .dm-nl__offer--hot .dm-nl__offer-amt,
.dm-nl .dm-nl__offer--hot .dm-nl__offer-cond { color: #fff; }
.dm-nl .dm-nl__lead strong { color: #141118; }
@media (max-width: 767px) {
  .dm-nl .dm-nl__hero { margin: -28px -20px 16px; padding: 26px 16px 18px; }
  .dm-nl .dm-nl__hero .dm-nl__title { font-size: 22px; margin-bottom: 14px; }
  .dm-nl .dm-nl__offers { gap: 8px; }
  .dm-nl .dm-nl__offer { padding: 12px 6px 10px; }
  .dm-nl .dm-nl__offer-amt { font-size: 24px; }
  .dm-nl .dm-nl__offer-cond { font-size: 11px; }
}
/* Šablona Shoptetu kreslí checkboxům vlastní rámeček přes ::before/::after (position:absolute) → objevoval se jako bílý čtvereček v rohu popupu (29. 10. 2026). */
.dm-nl .dm-nl__consent input[type="checkbox"]::before,
.dm-nl .dm-nl__consent input[type="checkbox"]::after { content: none !important; display: none !important; }
.dm-nl .dm-nl__consent { position: relative; }
