/* 商品详情页优惠券样式：主商品价、活动补贴栏和规格弹窗均保持原页面结构。 */
.goods-coupon-after-price {
    display: inline-block;
    vertical-align: middle;
    margin-left: 7px;
    padding: 3px 9px;
    border-radius: 16px;
    background: #ff4a50;
    color: #fff !important;
    font-size: 12px;
    line-height: 1.35;
    font-weight: 600;
    white-space: nowrap;
}
.goods-coupon-after-price.coupon-price-needs-receive { background: #ff4a50; }
.goods-coupon-after-price.coupon-price-received { background: #f25359; }
.goods-coupon-summary-tag {
    display: inline-block;
    margin: 0 5px 4px 0;
    padding: 2px 7px;
    border: 1px solid #ffb7b9;
    border-radius: 3px;
    background: #fff5f5;
    color: #ed4148;
    font-size: 11px;
    line-height: 1.5;
}
/* 规格弹窗内合计行：原商品合计与券后总价并列，避免挤占购买按钮区域。 */
.specif-coupon-total {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 8px;
    box-sizing: border-box;
    width: 100%;
    margin-top: 5px;
    padding: 4px 0;
    color: #555;
    font-size: 11px;
    line-height: 1.5;
}
.specif-coupon-total-original { color: #777; text-decoration: line-through; }
.specif-coupon-total .specif-coupon-total-after {
    color: #ed4148;
    font-size: 13px;
    font-weight: 600;
}
.specif-coupon-total .specif-coupon-total-discount { color: #ed4148; }
.coupon-platform .coupon-content-tag,
.coupon-shop .coupon-content-tag,
.coupon-wallet .coupon-content-tag { max-width: 100%; }
/* 弹窗三栏：左侧来源+面额，中间名称/门槛/有效期，右侧领取状态保持原样。 */
.coupon-left { width: 25%; flex: 0 0 25%; justify-content: center; gap: 0.08rem; }
.coupon-left .coupon-source-tag { display: inline-block; max-width: 95%; margin: 0 0 0.06rem; padding: 0.02rem 0.07rem; border: 1px solid #fe4c4d; border-radius: 0.05rem; color: #fe4c4d; font-size: 0.18rem; line-height: 1.35; white-space: nowrap; }
.coupon-content { width: auto; flex: 1 1 auto; min-width: 0; align-items: flex-start; justify-content: center; }
.coupon-content-name { width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 0.27rem; font-weight: 600; }
.coupon-content-tag { margin-top: 0.08rem; font-size: 0.22rem; color: #666; }
.coupon-content-time { margin-top: 0.08rem; font-size: 0.17rem; line-height: 1.3; color: #999; word-break: break-all; }
.coupon-line { flex: 0 0 auto; }
.coupon-right { flex: 0 0 auto; white-space: nowrap; }
.coupon-points-left .coupon-source-tag { border-color: #fe4c4d; }
@media screen and (max-width: 360px) {
    .coupon-left { width: 24%; flex-basis: 24%; }
    .coupon-content { padding-left: 0.12rem; padding-right: 0.12rem; }
    .coupon-content-time { font-size: 0.15rem; }
    .coupon-right { padding-left: 0.14rem; padding-right: 0.14rem; }
}
.coupon-is-received { color: #999 !important; cursor: default; }
.coupon-can-receive { color: #ed4148 !important; cursor: pointer; }
.coupon-can-receive:active { opacity: .75; }
.coupon-empty { padding: 24px 0; color: #999; font-size: 13px; text-align: center; }
@media screen and (max-width: 360px) {
    .goods-coupon-after-price { margin-left: 4px; padding: 2px 6px; font-size: 11px; }
    .specif-coupon-total { gap: 2px 5px; font-size: 10px; }
}
/* qyjf 企业积分商品：优惠券面额、门槛和券后积分统一使用积分单位。 */
.coupon-points-left p { white-space: nowrap; }
.coupon-points-left p em { font-size: 20px; font-style: normal; }
.coupon-points-left p small { margin-left: 2px; font-size: 11px; }
.goods-coupon-after-points { margin-top: 3px; }


/* 普通非活动商品存在券后价时：原价改为红字透明底，原售价红底白字样式迁移到券后价。 */
.goods-price-selling.detail-coupon-original-price {
    padding: 0;
    padding-top: 0;
    background-color: transparent;
    color: #fe4c4d;
    border-radius: 0;
}
.goods-price-selling.detail-coupon-original-price em {
    color: #fe4c4d;
}
/* 普通非活动商品券后价：基础文案 0.25rem，金额/积分数值 0.32rem；统一覆盖领取状态的背景与字体规则。 */
.goods-main.price-mode-normal .goods-coupon-after-price.detail-coupon-selling-style {
    display: inline-flex;
    align-items: center;
    margin: 0.08rem 0 0 0.12rem;
    padding: 0.05rem 0.2rem;
    padding-top: 0.1rem;
    border-radius: 0.25rem;
    background-color: #fe4c4d !important;
    color: #ffffff !important;
    font-size: 0.25rem;
    font-weight: normal;
    line-height: 1.45;
    white-space: nowrap;
    vertical-align: middle;
}
.goods-main.price-mode-normal .goods-coupon-after-price.detail-coupon-selling-style em {
    font-size: 0.32rem;
    font-style: normal;
    color: #ffffff !important;
}


/* 仅普通非活动商品存在券后价时启用同一行布局；无券及活动商品保持原布局。 */
.goods-price-content.detail-coupon-price-row {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-start;
    gap: 0.12rem;
    white-space: nowrap;
}
.goods-price-content.detail-coupon-price-row .goods-price-selling.detail-coupon-original-price {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    margin: 0;
    line-height: 1.45;
    vertical-align: middle;
}
.goods-price-content.detail-coupon-price-row .goods-coupon-after-price.detail-coupon-selling-style {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    margin: 0 !important;
    line-height: 1.45;
    vertical-align: middle;
}
/* 普通积分商品存在券后价时，原价独占下一行；兼容纯积分及现金+积分两种价格。 */
.goods-price-content.detail-coupon-price-row.detail-coupon-integral-price-wrap {
    flex-wrap: wrap;
    white-space: normal;
}
.goods-price-content.detail-coupon-integral-price-wrap .goods-price-origin {
    display: block;
    flex: 0 0 100%;
    width: 100%;
    box-sizing: border-box;
    margin-left: 0;
    margin-top: 0.04rem;
    white-space: nowrap;
}


/* 积分商品余额不足时仅调整对应购买按钮背景色，其他按钮及原有布局不变。 */
.footer_nav_right > .total_btn.detail-coupon-points-insufficient,
#addbuy.detail-coupon-points-insufficient {
    background-color: #999999 !important;
}
