/* Email Marketing WP — Frontend Shortcodes */
.emwp-sc { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; font-size: 15px; color: #1f2937; }
.emwp-sc *, .emwp-sc *::before, .emwp-sc *::after { box-sizing: border-box; }

/* Gate */
.emwp-sc-gate { background: #f9fafb; border: 1px solid #e5e7eb; border-radius: 10px; padding: 32px; text-align: center; color: #6b7280; }
.emwp-sc-gate--no-plan { background: #fffbeb; border-color: #fbbf24; color: #92400e; }

/* Card */
.emwp-sc-card { background: #fff; border: 1px solid #e5e7eb; border-radius: 10px; overflow: hidden; }
.emwp-sc-card__header { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid #e5e7eb; background: #f9fafb; }
.emwp-sc-card__header h3 { margin: 0; font-size: 16px; font-weight: 700; color: #111827; }
.emwp-sc-card > table { margin: 0; }

/* Buttons */
.emwp-sc-btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; background: #4f46e5; color: #fff; border: none; border-radius: 6px; font-size: 14px; font-weight: 600; cursor: pointer; text-decoration: none; transition: opacity .15s; }
.emwp-sc-btn:hover { opacity: .85; color: #fff; }
.emwp-sc-btn--sm { padding: 5px 10px; font-size: 12px; }
.emwp-sc-btn--secondary { background: #6b7280; }
.emwp-sc-btn--primary { background: #4f46e5; }
.emwp-sc-btn--danger { background: #ef4444; }

/* Table */
.emwp-sc-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.emwp-sc-table th { padding: 10px 16px; text-align: left; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: #6b7280; background: #f9fafb; border-bottom: 1px solid #e5e7eb; }
.emwp-sc-table td { padding: 12px 16px; border-bottom: 1px solid #f3f4f6; color: #374151; }
.emwp-sc-table tr:last-child td { border-bottom: none; }

/* Badges */
.emwp-sc-badge { display: inline-block; padding: 2px 10px; border-radius: 99px; font-size: 12px; font-weight: 600; }
.emwp-sc-badge--draft    { background: #f3f4f6; color: #6b7280; }
.emwp-sc-badge--sending  { background: #dbeafe; color: #1d4ed8; }
.emwp-sc-badge--sent     { background: #d1fae5; color: #065f46; }
.emwp-sc-badge--scheduled{ background: #ede9fe; color: #5b21b6; }
.emwp-sc-badge--failed   { background: #fee2e2; color: #991b1b; }

/* Plan info */
.emwp-plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px,1fr)); gap: 16px; padding: 16px 20px; }
.emwp-plan-stat { text-align: center; }
.emwp-plan-stat__val { font-size: 22px; font-weight: 700; color: #4f46e5; display: block; }
.emwp-plan-stat__lbl { font-size: 12px; color: #6b7280; margin-top: 2px; display: block; }
.emwp-plan-expires { padding: 0 20px 16px; font-size: 13px; color: #9ca3af; margin: 0; }

/* Progress bar */
.emwp-pbar { background: #e5e7eb; border-radius: 99px; height: 8px; overflow: hidden; width: 100%; }
.emwp-pbar__fill { height: 100%; border-radius: 99px; transition: width .4s ease; }

/* Stats grid (reports) */
.emwp-sc-stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px,1fr)); gap: 1px; background: #e5e7eb; }
.emwp-sc-stat { background: #fff; padding: 20px; text-align: center; }
.emwp-sc-stat__val { display: block; font-size: 26px; font-weight: 800; color: #4f46e5; }
.emwp-sc-stat__lbl { display: block; font-size: 12px; color: #6b7280; margin-top: 4px; }

/* Usage bar */
.emwp-sc-usage-bar { background: #f9fafb; border: 1px solid #e5e7eb; border-radius: 8px; padding: 10px 16px; margin-bottom: 12px; font-size: 13px; color: #374151; display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }

/* Empty */
.emwp-sc-empty { padding: 32px; text-align: center; color: #9ca3af; font-style: italic; margin: 0; }

/* Notifications */
.emwp-sc-notify { position: fixed; bottom: 24px; right: 24px; z-index: 99999; padding: 14px 20px; border-radius: 8px; font-size: 14px; font-weight: 600; color: #fff; box-shadow: 0 4px 16px rgba(0,0,0,.15); animation: emwpSlideIn .25s ease; }
.emwp-sc-notify--success { background: #16a34a; }
.emwp-sc-notify--error   { background: #dc2626; }
@keyframes emwpSlideIn { from { opacity:0; transform: translateY(12px); } to { opacity:1; transform: translateY(0); } }
