.points-estimate-wrap {
  margin-top: 12px;
  overflow: visible;
}

.points-estimate-wrap.points-estimate--full {
  margin-top: 0;
}

.points-estimate-wrap.points-estimate--full .points-estimate {
  width: 100%;
  justify-content: space-between;
  border-radius: 0;
  overflow: visible;
}

.footer_info .points-estimate-wrap.points-estimate--full {
  margin: 0 -16px;
  width: calc(100% + 32px);
}

.footer_info .points-estimate-wrap.points-estimate--full .points-estimate {
  width: 100%;
  border-radius: 0;
  box-sizing: border-box;
}

.footer_info .points-estimate-wrap + .footer_item {
  padding-top: 16px;
}

.points-estimate-wrap.points-estimate--center .points-estimate {
  width: 100%;
  justify-content: center;
}

.points-estimate {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  align-items: center;
  gap: 8px;
  padding: 4px 8px;
  background: #fff5f0;
  border-radius: 8px;
  box-sizing: border-box;
  overflow: visible;
}

.points-estimate__main {
  display: flex;
  align-items: center;
  gap: 8px;
}

.points-estimate__coin {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  object-fit: contain;
}

.points-estimate__title {
  font-size: 12px;
  color: #1c2024;
  line-height: 1.4;
}

.points-estimate__value {
  color: #d34900;
}

.points-estimate__help {
  display: block;
  color: rgba(0, 0, 0, 0.45);
  cursor: pointer;
  transition: color 0.2s;
}

.points-estimate__help:hover {
  color: rgba(0, 0, 0, 0.65);
}

.points-estimate__help-wrap--desktop {
  position: relative;
  display: inline-flex;
  align-items: center;
  overflow: visible;
}

.points-estimate__tooltip {
  display: none;
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  transform: translateX(-50%);
  max-width: 260px;
  min-width: 200px;
  width: max-content;
  padding: 8px 12px;
  background: #000;
  color: #fff;
  font-size: 12px;
  line-height: 1.6;
  text-align: left;
  white-space: normal;
  border-radius: 4px;
  z-index: 10000;
  box-sizing: border-box;
}

/* full 布局问号靠右，tooltip 右对齐避免被容器裁切 */
.points-estimate-wrap.points-estimate--full .points-estimate__help-wrap--desktop .points-estimate__tooltip {
  left: auto;
  right: 0;
  transform: none;
}

.points-estimate-wrap.points-estimate--full .points-estimate__help-wrap--desktop .points-estimate__tooltip::after {
  left: auto;
  right: 8px;
  transform: none;
}

.points-estimate__tooltip::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -5px;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: #000;
}

.points-estimate__help-wrap--desktop:hover .points-estimate__tooltip {
  display: block;
}

@media (max-width: 1023px) {
  .points-estimate__help-wrap--desktop {
    display: none;
  }

  .points-estimate__help-wrap--mobile {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
  }
}

@media (min-width: 1024px) {
  .points-estimate__help-wrap--mobile {
    display: none !important;
  }
}

.points-estimate-dialog {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
}

.points-estimate-dialog:target {
  display: block;
}

.points-estimate-dialog__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: block;
}

.points-estimate-dialog__panel {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: calc(100% - 32px);
  max-width: 500px;
  padding: 50px 30px;
  background: #fff;
  border-radius: 16px;
  text-align: center;
  box-sizing: border-box;
}

.points-estimate-dialog__text {
  margin: 0;
  font-size: 16px;
  color: rgba(0, 0, 0, 0.8);
  line-height: 1.6;
}

.points-estimate-dialog__confirm {
  display: inline-block;
  margin-top: 16px;
  min-width: 150px;
  padding: 10px 24px;
  border-radius: 50px;
  background: #ff6600;
  color: #fff;
  font-size: 14px;
  text-decoration: none;
}

.points-estimate-dialog__confirm:hover {
  background: #ff5500;
  color: #fff;
}

/* 结算页 ul 原有 overflow:hidden 会裁切 tooltip */
.submit_order_ ul,
.submit_order_ ul li {
  overflow: visible;
}

.submit_order_ ul {
  display: flow-root;
}

/* 移动端结算顶栏积分条（圆角、居中） */
.sw-moblie .points-estimate-wrap {
  margin: 8px 16px 0;
  display: flex;
  justify-content: center;
}

.sw-moblie .points-estimate-wrap .points-estimate {
  border-radius: 8px;
}
