/* tc-alert: 独立告知弹窗，全部使用 px，不受 rem 基准影响 */

#tc-alert {
  display: none;
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 10050;
  background: rgba(0, 0, 0, 0.72);
  font-size: 14px;
  line-height: 1.5;
}

#tc-alert.is-open {
  display: block;
}

body.tc-alert-open {
  overflow: hidden;
}

#tc-alert .tc-alert__panel {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 300px;
  max-width: calc(100% - 32px);
  background: #faf8f5;
  border: 1px solid rgba(224, 206, 156, 0.45);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.28);
  transform: translate(-50%, -50%);
  animation: tc-alert-in 0.24s ease;
}

@keyframes tc-alert-in {
  from {
    opacity: 0;
    transform: translate(-50%, calc(-50% + 10px));
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
}

#tc-alert .tc-alert__head {
  position: relative;
  padding: 10px 36px 10px 12px;
  background: #c71b1e;
  text-align: center;
}

#tc-alert .tc-alert__title {
  margin: 0;
  padding: 0;
  font-family: 'Noto Serif JP', serif;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.3px;
  color: #fff;
}

#tc-alert .tc-alert__x {
  position: absolute;
  top: 4px;
  right: 6px;
  width: 24px;
  height: 24px;
  padding: 0;
  margin: 0;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.75);
  font-size: 22px;
  line-height: 24px;
  text-align: center;
  cursor: pointer;
}

#tc-alert .tc-alert__x:hover {
  color: #fff;
}

#tc-alert .tc-alert__body {
  padding: 16px 16px 14px;
  text-align: center;
}

#tc-alert .tc-alert__text {
  display: block;
  margin: 0 0 12px;
  padding: 0;
  min-height: 0;
  height: auto;
  font-family: 'Noto Serif JP', serif;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.45;
  letter-spacing: 0.1px;
  color: #3b332c;
  text-align: center;
  word-break: break-word;
}

#tc-alert .tc-alert__btn {
  display: inline-block;
  min-width: 100px;
  height: 32px;
  padding: 0 16px;
  margin: 0;
  border: 1px solid #e0ce9c;
  background: transparent;
  color: #3b332c;
  font-family: 'Noto Serif JP', serif;
  font-size: 13px;
  font-weight: 600;
  line-height: 30px;
  letter-spacing: 0.5px;
  text-align: center;
  cursor: pointer;
  box-sizing: border-box;
  vertical-align: top;
}

#tc-alert .tc-alert__btn:hover {
  background: #e0ce9c;
}
