/**
 * 文件职责：优惠券卡片样式。
 * 1. 还原券面左区、详情右区、进度与状态条。
 */
.page-marketing-coupon {
  .mcp-coupon {
    display: flex;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--mcp-border);
    border-radius: 12px;
    box-shadow: var(--mcp-shadow-sm);
    transition:
      box-shadow var(--mcp-transition),
      transform var(--mcp-transition);
  }

  .mcp-coupon:hover {
    box-shadow: var(--mcp-shadow-md);
    transform: translateY(-1px);
  }

  .mcp-coupon.mcp-dimmed {
    opacity: 0.58;
  }

  .mcp-left {
    position: relative;
    display: flex;
    flex-shrink: 0;
    flex-direction: column;
    gap: 8px;
    align-items: center;
    justify-content: center;
    width: 160px;
    min-height: 132px;
    padding: 16px 10px;
    color: #fff;
  }

  .mcp-left::after {
    position: absolute;
    top: 50%;
    right: -6px;
    width: 12px;
    height: 12px;
    content: '';
    background: #fff;
    border-radius: 50%;
    transform: translateY(-50%);
  }

  .mcp-left-red {
    background: linear-gradient(135deg, #ff6b6b, #ef5350);
  }

  .mcp-left-blue {
    background: linear-gradient(135deg, #4facfe, #1677ff);
  }

  .mcp-left-green {
    color: #1a5c3a;
    background: linear-gradient(135deg, #6ee7b7, #34d399);
  }

  .mcp-face-value {
    font-size: 30px;
    font-weight: 800;
    line-height: 1.1;
  }

  .mcp-face-cond {
    font-size: 12px;
    opacity: 0.9;
  }

  .mcp-right {
    flex: 1;
    min-width: 0;
    padding: 14px 18px;
  }

  .mcp-title-row {
    display: flex;
    gap: 8px;
    align-items: center;
  }

  .mcp-name {
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 15px;
    font-weight: 600;
    color: var(--mcp-text);
    white-space: nowrap;
  }

  .mcp-type-pill {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    height: 22px;
    padding: 0 8px;
    font-size: 11px;
    color: #64748b;
    background: #f1f5f9;
    border-radius: 999px;
  }

  .mcp-validity {
    display: flex;
    gap: 4px;
    align-items: center;
    margin-top: 6px;
    font-size: 12px;
    color: var(--mcp-muted);
  }

  .mcp-validity .iconify {
    width: 12px;
    height: 12px;
  }

  .mcp-rules {
    margin-top: 4px;
    font-size: 12px;
    color: var(--mcp-subtext);
  }

  .mcp-progress-row {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-top: 8px;
    font-size: 12px;
    color: var(--mcp-subtext);
  }

  .mcp-progress-wrap {
    flex: 1;
    max-width: 220px;
  }

  .mcp-progress-bar {
    height: 6px;
    overflow: hidden;
    background: #edf0f5;
    border-radius: 999px;
  }

  .mcp-progress-fill {
    display: block;
    height: 100%;
    border-radius: 999px;
  }

  .mcp-progress-red {
    background: linear-gradient(90deg, #ff6b6b, #ef5350);
  }

  .mcp-progress-blue {
    background: linear-gradient(90deg, #4facfe, #1677ff);
  }

  .mcp-progress-green {
    background: linear-gradient(90deg, #6ee7b7, #10b981);
  }

  .mcp-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 10px;
  }

  .mcp-meta-tags {
    display: inline-flex;
    gap: 6px;
    align-items: center;
  }

  .mcp-status-tag {
    display: inline-flex;
    align-items: center;
    height: 22px;
    padding: 0 8px;
    font-size: 12px;
    border-radius: 999px;
  }

  .mcp-status-ongoing {
    color: #166534;
    background: #dcfce7;
  }

  .mcp-status-upcoming {
    color: #1d4ed8;
    background: #dbeafe;
  }

  .mcp-status-ended {
    color: #475569;
    background: #e2e8f0;
  }

  .mcp-status-disabled {
    color: #92400e;
    background: #fef3c7;
  }

  .mcp-store-tag {
    display: inline-flex;
    align-items: center;
    max-width: 180px;
    height: 22px;
    padding: 0 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 12px;
    color: #475569;
    white-space: nowrap;
    background: #f1f5f9;
    border-radius: 999px;
  }
}
