/* Keep the ID layout changes local to Your ID Information. */
.account-main.account-id-view { max-width:1440px; }
.account-id-view .account-layout {
  grid-template-columns:minmax(0,1fr) 300px;
  gap:24px;
}
.account-id-view .account-tabs a { font-size:15px; }
.identity-panel {
  padding:22px;
  border-radius:4px;
  background:#fff;
  box-shadow:0 3px 7px #202b3d14;
}
.identity-panel #account-id-title {
  margin:0 0 18px;
  padding:0 0 18px;
  border-bottom:1px solid #e0e4ec;
  color:#090909;
  font:700 24px/1.3 var(--body-font);
  letter-spacing:-.8px;
}
.identity-guidance { margin-bottom:18px; }
.identity-guidance p {
  margin:0 0 18px;
  color:#202b3d;
  font-size:15px;
  line-height:1.6;
  letter-spacing:-.25px;
}
.identity-guidance p:first-child { font-weight:700; }
.identity-guidance p:last-child { margin-bottom:0; }
.identity-guidance a { text-decoration:underline; text-underline-offset:2px; }
.identity-grid {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:16px;
}
.identity-card {
  display:flex;
  flex-direction:column;
  min-width:0;
  border-radius:4px;
  background:#fff;
  box-shadow:0 2px 4px #0000001c;
  overflow:hidden;
}
.identity-card-heading {
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  min-height:48px;
  padding:10px 14px;
  background:#dad9f3;
  color:#080808;
}
.identity-card-heading .icon { width:22px; height:22px; }
.identity-card-heading h3 {
  margin:0;
  font:700 17px/1.35 var(--body-font);
  letter-spacing:-.45px;
  text-align:center;
  text-transform:uppercase;
  overflow-wrap:anywhere;
}
.identity-card-body {
  display:flex;
  flex:1;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:14px;
  min-width:0;
  min-height:148px;
  padding:22px 16px;
  text-align:center;
}
.identity-card:nth-child(n+3) .identity-card-body { min-height:100px; }
.identity-card-body p {
  max-width:100%;
  margin:0;
  color:#202b3d;
  font-size:16px;
  line-height:1.5;
  letter-spacing:-.3px;
  overflow-wrap:anywhere;
}
.identity-card-body p + p { margin-top:10px; }
.identity-card-body strong { font-weight:700; }
.identity-add {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:42px;
  padding:10px 20px;
  border:1px solid #4c5870;
  border-radius:0;
  background:#fff;
  color:var(--purple);
  font-size:14px;
  font-weight:600;
}
.identity-add:hover { background:#f5f4fc; }
.identity-edit {
  padding:4px 8px;
  border:0;
  background:none;
  color:#202b3d;
  font-size:16px;
  text-decoration:underline;
  text-underline-offset:2px;
}
.identity-edit:hover { color:var(--purple); }
.identity-details .identity-edit { margin-top:20px; }

.identity-modal {
  width:calc(100% - 32px);
  max-width:460px;
  max-height:calc(100dvh - 32px);
  padding:24px;
  border:1px solid #ddd9ee;
  border-radius:6px;
  overflow:auto;
}
.identity-modal h2 {
  margin:0 26px 22px 0;
  color:#202b3d;
  font:700 24px/1.3 var(--heading-font);
  letter-spacing:-.5px;
}
.identity-close {
  position:absolute;
  top:10px;
  right:10px;
  display:flex;
  align-items:center;
  justify-content:center;
  width:32px;
  height:32px;
  padding:5px;
  border:0;
  background:none;
  color:var(--purple);
  font-size:24px;
  line-height:1;
}
.identity-close .icon { width:21px; height:21px; }
.identity-field { margin-bottom:18px; }
.identity-field label {
  display:block;
  margin-bottom:7px;
  color:#202b3d;
  font-size:15px;
  line-height:1.4;
  font-weight:600;
}
.identity-field input {
  display:block;
  width:100%;
  min-width:0;
  height:46px;
  padding:10px 12px;
  border:1px solid #9c9c9c;
  border-radius:4px;
  background:#fff;
  color:#202b3d;
  font-size:16px;
}
.identity-field input[aria-invalid="true"] { border-color:#a52836; }
.identity-dialog-actions {
  display:flex;
  justify-content:flex-end;
  flex-wrap:wrap;
  gap:12px;
  margin-top:24px;
}
.identity-cancel,.identity-save {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:42px;
  padding:10px 18px;
  border:1px solid var(--purple);
  border-radius:0;
  background:white;
  color:var(--purple);
  font-size:14px;
  font-weight:700;
}
.identity-save { background:var(--purple); color:white; }
.identity-save:disabled,.identity-cancel:disabled,.identity-close:disabled { cursor:default; }
.identity-feedback {
  margin:16px 0 0;
  padding:10px 12px;
  border-left:3px solid #528e67;
  background:#edf7f0;
  color:#224c3c;
  font-size:14px;
  line-height:1.5;
  overflow-wrap:anywhere;
}
.identity-feedback.error {
  border-left-color:#b33849;
  background:#fff2f3;
  color:#852434;
}
.identity-feedback:empty { display:none; }

@media(max-width:999px) {
  .account-id-view .account-layout { grid-template-columns:minmax(0,1fr); gap:28px; }
  .account-id-view .account-tabs { grid-column:1; grid-row:1; position:static; }
  .account-id-view .account-content { grid-column:1; grid-row:2; }
}
@media(max-width:599px) {
  .identity-panel { padding:18px 16px; }
  .identity-panel #account-id-title { font-size:23px; margin-bottom:16px; padding-bottom:16px; }
  .identity-guidance p { font-size:15px; }
  .identity-grid { grid-template-columns:minmax(0,1fr); gap:16px; }
  .identity-card-body,.identity-card:nth-child(n+3) .identity-card-body { min-height:116px; }
  .identity-card-heading h3 { font-size:16px; }
  .identity-modal { padding:22px 18px; }
}
