/* Consent UI: isolated from the landing template. Accept/reject are peers. */
.ag-consent,
.ag-consent-settings {
  box-sizing: border-box;
  font-family: "Manrope", system-ui, -apple-system, sans-serif;
  font-size: 14px;
  line-height: 1.55;
  color: #f5f7fa;
  background: #171a20;
  border: 1px solid #59616c;
  box-shadow: 0 12px 48px rgb(0 0 0 / 30%);
}

.ag-consent *,
.ag-consent *::before,
.ag-consent *::after { box-sizing: border-box; }

.ag-consent[hidden],
.ag-consent [hidden] { display: none !important; }

.ag-consent {
  position: fixed;
  z-index: 2147483001;
  left: 50%;
  bottom: max(16px, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  width: min(520px, calc(100% - 32px));
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 18px;
  border-radius: 14px;
  overflow-wrap: anywhere;
  text-align: left;
}

.ag-consent__title {
  margin: 0 0 8px;
  color: #fff;
  font-family: inherit;
  font-size: 17px;
  font-weight: 750;
  line-height: 1.3;
}

.ag-consent .ag-consent__copy,
.ag-consent .ag-consent__gpc {
  margin: 0 0 8px;
  color: #e0e5eb;
  font-size: 13px;
  line-height: 1.5;
}

.ag-consent .ag-consent__withdrawal { color: #c8cfd8; }
.ag-consent .ag-consent__gpc { color: #85f8f1; font-weight: 650; }

.ag-consent .ag-consent__privacy {
  color: #85f8f1;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-size: 12px;
}

.ag-consent__actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.ag-consent .ag-consent__choice {
  appearance: none;
  min-height: 44px;
  width: 100%;
  padding: 9px 12px;
  border: 2px solid #85f8f1;
  border-radius: 8px;
  background: #85f8f1;
  color: #11191d;
  font: inherit;
  font-weight: 750;
  line-height: 1.45;
  text-align: center;
  white-space: normal;
  cursor: pointer;
}

.ag-consent .ag-consent__choice:hover:not(:disabled) {
  background: #b6fffa;
  border-color: #b6fffa;
}

.ag-consent .ag-consent__choice:disabled {
  color: #c0c8ce;
  background: #333c42;
  border-color: #69737a;
  cursor: not-allowed;
}

.ag-consent .ag-consent__close {
  display: block;
  min-height: 44px;
  margin: 4px 0 0 auto;
  padding: 8px 4px;
  color: #e0e5eb;
  background: transparent;
  border: 0;
  border-radius: 4px;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.ag-consent-settings {
  position: fixed;
  z-index: 2147483000;
  left: 16px;
  bottom: max(16px, env(safe-area-inset-bottom));
  min-height: 44px;
  max-width: calc(100% - 32px);
  padding: 9px 15px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 650;
  white-space: normal;
}

.ag-consent-settings:hover { border-color: #85f8f1; }
.ag-consent-settings[aria-expanded="true"] { visibility: hidden; }
.ag-consent:focus,
.ag-consent :focus-visible,
.ag-consent-settings:focus-visible {
  outline: 3px solid #85f8f1;
  outline-offset: 4px;
}

@media (max-width: 480px) {
  .ag-consent {
    bottom: max(12px, env(safe-area-inset-bottom));
    width: calc(100% - 24px);
    max-height: calc(100vh - 24px);
    max-height: calc(100dvh - 24px);
    padding: 14px;
    border-radius: 12px;
  }
}

@media (forced-colors: active) {
  .ag-consent,
  .ag-consent-settings,
  .ag-consent .ag-consent__choice { border: 2px solid ButtonText; }
}
