/* v1.0.50: e-mailové HTML karty (tabulky role=presentation) v těle newsletteru
   na webu. Téma jinak dává table td { white-space:nowrap; padding; border },
   takže boxy přetékají a tlačítko vypadá obří. E-mailová šablona toto CSS
   nenačítá, e-mail zůstává beze změny. */

/* Obecný reset prezentačních tabulek v článku: zalamování, žádný vodorovný posun. */
.c-content table[role="presentation"]{
  width:100% !important;
  max-width:100% !important;
  height:auto !important;
  table-layout:auto;
  background-color:transparent;
  box-sizing:border-box;
}
.c-content table[role="presentation"] td,
.c-content table[role="presentation"] th{
  white-space:normal !important;
  overflow-wrap:break-word;
  word-wrap:break-word;
  word-break:break-word;
  border:none !important;
  box-sizing:border-box;
}
/* Vnitřní tabulka tlačítka: zrušit tématový padding 16 px, kvůli kterému
   bylo oranžové tlačítko obří. */
.c-content table[role="presentation"] table[role="presentation"]{
  width:auto !important;
  max-width:100% !important;
  margin-left:auto;
  margin-right:auto;
  background-color:transparent !important;
}
.c-content table[role="presentation"] table[role="presentation"] td{
  padding:0 !important;
  white-space:normal !important;
  border:none !important;
}

/* Tlačítko v boxu: přiměřená velikost, černý text na #f26f03 (7,05:1),
   zaoblení 3 px jako tlačítka v hlavičce a patičce. */
.c-content table[role="presentation"] a[style*="background-color:#f26f03"],
.c-content table[role="presentation"] a[style*="background:#f26f03"],
.c-content table[role="presentation"] td[bgcolor="#f26f03"] a,
.c-content table[role="presentation"] td[style*="background-color:#f26f03"] a{
  display:inline-block !important;
  max-width:100% !important;
  box-sizing:border-box;
  padding:12px 22px !important;
  font-family:var(--font-family-sansSerif, Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif) !important;
  font-size:15px !important;
  font-weight:700 !important;
  line-height:1.2 !important;
  color:#141414 !important;
  background-color:#f26f03 !important;
  text-decoration:none !important;
  border-radius:3px !important;
  white-space:normal !important;
  text-align:center;
}
.c-content table[role="presentation"] td[bgcolor="#f26f03"],
.c-content table[role="presentation"] td[style*="background-color:#f26f03"]{
  background-color:#f26f03 !important;
  border-radius:3px !important;
}

/* Nadpis a text v tmavých e-mailových boxech (#161616) — písma webu. */
.c-content table[role="presentation"][bgcolor="#161616"] p,
.c-content table[role="presentation"][style*="#161616"] p{
  font-family:var(--font-family-sansSerif, Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif) !important;
  overflow-wrap:break-word;
  word-break:break-word;
}
.c-content table[role="presentation"][bgcolor="#161616"] > tbody > tr > td > p:first-child,
.c-content table[role="presentation"][style*="#161616"] > tbody > tr > td > p:first-child{
  font-family:var(--font-family-serif, "Source Serif 4", Georgia, "Times New Roman", serif) !important;
}

/* Světlý režim: tmavý e-mailový box přebarvit, ať sedí k webu. Oranžová jen na tlačítku. */
html[data-user-color-scheme="light"] .c-content table[role="presentation"][bgcolor="#161616"],
html[data-user-color-scheme="light"] .c-content table[role="presentation"][style*="#161616"],
:root:not([data-user-color-scheme]) .c-content table[role="presentation"][bgcolor="#161616"],
:root:not([data-user-color-scheme]) .c-content table[role="presentation"][style*="#161616"]{
  background-color:#faf7f3 !important;
  border-color:#ece6df !important;
}
html[data-user-color-scheme="light"] .c-content table[role="presentation"][bgcolor="#161616"] td,
html[data-user-color-scheme="light"] .c-content table[role="presentation"][style*="#161616"] td,
:root:not([data-user-color-scheme]) .c-content table[role="presentation"][bgcolor="#161616"] td,
:root:not([data-user-color-scheme]) .c-content table[role="presentation"][style*="#161616"] td{
  background-color:transparent !important;
}
html[data-user-color-scheme="light"] .c-content table[role="presentation"][bgcolor="#161616"] td[bgcolor="#f26f03"],
html[data-user-color-scheme="light"] .c-content table[role="presentation"][style*="#161616"] td[style*="background-color:#f26f03"],
:root:not([data-user-color-scheme]) .c-content table[role="presentation"][bgcolor="#161616"] td[bgcolor="#f26f03"],
:root:not([data-user-color-scheme]) .c-content table[role="presentation"][style*="#161616"] td[style*="background-color:#f26f03"]{
  background-color:#f26f03 !important;
}
html[data-user-color-scheme="light"] .c-content table[role="presentation"][bgcolor="#161616"] p,
html[data-user-color-scheme="light"] .c-content table[role="presentation"][style*="#161616"] p,
:root:not([data-user-color-scheme]) .c-content table[role="presentation"][bgcolor="#161616"] p,
:root:not([data-user-color-scheme]) .c-content table[role="presentation"][style*="#161616"] p{
  color:#262626 !important;
}
html[data-user-color-scheme="light"] .c-content table[role="presentation"][bgcolor="#161616"] > tbody > tr > td > p:first-child,
html[data-user-color-scheme="light"] .c-content table[role="presentation"][style*="#161616"] > tbody > tr > td > p:first-child,
:root:not([data-user-color-scheme]) .c-content table[role="presentation"][bgcolor="#161616"] > tbody > tr > td > p:first-child,
:root:not([data-user-color-scheme]) .c-content table[role="presentation"][style*="#161616"] > tbody > tr > td > p:first-child{
  color:#141414 !important;
}
html[data-user-color-scheme="light"] .c-content table[role="presentation"][bgcolor="#161616"] p a,
html[data-user-color-scheme="light"] .c-content table[role="presentation"][style*="#161616"] p a,
:root:not([data-user-color-scheme]) .c-content table[role="presentation"][bgcolor="#161616"] p a,
:root:not([data-user-color-scheme]) .c-content table[role="presentation"][style*="#161616"] p a{
  color:#141414 !important;
  text-decoration:underline !important;
  text-decoration-color:#f26f03 !important;
}

/* Tmavý režim: nechat tmavý box, jen sjednotit písma a barvy textu. */
html[data-user-color-scheme="dark"] .c-content table[role="presentation"][bgcolor="#161616"],
html[data-user-color-scheme="dark"] .c-content table[role="presentation"][style*="#161616"]{
  background-color:#161616 !important;
  border-color:#2a2a2a !important;
}
html[data-user-color-scheme="dark"] .c-content table[role="presentation"][bgcolor="#161616"] > tbody > tr > td,
html[data-user-color-scheme="dark"] .c-content table[role="presentation"][style*="#161616"] > tbody > tr > td{
  background-color:#161616 !important;
}
html[data-user-color-scheme="dark"] .c-content table[role="presentation"][bgcolor="#161616"] td[bgcolor="#f26f03"],
html[data-user-color-scheme="dark"] .c-content table[role="presentation"][style*="#161616"] td[style*="background-color:#f26f03"]{
  background-color:#f26f03 !important;
}
html[data-user-color-scheme="dark"] .c-content table[role="presentation"][bgcolor="#161616"] p,
html[data-user-color-scheme="dark"] .c-content table[role="presentation"][style*="#161616"] p{
  color:#d2d2d2 !important;
}
html[data-user-color-scheme="dark"] .c-content table[role="presentation"][bgcolor="#161616"] > tbody > tr > td > p:first-child,
html[data-user-color-scheme="dark"] .c-content table[role="presentation"][style*="#161616"] > tbody > tr > td > p:first-child{
  color:#f5f5f5 !important;
}
html[data-user-color-scheme="dark"] .c-content table[role="presentation"][bgcolor="#161616"] p a,
html[data-user-color-scheme="dark"] .c-content table[role="presentation"][style*="#161616"] p a{
  color:#f5f5f5 !important;
  text-decoration:underline !important;
  text-decoration-color:#f26f03 !important;
}

@media (prefers-color-scheme: dark){
  :root:not([data-user-color-scheme]).is-darkModeAdminSetting-enabled .c-content table[role="presentation"][bgcolor="#161616"],
  :root:not([data-user-color-scheme]).is-darkModeAdminSetting-enabled .c-content table[role="presentation"][style*="#161616"]{
    background-color:#161616 !important;
    border-color:#2a2a2a !important;
  }
  :root:not([data-user-color-scheme]).is-darkModeAdminSetting-enabled .c-content table[role="presentation"][bgcolor="#161616"] > tbody > tr > td,
  :root:not([data-user-color-scheme]).is-darkModeAdminSetting-enabled .c-content table[role="presentation"][style*="#161616"] > tbody > tr > td{
    background-color:#161616 !important;
  }
  :root:not([data-user-color-scheme]).is-darkModeAdminSetting-enabled .c-content table[role="presentation"][bgcolor="#161616"] td[bgcolor="#f26f03"],
  :root:not([data-user-color-scheme]).is-darkModeAdminSetting-enabled .c-content table[role="presentation"][style*="#161616"] td[style*="background-color:#f26f03"]{
    background-color:#f26f03 !important;
  }
  :root:not([data-user-color-scheme]).is-darkModeAdminSetting-enabled .c-content table[role="presentation"][bgcolor="#161616"] p,
  :root:not([data-user-color-scheme]).is-darkModeAdminSetting-enabled .c-content table[role="presentation"][style*="#161616"] p{
    color:#d2d2d2 !important;
  }
  :root:not([data-user-color-scheme]).is-darkModeAdminSetting-enabled .c-content table[role="presentation"][bgcolor="#161616"] > tbody > tr > td > p:first-child,
  :root:not([data-user-color-scheme]).is-darkModeAdminSetting-enabled .c-content table[role="presentation"][style*="#161616"] > tbody > tr > td > p:first-child{
    color:#f5f5f5 !important;
  }
  :root:not([data-user-color-scheme]).is-darkModeAdminSetting-enabled .c-content table[role="presentation"][bgcolor="#161616"] p a,
  :root:not([data-user-color-scheme]).is-darkModeAdminSetting-enabled .c-content table[role="presentation"][style*="#161616"] p a{
    color:#f5f5f5 !important;
    text-decoration:underline !important;
    text-decoration-color:#f26f03 !important;
  }
}

/* Box „Přepošlete mu tento e-mail“ / „Přeposlal vám to někdo?“ patří jen do e-mailu.
   Na webu ho schovat. Nové karty mají třídu od-nl-jen-email; starší poznáme
   podle odkazu utm_campaign=doporuceni (mailto Cloudflare na webu přepisuje). */
.c-content table[role="presentation"].od-nl-jen-email,
.c-content table[role="presentation"]:has(a[href*="utm_campaign=doporuceni"]),
.c-content table[role="presentation"]:has(a[href*="utm_campaign=doporuceni"]) + p:empty{
  display:none !important;
}
