/* tpx-price-compare.css */

/* Card container with lift-on-hover effect */
.tpx-compare-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  overflow: hidden;
  margin: 20px auto;
  max-width: 400px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.tpx-compare-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

/* Title with colorful gradient background */
.tpx-compare-title {
  background: linear-gradient(135deg, #5a43a3 0%, #00f2fe 100%);
  color: #fff;
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0;
  padding: 16px;
  text-align: center;
}

/* Link list as responsive grid */
.tpx-link-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 12px;
  padding: 16px;
  margin: 0;
  list-style: none;
}

/* Styled affiliate buttons */
.tpx-link-list a {
  display: block;
  padding: 10px 0;
  background: #000080;
  color: #fff;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  text-align: center;
  transition: background 0.3s, transform 0.3s;
}
.tpx-link-list a:hover {
  background: #005177;
  transform: translateY(-2px);
}

/* Smaller screens adjustments */
@media (max-width: 480px) {
  .tpx-compare-card { max-width: 80%; }
  .tpx-compare-title { font-size: 1.25rem; }
}

.tpx-featured-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  position: relative;
}

.tpx-featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}