/* Gift tag result panel: the signature component */
.gift-tag {
  position: relative;
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding-top: 2.25rem;
}
.gift-tag::before {
  content: "";
  position: absolute;
  top: 0.9rem;
  left: 1.1rem;
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--brand);
}
.gift-tag::after {
  content: "";
  position: absolute;
  top: 1.3rem;
  left: 0;
  width: 1.1rem;
  height: 2px;
  background: var(--brand);
}
.gift-tag__to {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  color: var(--ink);
}
.gift-tag__to strong {
  color: var(--brand);
}
.gift-tag__for {
  color: var(--muted);
  font-size: 0.95rem;
}
.gift-tag .result-list li {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
}
.gift-tag .result-list li > span:first-child {
  white-space: nowrap;
}
.gift-tag .result-list .num {
  text-align: left;
  white-space: normal;
}
.gift-tag #result-ideas {
  margin: 0.4rem 0 0.8rem;
}
.gift-tag__links {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0.6rem 0;
}
.gift-tag__links a {
  color: var(--brand);
}
.tool .field select,
.tool .field input {
  min-width: 64px;
  width: 100%;
}
/* Home hero: headline on top, form and result side by side */
.hero.hero--split {
  display: grid;
  grid-template-columns: 1fr;
  align-items: start;
  padding-bottom: 4.5rem;
}
.hero.hero--split .hero__body {
  max-width: 48rem;
}
.hero.hero--split .tool {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: start;
  width: 100%;
}
.hero.hero--split .tool__panel {
  padding-bottom: 1.25rem;
  margin: 0;
  height: auto;
  align-self: start;
}
.hero.hero--split .tool__result {
  margin: 0;
  min-width: 0;
  align-self: start;
}
.hero.hero--split img,
.hero__media,
.hero__media img {
  max-height: 220px;
  width: 100%;
  object-fit: cover;
}
@media (max-width: 900px) {
  .hero.hero--split .tool {
    grid-template-columns: 1fr;
  }
}
/* Hero affiliate CTA: solid light panel so dark ink stays readable */
.aff-cta--hero {
  background: #fff !important;
}
.aff-cta--hero .aff-cta__title,
.aff-cta--hero .aff-cta__text,
.aff-cta--hero .aff-cta__text > *,
.aff-cta--hero .aff-cta__note,
.aff-cta--hero .aff-cta__note > * {
  color: #1f1a17 !important;
}
/* Product cards: equal height, button pinned inside at the bottom */
lg-cards .grid,
lg-cards .card-grid,
lg-cards .cards {
  align-items: stretch;
}
lg-cards .grid > *,
lg-cards .card-grid > *,
lg-cards .cards > *,
lg-cards .card {
  display: flex;
  flex-direction: column;
  height: 100%;
}
lg-cards .card h3,
lg-cards .grid > * h3,
lg-cards .card-grid > * h3,
lg-cards .cards > * h3 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
lg-cards .card .btn,
lg-cards .grid > * .btn,
lg-cards .card-grid > * .btn,
lg-cards .cards > * .btn {
  margin-top: auto;
  align-self: stretch;
  text-align: center;
}
/* Similar boxes rows: one grid row, button inline on the right */
.rows > *,
.row-list > * {
  display: grid;
  grid-template-columns: minmax(200px, 1.6fr) minmax(100px, 0.8fr) minmax(0, 1.6fr) auto;
  gap: 1rem;
  align-items: center;
}
.rows > * > .btn,
.row-list > * > .btn {
  grid-column: 4;
  grid-row: 1;
  justify-self: end;
  white-space: nowrap;
}
.rows > * > lg-icon,
.row-list > * > lg-icon,
.rows > * > .row__arrow,
.row-list > * > .row__arrow {
  display: none;
}