/* ==========================================================================
   11-account-panel.css  (11 de 18)
   Painel lateral "A minha conta" (#acctPanel).
   Não reordenar: a ordem de carga (ver README.md) faz parte da cascata,
   por isso os ficheiros seguintes podem substituir regras dos anteriores.
   ========================================================================== */

#acctPanel {
  position: fixed;
  inset: 0;
  z-index: 600;
  visibility: hidden;
}

#acctPanel.on {
  visibility: visible;
}

.ap-shade {
  position: absolute;
  inset: 0;
  background: #00000073;
  opacity: 0;
  transition: opacity .2s;
}

#acctPanel.on .ap-shade {
  opacity: 1;
}

.ap-box {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(460px,100%);
  background: var(--paper);
  color: var(--ink);
  transform: translate(105%);
  transition: transform .25s ease;
  overflow-y: auto;
  padding: 20px 22px calc(40px + env(safe-area-inset-bottom,0px));
  box-shadow: -20px 0 50px #00000040;
}

#acctPanel.on .ap-box {
  transform: none;
}

.ap-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.ap-top b {
  font-size: 18px;
}

.ap-x {
  border: 0;
  background: var(--ink-10);
  color: var(--ink);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 22px;
  cursor: pointer;
  line-height: 1;
}

.ap-id {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 16px;
  border-radius: 16px;
  background: var(--amber-10);
  margin-bottom: 14px;
}

.ap-av {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--amber);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font: 700 18px IBM Plex Mono,monospace;
  flex-shrink: 0;
}

.ap-id b {
  display: block;
  font-size: 16px;
}

.ap-id small {
  display: block;
  color: var(--graphite);
  font-size: 12.5px;
  word-break: break-all;
  margin: 2px 0 6px;
}

.ap-id em {
  font: 600 10px IBM Plex Mono,monospace;
  font-style: normal;
  background: var(--paper);
  color: var(--amber);
  padding: 2px 9px;
  border-radius: 100px;
}

.ap-sec {
  border: 1px solid var(--ink-10);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 12px;
}

.ap-sec h4 {
  font: 600 11px IBM Plex Mono,monospace;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--graphite);
  margin-bottom: 12px;
}

.ap-sec label {
  display: block;
  font-size: 12px;
  color: var(--graphite);
  margin-bottom: 10px;
}

.ap-sec input {
  display: block;
  width: 100%;
  margin-top: 5px;
  padding: 11px 12px;
  border-radius: 10px;
  border: 1px solid var(--ink-20);
  background: var(--paper);
  color: var(--ink);
  font: 15px inherit;
  font-family: inherit;
}

.ap-sec input:focus {
  outline: 0;
  border-color: var(--amber);
  box-shadow: 0 0 0 3px var(--amber-10);
}

.ap-sec input:disabled {
  opacity: .6;
}

.ap-n {
  font-size: 12.5px;
  color: var(--graphite);
  line-height: 1.5;
  margin-bottom: 12px;
}

.ap-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.ap-st {
  font: 12px IBM Plex Mono,monospace;
  color: #4c8a64;
}

.ap-st.er {
  color: #c83c3c;
}

.ap-b {
  border: 0;
  background: var(--ink);
  color: var(--paper);
  font: 600 13.5px inherit;
  font-family: inherit;
  padding: 12px 20px;
  border-radius: 100px;
  cursor: pointer;
  min-height: 44px;
}

.ap-b:disabled {
  opacity: .5;
}

.ap-b.ghost {
  background: none;
  color: var(--ink);
  border: 1.5px solid var(--ink-20);
  display: block;
  width: 100%;
  margin-bottom: 10px;
  text-align: center;
}

.ap-b.red {
  background: #c83c3c;
  color: #fff;
  display: block;
  width: 100%;
  margin-top: 6px;
}
