/* Visitor verification only. The chat, staff portal and shared glass styles stay unchanged. */
.mail-gate {
  position: fixed;
  inset: 0 0 auto;
  z-index: 160;
  display: none;
  height: 100vh;
  height: var(--app-height, 100dvh);
  overflow: auto;
  overscroll-behavior: contain;
  padding: max(12px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right))
           max(12px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
  background: radial-gradient(ellipse at 50% 22%, #f8fbff 0%, #edf2f9 70%);
}
.mail-gate.show { display: flex; flex-direction: column; align-items: center; }
.mail-gate [hidden] { display: none !important; }
.mail-card, .mail-card * { box-sizing: border-box; }
.mail-card {
  --mail-ink: #172439;
  --mail-muted: #55657c;
  --mail-line: #dee6f1;
  --mail-blue: #264dc9;
  --mail-focus: #3564e4;
  --mail-label-size: 13px;
  width: min(100%, 400px);
  flex: 0 0 auto;
  min-width: 0;
  margin: auto 0;
  padding: 23px 23px 16px;
  color: var(--mail-ink);
  background: #fff;
  border: 1px solid #e2eaf5;
  border-radius: 20px;
  box-shadow: 0 16px 48px -24px rgba(41, 66, 113, .38), 0 2px 8px rgba(35, 61, 105, .05);
  color-scheme: light;
}
.mail-card:focus { outline: none; }
.mail-card-head { display: flex; align-items: center; gap: 12px; margin-bottom: 19px; }
.mail-card-head > div { min-width: 0; }
.mail-card-head h3 { margin: 0 0 4px; font-size: 20px; font-weight: 720; line-height: 1.2; letter-spacing: -.025em; color: var(--mail-ink); }
.mail-card-head p { margin: 0; font-size: 12px; line-height: 1.45; color: var(--mail-muted); overflow-wrap: anywhere; }
.mail-card-icon {
  flex: 0 0 42px; width: 42px; height: 42px; display: grid; place-items: center;
  border-radius: 13px; background: #eaf0ff; color: var(--mail-blue);
}
.mail-card svg { display: block; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.mail-card-icon svg { width: 22px; height: 22px; }
.mail-card-body { display: grid; gap: 13px; min-width: 0; }
.mail-field { min-width: 0; }
.mail-field label { display: block; margin-bottom: 6px; font-size: var(--mail-label-size); line-height: 1.4; font-weight: 640; color: var(--mail-ink); }
.mail-input-wrap {
  display: flex; gap: 5px; align-items: center; min-width: 0; min-height: 43px;
  padding: 0 9px 0 11px; border: 1px solid var(--mail-line); border-radius: 10px;
  background: #f8fafd;
}
.mail-input-wrap:focus-within { background: #fff; border-color: var(--mail-focus); box-shadow: 0 0 0 3px #e8efff; }
.mail-input-wrap input {
  flex: 1 1 0; min-width: 0; width: 0; min-height: 41px; padding: 0;
  color: var(--mail-ink); background: transparent; border: 0; outline: 0;
  font: inherit; font-size: 16px; -webkit-text-fill-color: var(--mail-ink);
}
.mail-input-wrap input::placeholder { color: #61718a; font-size: 13px; opacity: 1; -webkit-text-fill-color: #61718a; }
.mail-input-wrap input:disabled { opacity: .68; }
.mail-address-wrap { padding-inline-end: 0; gap: 8px; }
.mail-domain-field {
  display: flex; flex: 0 1 150px; max-inline-size: 61%; min-inline-size: 0;
  align-self: stretch; position: relative; border-inline-start: 1px solid #e6ebf4;
}
.mail-card .mail-domain-select {
  -webkit-appearance: none; appearance: none; display: block; inline-size: 100%; min-inline-size: 0;
  min-block-size: 41px; padding: 0 25px 0 10px; border: 0; border-radius: 0 9px 9px 0;
  background: #edf2fd; color: #2547a6; cursor: pointer;
  font: inherit; font-size: 13px; font-weight: 650; white-space: nowrap; text-overflow: ellipsis;
}
.mail-domain-select option, .mail-domain-select optgroup { color: var(--mail-ink); background: #fff; }
.mail-card .mail-domain-select:hover:not(:disabled) { background: #e5edff; }
.mail-card .mail-domain-select:focus-visible { outline: 2px solid var(--mail-focus); outline-offset: -2px; }
.mail-card .mail-domain-select:disabled { color: var(--mail-muted); background: #f1f4f9; cursor: default; }
.mail-domain-field svg { position: absolute; inset-inline-end: 8px; inset-block-start: 50%; width: 14px; height: 14px; transform: translateY(-50%); pointer-events: none; color: #4664b0; }
.mail-secondary {
  display: inline-flex; align-items: center; justify-content: center; padding: 0 2px;
  border: 0; background: transparent; color: var(--mail-blue);
  font-family: inherit; font-size: 12px; font-weight: 630; line-height: 1.4; cursor: pointer;
}
.mail-code-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 7px; align-items: stretch; }
.mail-send-code, .mail-submit {
  border-radius: 10px; font: inherit; font-weight: 670; cursor: pointer;
}
.mail-send-code {
  min-width: 6.7em; min-height: 43px; padding: 0 10px; white-space: nowrap;
  color: var(--mail-blue); background: #edf2ff; border: 1px solid #d9e4ff; font-size: 13px;
}
.mail-send-code:hover:not(:disabled) { background: #e4edff; border-color: #b8caf9; }
.mail-submit { min-height: 44px; padding: 8px 12px; width: 100%; color: #fff; background: #294fcc; border: 1px solid #294fcc; font-size: 14px; }
.mail-submit:hover:not(:disabled) { background: #2042b2; border-color: #2042b2; }
.mail-card button:focus-visible { outline: 2px solid var(--mail-focus); outline-offset: 2px; }
.mail-card button:disabled { cursor: default; }
.mail-card .mail-send-code:disabled { color: #566782; background: #f0f3f9; border-color: #e4eaf3; }
.mail-card .mail-submit:disabled { color: #4a5e89; background: #e7edfc; border-color: #e7edfc; }
.mail-card .mail-secondary { min-height: 36px; }
.mail-hint { margin: 0; color: var(--mail-muted); font-size: 12px; line-height: 1.45; overflow-wrap: anywhere; }
.mail-hint:not(:empty) { margin-top: 6px; }
.mail-hint[data-tone="error"] { color: #a51c36; }
.mail-hint[data-tone="success"] { color: #17674d; }
.mail-foot {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  padding-top: 12px; margin: 13px 0 0; border-top: 1px solid #edf1f7;
  color: var(--mail-muted); font-size: 11px; line-height: 1.4; text-align: center;
}
.mail-foot svg { width: 15px; height: 15px; flex: 0 0 auto; }
.mail-sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap; border: 0;
}
@media (max-width: 380px), (max-height: 500px) {
  .mail-card { padding: 17px 16px 13px; border-radius: 15px; }
  .mail-card-head { margin-bottom: 14px; }
  .mail-card-body { gap: 11px; }
  .mail-foot { padding-top: 8px; margin-top: 10px; }
}
@media (max-width: 340px) {
  .mail-card .mail-domain-select { padding-inline: 5px 17px; font-size: 12px; }
  .mail-domain-field svg { inset-inline-end: 4px; width: 11px; height: 11px; }
}
@media (pointer: coarse) {
  .mail-card .mail-domain-select { min-block-size: 43px; }
}
