/* =========================================================
   Twingital Affiliate Pro — Public Styles
   ========================================================= */

/* ─── Review Box ───────────────────────────────────────── */
.tap-review-box {
  border: 2px solid #e8e8e8;
  border-radius: 14px;
  overflow: hidden;
  margin: 32px 0;
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  box-shadow: 0 4px 24px rgba(0,0,0,.08);
}

.tap-review-header {
  background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
  padding: 28px;
  border-bottom: 2px solid #f0f0f0;
}

.tap-review-product-info {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.tap-review-img-wrap {
  flex: 0 0 160px;
}

.tap-review-img {
  width: 100%;
  height: 160px;
  object-fit: contain;
  border-radius: 10px;
  background: #fff;
  padding: 8px;
  border: 1px solid #eee;
}

.tap-review-product-text {
  flex: 1;
}

.tap-review-brand {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #888;
  margin-bottom: 4px;
}

.tap-review-product-name {
  font-size: 22px;
  font-weight: 800;
  color: #1a1a1a;
  margin: 0 0 8px;
  line-height: 1.2;
}

.tap-platform-badge {
  display: inline-flex;
  align-items: center;
  background: #fff3e0;
  color: #e65100;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 10px;
}

.tap-review-stars-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.tap-review-stars {
  display: flex;
  gap: 2px;
  font-size: 22px;
}

.tap-star--full  { color: #FFB800; }
.tap-star--half  { color: #FFB800; }
.tap-star--empty { color: #ddd; }

.tap-review-score {
  font-size: 16px;
  font-weight: 800;
  color: #333;
}

.tap-review-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.tap-price-label {
  font-size: 13px;
  color: #666;
  flex-shrink: 0;
}

.tap-price-value {
  font-size: 20px;
  font-weight: 900;
  color: #22c55e;
  white-space: nowrap;
  overflow: visible;
  word-break: keep-all;
}

/* ─── Buy Button ───────────────────────────────────────── */
.tap-buy-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #FF6B35;
  color: #fff !important;
  text-decoration: none !important;
  padding: 12px 22px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 700;
  transition: filter .2s, transform .1s;
  border: none;
  cursor: pointer;
}

.tap-buy-btn:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
  color: #fff !important;
  text-decoration: none !important;
}

.tap-buy-btn--large {
  padding: 14px 28px;
  font-size: 17px;
}

.tap-buy-btn-arrow {
  transition: transform .2s;
}

.tap-buy-btn:hover .tap-buy-btn-arrow {
  transform: translateX(4px);
}

/* ─── Criteria bars ────────────────────────────────────── */
.tap-review-criteria {
  padding: 22px 28px;
  border-bottom: 2px solid #f0f0f0;
  background: #fff;
}

.tap-review-section-title {
  font-size: 15px;
  font-weight: 800;
  color: #333;
  margin: 0 0 16px;
}

.tap-criteria-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tap-criterion-top {
  display: flex;
  justify-content: space-between;
  margin-bottom: 5px;
}

.tap-criterion-label {
  font-size: 13px;
  color: #555;
  font-weight: 600;
}

.tap-criterion-score {
  font-size: 13px;
  font-weight: 800;
  color: #333;
}

.tap-criterion-bar {
  height: 8px;
  background: #f0f0f0;
  border-radius: 4px;
  overflow: hidden;
}

.tap-criterion-fill {
  height: 100%;
  border-radius: 4px;
  transition: width .8s ease;
}

/* ─── Pros / Cons ──────────────────────────────────────── */
.tap-review-proscons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-bottom: 2px solid #f0f0f0;
}

.tap-pros { padding: 20px 24px; background: #f0fdf4; border-right: 1px solid #dcfce7; }
.tap-cons { padding: 20px 24px; background: #fef2f2; }

.tap-proscons-title {
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .5px;
  margin: 0 0 10px;
}

.tap-pros-title { color: #16a34a; }
.tap-cons-title { color: #dc2626; }

.tap-proscons-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.tap-pro-item, .tap-con-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 5px 0;
  font-size: 14px;
  color: #333;
  line-height: 1.4;
}

.tap-pro-icon {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  background: #16a34a;
  color: #fff;
  border-radius: 50%;
  font-size: 14px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}

.tap-con-icon {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  background: #dc2626;
  color: #fff;
  border-radius: 50%;
  font-size: 14px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}

/* ─── Verdict ──────────────────────────────────────────── */
.tap-review-verdict {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px 28px;
  background: #fffbf0;
  border-bottom: 2px solid #f0f0f0;
}

.tap-verdict-icon { font-size: 28px; flex: 0 0 auto; }

.tap-verdict-content strong {
  display: block;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: #888;
  margin-bottom: 4px;
}

.tap-verdict-content p {
  font-size: 15px;
  color: #333;
  line-height: 1.6;
  margin: 0;
}

/* ─── CTA bottom ───────────────────────────────────────── */
.tap-review-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 28px;
  background: #f8f9fa;
}

.tap-overall-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.tap-overall-num {
  font-size: 36px;
  font-weight: 900;
  color: #FF6B35;
  line-height: 1;
}

.tap-overall-label {
  font-size: 11px;
  color: #888;
  text-transform: uppercase;
  letter-spacing: .5px;
}

/* ─── Disclosure ───────────────────────────────────────── */
.tap-disclosure {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  background: #f0f7ff;
  border: 1px solid #c0d8f0;
  border-left: 4px solid #3b82f6;
  border-radius: 6px;
  padding: 10px 14px;
  font-size: 13px;
  color: #444;
  margin: 16px 0;
}

.tap-disclosure__icon { flex: 0 0 auto; }

/* ─── Compare Table ────────────────────────────────────── */
.tap-compare-wrap {
  overflow-x: auto;
  margin: 28px 0;
}

.tap-compare-table {
  width: 100%;
  border-collapse: collapse;
  font-family: 'Segoe UI', system-ui, sans-serif;
  font-size: 14px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,.08);
}

.tap-compare-table thead tr {
  background: #1a1a1a;
  color: #fff;
}

.tap-compare-table th {
  padding: 16px 14px;
  text-align: center;
  font-weight: 700;
}

.tap-compare-label-col {
  text-align: left !important;
  min-width: 140px;
  background: #f8f9fa !important;
  color: #333 !important;
}

.tap-compare-table tbody tr:nth-child(even) { background: #f8f9fa; }
.tap-compare-table tbody tr:hover { background: #fff3e0; }

.tap-compare-label {
  padding: 12px 14px;
  font-weight: 600;
  color: #555;
  background: #f8f9fa;
  border-right: 2px solid #e8e8e8;
  white-space: nowrap;
}

.tap-compare-cell {
  padding: 12px 14px;
  text-align: center;
  border-right: 1px solid #e8e8e8;
  vertical-align: middle;
}

.tap-compare-highlight { background: #fff8f0; }

/* ─── Inline stars ─────────────────────────────────────── */
.tap-stars-inline {
  display: inline-flex;
  align-items: center;
  gap: 1px;
  font-size: 18px;
}

/* ─── Responsive ───────────────────────────────────────── */
@media (max-width: 640px) {
  .tap-review-product-info {
    flex-direction: column;
  }

  .tap-review-img-wrap {
    flex: none;
    width: 120px;
    margin: 0 auto;
  }

  .tap-review-proscons {
    grid-template-columns: 1fr;
  }

  .tap-pros {
    border-right: none;
    border-bottom: 1px solid #dcfce7;
  }

  .tap-review-cta {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .tap-review-header { padding: 16px; }
  .tap-review-criteria, .tap-review-verdict { padding: 16px; }
  .tap-review-product-name { font-size: 18px; }
}

/* ─── Compare table enhancements ──────────────────────── */
.tap-compare-section-header td {
  background: #f8f9fa;
  font-size: 12px;
  font-weight: 700;
  color: #555;
  text-transform: uppercase;
  letter-spacing: .5px;
  padding: 8px 14px;
  border-top: 2px solid #e8e8e8;
}

.tap-compare-winner {
  background: #fffbf0 !important;
  position: relative;
}

.tap-winner-badge {
  font-size: 11px;
  font-weight: 700;
  color: #b45309;
  background: #fef3c7;
  border-radius: 4px;
  padding: 2px 7px;
  display: inline-block;
  margin-bottom: 4px;
  white-space: nowrap;
}

.tap-spec-yes  { color: #16a34a; font-weight: 700; }
.tap-spec-no   { color: #dc2626; }

.tap-spec-compare-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px; height: 14px;
  border-radius: 50%;
  font-size: 9px;
  font-weight: 700;
  margin-left: 3px;
  vertical-align: middle;
}

.tap-spec-compare--higher { background: #d1fae5; color: #065f46; }
.tap-spec-compare--lower  { background: #dbeafe; color: #1e40af; }

/* ─── Specs box — modern redesign ─────────────────────── */
.tap-specs-modern {
  border-radius: 14px;
  overflow: hidden;
  margin: 24px 0;
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  box-shadow: 0 4px 24px rgba(0,0,0,.07);
  border: 1px solid #e8eaed;
}

.tap-specs-modern-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 24px;
  color: #fff;
}

.tap-specs-modern-icon {
  font-size: 28px;
  width: 48px; height: 48px;
  background: rgba(255,255,255,.2);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.tap-specs-modern-title {
  font-size: 17px;
  font-weight: 800;
  line-height: 1.2;
}

.tap-specs-modern-subtitle {
  font-size: 12px;
  opacity: .8;
  margin-top: 2px;
}

.tap-specs-modern-body {
  background: #fff;
}

.tap-specs-modern-group {
  padding: 16px 24px;
  border-bottom: 1px solid #f0f2f5;
}

.tap-specs-modern-group:last-child { border-bottom: none; }

.tap-specs-modern-group-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 800;
  color: #555;
  text-transform: uppercase;
  letter-spacing: .7px;
  margin-bottom: 14px;
  padding-left: 10px;
  border-left: 3px solid #FF6B35;
}

.tap-specs-modern-group-icon { font-size: 14px; }

.tap-specs-modern-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 8px;
}

.tap-specs-modern-item {
  background: #f8f9fb;
  border-radius: 8px;
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: background .15s;
}

.tap-specs-modern-item:hover { background: #f0f2f7; }

.tap-specs-bool-item {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
}

.tap-specs-modern-key {
  font-size: 11.5px;
  color: #777;
  font-weight: 500;
  line-height: 1.3;
}

.tap-specs-bool-item .tap-specs-modern-key { font-size: 13px; color: #444; }

.tap-specs-modern-val {
  font-size: 14px;
  font-weight: 700;
  color: #1a1a1a;
  display: flex;
  align-items: baseline;
  gap: 3px;
  flex-wrap: wrap;
}

.tap-specs-number {
  font-size: 16px;
  font-weight: 800;
  color: #1a1a1a;
}

.tap-specs-unit {
  font-size: 12px;
  font-weight: 500;
  color: #888;
}

.tap-specs-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
}

.tap-specs-badge--yes {
  background: #dcfce7;
  color: #15803d;
}

.tap-specs-badge--no {
  background: #fee2e2;
  color: #dc2626;
}

/* Keep old classes for backwards compat with sc_specs shortcode */
.tap-specs-box { border: 1px solid #e8e8e8; border-radius: 10px; overflow: hidden; margin: 24px 0; }
.tap-specs-box-header { display:flex;align-items:center;gap:10px;padding:14px 18px;background:#f8f9fa;border-bottom:1px solid #e8e8e8;font-size:15px;font-weight:700; }
.tap-specs-group-pub { padding:12px 18px;border-bottom:1px solid #f0f0f0; }
.tap-specs-group-pub:last-child { border-bottom:none; }
.tap-specs-group-name { font-size:11px;font-weight:700;color:#888;text-transform:uppercase;letter-spacing:.6px;margin-bottom:8px; }
.tap-specs-grid-pub { display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:6px 16px; }
.tap-spec-row { display:flex;align-items:baseline;gap:6px;font-size:13.5px;padding:3px 0; }
.tap-spec-key { color:#666;flex-shrink:0;min-width:120px; }
.tap-spec-val { font-weight:600;color:#1a1a1a; }
.tap-spec-unit { color:#999;font-size:12px;margin-left:2px; }

@media (max-width: 600px) {
  .tap-specs-modern-grid { grid-template-columns: 1fr 1fr; }
  .tap-specs-modern-header { padding: 14px 16px; }
  .tap-specs-modern-group { padding: 12px 16px; }
}

/* ─── Review intro text ────────────────────────────── */
.tap-review-intro {
  padding: 20px 28px;
  background: #fff;
  border-bottom: 2px solid #f0f0f0;
}

.tap-review-intro p {
  font-size: 15px;
  line-height: 1.75;
  color: #333;
  margin: 0 0 12px;
}

.tap-review-intro p:last-child { margin-bottom: 0; }
