.ts-cookie-root,
.ts-cookie-root * {
  box-sizing: border-box;
}

.ts-cookie-root {
  position: fixed;
  left: 18px;
  bottom: 18px;
  z-index: 10000;
  width: min(980px, calc(100vw - 36px));
  color: #f6f2e9;
  font-family: inherit;
  opacity: 0;
  transform: translateY(18px);
  pointer-events: none;
  transition: opacity .26s ease, transform .26s ease;
}

.ts-cookie-root.is-visible {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.ts-cookie-banner,
.ts-cookie-modal {
  background: rgba(20, 34, 23, .94);
  border: 1px solid rgba(184, 216, 165, .18);
  box-shadow: 0 28px 80px -34px rgba(0, 0, 0, .78), inset 0 1px 0 rgba(255, 255, 255, .08);
  backdrop-filter: blur(20px) saturate(1.18);
  -webkit-backdrop-filter: blur(20px) saturate(1.18);
}

.ts-cookie-banner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 24px;
  align-items: center;
  padding: 24px 56px 24px 28px;
}

.ts-cookie-title {
  margin: 0 0 8px;
  font-size: 17px;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -.01em;
}

.ts-cookie-copy {
  margin: 0;
  max-width: 74ch;
  color: rgba(246, 242, 233, .84);
  font-size: 13.5px;
  line-height: 1.62;
}

.ts-cookie-copy a,
.ts-cookie-modal a {
  color: #d9edc6;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ts-cookie-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

.ts-cookie-btn {
  min-height: 42px;
  border: 1px solid rgba(246, 242, 233, .75);
  background: transparent;
  color: #f6f2e9;
  padding: 0 18px;
  border-radius: 2px;
  font: inherit;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .16s ease, border-color .16s ease, color .16s ease, transform .16s ease;
}

.ts-cookie-btn:hover,
.ts-cookie-btn:focus-visible {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, .08);
  outline: none;
}

.ts-cookie-btn.primary {
  border-color: rgba(184, 216, 165, .2);
  background: rgba(86, 111, 70, .95);
  color: #fbf8ef;
}

.ts-cookie-btn.primary:hover,
.ts-cookie-btn.primary:focus-visible {
  background: #668155;
}

.ts-cookie-btn.muted {
  color: rgba(246, 242, 233, .86);
  border-color: rgba(246, 242, 233, .36);
}

.ts-cookie-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 30px;
  height: 30px;
  border: 0;
  background: transparent;
  color: rgba(246, 242, 233, .78);
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
}

.ts-cookie-close:hover,
.ts-cookie-close:focus-visible {
  color: #fff;
  outline: none;
}

.ts-cookie-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(3, 6, 4, .54);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
}

.ts-cookie-backdrop.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.ts-cookie-modal {
  position: fixed;
  left: 50%;
  top: 50%;
  z-index: 10001;
  width: min(620px, calc(100vw - 28px));
  max-height: min(720px, calc(100svh - 28px));
  overflow: auto;
  padding: 30px;
  transform: translate(-50%, calc(-50% + 14px));
  color: #f6f2e9;
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s ease, transform .22s ease;
}

.ts-cookie-modal.is-visible {
  opacity: 1;
  transform: translate(-50%, -50%);
  pointer-events: auto;
}

.ts-cookie-modal h2 {
  margin: 0 0 10px;
  color: #f6f2e9;
  font-size: 24px;
  line-height: 1.15;
  letter-spacing: -.02em;
}

.ts-cookie-modal p {
  margin: 0;
  color: rgba(246, 242, 233, .78);
  line-height: 1.65;
  font-size: 14px;
}

.ts-cookie-groups {
  display: grid;
  gap: 12px;
  margin: 22px 0;
}

.ts-cookie-group {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 16px;
  border: 1px solid rgba(246, 242, 233, .12);
  background: rgba(255, 255, 255, .035);
}

.ts-cookie-group h3 {
  margin: 0 0 4px;
  color: #fff;
  font-size: 15px;
}

.ts-cookie-always {
  color: #d9edc6;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.ts-cookie-switch {
  position: relative;
  display: inline-flex;
  width: 54px;
  height: 30px;
}

.ts-cookie-switch input {
  position: absolute;
  opacity: 0;
  inset: 0;
}

.ts-cookie-slider {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .18);
  cursor: pointer;
  transition: background .18s ease;
}

.ts-cookie-slider::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #f6f2e9;
  transition: transform .18s ease;
}

.ts-cookie-switch input:checked + .ts-cookie-slider {
  background: rgba(86, 111, 70, .96);
}

.ts-cookie-switch input:checked + .ts-cookie-slider::after {
  transform: translateX(24px);
}

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

@media (max-width: 820px) {
  .ts-cookie-root {
    left: 12px;
    right: 12px;
    bottom: 12px;
    width: auto;
  }

  .ts-cookie-banner {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 22px;
  }

  .ts-cookie-actions {
    display: grid;
    grid-template-columns: 1fr;
    white-space: normal;
  }

  .ts-cookie-btn {
    width: 100%;
  }

  .ts-cookie-close {
    top: 10px;
    right: 10px;
  }

  .ts-cookie-modal {
    padding: 24px 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ts-cookie-root,
  .ts-cookie-backdrop,
  .ts-cookie-modal,
  .ts-cookie-btn,
  .ts-cookie-slider,
  .ts-cookie-slider::after {
    transition: none;
  }
}
