/* =========================================================
   Tested Products – CSS
   ========================================================= */

.tp-card,
.tp-card *,
.tp-card *::before,
.tp-card *::after,
.tp-sellers,
.tp-sellers *,
.tp-sellers *::before,
.tp-sellers *::after {
  box-sizing: border-box;
}

/* Card wrapper */
.tp-card {
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 16px;
  margin: 16px 0;
  overflow: hidden;
}

/* Top row */
.tp-card__top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.tp-card__title {
  font-weight: 700;
  font-size: 1.05em;
  line-height: 1.2;
}

.tp-card__meta {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
}

/* Pills */
.tp-card__rating,
.tp-card__badge {
  font-weight: 700;
  border: 1px solid #ddd;
  border-radius: 999px;
  padding: 6px 10px;
  white-space: nowrap;
}

/* Rating row */
.tp-card__rating-row {
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.tp-card__rating-label {
  font-weight: 700;
}

/* Rating color logic */
.tp-card .tp-card__rating.tp-rating--good {
  background-color: #07c31d;
  color: #fff;
}

.tp-card .tp-card__rating.tp-rating--ok {
  background-color: #f1ff00;
  color: #000;
}

.tp-card .tp-card__rating.tp-rating--bad {
  background-color: #c80000;
  color: #fff;
}

/* Note */
.tp-card__note {
  margin-top: 10px;
}

/* Plus/Minus grid */
.tp-card__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 14px;
}

.tp-card__label {
  font-weight: 700;
  margin-bottom: 6px;
}

.tp-card__muted {
  color: #666;
}

.tp-card__list {
  margin: 0;
  padding-left: 18px;
}

/* Sellers inside full card */
.tp-card__sellers {
  margin-top: 14px;
}

.tp-card__sellers-label {
  font-weight: 700;
  margin-bottom: 8px;
}

.tp-card__buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  width: 100%;
}

.tp-card__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid var(--tp-btn-border, #ddd);
  text-decoration: none;
  font-weight: 700;
  line-height: 1;

  background-color: var(--tp-btn-bg, transparent);
  color: var(--tp-btn-text, inherit);

  max-width: 100%;
}

.tp-card__btn:hover {
  filter: brightness(0.95);
}

.tp-card__btn:focus {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

/* Sellers-only module */
.tp-sellers {
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 12px;
  margin: 16px 0;
  overflow: hidden;
}

.tp-sellers__label {
  font-weight: 700;
  margin-bottom: 8px;
}

.tp-sellers__buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  width: 100%;
}

.tp-sellers__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid var(--tp-btn-border, #ddd);
  text-decoration: none;
  font-weight: 700;
  line-height: 1;

  background-color: var(--tp-btn-bg, transparent);
  color: var(--tp-btn-text, inherit);

  max-width: 100%;
}

.tp-sellers__btn:hover {
  filter: brightness(0.95);
}

.tp-sellers__btn:focus {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

/* Responsive */
@media (max-width: 600px) {
  .tp-card__grid {
    grid-template-columns: 1fr;
  }

  .tp-card__buttons,
  .tp-sellers__buttons {
    flex-direction: column;
  }

  .tp-card__btn,
  .tp-sellers__btn {
    width: 100%;
  }
}



