/* Paticka, cookie lista a modal souhlasu (SiteFooter, CookieConsent). Vlastnik: balik 1B. Pravidla pod .rd. */

/* ---------- paticka ---------- */
.rd.site-footer {
  flex-shrink: 0;
  margin-top: 40px;
  background: var(--navy-dark);
  color: #c9cdd6;
  font-size: 13px;
  line-height: 1.5;
}

.rd .footer-cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr) 1.3fr;
  gap: 30px;
  padding: 46px 0 34px;
}

.rd .footer-col,
.rd .footer-contact {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 9px;
  min-width: 0;
}

.rd .footer-col a,
.rd .footer-contact a {
  color: #c9cdd6;
}

.rd .footer-col a:hover,
.rd .footer-contact a:hover,
.rd .footer-bottom a:hover,
.rd .footer-bottom .footer-link-btn:hover {
  color: #fff;
}

.rd .footer-product {
  display: flex;
  align-self: stretch;
  align-items: flex-start;
  gap: 5px;
  margin-bottom: 6px;
  padding-bottom: 10px;
  border-bottom: 2px solid #3a4459;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
}

.rd .footer-col a.footer-product {
  color: #fff;
}

.rd .footer-product img {
  width: 12px;
  height: 12px;
  margin-top: 1px;
}

.rd .footer-col.fs .footer-product {
  border-color: var(--form-studio-color);
}

.rd .footer-col.stereo .footer-product {
  border-color: var(--stereo-color);
}

.rd .footer-col.enter .footer-product {
  border-color: var(--enter-color);
}

.rd .footer-contact .big {
  font-size: 18px;
  font-weight: 600;
  color: #fff;
}

.rd .footer-contact .muted {
  color: #8d94a5;
  white-space: nowrap;
}

/* SK web ma jen FORM studio: kontakt zustava vpravo jako v CZ */
.rd .footer-cols.sk .footer-contact {
  grid-column: 5;
}

/* stejna mrizka jako .footer-cols: socialni odkazy zacinaji pod sloupcem kontaktu */
.rd .footer-bottom {
  display: grid;
  grid-template-columns: repeat(4, 1fr) 1.3fr;
  align-items: center;
  gap: 14px 30px;
  padding: 18px 0 24px;
  border-top: 1px solid #343e53;
  font-size: 12px;
  color: #8d94a5;
}

.rd .footer-bottom .links {
  grid-column: 2 / 5;
  display: flex;
  align-items: center;
  gap: 8px 20px;
  flex-wrap: wrap;
}

.rd .footer-bottom .links.social {
  grid-column: 5;
}

.rd .footer-bottom .angel {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.rd .footer-bottom .angel svg {
  flex: none;
  color: var(--form-studio-color);
}

.rd .footer-bottom a,
.rd .footer-bottom .footer-link-btn {
  color: #8d94a5;
}

.rd .footer-link-btn {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  cursor: pointer;
}

@media (max-width: 1000px) {
  .rd .footer-cols {
    grid-template-columns: repeat(3, 1fr);
  }

  .rd .footer-cols.sk .footer-contact {
    grid-column: auto;
  }

  .rd .footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
  }
}

@media (max-width: 700px) {
  .rd .footer-cols {
    grid-template-columns: 1fr 1fr;
    gap: 30px 20px;
    padding: 34px 0 28px;
  }

  .rd .footer-contact {
    grid-column: 1 / -1;
  }

  .rd .footer-cols.sk .footer-contact {
    grid-column: 1 / -1;
  }

  .rd .footer-bottom {
    flex-direction: column;
    gap: 10px;
  }
}

/* ---------- cookie lista ---------- */
.rd.cookie-consent {
  font-size: 14px;
  line-height: normal;
}

.rd .cookie-bar {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  z-index: 900;
  width: min(1140px, calc(100% - 24px));
  display: grid;
  grid-template-columns: 46px 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 18px 22px;
  border-radius: var(--radius-xl);
  background: var(--navy-dark);
  color: #cfd3dc;
  box-shadow: 0 20px 50px rgba(15, 20, 32, .35);
  --accent: var(--form-studio-color);
  --accent-text: var(--navy);
  --accent-button: var(--form-studio-color);
}

.rd .cookie-bar .ico {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, currentColor 45%, transparent);
  color: var(--form-studio-color);
}

.rd .cookie-bar b {
  display: block;
  margin-bottom: 2px;
  color: #fff;
  font-size: 15px;
}

.rd .cookie-bar p {
  margin: 0;
  font-size: 13px;
  line-height: 20px;
}

.rd .cookie-bar a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.rd .cookie-bar .btn {
  height: 42px;
  min-width: 0;
  padding: 0 18px;
  font-size: 14px;
}

.rd .cookie-bar .btn.outline {
  background: transparent;
  color: #fff;
  border-color: #4a5470;
}

.rd .cookie-bar .btn.outline:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, .05);
}

/* ---------- modal nastaveni ---------- */
/* nad starymi sticky prvky (main.css z-index 9999) */
.rd .cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 60px 16px 30px;
  background: rgba(15, 20, 32, .55);
  overflow-y: auto;
}

.rd .cookie-modal-box {
  position: relative;
  width: 100%;
  max-width: 560px;
  border-radius: var(--radius-xl);
  background: #fff;
  box-shadow: 0 24px 60px rgba(15, 20, 32, .3);
  animation: rd-cookie-pop .16s ease-out;
}

.rd .cookie-modal-box:focus {
  outline: none;
}

@keyframes rd-cookie-pop {
  from {
    transform: translateY(8px);
    opacity: 0;
  }
}

.rd .cookie-modal-head {
  position: sticky;
  top: 0;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  padding: 18px 22px 10px;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  background: #fff;
}

.rd .cookie-modal-head h2 {
  margin: 0;
  font-size: 18px;
  line-height: 26px;
  font-weight: 600;
  color: var(--navy);
}

.rd .cookie-modal-head p {
  margin: 2px 0 0;
  font-size: 13px;
  line-height: 19px;
  color: var(--body-text);
}

.rd .cookie-modal-close {
  flex: none;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--light-gray-color);
  color: var(--navy);
  font-family: inherit;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.rd .cookie-modal-close:hover {
  background: #e4e6ec;
}

.rd .cookie-modal-body {
  padding: 6px 22px 14px;
  font-size: 13.5px;
  line-height: 21px;
}

.rd .cookie-cat {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px 18px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--light-gray-color);
}

.rd .cookie-cat:last-of-type {
  border-bottom: 0;
}

.rd .cookie-cat b {
  font-size: 14.5px;
  color: var(--navy);
}

.rd .cookie-cat p {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 13px;
  line-height: 20px;
  color: var(--body-text);
}

.rd .cookie-more {
  margin: 12px 0 0;
  font-size: 12.5px;
  line-height: 20px;
  color: var(--muted-text-color);
}

.rd .cookie-more a {
  font-weight: 600;
  color: var(--navy);
}

.rd .cookie-more a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.rd .cookie-modal-foot {
  position: sticky;
  bottom: 0;
  z-index: 3;
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
  padding: 12px 22px 16px;
  border-top: 1px solid var(--light-gray-color);
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
  background: #fff;
}

.rd .cookie-modal-foot .refuse {
  margin-right: auto;
}

/* prepinac (servis.css .switch) */
.rd .cookie-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  color: var(--body-text);
  cursor: pointer;
  user-select: none;
}

.rd .cookie-switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.rd .cookie-switch .track {
  position: relative;
  flex: none;
  width: 36px;
  height: 20px;
  border-radius: 10px;
  background: #cfd3dc;
  transition: background .15s;
}

.rd .cookie-switch .track::after {
  content: "";
  position: absolute;
  left: 2px;
  top: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .2);
  transition: transform .15s;
}

.rd .cookie-switch input:checked + .track {
  background: var(--ok);
}

.rd .cookie-switch input:checked + .track::after {
  transform: translateX(16px);
}

.rd .cookie-switch input:disabled + .track {
  opacity: .5;
}

.rd .cookie-switch input:disabled ~ * {
  cursor: default;
}

.rd .cookie-switch input:focus-visible + .track {
  outline: 2px solid var(--navy);
  outline-offset: 2px;
}

@media (max-width: 1100px) and (min-width: 701px) {
  .rd .cookie-bar {
    grid-template-columns: 46px minmax(0, 1fr);
  }

  .rd .cookie-bar .btn-row {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
  }
}

@media (max-width: 700px) {
  .rd .cookie-bar {
    grid-template-columns: 1fr;
    gap: 12px;
    bottom: 10px;
    padding: 16px;
  }

  .rd .cookie-bar .ico {
    display: none;
  }

  .rd .cookie-bar .btn-row > .btn {
    flex: 1 1 auto;
  }

  .rd .cookie-modal {
    padding: 16px 10px;
  }

  .rd .cookie-modal-head,
  .rd .cookie-modal-body,
  .rd .cookie-modal-foot {
    padding-left: 18px;
    padding-right: 18px;
  }

  .rd .cookie-modal-head {
    padding-top: 16px;
    padding-bottom: 12px;
    box-shadow: 0 1px 0 var(--light-gray-color);
  }

  .rd .cookie-modal-head + .cookie-modal-body {
    padding-top: 4px;
  }

  .rd .cookie-modal-foot {
    padding-bottom: 16px;
  }

  .rd .cookie-modal-foot .btn {
    flex: 1 1 auto;
  }

  .rd .cookie-modal-foot .refuse {
    margin-right: 0;
  }

  .rd .cookie-modal-close {
    width: 40px;
    height: 40px;
  }
}
