.cookie-consent {
  position: fixed;
  left: 50%;
  bottom: 1.5rem;
  z-index: 100000;
  box-sizing: border-box;
  width: calc(100% - 2.5rem);
  max-width: 1180px;
  max-height: calc(100vh - 2rem);
  overflow: auto;
  background: #fff;
  color: #4a4038;
  border: 1px solid #c19a6b;
  box-shadow: 0 12px 40px rgba(92, 64, 51, 0.18);
  opacity: 0;
  transform: translateX(-50%) translateY(12px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
  font-family: Roboto, Helvetica, Arial, sans-serif;
}

.cookie-consent *,
.cookie-consent *::before,
.cookie-consent *::after {
  box-sizing: border-box;
}

.cookie-consent.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

.cookie-consent__inner {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.4fr) 13.75rem;
  align-items: stretch;
  gap: 0;
  min-width: 0;
}

.cookie-consent__copy {
  min-width: 0;
  padding: 1.45rem 1.6rem 1.4rem;
}

.cookie-consent__title {
  font-weight: 700;
  color: #5c4033;
  margin: 0 0 0.65rem;
  font-size: 1.2rem;
  letter-spacing: 0.02em;
  line-height: 1.3;
}

.cookie-consent__text {
  font-size: 0.65em;
  color: #5a524c;
  line-height: 1.6;
  margin: 0;
  overflow-wrap: break-word;
}

.cookie-consent__text a {
  color: #5c4033;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.cookie-consent__text a:hover {
  color: #8a2be2;
}

.cookie-consent__accordion {
  padding: 0.35rem 1.35rem 0.85rem;
  border-left: 1px solid #e6ddd3;
  border-right: 1px solid #e6ddd3;
  min-width: 0;
}

.cookie-consent__cat {
  border-bottom: 1px solid #e6ddd3;
}

.cookie-consent__cat:last-child {
  border-bottom: 0;
}

.cookie-consent__cat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 0;
}

.cookie-consent__cat-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  color: #5c4033;
  font: inherit;
  font-weight: 700;
  font-size: 0.98rem;
}

.cookie-consent__cat-title {
  text-align: left;
  overflow-wrap: break-word;
}

.cookie-consent__chevron {
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.cookie-consent__cat.is-open .cookie-consent__chevron {
  transform: rotate(180deg);
}

.cookie-consent__switch-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  flex-shrink: 0;
}

.cookie-consent__switch-label {
  font-size: 0.85rem;
  color: #6b625b;
  min-width: 3.6rem;
  text-align: right;
}

.cookie-consent__switch {
  position: relative;
  width: 42px;
  height: 24px;
  border: 0;
  border-radius: 999px;
  background: #cfc6bd;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}

.cookie-consent__switch::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18);
  transition: transform 0.18s ease;
}

.cookie-consent__switch.is-on {
  background: #5c4033;
}

.cookie-consent__switch.is-on::after {
  transform: translateX(18px);
}

.cookie-consent__switch.is-locked {
  background: #5c4033;
  cursor: default;
  opacity: 0.85;
}

.cookie-consent__cat-body {
  padding: 0 0 1rem;
}

.cookie-consent__cat-desc {
  margin: 0 0 0.9rem;
  font-size: 0.9rem;
  line-height: 1.55;
  color: #5a524c;
}

.cookie-consent__cookie {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.75rem 1rem;
  align-items: start;
  padding: 0.75rem 0 0;
  border-top: 1px solid #f0ebe5;
}

.cookie-consent__cookie-copy strong {
  display: block;
  color: #3f342e;
  font-size: 0.92rem;
  margin-bottom: 0.2rem;
}

.cookie-consent__cookie-copy p {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.5;
  color: #6b625b;
}

.cookie-consent__actions {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 0.55rem;
  padding: 1.45rem 1.2rem 1.4rem;
}

.cookie-consent__btn {
  width: 100%;
  min-width: 0;
  text-align: center;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 0.7rem 0.85rem;
  border: 0;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.cookie-consent__btn--primary {
  background-color: #5c4033;
  color: #fff;
}

.cookie-consent__btn--primary:hover,
.cookie-consent__btn--primary:focus {
  background-color: #8a2be2;
  color: #fff;
}

.cookie-consent__btn--outline {
  background: transparent;
  color: #5c4033;
  border: 1px solid #5c4033;
}

.cookie-consent__btn--outline:hover,
.cookie-consent__btn--outline:focus {
  background-color: #5c4033;
  color: #fff;
}

.cookie-consent__btn--ghost {
  background: #f4efe9;
  color: #5c4033;
  border: 1px solid #e0d5c8;
}

.cookie-consent__btn--ghost:hover,
.cookie-consent__btn--ghost:focus {
  background: #ebe3d9;
}

.cookie-consent__btn:focus-visible,
.cookie-consent__cat-toggle:focus-visible,
.cookie-consent__switch:focus-visible {
  outline: 2px solid #8a2be2;
  outline-offset: 2px;
}

.mt-cookie-settings {
  color: inherit;
  text-decoration: underline;
}

@media (max-width: 959px) {
  .cookie-consent {
    width: calc(100% - 1.5rem);
    bottom: calc(0.75rem + env(safe-area-inset-bottom, 0px));
    max-height: calc(100vh - 1.5rem);
  }

  .cookie-consent__inner {
    grid-template-columns: 1fr;
  }

  .cookie-consent__copy {
    padding: 1.15rem 1.15rem 1rem;
  }

  .cookie-consent__accordion {
    border-left: 0;
    border-right: 0;
    border-top: 1px solid #e6ddd3;
    border-bottom: 1px solid #e6ddd3;
    padding: 0.15rem 1.15rem 0.35rem;
  }

  .cookie-consent__actions {
    padding: 1rem 1.15rem 1.15rem;
  }
}

@media (max-width: 767px) {
  .cookie-consent__switch-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .cookie-consent__cookie {
    grid-template-columns: 1fr;
  }

  .cookie-consent__cookie .cookie-consent__switch-wrap {
    justify-content: flex-end;
  }
}
