.compare-toolbar .card,
.compare-status-card,
.compare-card {
  border-radius: 10px;
}

.compare-page-tip {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  background: #f5f8fb;
  border: 1px solid #dde7f0;
  border-radius: 10px;
  color: #5f6b76;
  padding: 0.75rem 0.9rem;
  font-size: 0.95rem;
}

.compare-page-tip-icon {
  color: #6f8ca6;
  margin-top: 0.1rem;
  flex: 0 0 auto;
}

.selected-breeds {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.selected-breed-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #fff;
  border: 1px solid #cdd6e1;
  border-radius: 999px;
  padding: 0.45rem 0.45rem 0.45rem 0.85rem;
}

.selected-breed-remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.8rem;
  height: 1.8rem;
  border: none;
  border-radius: 50%;
  background: #dc3545;
  color: #fff;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.selected-breed-remove:hover,
.selected-breed-remove:focus {
  background: #bb2d3b;
  color: #fff;
  outline: none;
}

.selected-breed-remove span {
  transform: translateY(-1px);
}

.compare-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  align-items: start;
}

.compare-card {
  height: 100%;
}

.compare-card .card-body {
  padding: 1rem;
  height: 100%;
}

.compare-card-header {
  margin-bottom: 1rem;
}

.compare-breed-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  margin-top: 0.75rem;
}

.compare-section {
  padding-top: 0.9rem;
  margin-top: 0.9rem;
  border-top: 1px solid #eceff3;
}

.compare-section:first-of-type {
  border-top: none;
  padding-top: 0;
  margin-top: 0;
}

.compare-origin {
  display: flex;
  align-items: center;
  min-height: 1.5rem;
}

.compare-size-list {
  display: grid;
  gap: 0.75rem;
}

.compare-size-content {
  display: flex;
  flex-direction: column;
}

.compare-traits-content,
.compare-activities-content {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.compare-size-item {
  background: #f8f9fb;
  border: 1px solid #e5e9f0;
  border-radius: 8px;
  padding: 0.75rem;
}

.attribute-group + .attribute-group {
  margin-top: 1.25rem;
}

.compare-attributes-content {
  display: grid;
  gap: 1rem;
}

.compare-attribute-row {
  border: 1px solid #e5e9f0;
  background: #fbfcfd;
  border-radius: 10px;
  padding: 0.85rem 0.9rem;
}

.compare-attribute-row-winning {
  background: #eaf8ee;
  border-color: #8fc89a;
  box-shadow: inset 0 0 0 1px rgba(59, 130, 70, 0.14);
}

.compare-attribute-row + .compare-attribute-row {
  margin-top: 0.85rem;
}

.compare-attribute-topline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.45rem;
}

.compare-attribute-name {
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.3;
}

.compare-attribute-score {
  font-size: 0.95rem;
  color: #6c757d;
  white-space: nowrap;
}

.compare-attribute-ratingline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.compare-attribute-count {
  font-size: 0.95rem;
  color: #6c757d;
  white-space: nowrap;
}

.compare-paw-rating i {
  cursor: default;
  font-size: 24px;
  margin-right: 5px;
}

.compare-tag {
  cursor: default !important;
  white-space: normal;
  user-select: text;
}

@media (max-width: 767px) {
  .compare-grid {
    grid-template-columns: 1fr;
  }

  .compare-page-tip {
    font-size: 0.92rem;
  }

  .compare-attribute-topline,
  .compare-attribute-ratingline {
    align-items: flex-start;
  }
}
