:root {
  --quat-cookie-yellow: #ffd400;
  --quat-cookie-ink: #111;
  --quat-cookie-muted: #5d6468;
  --quat-cookie-surface: #f8f8f6;
  --quat-cookie-line: rgba(17, 17, 17, .12);
}

.quat-cookie-layer[hidden],
.quat-cookie-modal[hidden] {
  display: none !important;
}

.quat-cookie-layer {
  position: fixed;
  inset: auto 20px 20px;
  z-index: 999998;
  display: flex;
  justify-content: center;
  pointer-events: none;
}

.quat-cookie-banner {
  width: min(1120px, 100%);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 42px;
  align-items: end;
  padding: 27px 28px;
  border: 1px solid var(--quat-cookie-line);
  border-radius: 18px;
  background: rgba(248, 248, 246, .98);
  box-shadow: 0 24px 70px rgba(21, 28, 32, .2);
  color: var(--quat-cookie-ink);
  pointer-events: auto;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.quat-cookie-copy {
  max-width: 680px;
}

.quat-cookie-kicker {
  margin: 0 0 8px !important;
  color: #676e72 !important;
  font: 700 10px/1.2 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace !important;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.quat-cookie-copy h2,
.quat-cookie-panel h2 {
  margin: 0 !important;
  color: var(--quat-cookie-ink) !important;
  font: 600 clamp(23px, 2.3vw, 31px)/1.08 Arial, Helvetica, sans-serif !important;
  letter-spacing: -.035em;
}

.quat-cookie-copy > p:not(.quat-cookie-kicker),
.quat-cookie-panel > p {
  max-width: 66ch;
  margin: 10px 0 0 !important;
  color: var(--quat-cookie-muted) !important;
  font: 400 13px/1.55 Arial, Helvetica, sans-serif !important;
}

.quat-cookie-copy a {
  display: inline-block;
  margin-top: 10px;
  color: #303538 !important;
  font: 650 12px/1.4 Arial, Helvetica, sans-serif !important;
  text-underline-offset: 4px;
}

.quat-cookie-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(150px, 1fr));
  gap: 9px;
  min-width: 346px;
}

.quat-cookie-button,
.quat-cookie-customize {
  min-height: 46px;
  border: 1px solid var(--quat-cookie-line);
  border-radius: 11px;
  background: #fff;
  color: var(--quat-cookie-ink);
  font: 700 12px/1.2 Arial, Helvetica, sans-serif;
  cursor: pointer;
  transition: transform .16s ease, background-color .16s ease, border-color .16s ease;
}

.quat-cookie-button:hover,
.quat-cookie-customize:hover {
  border-color: rgba(17, 17, 17, .24);
  background: #efefec;
}

.quat-cookie-button:active,
.quat-cookie-customize:active {
  transform: translateY(1px);
}

.quat-cookie-button-primary {
  border-color: var(--quat-cookie-yellow);
  background: var(--quat-cookie-yellow);
}

.quat-cookie-button-primary:hover {
  border-color: #e8c100;
  background: #e8c100;
}

.quat-cookie-customize {
  grid-column: 1 / -1;
  min-height: 34px;
  border: 0;
  background: transparent;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.quat-cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: grid;
  place-items: center;
  padding: 20px;
}

.quat-cookie-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: rgba(15, 19, 22, .52);
  cursor: default;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.quat-cookie-panel {
  position: relative;
  width: min(620px, 100%);
  max-height: calc(100dvh - 40px);
  overflow: auto;
  padding: 30px;
  border: 1px solid var(--quat-cookie-line);
  border-radius: 20px;
  background: var(--quat-cookie-surface);
  box-shadow: 0 28px 90px rgba(0, 0, 0, .26);
  color: var(--quat-cookie-ink);
}

.quat-cookie-panel header {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  justify-content: space-between;
}

.quat-cookie-close {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border: 1px solid var(--quat-cookie-line);
  border-radius: 50%;
  background: #fff;
  color: #111;
  font: 300 25px/1 Arial, sans-serif;
  cursor: pointer;
}

.quat-cookie-options {
  margin-top: 24px;
  border-top: 1px solid var(--quat-cookie-line);
}

.quat-cookie-option {
  min-height: 78px;
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--quat-cookie-line);
  cursor: pointer;
}

.quat-cookie-option > div {
  display: grid;
  gap: 5px;
}

.quat-cookie-option strong {
  font: 700 14px/1.25 Arial, Helvetica, sans-serif;
}

.quat-cookie-option span {
  color: var(--quat-cookie-muted);
  font: 400 12px/1.45 Arial, Helvetica, sans-serif;
}

.quat-cookie-required {
  flex: 0 0 auto;
  color: #4e5559 !important;
  font-weight: 650 !important;
}

.quat-cookie-switch {
  position: relative;
  width: 44px;
  height: 25px;
  flex: 0 0 44px;
}

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

.quat-cookie-switch i {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(17, 17, 17, .16);
  border-radius: 999px;
  background: #d9dcdd;
  transition: background-color .18s ease;
}

.quat-cookie-switch i::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .2);
  transition: transform .18s ease;
}

.quat-cookie-switch input:checked + i {
  border-color: #111;
  background: #111;
}

.quat-cookie-switch input:checked + i::after {
  transform: translateX(19px);
  background: var(--quat-cookie-yellow);
}

.quat-cookie-panel-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 24px;
}

.quat-cookie-settings-link {
  border: 0;
  padding: 0;
  background: none;
  color: #4f575c;
  font: inherit;
  cursor: pointer;
  text-align: left;
}

.quat-cookie-settings-link:hover {
  color: #111;
  text-decoration: underline;
  text-decoration-color: #8a7300;
  text-underline-offset: 4px;
}

.quat-footer-column .quat-cookie-settings-link {
  color: #4e565b;
  font-size: 13px;
  font-weight: 610;
  line-height: 1.45;
}

.quat-footer-bottom .quat-cookie-settings-link {
  color: #4f575c;
  font-size: 10px;
  font-weight: 650;
}

html.quat-cookie-open {
  overflow: hidden;
}

@media (max-width: 760px) {
  .quat-cookie-layer {
    inset: auto 10px max(10px, env(safe-area-inset-bottom));
  }

  .quat-cookie-banner {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 22px;
    border-radius: 17px;
  }

  .quat-cookie-actions {
    min-width: 0;
  }

  .quat-cookie-panel {
    padding: 24px 20px;
    border-radius: 18px;
  }

  .quat-footer-column .quat-cookie-settings-link {
    width: 100%;
    min-height: 44px;
    display: flex;
    align-items: center;
    font-size: 14px;
  }
}

@media (max-width: 430px) {
  .quat-cookie-actions,
  .quat-cookie-panel-actions {
    grid-template-columns: 1fr;
  }

  .quat-cookie-customize {
    grid-column: auto;
  }

  .quat-cookie-panel-actions .quat-cookie-button-primary {
    grid-row: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .quat-cookie-button,
  .quat-cookie-customize,
  .quat-cookie-switch i,
  .quat-cookie-switch i::after {
    transition: none;
  }
}
