/**
 * 优惠券显示修复样式
 */

/* 强制优惠券描述显示正确的信息 */
.coupon-description {
  display: inline-block !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  max-width: 100% !important;
  font-weight: 600 !important;
  color: #ff758c !important;
}

/* 确保优惠券描述容器正确显示 */
.coupon-description-wrapper {
  margin-top: 4px !important;
  margin-bottom: 4px !important;
  width: 100% !important;
}

/* 确保优惠券代码正确显示 */
.coupon-code {
  font-weight: 700 !important;
  font-size: 16px !important;
  color: #333 !important;
  margin-bottom: 5px !important;
  display: block !important;
}

/* 确保优惠券信息区域正确显示 */
.applied-coupon-info {
  display: flex !important;
  flex-direction: column !important;
  flex: 1 !important;
  min-width: 0 !important; /* 确保flex子元素不会溢出 */
}

/* 确保整个优惠券容器正确显示 */
.applied-coupon {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  background-color: #fff !important;
  border: 1px solid #ddd !important;
  border-radius: 4px !important;
  padding: 8px 12px !important;
  margin-bottom: 10px !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

/* 移动端适配 */
@media (max-width: 768px) {
  .applied-coupon {
    padding: 6px 8px !important;
  }
  
  .coupon-code {
    font-size: 14px !important;
  }
  
  .coupon-description {
    font-size: 12px !important;
  }
}
