/* NameHippo Compare — Light Premium (Option: LIGHT)
   UI-only stylesheet. No functional logic changed.
*/

.nh-compare-wrap{
  padding: 6px 0 22px;
}

.nh-compare-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:14px;
  margin: 4px 0 14px;
}

.nh-compare-title{
  margin:0;
  font-weight: 900;
  letter-spacing: -0.02em;
  color:#0f172a;
}

.nh-compare-sub{
  margin-top: 4px;
  color: rgba(15,23,42,0.62);
  font-size: 0.95rem;
}

.nh-compare-shell{
  background: #fff;
  border: 1px solid rgba(15,23,42,0.10);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 18px 55px rgba(15,23,42,0.12);
}

.nh-compare-table{
  margin:0;
  color:#0f172a;
  font-size: 0.95rem;
}

.nh-compare-table th,
.nh-compare-table td{
  border-color: rgba(15,23,42,0.08) !important;
  vertical-align: top;
}

.nh-compare-table thead th{
  background: linear-gradient(180deg, rgba(248,250,252,1) 0%, rgba(241,245,249,1) 100%);
}

/* Sticky Field column */
.nh-compare-table tbody th{
  background: rgba(248,250,252,1);
  position: sticky;
  left: 0;
  z-index: 2;
  min-width: 190px;
  max-width: 240px;
  font-weight: 800;
  color: rgba(15,23,42,0.92);
}

.nh-compare-table thead th:first-child{
  position: sticky;
  left: 0;
  z-index: 3;
}

/* Subtle zebra */
.nh-compare-table tbody tr:nth-child(odd) td{
  background: rgba(248,250,252,0.35);
}

.nh-compare-col{
  min-width: 240px;
}

.nh-compare-colhead{
  display:flex;
  flex-direction: column;
  gap: 10px;
}

.nh-compare-domain{
  font-weight: 950;
  letter-spacing: -0.01em;
  color:#0b1220;
  font-size: 1.03rem;
  line-height: 1.1;
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 10px;
}

.nh-compare-actions{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
}

.nh-compare-btn{
  border-radius: 12px;
}

.nh-compare-price{
  font-weight: 950;
  font-size: 1.12rem;
  letter-spacing: -0.01em;
}

.nh-compare-price.is-best{
  display:inline-flex;
  align-items:center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 14px;
  background: rgba(16,185,129,0.10);
  border: 1px solid rgba(16,185,129,0.20);
}

.nh-compare-muted{
  color: rgba(15,23,42,0.55);
}

.nh-compare-essence,
.nh-compare-desc{
  color: rgba(15,23,42,0.80);
  line-height: 1.35;
}

/* Pills used by compare view */
.nh-pill{
  display:inline-flex;
  align-items:center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(15,23,42,0.10);
  background: rgba(248,250,252,1);
  font-size: 0.86rem;
}

.nh-pill-k{
  font-weight: 800;
  color: rgba(15,23,42,0.55);
}

.nh-pill-v{
  font-weight: 900;
  color: rgba(15,23,42,0.92);
}

/* Palette swatches */
.nh-swatches{
  display:flex;
  gap: 8px;
  flex-wrap: wrap;
}

.nh-swatch{
  width: 18px;
  height: 18px;
  border-radius: 7px;
  border: 1px solid rgba(15,23,42,0.14);
  box-shadow: 0 6px 18px rgba(15,23,42,0.08);
}

/* Empty/State cards */
.nh-compare-empty{
  padding: 22px;
  border-radius: 20px;
  background: #fff;
  border: 1px dashed rgba(15,23,42,0.18);
  color: rgba(15,23,42,0.85);
}

@media (max-width: 992px){
  .nh-compare-col{ min-width: 220px; }
}

@media (max-width: 768px){
  .nh-compare-head{ align-items:flex-start; }
  .nh-compare-table tbody th,
  .nh-compare-table thead th:first-child{ min-width: 150px; }
}
