/* Cookie lišta, nastavení souhlasu a stránky newsletteru. Barvy a písmo podle varianty 7 (proměnné ze style.css). */

/* Cookies přes celou obrazovku: rozmazaný web pod tím, uprostřed karta se sušenkou s tlapkou */
.cc-lista {
  position: fixed; inset: 0; z-index: 70;
  display: grid; place-items: center; padding: 16px;
  background: rgba(42, 31, 24, .45);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  color: var(--text, #2A1F18);
  font-family: Figtree, system-ui, sans-serif;
}
html.cc-otevreno { overflow: hidden; }
.cc-pes { display: block; width: 190px; height: 136px; margin: -6px auto 10px; }
.cc-pes .cc-susenka { transform-origin: 160px 122px; }
.cc-pes .cc-bublina { transform-origin: 150px 40px; }
.cc-lista[hidden], .cc-panel[hidden], .cc-zavoj[hidden] { display: none; }
.cc-in {
  width: min(460px, 100%); margin: 0; padding: 34px 32px 26px;
  background: var(--bg, #FBF8F2); border-radius: 20px; text-align: center;
  box-shadow: 0 30px 80px rgba(20, 12, 8, .45);
}
.cc-text { margin: 0; font-size: .95rem; line-height: 1.55; color: var(--text2, #5E5148); }
.cc-text strong { display: block; color: var(--text, #2A1F18); font-family: "Bricolage Grotesque", sans-serif; font-weight: 800; font-size: 1.55rem; line-height: 1.15; margin-bottom: 10px; }
.cc-text a { display: inline-block; margin-top: 6px; color: inherit; text-underline-offset: 2px; }
.cc-akce { display: flex; flex-direction: column; gap: 8px; margin-top: 22px; }

.cc-btn {
  font: inherit; font-size: .95rem; font-weight: 600; line-height: 1.2;
  padding: 13px 18px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--text, #2A1F18); background: transparent; color: var(--text, #2A1F18);
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.cc-btn:hover { background: var(--pisek, #F2EBDF); }
.cc-btn-p { background: var(--akcent, #C2452A); border-color: var(--akcent, #C2452A); color: #fff; }
.cc-btn-p:hover { background: var(--akcent-h, #A6371F); border-color: var(--akcent-h, #A6371F); }
.cc-btn-tichy { border-color: transparent; text-decoration: underline; text-underline-offset: 3px; padding-left: 8px; padding-right: 8px; }
.cc-btn-tichy:hover { background: transparent; text-decoration-thickness: 2px; }
.cc-btn:focus-visible { outline: 2px solid var(--akcent, #C2452A); outline-offset: 2px; }

.cc-zavoj { position: fixed; inset: 0; z-index: 80; background: rgba(42, 31, 24, .35); }
.cc-panel {
  position: fixed; z-index: 81; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: min(560px, calc(100vw - 32px)); max-height: calc(100vh - 32px); overflow: auto;
  background: var(--bg, #FBF8F2); color: var(--text, #2A1F18);
  border: 1px solid var(--linka, #E4DCCF); border-radius: 8px;
  box-shadow: 0 24px 60px rgba(42, 31, 24, .18);
  font-family: Figtree, system-ui, sans-serif;
}
.cc-form { padding: 28px; }
.cc-form h2 { font-family: "Bricolage Grotesque",sans-serif; font-weight:800; font-size: 1.5rem; margin: 0 0 8px; }
.cc-uvod { margin: 0 0 16px; color: var(--text2, #5E5148); font-size: .92rem; line-height: 1.5; }
.cc-volba {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 16px 0; border-top: 1px solid var(--linka, #E4DCCF); cursor: pointer;
}
div.cc-volba { cursor: default; }
.cc-popis strong { display: block; font-weight: 600; margin-bottom: 2px; }
.cc-popis span { display: block; font-size: .87rem; line-height: 1.45; color: var(--text2, #5E5148); }
.cc-vzdy { flex: none; font-size: .8rem; font-weight: 600; color: var(--zelena, #3F6B3A); }

/* přepínač */
.cc-prepinac {
  appearance: none; -webkit-appearance: none; flex: none; margin: 0;
  width: 44px; height: 26px; border-radius: 13px; position: relative; cursor: pointer;
  background: var(--linka2, #D6CCBD); transition: background-color .2s ease;
}
.cc-prepinac::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); transition: transform .2s ease;
}
.cc-prepinac:checked { background: var(--zelena, #3F6B3A); }
.cc-prepinac:checked::after { transform: translateX(18px); }
.cc-prepinac:focus-visible { outline: 2px solid var(--akcent, #C2452A); outline-offset: 2px; }

.cc-panel-akce { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; padding-top: 18px; border-top: 1px solid var(--linka, #E4DCCF); }

@media (max-width: 760px) {
  .cc-in { padding: 26px 20px 20px; border-radius: 16px; }
  .cc-pes { width: 160px; height: 114px; }
  .cc-text strong { font-size: 1.35rem; }
  .cc-form { padding: 22px 18px; }
  .cc-panel-akce .cc-btn { flex: 1 1 auto; }
}
@media (prefers-reduced-motion: no-preference) {
  .cc-lista:not([hidden]) .cc-in { animation: cc-vyskoceni .45s cubic-bezier(.2, .9, .3, 1.15); }
  @keyframes cc-vyskoceni { from { opacity: 0; transform: translateY(24px) scale(.94); } to { opacity: 1; transform: none; } }
  .cc-pes .cc-susenka { animation: cc-houpani 2.6s ease-in-out infinite; }
  @keyframes cc-houpani { 0%, 100% { transform: rotate(-8deg); } 50% { transform: rotate(8deg); } }
  .cc-pes .cc-hlava { animation: cc-naklon 4s ease-in-out infinite; transform-origin: 100px 110px; }
  @keyframes cc-naklon { 0%, 100% { transform: rotate(-3deg); } 50% { transform: rotate(3deg); } }
  .cc-pes .cc-bublina { animation: cc-vyskoceni .5s .35s cubic-bezier(.2, .9, .3, 1.3) both; }
}
@media print { .cc-lista, .cc-panel, .cc-zavoj { display: none !important; } }

/* Formulář newsletteru – jen funkční stavy; vzhled pásu v patičce řeší style.css (.newsletter) */
.newsletter-skryte { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.newsletter-zprava { margin: 10px 0 0; font-size: .9rem; line-height: 1.45; }
.newsletter-zprava.ok { color: var(--zelena, #3F6B3A); }
.newsletter-zprava.chyba { color: var(--akcent, #C2452A); }
.newsletter-souhlas { display: flex; gap: 8px; align-items: flex-start; font-size: .82rem; line-height: 1.45; color: var(--text2, #5E5148); }
.newsletter-souhlas input { margin-top: 3px; flex: none; }
.newsletter-souhlas a { color: inherit; }

/* Stránky potvrzení / odhlášení newsletteru */
.nl-stranka { padding: 72px 0 96px; max-width: 640px; }
.nl-stranka h1 { margin: 0 0 14px; }
.nl-stranka p { color: var(--text2, #5E5148); line-height: 1.6; }
.nl-kod {
  display: inline-flex; align-items: center; gap: 14px; margin: 18px 0 8px; padding: 14px 20px;
  border: 1px dashed var(--text, #2A1F18); border-radius: 6px; background: var(--povrch, #fff);
}
.nl-kod strong { font-size: 1.35rem; letter-spacing: .08em; font-variant-numeric: tabular-nums; }
.nl-akce { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 24px; }

/* Formulář pro odstoupení od smlouvy (stránka /odstoupeni-od-smlouvy) */
.formular-odstoupeni { width: 100%; border-collapse: collapse; margin: 12px 0; }
.formular-odstoupeni th, .formular-odstoupeni td { text-align: left; vertical-align: top; padding: 12px 10px; border-bottom: 1px solid var(--linka, #E4DCCF); }
.formular-odstoupeni th { width: 34%; font-weight: 600; }
.formular-odstoupeni td { color: var(--text2, #5E5148); word-break: break-word; }
mark { background: #FBE7A1; padding: 0 3px; border-radius: 2px; }
@media (max-width: 600px) { .formular-odstoupeni th, .formular-odstoupeni td { display: block; width: auto; padding: 6px 0; } .formular-odstoupeni th { border-bottom: 0; padding-top: 14px; } }
