.product-price {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.product-price__item {
  color: rgb(var(--color-sale));
}

.product-price__item--compare {
  color: rgb(var(--color-light-text));
  text-decoration: line-through;
}

.product-price__ratio {
  color: rgb(var(--color-sale));
}

/* Coupons */
.custom_discount_pop_header {
  position: sticky;
  top: 0;
  background-color: white;
  text-align: center;
  z-index: 2;
  border-bottom: 1px solid #e8e8e8;
  padding: 16px;
}
.close_discount_pop {
  position: absolute;
  top: 50%;
  right: 30px;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  border: none;
  background: none;
}
.close_discount_pop svg {
  width: 16px;
  height: auto;
}
.custom_discount_auto_content {
  padding: 20px 30px;
}
.custom_discount_auto_top {
  text-align: center;
  color: #ce2228;
  font-size: 20px;
}
.custom_discount_auto_top .custom_discount_pop_price {
  font-weight: bold;
}
.custom_discount_auto_top .custom_discount_pop_price_text {
  font-size: 14px;
}
.custom_discount_auto_info {
  background: #f4f4f4;
  border-radius: 4px;
  padding: 12px;
  margin-top: 16px;
  position: relative;
  padding: 15px 30px;
  font-size: 16px;
  font-weight: bold;
}
.custom_discount_auto_info::after {
  content: "";
  width: 0;
  height: 0;
  border-left: 15px solid transparent;
  border-right: 15px solid transparent;
  border-bottom: 15px solid #f4f4f4;
  position: absolute;
  top: -12px;
  left: 46%;
}
.custom_discount_auto_info_wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.custom_discount_auto_info_wrapper {
  margin-top: 20px;
}
.custom_discount_auto_info_wrapper + .custom_discount_auto_info_wrapper {
  margin-top: 10px;
}
.custom_discount_auto_total_wrapper {
  padding-top: 15px;
  border-top: 1px dashed #707070;
}
.custom_discount_auto_button {
  width: 100%;
  text-align: center;
  line-height: 24px;
  background-color: #1f1a5e;
  border-radius: 10px;
  color: #fff;
  font-size: 16px;
  margin-top: 20px;
  cursor: pointer;
  border-radius: 10px;
}
.custom_discount_code_text1 * {
  margin: 0;
}
.custom_discount_code_list {
  padding: 0 30px 30px;
  margin-top: 23px;
}
.custom_discount_code_list_title {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 16px;
}

@media screen and (max-width: 750px) {
  .custom_product_discount_pop_container {
    width: 100%;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    overflow: auto;
  }

  .custom_discount_auto_content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }
  .custom_discount_code_list {
    padding: 0 20px 20px;
    margin-top: 10px;
  }
  .custom_discount_pop_header {
    font-size: 20px;
  }
  .custom_discount_auto_top {
    font-size: 20px;
    background: #fdf3f5;
    border-radius: 5px;
    padding: 10px;
  }
  .custom_discount_auto_top .custom_discount_pop_price_text {
    font-size: 15px;
  }
  .custom_discount_auto_info {
    font-size: 14px;
    padding: 10px 15px;
    width: 100%;
  }
  .custom_discount_auto_info_wrapper {
    margin-top: 10px;
  }
}

/*  卡片容器 */
.coupon-card {
  position: relative;
  width: 100%;
  max-width: 480px; /* 限制最大宽度 */
  height: 160px; /* 固定高度以保持设计比例 */
  filter: drop-shadow(0 4px 10px rgba(160, 100, 50, 0.2)); /* 柔和的投影 */
  transition: transform 0.2s;
  /* 卡片背景：使用温润的暖金色渐变 */
  --card-bg-start: #eacda3;
  --card-bg-end: #d6ae7b;

  /* 字体颜色：深咖啡色，比纯黑更融合 */
  --text-primary: #3e2723;
  --text-secondary: #5d4037;
  --text-muted: rgba(62, 39, 35, 0.6);

  /* 按钮颜色 */
  --btn-bg: #3e2723;
  --btn-text: #fff;
}

.coupon-card:hover {
  transform: translateY(-2px); /* 悬停轻微上浮 */
}

/* 3. 背景层：SVG 绝对定位在底层 */
.coupon-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

/* 4. 内容层：绝对定位在顶层，使用 Flex 布局 */
.coupon-content {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}

/* 上半部分 */
.top-section {
  flex: 1; /* 占据剩余空间 */
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

/* 下半部分 (底部标语) */
.bottom-section {
  height: 44px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.offer-box {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.title {
  font-size: 28px;
  font-weight: 800; /* 特粗字体 */
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: 2px;
}

.subtitle {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
}

.code-wrapper {
  margin-top: 8px;
  font-size: 14px;
  color: var(--text-primary);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

.code-val {
  font-family: "Courier New", Courier, monospace;
  background: rgba(255, 255, 255, 0.3);
  padding: 2px 6px;
  border-radius: 4px;
}

.copy-btn {
  background-color: transparent;
  border: 1.5px solid var(--text-primary);
  color: var(--text-primary);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.copy-btn:hover {
  background-color: var(--btn-bg);
  color: var(--btn-text);
  border-color: var(--btn-bg);
}
