/* The account language select that portal-i18n.js adds to every portal page, and the rows on /site-languages.
   The select takes the standard control from portal.css: 40px, or 32px inside the slim .dash-top bar. */
.portal-language-select { width: auto; min-width: 124px; flex-shrink: 0; }
/* On a page with no header bar (help, sign-in) it is added at the end of the page, so it needs room above. The bar and
   the account menu set their own margin in portal.css. */
.portal-language-select { margin-block-start: var(--space-3); }
/* In the account menu it is a labelled field; portal.css places the field and sets its spacing and hairline. */
.portal-language-field .portal-language-select { width: 100%; margin: 0; }
/* On a narrow page with no bar (sign-in, help, a website's own page) the field sits above the first card, one card gap from
   it. The website page lays its cards out in a grid that has its own gap. */
.portal-shell.narrow > .portal-language-field { margin: 0 0 var(--space-4); }
.portal-shell.claim-shell > .portal-language-field { justify-self: start; width: min(100%, 280px); margin: 0; }

/* /site-languages: pick a language and pay (one row), then one row per language already ordered. */
.language-form select { flex: 0 1 360px; }
.language-form + .portal-status { margin: var(--space-3) 0 0; }
.language-form + .portal-status:empty { min-height: 0; margin: 0; }
.language-note { margin: var(--space-3) 0 0; }
.language-limits { margin-top: var(--space-1); }
.language-limits > .more-body p { margin: 0; }
.language-limits > .more-body p + p { margin-top: var(--space-2); }
.language-row { flex-wrap: wrap; }
.language-row .row-copy { flex: 1 1 220px; }
.language-row .row-title { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-1) var(--space-2); }
.language-row .row-desc { white-space: normal; }
.language-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); margin-left: auto; }
@media (max-width: 640px) {
  .language-form > .portal-button { flex: 1 1 100%; }
  .language-actions { width: 100%; margin-left: 0; }
}
