/* Atlantic Image Defense — long-form declaration checkbox alignment v1.15.4.19.35.261
 * Scope: long confirmations and legal declarations only.
 * Compact option lists, table selectors, cookie switches and ordinary checkboxes are unchanged.
 */

body label.aid-stacked-declaration,
body .aid-stacked-declaration {
  box-sizing: border-box;
  display: grid !important;
  grid-template-columns: 20px minmax(0, 1fr) !important;
  grid-template-rows: auto !important;
  align-items: start !important;
  justify-items: stretch !important;
  justify-content: stretch !important;
  column-gap: 12px !important;
  row-gap: 0 !important;
  width: 100%;
  min-width: 0;
  text-align: left !important;
  cursor: pointer;
}

body label.aid-stacked-declaration > input[type="checkbox"],
body .aid-stacked-declaration > input[type="checkbox"] {
  grid-column: 1 !important;
  grid-row: 1 !important;
  order: 0 !important;
  align-self: start !important;
  justify-self: start !important;
  inline-size: 20px !important;
  block-size: 20px !important;
  width: 20px !important;
  height: 20px !important;
  min-width: 20px !important;
  min-height: 20px !important;
  max-width: 20px !important;
  max-height: 20px !important;
  flex: none !important;
  margin: 1px 0 0 !important;
}

body label.aid-stacked-declaration > span,
body .aid-stacked-declaration > span:not(.recipient-action-kicker) {
  grid-column: 2 !important;
  grid-row: 1 !important;
  display: block !important;
  min-width: 0 !important;
  width: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  text-align: left !important;
  line-height: 1.48 !important;
  overflow-wrap: anywhere;
}

body label.aid-stacked-declaration > span > strong,
body .aid-stacked-declaration > span > strong,
body label.aid-stacked-declaration > span > small,
body .aid-stacked-declaration > span > small {
  display: block;
  min-width: 0;
  text-align: left;
}

body label.aid-stacked-declaration > span > small,
body .aid-stacked-declaration > span > small {
  margin-top: 4px;
}

/* Public request centre: checkbox first, declaration text on the same line. */
body.aid-context-public .aid-request-consent.aid-stacked-declaration {
  padding: 11px 12px !important;
}

body.aid-context-public .aid-request-consent.aid-stacked-declaration > span {
  color: rgba(235,243,246,.78) !important;
  font-weight: 500 !important;
  line-height: 1.48 !important;
}

/* Recipient portal uses its own layout and does not load the global checkbox bundle. */
body.aid-context-recipient .aid-stacked-declaration > input[type="checkbox"] {
  -webkit-appearance: none;
  appearance: none;
  box-sizing: border-box;
  border: 2px solid #73889a;
  border-radius: 6px;
  background-color: #ffffff;
  background-position: center;
  background-repeat: no-repeat;
  background-size: 12px 12px;
  box-shadow: 0 1px 2px rgba(5,17,28,.12), inset 0 1px 0 rgba(255,255,255,.2);
  cursor: pointer;
}
body.aid-context-recipient .aid-stacked-declaration > input[type="checkbox"]:checked {
  border-color: #087f8b;
  background-color: #087f8b;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2.4' d='m3.2 8.3 3 3.1 6.7-7'/%3E%3C/svg%3E");
}
body.aid-context-recipient .aid-stacked-declaration > input[type="checkbox"]:focus-visible {
  outline: none;
  border-color: #1593a9;
  box-shadow: 0 0 0 4px rgba(21,147,169,.2);
}

@media (max-width: 575.98px) {
  body label.aid-stacked-declaration,
  body .aid-stacked-declaration {
    grid-template-columns: 20px minmax(0, 1fr) !important;
    column-gap: 10px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  body .aid-stacked-declaration,
  body .aid-stacked-declaration * {
    transition: none !important;
  }
}
