:root {
  --wc-black: #080808;
  --wc-white: #ffffff;
  --wc-lime: #b8f500;
  --wc-lime-deep: #497400;
  --wc-muted: #68686d;
  --wc-line: rgba(8, 8, 8, 0.13);
  --wc-font:
    -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Helvetica, Arial,
    sans-serif;
}

body.wc-lock {
  overflow: hidden;
}

.wc-layer {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(8, 8, 8, 0.28);
  opacity: 0;
  backdrop-filter: blur(16px) saturate(125%);
  -webkit-backdrop-filter: blur(16px) saturate(125%);
  transition: opacity 260ms ease;
}

.wc-layer[hidden] {
  display: none;
}

.wc-layer.is-open {
  opacity: 1;
}

.wc-layer.is-policy-page {
  place-items: end center;
  background: transparent;
  pointer-events: none;
}

.wc-layer.is-policy-page .wc-dialog {
  pointer-events: auto;
}

.wc-dialog {
  position: relative;
  width: min(880px, 100%);
  max-height: min(680px, calc(100svh - 48px));
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow:
    0 34px 100px rgba(8, 8, 8, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.96);
  color: var(--wc-black);
  font-family: var(--wc-font);
  opacity: 0;
  transform: translateY(24px) scale(0.98);
  backdrop-filter: blur(36px) saturate(165%);
  -webkit-backdrop-filter: blur(36px) saturate(165%);
  transition:
    opacity 340ms ease,
    transform 440ms cubic-bezier(0.2, 0.7, 0, 1);
}

.wc-layer.is-open .wc-dialog {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.wc-dialog[hidden] {
  display: none;
}

.wc-main {
  min-width: 0;
  padding: 48px;
}

.wc-kicker {
  display: block;
  margin-bottom: 18px;
  color: var(--wc-lime-deep);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.wc-title {
  max-width: 540px;
  margin: 0 0 20px;
  font-size: clamp(42px, 5vw, 62px);
  font-weight: 600;
  line-height: 0.94;
}

.wc-title span {
  display: block;
  color: var(--wc-lime-deep);
}

.wc-copy {
  max-width: 600px;
  margin: 0;
  color: var(--wc-muted);
  font-size: 15px;
  line-height: 1.56;
}

.wc-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 30px;
}

.wc-actions.is-technical {
  grid-template-columns: minmax(0, 1fr) auto;
}

.wc-button,
.wc-text-button,
[data-cookie-settings] {
  font: inherit;
  letter-spacing: 0;
}

.wc-button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid var(--wc-black);
  border-radius: 7px;
  cursor: pointer;
  background: var(--wc-black);
  color: var(--wc-white);
  font-size: 13px;
  font-weight: 650;
  transition:
    transform 180ms ease,
    background 180ms ease,
    color 180ms ease;
}

.wc-button:hover {
  transform: translateY(-2px);
  background: var(--wc-lime);
  color: var(--wc-black);
}

.wc-button:focus-visible,
.wc-text-button:focus-visible,
.wc-close:focus-visible,
.wc-switch input:focus-visible + span,
[data-cookie-settings]:focus-visible {
  outline: 3px solid rgba(73, 116, 0, 0.28);
  outline-offset: 3px;
}

.wc-button--save {
  width: 100%;
  margin-top: 24px;
}

.wc-text-button {
  min-height: 50px;
  padding: 0 8px;
  border: 0;
  cursor: pointer;
  background: transparent;
  color: var(--wc-black);
  font-size: 13px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 6px;
}

.wc-legal {
  margin: 20px 0 0;
  color: #85858a;
  font-size: 11px;
  line-height: 1.5;
}

.wc-legal a {
  color: var(--wc-black);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.wc-side {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: space-between;
  padding: 32px;
  background: #eef8dd;
}

.wc-side-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(73, 116, 0, 0.25);
  border-radius: 50%;
  color: var(--wc-lime-deep);
  font-size: 16px;
  font-weight: 700;
}

.wc-side-copy {
  margin: 80px 0 0;
  font-size: 25px;
  font-weight: 600;
  line-height: 1.05;
}

.wc-side-status {
  display: grid;
  gap: 11px;
  margin-top: 30px;
  padding-top: 18px;
  border-top: 1px solid rgba(73, 116, 0, 0.2);
  color: #52623f;
  font-size: 11px;
}

.wc-side-status span {
  display: flex;
  align-items: center;
  gap: 8px;
}

.wc-side-status span::before {
  content: "";
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--wc-lime-deep);
}

.wc-settings-dialog {
  display: block;
  width: min(760px, 100%);
  overflow-y: auto;
}

.wc-settings-dialog .wc-main {
  padding: 44px 48px 38px;
}

.wc-settings-dialog .wc-title {
  max-width: 660px;
  font-size: clamp(38px, 4.5vw, 54px);
}

.wc-close {
  position: absolute;
  z-index: 2;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--wc-line);
  border-radius: 50%;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.72);
  color: var(--wc-black);
  font-size: 17px;
  line-height: 1;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transition:
    transform 180ms ease,
    background 180ms ease;
}

.wc-close:hover {
  transform: rotate(7deg);
  background: var(--wc-lime);
}

.wc-preferences {
  margin-top: 30px;
  border-bottom: 1px solid var(--wc-line);
}

.wc-preference {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
  padding: 20px 0;
  border-top: 1px solid var(--wc-line);
}

.wc-preference h3 {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 650;
}

.wc-preference p {
  max-width: 570px;
  margin: 0;
  color: var(--wc-muted);
  font-size: 13px;
  line-height: 1.48;
}

.wc-preference small {
  display: block;
  margin-top: 7px;
  color: var(--wc-lime-deep);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.wc-switch {
  position: relative;
  display: inline-flex;
}

.wc-switch input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

.wc-switch span {
  position: relative;
  width: 48px;
  height: 28px;
  display: block;
  border: 1px solid rgba(8, 8, 8, 0.18);
  border-radius: 14px;
  cursor: pointer;
  background: #d9d9dc;
  transition: background 180ms ease;
}

.wc-switch span::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--wc-white);
  box-shadow: 0 2px 8px rgba(8, 8, 8, 0.18);
  transition: transform 180ms ease;
}

.wc-switch input:checked + span {
  background: var(--wc-lime-deep);
}

.wc-switch input:checked + span::after {
  transform: translateX(20px);
}

.wc-switch input:disabled + span {
  cursor: not-allowed;
  opacity: 0.6;
}

[data-cookie-settings] {
  display: inline;
  padding: 0;
  border: 0;
  cursor: pointer;
  background: transparent;
  color: inherit;
  font-size: inherit;
  text-align: left;
}

[data-cookie-settings]:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.cookie-legal-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  align-items: center;
  justify-content: space-between;
  padding: 24px 5vw;
  border-top: 1px solid rgba(255, 255, 255, 0.13);
  background: #080808;
  color: rgba(255, 255, 255, 0.58);
  font-family: var(--wc-font);
  font-size: 12px;
}

.cookie-legal-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
}

.cookie-legal-footer a:hover,
.cookie-legal-footer button:hover {
  color: var(--wc-white);
}

@media (max-width: 760px) {
  .wc-layer {
    align-items: end;
    padding: 12px;
  }

  .wc-dialog {
    max-height: calc(100svh - 24px);
    grid-template-columns: 1fr;
  }

  .wc-main {
    padding: 34px 24px 26px;
  }

  .wc-title {
    max-width: 420px;
    font-size: clamp(38px, 11vw, 52px);
  }

  .wc-side {
    min-height: 116px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 18px;
    align-items: end;
    padding: 22px 24px;
  }

  .wc-side-mark {
    display: none;
  }

  .wc-side-copy {
    max-width: 260px;
    margin: 0;
    font-size: 20px;
  }

  .wc-side-status {
    margin: 0;
    padding: 0;
    border: 0;
  }

  .wc-settings-dialog .wc-main {
    padding: 34px 24px 26px;
  }
}

@media (max-width: 520px) {
  .wc-main {
    padding-top: 30px;
  }

  .wc-kicker {
    margin-bottom: 14px;
  }

  .wc-title {
    margin-bottom: 16px;
    font-size: 39px;
  }

  .wc-copy {
    font-size: 14px;
  }

  .wc-actions,
  .wc-actions.is-technical {
    grid-template-columns: 1fr;
    margin-top: 22px;
  }

  .wc-text-button {
    min-height: 40px;
  }

  .wc-side {
    min-height: 100px;
  }

  .wc-side-status {
    display: none;
  }

  .wc-preferences {
    margin-top: 22px;
  }

  .wc-preference {
    padding: 17px 0;
  }

  .cookie-legal-footer {
    padding: 22px 18px 96px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wc-layer,
  .wc-dialog,
  .wc-button,
  .wc-close,
  .wc-switch span,
  .wc-switch span::after {
    transition: none;
  }
}
