.portal-account-preferences { display: grid; gap: 20px; margin-top: 24px; min-width: 0; }
.portal-account-preferences summary { color: var(--portal-text); font-weight: 650; text-decoration: none; }
.portal-account-preferences summary:hover { color: var(--portal-accent-strong); }
.portal-account-preferences .portal-form { margin-top: 0; }
.portal-account-preferences details .portal-form { margin-top: 20px; }
.portal-registration-country { margin-bottom: 28px; }

/* One paper review sheet is shared by country, organization and renewal flows. */
.portal-country-review {
  --portal-text: #121212;
  --portal-muted: #5e5b55;
  --portal-surface: #f2eee6;
  --portal-surface-strong: #e8e2d7;
  --portal-line: #b8b0a2;
  --portal-line-strong: #847e72;
  --portal-accent: #5630ce;
  --portal-accent-strong: #5630ce;
  min-width: 0;
  margin-block: 24px;
  padding: 0;
  border: 1px solid #847e72;
  border-radius: 0;
  color: #121212;
  background: #f2eee6;
  color-scheme: light;
  font-family: var(--ev-body, Arial, sans-serif);
  overflow-wrap: anywhere;
}
.portal-country-review h2, .portal-country-review h3, .portal-country-review p { margin-top: 0; }
.portal-country-review h2 { margin: 0; font-family: var(--ev-display, Arial, sans-serif); font-size: clamp(1.45rem, 3.1vw, 2.15rem); font-weight: 800; line-height: 1.1; letter-spacing: -.05em; }
.portal-country-review h2:focus { outline: none; }
.portal-country-review h3 { margin-bottom: .85rem; color: #121212; font-size: 1.05rem; font-weight: 750; line-height: 1.4; letter-spacing: -.02em; }
.portal-country-review p { margin-bottom: 1rem; color: #5e5b55; font-size: .9rem; line-height: 1.7; }
.portal-country-review a { color: #3f2694; text-underline-offset: 3px; }
.portal-country-review a:focus-visible, .portal-country-review .portal-feedback:focus { outline: 3px solid #5630ce; outline-offset: 4px; }
.portal-review-header { min-width: 0; display: flex; align-items: flex-start; justify-content: space-between; gap: 1.5rem; padding: 1.5rem 1.75rem; border-bottom: 1px solid #a5a094; }
.portal-review-header > div { min-width: 0; }
.portal-review-close { display: none; position: relative; flex: 0 0 44px; width: 44px; height: 44px; padding: 0; border: 1px solid #847e72; border-radius: 0; color: #121212; background: transparent; cursor: pointer; }
.portal-country-dialog .portal-review-close:not([hidden]) { display: inline-flex; align-items: center; justify-content: center; }
.portal-review-close:hover { border-color: #121212; background: #e2dbce; }
.portal-review-close:focus-visible { outline: 3px solid #5630ce; outline-offset: 3px; }
.portal-country-review .portal-review-form { min-width: 0; min-height: 0; display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: 0; margin: 0; }
.portal-review-body { min-width: 0; min-height: 0; display: grid; align-content: start; gap: .9rem; padding: 1.5rem 1.75rem; }
.portal-review-body > :is(p, h3, ul) { margin-block: 0; }
.portal-review-body > :last-child { margin-bottom: 0; }
.portal-review-body .portal-agreement-links { margin: 0; padding-left: 1.25rem; }
.portal-review-body .portal-agreement-links li { margin-block: .5rem; font-size: .85rem; line-height: 1.6; }
.portal-review-body .portal-agreement-links a { overflow-wrap: anywhere; }
.portal-country-review__country { padding: .8rem 1rem; border-left: 2px solid #121212; background: #e8e2d7; }
.portal-country-review__country strong { color: #121212; font-size: 1rem; font-weight: 750; }
.portal-country-review__transition { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem 1rem; margin: 0; }
.portal-country-review__transition dt { color: var(--portal-muted); font-size: .85rem; }
.portal-country-review__transition dd { margin: .2rem 0 0; }
.portal-country-review .portal-consent-row { display: flex; align-items: flex-start; gap: .75rem; padding: .8rem 0; color: #4f4c47; font-size: .85rem; line-height: 1.65; }
.portal-country-review .portal-consent-row input { flex: 0 0 22px; width: 22px; min-width: 22px; height: 22px; min-height: 22px; padding: 0; margin: .1rem 0 0; accent-color: #5630ce; }
.portal-country-review .portal-consent-row > span { min-width: 0; }
/* Moving a native form into a top-layer dialog must not restore dark inputs. */
.portal-country-review .portal-form input:not([type='checkbox']):not([type='hidden']),
.portal-country-review .portal-form select { min-width: 0; min-height: 48px; padding: .75rem .85rem; border: 1px solid #847e72; border-radius: 0; background-color: #fffdf7; color: #121212; font-size: 1rem; line-height: 1.4; }
.portal-country-review .portal-form input:focus-visible,
.portal-country-review .portal-form select:focus-visible { outline: 2px solid #5630ce; outline-offset: 3px; }
.portal-country-review .portal-feedback { margin: 0; border-left: 3px solid #5630ce; background: #e6ddff; color: #2a2144; }
.portal-country-review .portal-feedback[role='alert'] { border-left-color: #99352c; background: #f6dfd9; color: #6e2b25; }
.portal-country-review__marketing { min-width: 0; margin: 1.6rem 0 0; padding: 1.25rem; border: 1px solid #b8b0a2; background: #e8e2d7; }
.portal-country-review__marketing legend { max-width: 100%; margin: 0; padding: 0 .4rem; color: #121212; font-size: .85rem; font-weight: 750; line-height: 1.5; }
.portal-country-review__marketing .portal-consent-note { font-size: .8rem; }
.portal-review-footer { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: .75rem 1.25rem; padding: 1.1rem 1.75rem; border-top: 1px solid #a5a094; background: #e8e2d7; }
.portal-country-review .portal-review-footer .portal-button { width: auto; max-width: 100%; min-width: 10rem; min-height: 48px; margin: 0; padding: .8rem 1.1rem; border: 1px solid var(--ev-action); border-radius: 0; color: #fffdf7; background: var(--ev-action); font-size: .85rem; line-height: 1.4; white-space: normal; }
.portal-country-review .portal-review-footer .portal-button:not(:disabled):hover { border-color: var(--ev-action-hover); background: var(--ev-action-hover); }
.portal-country-review .portal-country-review__cancel { justify-self: start; display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: .65rem 0; color: #4f4c47; font-size: .85rem; font-weight: 650; line-height: 1.5; text-align: center; }
.portal-country-review__cancel[aria-disabled='true'], .portal-review-close:disabled { opacity: .5; cursor: wait; }
.portal-country-review form[aria-busy='true'] { cursor: wait; }
.portal-request-status { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

.portal-country-dialog { width: min(52rem, calc(100% - 32px)); max-width: none; max-height: calc(100dvh - 32px); margin: auto; padding: 0; border: 1px solid #121212; border-radius: 0; color: #121212; background: #f2eee6; overflow: hidden; }
.portal-country-dialog::backdrop { background: rgba(18, 18, 18, .76); }
.portal-country-dialog[open] { display: flex; flex-direction: column; }
.portal-country-dialog > .portal-country-review { display: grid; grid-template-rows: auto minmax(0, 1fr); min-height: 0; max-height: calc(100dvh - 34px); margin: 0; border: 0; }
.portal-country-dialog .portal-review-body { overflow: auto; overscroll-behavior: contain; scrollbar-color: #847e72 #e5dfd3; scrollbar-width: thin; }
body.portal-review-open { overflow: hidden; }

@media (max-width: 560px) {
  .portal-country-dialog { width: calc(100% - 24px); max-height: calc(100dvh - 24px); }
  .portal-country-dialog > .portal-country-review { max-height: calc(100dvh - 26px); }
  .portal-review-header, .portal-review-body { padding: 1.25rem; }
  .portal-review-header { gap: .8rem; }
  .portal-country-review h2 { font-size: 1.5rem; }
  .portal-country-review__transition { grid-template-columns: minmax(0, 1fr); }
  .portal-review-footer { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; padding: 1rem 1.25rem; gap: .75rem; }
  .portal-country-review .portal-review-footer .portal-button { width: 100%; min-width: 0; }
  .portal-country-review__cancel { width: auto; }
  .portal-country-review__marketing { padding: 1rem; }
}
@media (max-width: 360px) {
  .portal-review-header, .portal-review-body { padding: 1rem; }
  .portal-review-footer { padding-inline: 1rem; }
  .portal-country-review h2 { font-size: 1.3rem; }
}
@media (max-height: 600px) {
  .portal-review-header { padding-block: .9rem; }
  .portal-country-review h2 { font-size: 1.35rem; }
  .portal-review-footer { padding-block: .65rem; }
}
@media (forced-colors: active) {
  .portal-country-review, .portal-country-dialog, .portal-review-close, .portal-review-footer { border-color: CanvasText; }
  .portal-country-review .portal-review-footer .portal-button { color: ButtonText; background: ButtonFace; border-color: ButtonText; }
}
