/* 与 buy/assets/tobuy.css 登录弹窗保持一致 */
.gxy-ecs-config-dialog {
  --gxy-primary: #2981ff;
  --gxy-primary-hover: #1a6de6;
  --gxy-danger: #f33e3e;
  --gxy-text: #323235;
  --gxy-muted: #848689;
  --gxy-border: #ebedf0;
  border-radius: 2px;
  overflow: hidden;
  margin: 0 !important;
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  max-height: 86vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  background: #fff;
}
.gxy-ecs-config-dialog .el-button--primary {
  background-color: #2981ff !important;
  border-color: #2981ff !important;
  border-radius: 0 !important;
}
.gxy-ecs-config-dialog .el-button--primary:hover,
.gxy-ecs-config-dialog .el-button--primary:focus {
  background-color: #1a6de6 !important;
  border-color: #1a6de6 !important;
}
.gxy-ecs-config-dialog .el-button {
  border-radius: 0 !important;
}
.gxy-ecs-config-dialog .el-dialog__header {
  padding: 14px 16px 12px;
  border-bottom: 1px solid var(--gxy-border);
}
.gxy-ecs-config-dialog .el-dialog__title {
  font-size: 16px;
  font-weight: 700;
  color: var(--gxy-text);
  line-height: 1;
}
.gxy-ecs-config-dialog .el-dialog__headerbtn .el-dialog__close {
  color: var(--gxy-muted);
}
.gxy-ecs-config-dialog .el-dialog__body {
  padding: 14px 16px 8px;
  max-height: none;
  overflow-y: auto;
  flex: 1;
  min-height: 0;
  color: var(--gxy-text);
}
.gxy-ecs-config-dialog .el-dialog__footer {
  padding: 12px 16px 14px;
  border-top: 1px solid var(--gxy-border);
  text-align: right;
  box-sizing: border-box;
}
.gxy-ecs-dialog-footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}
.gxy-ecs-dialog-footer .el-button {
  min-width: 88px;
  border-radius: 0 !important;
}

.gxy-ecs-login-dialog .el-dialog__body {
  padding: 24px 20px 12px;
}
.gxy-ecs-login-tip {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.gxy-ecs-login-tip i {
  color: #e6a23c;
  font-size: 22px;
  line-height: 1.4;
  flex-shrink: 0;
}
/* 无 Element 图标字体时的兜底感叹号 */
.gxyun-login-dialog-fallback-wrap .gxy-ecs-login-tip i.el-icon-warning {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #e6a23c;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  font-style: normal;
}
.gxyun-login-dialog-fallback-wrap .gxy-ecs-login-tip i.el-icon-warning::before {
  content: "!";
  font-family: inherit;
}
.gxy-ecs-login-tip p {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: #323235;
}

@media (min-width: 769px) {
  .gxy-ecs-login-dialog {
    width: 420px !important;
  }
}

/* 纯 DOM 回退（无 Element 时）也复用同一套视觉 */
.gxyun-login-dialog-fallback-wrap {
  position: fixed;
  inset: 0;
  z-index: 4000;
}
.gxyun-login-dialog-fallback-wrap .v-modal {
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  opacity: 0.5;
  background: #000;
}
.gxyun-login-dialog-fallback-wrap .el-dialog__wrapper {
  position: fixed;
  inset: 0;
  overflow: auto;
  margin: 0;
}
.gxyun-login-dialog-fallback-wrap .el-dialog {
  width: 86%;
  margin: 0 !important;
}
.gxyun-login-dialog-fallback-wrap .el-dialog__headerbtn {
  position: absolute;
  top: 14px;
  right: 16px;
  padding: 0;
  background: transparent;
  border: none;
  outline: none;
  cursor: pointer;
  font-size: 16px;
}
.gxyun-login-dialog-fallback-wrap .el-button {
  display: inline-block;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  background: #fff;
  border: 1px solid #dcdfe6;
  color: #606266;
  text-align: center;
  box-sizing: border-box;
  outline: none;
  margin: 0;
  transition: 0.1s;
  font-weight: 500;
  padding: 12px 20px;
  font-size: 14px;
  border-radius: 0;
}
.gxyun-login-dialog-fallback-wrap .el-button--primary {
  color: #fff;
  background-color: #2981ff;
  border-color: #2981ff;
}
.gxyun-login-dialog-fallback-wrap .el-button--primary:hover,
.gxyun-login-dialog-fallback-wrap .el-button--primary:focus {
  background: #1a6de6;
  border-color: #1a6de6;
  color: #fff;
}
.gxyun-login-dialog-fallback-wrap .el-button:hover,
.gxyun-login-dialog-fallback-wrap .el-button:focus {
  color: #2981ff;
  border-color: #c6e2ff;
  background-color: #ecf5ff;
}
.gxyun-login-dialog-fallback-wrap .el-button--primary:hover,
.gxyun-login-dialog-fallback-wrap .el-button--primary:focus {
  color: #fff;
  background: #1a6de6;
  border-color: #1a6de6;
}
