/* Shared by the landing and the standalone legal documents. */
body.serge-cookie-banner-visible {
  padding-bottom: var(--serge-cookie-space, 200px);
}
#serge-cookie-ui {
  font-family: Inter, Arial, sans-serif;
  color: #24252b;
}
#serge-cookie-ui [hidden] {
  display: none !important;
}
#serge-cookie-ui h2,
#serge-cookie-ui h3,
#serge-cookie-ui p {
  margin: 0;
}
#serge-cookie-ui h2 {
  font-size: 19px;
  line-height: 1.3;
  letter-spacing: -0.025em;
  font-weight: 650;
}
#serge-cookie-ui h3 {
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: 0;
  font-weight: 650;
}
#serge-cookie-ui p {
  font-size: 13px;
  line-height: 1.7;
  color: #62636b;
}
#serge-cookie-ui a {
  color: #7a2438;
  text-decoration: underline;
  text-underline-offset: 3px;
}
#serge-cookie-ui button,
#serge-cookie-ui select {
  font: inherit;
  letter-spacing: normal;
  text-transform: none;
}
#serge-cookie-ui button {
  cursor: pointer;
}
#serge-cookie-ui :is(button, a, select):focus-visible {
  outline: 3px solid #b74b64;
  outline-offset: 4px;
}
.serge-cookie-banner {
  position: fixed;
  z-index: 150;
  left: 24px;
  right: 24px;
  bottom: 24px;
  width: min(1184px, calc(100% - 48px));
  margin-inline: auto;
  padding: 24px 28px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 32px;
  background: #fff;
  border: 1px solid #dedee1;
  border-radius: 10px;
  box-shadow: 0 8px 40px #24252b1a;
  max-height: calc(100dvh - 48px);
  overflow-y: auto;
}
#serge-cookie-ui .serge-cookie-copy p {
  margin-top: 8px;
  max-width: 660px;
}
.serge-cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
#serge-cookie-ui .serge-cookie-actions button {
  min-height: 44px;
  padding: 12px 17px;
  border: 1px solid #7a2438;
  border-radius: 5px;
  background: #fff;
  color: #7a2438;
  font-size: 13px;
  line-height: 1.4;
  font-weight: 600;
}
#serge-cookie-ui .serge-cookie-actions button:hover {
  background: #f4e9ec;
}
.serge-cookie-dialog {
  width: min(580px, calc(100% - 32px));
  max-width: none;
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 28px;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: #fff;
  color: #24252b;
  border: 1px solid #dedee1;
  border-radius: 12px;
  box-shadow: 0 24px 80px #0003;
}
.serge-cookie-dialog::backdrop {
  background: #24252b88;
}
.serge-cookie-dialog-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}
#serge-cookie-ui .serge-cookie-close {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  padding: 0;
  background: #f4f4f5;
  color: #24252b;
  border: 0;
  border-radius: 50%;
  font-size: 26px;
  line-height: 1;
}
.serge-cookie-category {
  padding-block: 20px;
  border-bottom: 1px solid #e8e8e9;
}
.serge-cookie-category-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.serge-cookie-category-heading span {
  color: #7a2438;
  background: #f4e9ec;
  font-size: 11px;
  font-weight: 600;
  padding: 5px 8px;
  border-radius: 4px;
}
#serge-cookie-ui .serge-cookie-category p {
  margin-top: 8px;
}
.serge-cookie-duration-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.6;
  margin-top: 22px;
}
#serge-cookie-ui select {
  display: block;
  width: 100%;
  height: 46px;
  appearance: none;
  -webkit-appearance: none;
  margin-top: 8px;
  padding: 10px 34px 10px 12px;
  border: 1px solid #b4b4bb;
  border-radius: 5px;
  background: #fff;
  background-image:
    linear-gradient(45deg, transparent 50%, #62636b 50%),
    linear-gradient(135deg, #62636b 50%, transparent 50%);
  background-position:
    calc(100% - 18px) center,
    calc(100% - 13px) center;
  background-size: 5px 5px;
  background-repeat: no-repeat;
  color: #24252b;
  font-size: 14px;
}
#serge-cookie-ui .serge-cookie-current {
  font-size: 12px;
  margin-top: 12px;
}
.serge-cookie-dialog-actions {
  margin-top: 24px;
}
.serge-cookie-dialog-actions button {
  flex: 1 1 auto;
}
.serge-cookie-dialog-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: 24px;
  font-size: 12px;
}
#serge-cookie-ui .serge-cookie-reset {
  padding: 8px 0;
  font-size: 12px;
  color: #7a2438;
  border: 0;
  background: transparent;
  text-decoration: underline;
  text-underline-offset: 3px;
}
#serge-cookie-ui .serge-cookie-notice {
  position: fixed;
  z-index: 151;
  bottom: 24px;
  left: 24px;
  right: 24px;
  width: fit-content;
  max-width: calc(100% - 48px);
  margin-inline: auto;
  padding: 14px 20px;
  border: 1px solid #dedee1;
  border-radius: 8px;
  background: #fff;
  color: #24252b;
  box-shadow: 0 4px 24px #24252b14;
  pointer-events: none;
}
body.serge-cookie-banner-visible #serge-cookie-ui .serge-cookie-notice {
  bottom: calc(var(--serge-cookie-space) + 8px);
}
@media (max-width: 1000px) {
  .serge-cookie-banner {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 22px;
  }
}
@media (max-width: 520px) {
  .serge-cookie-banner {
    width: calc(100% - 24px);
    left: 12px;
    right: 12px;
    bottom: 12px;
    padding: 20px;
    max-height: calc(100dvh - 24px);
  }
  .serge-cookie-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }
  #serge-cookie-ui .serge-cookie-actions button {
    padding: 11px 5px;
    font-size: 12px;
  }
  .serge-cookie-dialog {
    padding: 20px;
  }
  .serge-cookie-dialog-actions {
    grid-template-columns: 1fr 1fr;
  }
  .serge-cookie-dialog-actions button:last-child {
    grid-column: 1 / -1;
  }
}
@media print {
  #serge-cookie-ui {
    display: none;
  }
  body.serge-cookie-banner-visible {
    padding-bottom: 0;
  }
}
