/* Inline enhancement: retain the consent label's own foreground colour. */
body a.roc-form-legal-trigger {
  display: inline;
  color: inherit;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 0.16em;
  text-decoration-thickness: 1px;
  cursor: pointer;
}

body a.roc-form-legal-trigger:hover {
  color: inherit;
  text-decoration-thickness: 2px;
}

body.roc-form-legal-open {
  position: fixed;
  top: var(--roc-legal-top);
  left: var(--roc-legal-left);
  right: 0;
  overflow: hidden;
  padding-right: var(--roc-legal-padding);
}

body dialog.roc-form-legal-dialog {
  box-sizing: border-box;
  width: calc(100% - 24px);
  max-width: 740px;
  max-height: 90vh;
  max-height: 90dvh;
  margin: auto;
  padding: 0;
  overflow: hidden;
  border: 1px solid #e6ae64;
  border-radius: 10px;
  background: #fff;
  color: #0c2340;
  font-family: inherit;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.55;
  text-align: left;
  box-shadow: 0 16px 60px rgb(12 35 64 / 25%);
}

body dialog.roc-form-legal-dialog[open] {
  display: flex;
  flex-direction: column;
}

body dialog.roc-form-legal-dialog::backdrop {
  background: rgb(12 35 64 / 65%);
}

.roc-form-legal-dialog .roc-form-legal-dialog__header {
  display: flex;
  flex: 0 0 auto;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 24px 16px;
  border-bottom: 1px solid #e6ae64;
  background: #fff;
  color: #0c2340;
}

.roc-form-legal-dialog .roc-form-legal-dialog__header h2 {
  flex: 1;
  min-width: 0;
  margin: 0;
  color: #0c2340;
  font: inherit;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.roc-form-legal-dialog .roc-form-legal-dialog__close {
  flex: 0 0 auto;
  min-height: 44px;
  margin: 0;
  padding: 9px 15px;
  border: 1px solid #0c2340;
  border-radius: 4px;
  background: #0c2340;
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  cursor: pointer;
}

.roc-form-legal-dialog .roc-form-legal-dialog__close:hover {
  background: #e6ae64;
  color: #0c2340;
}

.roc-form-legal-dialog .roc-form-legal-dialog__content {
  min-height: 0;
  padding: 16px 24px 24px;
  overflow-y: auto;
  overscroll-behavior: contain;
  overflow-wrap: anywhere;
  -webkit-overflow-scrolling: touch;
}

.roc-form-legal-dialog .roc-form-legal-dialog__content .roc-form-legal-context {
  margin: 0 0 16px;
  color: #0c2340;
  font-size: 16px;
  font-weight: 600;
}

.roc-form-legal-dialog .roc-form-legal-dialog__content section + section {
  margin-top: 18px;
}

.roc-form-legal-dialog .roc-form-legal-dialog__content h3 {
  margin: 0 0 6px;
  color: #0c2340;
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
}

.roc-form-legal-dialog .roc-form-legal-dialog__content p {
  margin: 0 0 12px;
  color: #0c2340;
  font: inherit;
}

.roc-form-legal-dialog .roc-form-legal-dialog__content p:last-child {
  margin-bottom: 0;
}

.roc-form-legal-dialog .roc-form-legal-dialog__content a {
  color: #0c2340;
  text-decoration: underline;
  text-underline-offset: 0.16em;
}

body a.roc-form-legal-trigger:focus-visible,
.roc-form-legal-dialog .roc-form-legal-dialog__close:focus-visible,
.roc-form-legal-dialog .roc-form-legal-dialog__content a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

@media (max-width: 480px) {
  .roc-form-legal-dialog .roc-form-legal-dialog__header {
    gap: 10px;
    padding: 16px;
  }

  .roc-form-legal-dialog .roc-form-legal-dialog__header h2 {
    font-size: 18px;
  }

  .roc-form-legal-dialog .roc-form-legal-dialog__content {
    padding: 16px;
  }
}
