/* Isolated from page/form styles: this component also appears on auth pages. */
#cookie-notice {
  box-sizing: border-box;
  position: fixed;
  z-index: 50;
  right: max(20px, env(safe-area-inset-right));
  bottom: max(20px, env(safe-area-inset-bottom));
  width: min(420px, calc(100% - 40px));
  max-height: calc(100dvh - 40px);
  overflow: auto;
  margin: 0;
  padding: 20px;
  border: 1px solid #dcded6;
  border-radius: 6px;
  background: #fff;
  color: #242b29;
  box-shadow: 0 4px 20px #242b2914;
  font: 14px/1.5 Arial, Helvetica, sans-serif;
  text-align: left;
}
#cookie-notice[hidden], #ts-cookie-settings[hidden] {
  display: none !important;
}
#cookie-notice h2 {
  margin: 0 0 8px;
  color: #242b29;
  font: 600 16px/1.3 Arial, Helvetica, sans-serif;
  letter-spacing: 0;
}
#cookie-notice p {
  margin: 0;
  color: #626b65;
  font: inherit;
}
#cookie-notice a {
  color: #205e4c;
  text-decoration: underline;
  text-underline-offset: 2px;
}
#cookie-notice .cookie-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}
#cookie-notice button {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 0;
  min-height: 44px;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid #aeb7ae;
  border-radius: 4px;
  background: #fff;
  color: #242b29;
  box-shadow: none;
  font: 600 14px/1.3 Arial, Helvetica, sans-serif;
  cursor: pointer;
}
#cookie-notice button:hover {
  background: #f4f4ee;
}
#cookie-notice .accept {
  border-color: #205e4c;
  background: #205e4c;
  color: #fff;
}
#cookie-notice .accept:hover {
  border-color: #174b3c;
  background: #174b3c;
}
#cookie-notice :focus-visible, #ts-cookie-settings:focus-visible {
  outline: 3px solid #b27b28;
  outline-offset: 3px;
}
/* Keep the permanent control in the document, clear of content and form actions. */
#ts-cookie-settings {
  display: block;
  width: fit-content;
  max-width: calc(100% - 32px);
  min-height: 44px;
  margin: 0 auto 16px;
  padding: 10px 8px;
  border: 0;
  border-radius: 3px;
  background: transparent;
  color: #626b65;
  box-shadow: none;
  font: 12px/1.5 Arial, Helvetica, sans-serif;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
#ts-cookie-settings:hover {
  color: #205e4c;
}
@media (max-width: 600px) {
  #cookie-notice {
    right: max(16px, env(safe-area-inset-right));
    bottom: max(16px, env(safe-area-inset-bottom));
    width: calc(100% - 32px);
    max-height: calc(100dvh - 32px);
    padding: 16px;
    font-size: 13px;
  }
}
#cookie-purposes[hidden], #cookie-error[hidden] { display:none !important; }
#cookie-customize { margin-top:10px !important; }
#cookie-purposes { border-top:1px solid #dcded6; margin-top:12px; padding-top:12px; }
#cookie-purposes label { display:flex; align-items:flex-start; gap:10px; margin:12px 0; font:14px/1.4 Arial, sans-serif; color:#242b29; }
#cookie-purposes input { appearance:auto; width:18px; min-width:18px; height:18px; margin:1px 0; padding:0; accent-color:#205e4c; }
#cookie-error { margin-top:12px !important; }
