/* rx-account.css - RaXa home page pop-ups: Log in, Forgot code, Register and My account. */
.rx-modal {
  position: fixed; inset: 0; z-index: 50;
  display: flex; align-items: center; justify-content: center; padding: 16px;
  background: var(--scrim);
  -webkit-backdrop-filter: blur(22px) saturate(120%); backdrop-filter: blur(22px) saturate(120%);
  opacity: 0; visibility: hidden; transition: opacity .25s ease, visibility .25s;
}
.rx-modal.is-open { opacity: 1; visibility: visible; }
.rx-card {
  width: min(460px, 100%); padding: 26px 26px 20px; border-radius: 30px;
  background: var(--solid);
  box-shadow: var(--pop-shadow);
  color: var(--ink);
  font-family: var(--font);
  transform: translateY(10px) scale(.98); transition: transform .25s ease;
}
.rx-modal.is-open .rx-card { transform: none; }
.rx-row { display: flex; gap: 12px; align-items: stretch; }

.rx-code, .rx-go {
  height: 48px; border-radius: 14px;
  border: 1px solid var(--ctl-line);
  background: var(--field); color: var(--ink);
  line-height: 1; font-family: inherit; box-shadow: none;
  transition: border-color .2s ease, background .2s ease;
}
.rx-code {
  flex: 1 1 auto; min-width: 0; padding: 0 16px; font-size: 16px; letter-spacing: .01em;
}
.rx-code::placeholder { color: var(--placeholder); }
.rx-code:focus { outline: none; border-color: var(--line-hover); }
.rx-code.is-bad { border-color: var(--bad); }
.rx-go { flex: 0 0 auto; padding: 0 24px; border-radius: 999px; border-color: var(--ac); background: var(--ac); color: #fff; font-size: 15px; font-weight: 500; cursor: pointer; }
.rx-go:hover { background: var(--ac-hover); }
.rx-go:focus-visible { outline: 2px solid var(--ac-text); outline-offset: 2px; }
.rx-go:disabled { opacity: .55; cursor: wait; }

.rx-msg { min-height: 18px; margin: 12px 4px 0; text-align: center; font-size: 13px; }
.rx-hint { display: none; margin: 0 4px 14px; text-align: center; font-size: 13px; font-weight: 400; }
.rx-card.is-forgot .rx-hint { display: block; }
.rx-card.is-forgot .rx-only-login { display: none; }
.rx-links { display: flex; justify-content: center; align-items: center; gap: 10px; margin-top: 8px; }
.rx-links button {
  background: none; border: 0; padding: 4px 2px; cursor: pointer;
  color: var(--ink); font-size: 14px; line-height: 1; font-family: inherit;
}
.rx-links button:hover, .rx-links button:focus-visible { outline: none; text-decoration: underline; text-underline-offset: 3px; }
.rx-links i { width: 4px; height: 4px; border-radius: 50%; background: var(--ctl-line); }
.rx-links a.rx-tutlink { padding: 4px 2px; color: var(--ink); font-size: 14px; line-height: 1; text-decoration: none; }
.rx-links a.rx-tutlink:hover, .rx-links a.rx-tutlink:focus-visible { outline: none; text-decoration: underline; text-underline-offset: 3px; }
/* register */
#rxReg { overflow-y: auto; align-items: flex-start; }
#rxReg .rx-card { margin: auto; }
.rx-field { display: block; margin-bottom: 12px; }
.rx-field .rx-code { width: 100%; }
.rx-note { margin: 6px 6px 0; font-size: 12px; font-weight: 400; }
.rx-reg .rx-go { width: 100%; margin-top: 4px; }
.rx-reg .rx-links { margin-top: 12px; }

/* my account */
.rx-profile { text-align: center; }
.rx-avatar {
  width: 56px; height: 56px; margin: 0 auto 10px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; font-weight: 300; color: #fff;
  background: var(--ac);
}
.rx-pname { margin: 0; font-size: 24px; font-weight: 300; letter-spacing: -.01em; }
.rx-prole { margin: 2px 0 14px; font-size: 13px; font-weight: 400; }
.rx-plist {
  display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; align-items: center;
  margin: 0 0 18px; padding: 14px 16px; text-align: left; border-radius: 18px; font-size: 13px;
  background: var(--tint);
}
.rx-plist dt { font-weight: 400; }
.rx-plist dd { margin: 0; font-weight: 400; overflow-wrap: anywhere; text-align: right; }
.rx-logout {
  width: 100%; height: 48px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--ctl-line); background: transparent; color: var(--ink);
  font-family: inherit; font-size: 15px; transition: border-color .2s ease, background .2s ease;
}
.rx-logout:hover { border-color: var(--line-hover); }
.rx-logout:focus-visible { outline: 2px solid var(--ac-text); outline-offset: 2px; }

/* pop-ups from the top bar: Notifications and Theme. The page stays in view so the sliders show their effect as they move. */
.rx-pop {
  position: fixed; z-index: 45; top: calc(92px + env(safe-area-inset-top)); right: 24px; width: min(320px, calc(100vw - 24px));
  padding: 18px; border-radius: 22px; background: var(--solid); box-shadow: var(--pop-shadow); color: var(--ink); font-family: var(--font);
}
.rx-pop[hidden] { display: none; }
.rx-pop h2 { margin: 0 0 10px; font-size: 18px; font-weight: 400; }
.rx-pop p { margin: 0; font-size: 13.5px; line-height: 1.45; }
.rx-pop label { display: flex; justify-content: space-between; gap: 10px; margin-top: 12px; font-size: 13.5px; }
.rx-pop output { font-variant-numeric: tabular-nums; }
.rx-pop input[type="range"] { display: block; width: 100%; height: 28px; margin: 2px 0 0; accent-color: var(--ac); cursor: pointer; }
.rx-pop .rx-links { margin-top: 12px; }
@media (max-width: 760px) { .rx-pop { top: calc(82px + env(safe-area-inset-top)); left: 12px; right: 12px; width: auto; } }

/* Ultra: company list */
#rxUx { overflow-y: auto; align-items: flex-start; }
#rxUx .rx-card { margin: auto; }
.rx-uxlist { display: grid; gap: 8px; max-height: min(48vh, 420px); overflow-y: auto; padding: 2px; }
.rx-uxco { width: 100%; height: auto; min-height: 48px; padding: 10px 18px; line-height: 1.25; text-align: left; border-color: var(--ctl-line); background: transparent; color: var(--ink); font-weight: 400; }
.rx-uxco:hover { background: var(--tint); }
.rx-uxco.is-cur, .rx-uxco.is-cur:hover { border-color: var(--ac); background: var(--ac); color: #fff; font-weight: 500; }
.rx-devices { margin: 0 0 10px; text-align: center; }
.rx-devices[hidden] { display: none; }
.rx-devices .rx-note { margin: 0 0 8px; color: var(--ink2); }
.rx-devices__out { margin-bottom: 0; }
.rx-uxswitch { width: 100%; margin-bottom: 10px; }
.rx-uxswitch[hidden] { display: none; }

@media (max-width: 420px) { .rx-card { padding: 18px 14px 16px; } .rx-go { padding: 0 16px; } }
@media (prefers-reduced-motion: reduce) { .rx-modal, .rx-card { transition: none; } }
/* the log in card says what it is for */
.rx-login-title { margin: 0 4px 4px; }
.rx-login-sub { margin: 0 4px 14px; font-size: 13.5px; color: var(--ink2); }
