/* SiamBazar cookie-модуль — стиль темы «Editorial minimal» (#101010 / #cda746 / Lato) */
.sb-consent {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 900;
  background: #fff;
  border-top: 1px solid #ececec;
  box-shadow: 0 -10px 34px rgba(16, 16, 16, .10);
  color: #101010;
  font: 400 14px/1.55 Lato, "Roboto", -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  transform: translateY(100%);
  transition: transform .28s ease;
  will-change: transform;
}
.sb-consent.is-visible { transform: translateY(0); }
.sb-consent[hidden] { display: none !important; }

.sb-consent__bar {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 14px 16px calc(14px + env(safe-area-inset-bottom, 0px));
}
.sb-consent__text { margin: 0; }
.sb-consent__text a { color: #101010; text-decoration: underline; }

.sb-consent__actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.sb-consent__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 20px;
  border-radius: 8px;
  border: 1px solid #101010;
  background: #101010;
  color: #fff;
  font: 600 14px Lato, "Roboto", sans-serif;
  cursor: pointer;
  transition: opacity .15s ease;
}
.sb-consent__btn:hover { opacity: .85; }
.sb-consent__btn:focus-visible { outline: 2px solid #cda746; outline-offset: 2px; }
.sb-consent__btn--secondary { background: #fff; color: #101010; }
.sb-consent__btn--link {
  height: auto;
  padding: 0 4px;
  border: 0;
  background: none;
  color: #101010;
  text-decoration: underline;
  font-weight: 400;
}

.sb-consent__panel {
  max-width: 1180px;
  margin: 0 auto;
  padding: 18px 16px calc(18px + env(safe-area-inset-bottom, 0px));
}
.sb-consent__panel[hidden] { display: none !important; }
.sb-consent__title { margin: 0 0 12px; font: 700 16px/1.3 Lato, "Roboto", sans-serif; }
.sb-consent__cats {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  border-top: 1px solid #ececec;
}
.sb-consent__cat {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid #ececec;
}
.sb-consent__cat-text { display: grid; gap: 2px; max-width: 640px; }
.sb-consent__cat-text strong { font-weight: 700; font-size: 14px; }
.sb-consent__cat-text span { color: #6f6f6f; font-size: 13px; }

.sb-consent__toggle {
  appearance: none;
  -webkit-appearance: none;
  flex: 0 0 auto;
  width: 42px;
  height: 24px;
  margin: 0;
  border: 0;
  border-radius: 999px;
  background: #dcdcdc;
  position: relative;
  cursor: pointer;
  transition: background .18s ease;
}
.sb-consent__toggle::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(16, 16, 16, .25);
  transition: transform .18s ease;
}
.sb-consent__toggle:checked { background: #cda746; }
.sb-consent__toggle:checked::after { transform: translateX(18px); }
.sb-consent__toggle:disabled { opacity: .55; cursor: default; }
.sb-consent__toggle:focus-visible { outline: 2px solid #cda746; outline-offset: 2px; }

.sb-consent__actions--panel { margin-top: 2px; }

@media (min-width: 761px) {
  .sb-consent__bar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 16px 24px;
  }
  .sb-consent__text { max-width: 640px; }
  .sb-consent__actions { flex: 0 0 auto; }
  .sb-consent__panel { padding: 20px 24px 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .sb-consent { transition: none; }
  .sb-consent * { transition: none !important; }
}

/* Ссылка «Cookie settings» в футере темы */
.t-footer__cookie {
  background: none;
  border: 0;
  padding: 0;
  margin: 0;
  font: inherit;
  color: #9b9b9b;
  text-decoration: underline;
  cursor: pointer;
}
.t-footer__cookie:hover { color: #101010; }
