/* Cookie consent – lightweight, isolated styles */
.cookie-consent[hidden],
.cookie-settings[hidden] { display: none !important; }

.cookie-consent {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 99999;
  padding: 16px;
  background: rgba(18,18,18,.98);
  color: #fff;
  box-shadow: 0 -8px 32px rgba(0,0,0,.22);
}

.cookie-consent__inner {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  gap: 20px 28px;
  align-items: center;
}

.cookie-consent__title {
  margin: 0 0 6px;
  color: #fff;
  font: 700 18px/1.25 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
}

.cookie-consent__text {
  margin: 0;
  max-width: 760px;
  color: #e8e3dc;
  font: 400 14px/1.55 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
}

.cookie-consent__text a,
.cookie-settings a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cookie-consent__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.cookie-consent__button {
  min-height: 44px;
  border: 1px solid #fff;
  padding: 10px 16px;
  cursor: pointer;
  font: 700 13px/1 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  text-transform: uppercase;
  letter-spacing: .03em;
  background: #fff;
  color: #171717;
}

.cookie-consent__button--secondary {
  background: transparent;
  color: #fff;
}

.cookie-consent__button--accent {
  border-color: #b8743d;
  background: #b8743d;
  color: #fff;
}

.cookie-settings {
  position: fixed;
  inset: 0;
  z-index: 100000;
  background: rgba(0,0,0,.58);
  padding: 20px;
  overflow: auto;
}

.cookie-settings__dialog {
  width: min(620px, 100%);
  margin: max(6vh, 24px) auto;
  background: #f6f2eb;
  color: #171717;
  box-shadow: 0 24px 80px rgba(0,0,0,.35);
  padding: 28px;
}

.cookie-settings__dialog h2 {
  margin: 0 0 10px;
  font-size: 28px;
  line-height: 1.15;
}

.cookie-settings__dialog > p {
  margin: 0 0 22px;
  line-height: 1.6;
}

.cookie-settings__row {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  gap: 16px;
  padding: 18px 0;
  border-top: 1px solid rgba(0,0,0,.15);
}

.cookie-settings__row strong {
  display: block;
  margin-bottom: 5px;
}

.cookie-settings__row p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: #4c4944;
}

.cookie-settings__state {
  align-self: start;
  white-space: nowrap;
  font: 700 12px/1.2 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.cookie-switch {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 26px;
}

.cookie-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.cookie-switch span {
  position: absolute;
  inset: 0;
  cursor: pointer;
  background: #9b9893;
  transition: .2s;
  border-radius: 30px;
}

.cookie-switch span::before {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  left: 3px;
  top: 3px;
  background: #fff;
  border-radius: 50%;
  transition: .2s;
}

.cookie-switch input:checked + span {
  background: #b8743d;
}

.cookie-switch input:checked + span::before {
  transform: translateX(22px);
}

.cookie-settings__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 24px;
}

.cookie-settings-link {
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 760px) {
  .cookie-consent { padding: 14px; }
  .cookie-consent__inner { grid-template-columns: 1fr; }
  .cookie-consent__actions { justify-content: stretch; }
  .cookie-consent__button { flex: 1 1 140px; }
  .cookie-settings__dialog { padding: 22px 18px; }
}
