.open-account-layer[hidden] {
  display: none !important;
}

.open-account-layer {
  position: fixed;
  inset: 0;
  z-index: 220;
  display: grid;
  padding: 20px;
  place-items: center;
}

.open-account-scrim {
  position: absolute;
  inset: 0;
  background: rgba(28, 20, 17, 0.5);
  border: 0;
  backdrop-filter: blur(7px);
}

.open-account-dialog {
  position: relative;
  z-index: 1;
  width: min(430px, calc(100vw - 32px));
  padding: 28px;
  color: #241b17;
  background: #fffaf3;
  border: 1px solid #e2d1c6;
  border-radius: 18px;
  box-shadow: 0 36px 90px rgba(47, 28, 19, 0.24);
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}

.open-account-close {
  position: absolute;
  top: 15px;
  right: 15px;
  display: grid;
  width: 30px;
  height: 30px;
  padding: 0;
  color: #89796f;
  background: transparent;
  border: 1px solid #e5d7ce;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  place-items: center;
}

.open-account-kicker {
  color: #b94326;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.open-account-dialog h2 {
  margin: 10px 0 8px;
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: 27px;
  font-weight: 600;
  line-height: 1.35;
}

.open-account-lead {
  margin: 0 0 20px;
  color: #796c63;
  font-size: 11px;
  line-height: 1.8;
}

.open-account-form {
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.open-account-form label > span {
  display: block;
  margin-bottom: 7px;
  color: #74665d;
  font-size: 9px;
}

.open-account-form input[type="text"] {
  width: 100%;
  height: 42px;
  padding: 0 12px;
  color: #241b17;
  background: #f7f1ea;
  border: 1px solid #e1d2c7;
  border-radius: 8px;
  outline: 0;
  font-size: 12px;
}

.open-account-form input[type="text"]:focus {
  border-color: #c8856e;
  box-shadow: 0 0 0 3px rgba(229, 101, 61, 0.1);
}

.open-account-consent {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  color: #877970;
  font-size: 9px;
  line-height: 1.6;
}

.open-account-consent input {
  margin-top: 2px;
  accent-color: #b94326;
}

.open-account-submit {
  min-height: 42px;
  color: #fffaf3;
  background: #b94326;
  border: 0;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.open-account-submit:hover {
  background: #241b17;
}

.open-account-error {
  margin: 0;
  color: #a93422;
  font-size: 9px;
}

.open-account-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  margin-top: 17px;
  color: #92847a;
  border-top: 1px solid #eadbd2;
  font-size: 8px;
}

.open-account-foot a {
  color: #b94326;
  text-decoration: none;
}

.open-account-profile {
  text-align: center;
}

.open-account-avatar {
  display: grid;
  width: 62px;
  height: 62px;
  margin: 5px auto 15px;
  color: #fffaf3;
  background: #b94326;
  border-radius: 50%;
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: 25px;
  place-items: center;
}

.open-account-profile h2 {
  margin: 0 0 6px;
}

.open-account-local-badge {
  display: inline-block;
  padding: 4px 9px;
  color: #9a4a2e;
  background: #f8e2d7;
  border-radius: 99px;
  font-size: 8px;
}

.open-account-profile p {
  margin: 16px 0 0;
  color: #796c63;
  font-size: 10px;
  line-height: 1.8;
}

.open-account-actions {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 19px;
}

.open-account-actions button,
.open-account-actions a {
  padding: 8px 12px;
  color: #8c4c33;
  background: transparent;
  border: 1px solid #e2d1c6;
  border-radius: 999px;
  font-size: 9px;
  text-decoration: none;
  cursor: pointer;
}

.top-login[data-open-account="1"] {
  cursor: pointer;
}

@media (max-width: 520px) {
  .open-account-dialog {
    padding: 24px 20px;
  }
}
