/* 遮罩层 */
.xwalert-modal-mask {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

/* 主弹窗容器 */
.xwalert-prompt-box {
  width: 300px;
  border-radius: 12px;
  overflow: hidden;
  text-align: center;
}
/* 弹窗风格 */
.xwalert-style-white { background: #fff; color: #333; }
.xwalert-style-black { background: #222; color: #fff; }
.xwalert-style-green { background: #07c160; color: #fff; }
.xwalert-style-yellow { background: #ff3232; color: #fff; }
.xwalert-style-red { background: #ff3232; color: #fff; }


/* 标题 */
.xwalert-prompt-title {
  padding: 20px 15px 10px;
  font-size: 16px;
  font-weight: bold;
}
/* 内容 */
.xwalert-prompt-content {
  padding: 0 15px 20px;
  font-size: 14px;
  line-height: 1.4;
}
/* 按钮组 */
.xwalert-prompt-btns {
  display: flex;
  border-top: 1px solid #eee;
}
.xwalert-style-yellow .xwalert-prompt-btns {
    display: flex;
    border-top: 1px solid #eee;
    background: #fffefe;
}

.xwalert-style-black .xwalert-prompt-btns,
.xwalert-style-green .xwalert-prompt-btns,
.xwalert-style-red .xwalert-prompt-btns,
.xwalert-style-yellow .xwalert-prompt-btns {
  border-color: rgba(255,255,255,0.2);
}
/* 按钮 */
.xwalert-prompt-btn {
  flex: 1;
  padding: 12px 0;
  font-size: 15px;
  border: none;
  background: transparent;
  cursor: pointer;
}
.xwalert-prompt-btn-cancel { color: #999; }
.xwalert-prompt-btn-confirm { color: #07c160; font-weight: bold; }
.xwalert-style-black .xwalert-prompt-btn-confirm,
.xwalert-style-green .xwalert-prompt-btn-confirm,
.xwalert-style-red .xwalert-prompt-btn-confirm {
  color: #fff;
}
.xwalert-style-yellow .xwalert-prompt-btn-confirm {
    color: #121212;
}
.xwalert-style-black .xwalert-prompt-btn-cancel,
.xwalert-style-green .xwalert-prompt-btn-cancel,
.xwalert-style-red .xwalert-prompt-btn-cancel {
  color:rgb(255 255 255 / 58%);
}

/* 小提示卡片 */
.xwalert-tips-box {
  position: fixed;
  max-width: 50%;
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 14px;
  z-index: 9998;
  word-break: break-all;
  color: #fff;
  box-sizing: border-box;
  text-align: center;
}
.xwalert-tips-default { background: #333; }
.xwalert-tips-error { background: #f44336; }
.xwalert-tips-success { background: #07c160; }
.xwalert-tips-warning { background: #faad14; }

/* 动画 */
.xwalert-fade { animation: xwalertFade 0.3s forwards; }
.xwalert-scale { animation: xwalertScale 0.3s forwards; }
.xwalert-rotate { animation: xwalertRotate 0.3s forwards; }
.xwalert-slideDown { animation: xwalertSlideDown 0.3s forwards; }
.xwalert-slideUp { animation: xwalertSlideUp 0.3s forwards; }
.xwalert-left { animation: xwalertLeft 0.3s forwards; }
.xwalert-right { animation: xwalertRight 0.3s forwards; }

@keyframes xwalertFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes xwalertScale { from { transform: scale(0.8); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes xwalertRotate { from { transform: rotateY(90deg); opacity: 0; } to { transform: rotateY(0); opacity: 1; } }
@keyframes xwalertSlideDown { from { opacity: 0; transform: translateY(-30px) translateX(-50%); } to { opacity: 1; transform: translateY(0) translateX(-50%); } }
@keyframes xwalertSlideUp { from { opacity: 0; transform: translateY(30px) translateX(-50%); } to { opacity: 1; transform: translateY(0) translateX(-50%); } }
@keyframes xwalertLeft { from { opacity: 0; transform: translateX(-30px) translateX(-50%); } to { opacity: 1; transform: translateX(0) translateX(-50%); } }
@keyframes xwalertRight { from { opacity: 0; transform: translateX(30px) translateX(-50%); } to { opacity: 1; transform: translateX(0) translateX(-50%); } }