/* Smartiz Specs Pro product bars – clean responsive UI */
.smartiz-spec-product-bars {
  --sps-card-bg: #ffffff;
  --sps-card-border: rgba(15, 23, 42, .085);
  --sps-muted: #64748b;
  --sps-text: #0f172a;
  --sps-track: #eef2f7;
  --sps-good: #0f766e;
  --sps-great: #047857;
  --sps-mid: #b45309;
  --sps-bad: #be123c;
  --sps-soft: #f8fafc;
  --sps-shadow: 0 16px 42px rgba(15, 23, 42, .08);
  --sps-radius: 20px;
  margin: 28px 0;
  padding: 22px;
  border: 1px solid rgba(15, 23, 42, .06);
  border-radius: 28px;
  background:
    radial-gradient(circle at top right, rgba(15, 118, 110, .08), transparent 34%),
    linear-gradient(180deg, #fff, #fbfdff);
  box-shadow: 0 18px 55px rgba(15, 23, 42, .06);
  color: var(--sps-text);
}

.smartiz-spec-product-bars .smartiz-spec-bars-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(15, 23, 42, .06);
}

.smartiz-spec-product-bars .smartiz-spec-bars-kicker {
  display: inline-flex;
  width: max-content;
  margin-bottom: 8px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(15, 118, 110, .09);
  color: #0f766e;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .02em;
}

.smartiz-spec-product-bars .smartiz-spec-bars-head h3 {
  margin: 0 0 6px;
  font-size: clamp(20px, 2vw, 26px);
  line-height: 1.35;
  font-weight: 900;
  color: #0f172a;
}

.smartiz-spec-product-bars .smartiz-spec-bars-head p {
  margin: 0;
  color: var(--sps-muted);
  font-size: 14px;
  line-height: 1.9;
}

.smartiz-spec-product-bars .smartiz-spec-bars-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}

.smartiz-spec-product-bars .smartiz-spec-bar-item {
  position: relative;
  min-width: 0;
  overflow: visible;
  padding: 16px;
  border: 1px solid var(--sps-card-border);
  border-radius: var(--sps-radius);
  background: var(--sps-card-bg);
  box-shadow: var(--sps-shadow);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.smartiz-spec-product-bars .smartiz-spec-bar-item:hover {
  transform: translateY(-2px);
  border-color: rgba(15, 118, 110, .18);
  box-shadow: 0 20px 52px rgba(15, 23, 42, .11);
}

.smartiz-spec-product-bars .smartiz-spec-bar-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
  margin-bottom: 14px;
}

.smartiz-spec-product-bars .smartiz-spec-bar-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.smartiz-spec-product-bars .smartiz-spec-bar-title strong {
  min-width: 0;
  color: #111827;
  font-size: 15.5px;
  font-weight: 900;
  line-height: 1.7;
}

.smartiz-spec-product-bars .smartiz-spec-info {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  border: 1px solid rgba(15, 118, 110, .22);
  border-radius: 999px;
  background: #ecfdf5;
  color: #0f766e;
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
  cursor: help;
  user-select: none;
}

.smartiz-spec-product-bars .smartiz-spec-info:focus {
  outline: 3px solid rgba(15, 118, 110, .18);
  outline-offset: 2px;
}

.smartiz-spec-product-bars .smartiz-spec-tooltip {
  position: absolute;
  inset-inline-start: 16px;
  top: 54px;
  z-index: 50;
  width: min(440px, calc(100vw - 48px));
  max-height: 260px;
  overflow: auto;
  padding: 14px 15px;
  border: 1px solid rgba(15, 23, 42, .12);
  border-radius: 16px;
  background: rgba(15, 23, 42, .96);
  box-shadow: 0 22px 55px rgba(15, 23, 42, .24);
  color: #fff;
  font-size: 12.5px;
  line-height: 2;
  text-align: right;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .15s ease, transform .15s ease, visibility .15s ease;
  pointer-events: none;
}

.smartiz-spec-product-bars .smartiz-spec-bar-title:hover .smartiz-spec-tooltip,
.smartiz-spec-product-bars .smartiz-spec-info:focus + .smartiz-spec-tooltip,
.smartiz-spec-product-bars .smartiz-spec-bar-item.is-tooltip-open .smartiz-spec-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.smartiz-spec-product-bars .smartiz-spec-bar-score {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  min-width: 76px;
  justify-content: center;
  padding: 8px 10px;
  border-radius: 16px;
  background: var(--sps-soft);
  border: 1px solid rgba(15, 23, 42, .06);
  white-space: nowrap;
}

.smartiz-spec-product-bars .smartiz-spec-bar-score b {
  color: #0f172a;
  font-size: 22px;
  font-weight: 950;
  letter-spacing: -.02em;
  line-height: 1;
}

.smartiz-spec-product-bars .smartiz-spec-bar-score span {
  color: var(--sps-muted);
  font-size: 11.5px;
  font-weight: 800;
}

.smartiz-spec-product-bars .smartiz-spec-bar-track {
  position: relative;
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--sps-track);
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, .08);
}

.smartiz-spec-product-bars .smartiz-spec-bar-track span {
  display: block;
  height: 100%;
  min-width: 4px;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(15, 118, 110, .92), rgba(20, 184, 166, .78));
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .35) inset;
}

.smartiz-spec-product-bars .smartiz-spec-bar-item.is-great .smartiz-spec-bar-track span {
  background: linear-gradient(90deg, var(--sps-great), #34d399);
}

.smartiz-spec-product-bars .smartiz-spec-bar-item.is-good .smartiz-spec-bar-track span {
  background: linear-gradient(90deg, var(--sps-good), #2dd4bf);
}

.smartiz-spec-product-bars .smartiz-spec-bar-item.is-mid .smartiz-spec-bar-track span,
.smartiz-spec-product-bars .smartiz-spec-bar-item.is-medium .smartiz-spec-bar-track span {
  background: linear-gradient(90deg, var(--sps-mid), #fbbf24);
}

.smartiz-spec-product-bars .smartiz-spec-bar-item.is-bad .smartiz-spec-bar-track span {
  background: linear-gradient(90deg, var(--sps-bad), #fb7185);
}

.smartiz-spec-product-bars .smartiz-spec-bar-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.smartiz-spec-product-bars .smartiz-spec-bar-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 9px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #475569;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.4;
}

.smartiz-spec-product-bars .smartiz-spec-bar-item.is-great .smartiz-spec-bar-meta span:first-child,
.smartiz-spec-product-bars .smartiz-spec-bar-item.is-good .smartiz-spec-bar-meta span:first-child {
  background: rgba(15, 118, 110, .09);
  color: #0f766e;
}

.smartiz-spec-product-bars .smartiz-spec-bar-item.is-bad .smartiz-spec-bar-meta span:first-child {
  background: rgba(190, 18, 60, .08);
  color: #be123c;
}

@media (min-width: 1280px) {
  .smartiz-spec-product-bars .smartiz-spec-bars-list {
    gap: 18px;
  }
}

@media (max-width: 900px) {
  .smartiz-spec-product-bars {
    padding: 18px;
    border-radius: 22px;
  }

  .smartiz-spec-product-bars .smartiz-spec-bars-list {
    grid-template-columns: 1fr;
  }

  .smartiz-spec-product-bars .smartiz-spec-tooltip {
    inset-inline-start: 12px;
    inset-inline-end: 12px;
    width: auto;
  }
}

@media (max-width: 560px) {
  .smartiz-spec-product-bars .smartiz-spec-bars-head {
    display: block;
  }

  .smartiz-spec-product-bars .smartiz-spec-bar-item {
    padding: 14px;
    border-radius: 18px;
  }

  .smartiz-spec-product-bars .smartiz-spec-bar-top {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .smartiz-spec-product-bars .smartiz-spec-bar-score {
    width: max-content;
    min-width: 92px;
    justify-content: flex-start;
  }

  .smartiz-spec-product-bars .smartiz-spec-bar-score b {
    font-size: 21px;
  }
}
