.favorite-heart {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid #d6dfe5;
  border-radius: 50%;
  background: #fff;
  color: #08263b;
  box-shadow: 0 2px 8px #08263b20;
}
.favorite-heart svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linejoin: round;
}
.favorite-heart:hover, .favorite-heart[data-saved="true"] { color: #a62845; }
.favorite-heart[data-saved="true"] svg { fill: currentColor; }
.art > .favorite-heart, .opportunity-top > .favorite-heart {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
}
.opportunity-top { position: relative; }
.opportunity-top > .favorite-heart { top: 0; right: 0; }
.opportunity-top:has(> .favorite-heart) .auctioneer-name { padding-right: 52px; }

#favorite-dialog {
  box-sizing: border-box;
  width: min(480px, calc(100vw - 24px));
  max-height: calc(100dvh - 24px);
  border: 1px solid #d9c19e;
  border-radius: 16px;
  background: #fff;
  padding: 20px;
  color: #08263b;
}
#favorite-dialog::backdrop { background: #061b2a80; }
.favorite-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.favorite-heading h2 { margin: 0; font-size: 23px; }
.favorite-heading button { min-width: 44px; font-size: 23px; }
.favorite-heading button, .favorite-folder, .favorite-items button, .favorite-new-form button {
  min-height: 44px;
  border: 1px solid #d5dfe5;
  border-radius: 8px;
  background: #fff;
  color: #08263b;
  padding: 7px 10px;
  font-weight: 700;
}
.favorite-folders { display: grid; gap: 6px; margin-block: 10px; }
.favorite-folder {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  text-align: left;
}
.favorite-folder > span:first-child { overflow-wrap: anywhere; }
.favorite-folder[aria-pressed="true"] { border-color: #c29859; background: #fffbf2; }
.favorite-folder-state { white-space: nowrap; color: #725124; font-size: 13px; }
#favorite-new-folder > summary {
  cursor: pointer;
  padding: 12px 0;
  font-weight: 700;
}
.favorite-new-form {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}
.favorite-new-form input, .favorites-folder-picker select {
  box-sizing: border-box;
  min-height: 44px;
  width: 100%;
  max-width: 100%;
  padding: 8px 10px;
  border: 1px solid #b7c8d3;
  border-radius: 8px;
  color: #08263b;
  background: #fff;
  font: inherit;
}
.favorite-new-form input { font-size: 16px; }
.favorite-new-form button { background: #08263b; color: #fff; }
.favorite-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 12px; }
.favorite-links a, .favorite-items a { color: #774f20; font-weight: 700; }
.favorites-folder-picker { display: grid; gap: 5px; max-width: 440px; }
.favorites-folder-picker[hidden] { display: none; }
.favorite-items { list-style: none; padding: 0; }
.favorite-items li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 13px;
  margin-bottom: 8px;
  border: 1px solid #d5dfe5;
  border-radius: 10px;
  background: #fff;
}
.favorite-items small { display: block; color: #506879; margin-top: 4px; }
.favorite-items li div { overflow-wrap: anywhere; }
@media (max-width: 480px) {
  .favorite-items li { align-items: flex-start; flex-direction: column; }
}

#modal > .modal-toolbar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 8px;
}
#modal > .modal-toolbar > .close {
  float: none;
  width: 44px;
  height: 44px;
}
.favorite-items li { flex-direction: row; align-items: center; padding: 8px; gap: 8px; }
.favorite-card {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  text-decoration: none;
  color: #08263b;
}
a.favorite-card:hover .favorite-card-title { text-decoration: underline; }
.favorite-card-photo {
  flex: 0 0 clamp(54px, 16vw, 96px);
  height: clamp(54px, 14vw, 74px);
  border-radius: 7px;
  background: #edf2f5;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: #506879;
  font-size: 11px;
  text-align: center;
}
.favorite-card-photo img { width: 100%; height: 100%; object-fit: cover; }
.favorite-card-details { display: block; min-width: 0; overflow-wrap: anywhere; }
.favorite-card-title, .favorite-card-price { display: block; }
.favorite-items .favorite-card-details small { font-weight: 400; }
.favorite-items .favorite-card-price { margin-top: 4px; font-size: .85rem; }
.favorite-items .favorite-remove { font-size: .75rem; padding-inline: 6px; }

.favorite-progress { display: flex; align-items: center; gap: 9px; }
.favorite-progress[hidden] { display: none; }
.favorite-spinner {
  flex: 0 0 19px;
  width: 19px;
  height: 19px;
  border: 2px solid #ced8df;
  border-inline-end-color: #08263b;
  border-radius: 50%;
  animation: roda-spin .8s linear infinite;
}
@media (prefers-reduced-motion: reduce) {
  .favorite-spinner { animation: none; }
}
#favorites-page ~ #modal {
  max-height: calc(100dvh - 24px);
  overflow: auto;
  overscroll-behavior: contain;
}
#favorites-page ~ #modal .modal-toolbar {
  position: sticky;
  top: 0;
  z-index: 3;
  pointer-events: none;
}
#favorites-page ~ #modal .modal-toolbar button { pointer-events: auto; }
body:has(#favorites-page ~ #modal[open]) { overflow: hidden; }
.listing-services { margin-block: 20px; }
.listing-services summary { cursor: pointer; font-weight: 700; }

.listing-share { margin-top: 15px; }
.listing-share-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.listing-share-actions :is(button, a) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid #cbd9e1;
  border-radius: 8px;
  color: #08263b;
  background: #fff;
  font-size: .875rem;
  font-weight: 700;
  text-decoration: none;
}
.listing-share-actions .listing-whatsapp {
  color: #145a3d;
  border-color: #b7d8ca;
  background: #f1faf5;
}
.listing-share-actions :is(button, a):hover { border-color: currentColor; }
.listing-share-actions svg {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.listing-share-status:empty { margin: 0; }
.listing-share-url {
  width: 100%;
  padding: 8px;
  border: 1px solid #cbd9e1;
  border-radius: 6px;
}

.listing-share-cover {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid #d6dfe5;
  border-radius: 50%;
  background: #fff;
  color: #08263b;
  box-shadow: 0 2px 8px #08263b20;
}
.listing-share-cover:hover { border-color: currentColor; }
.listing-share-cover svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
}
#listing-share-dialog { width: min(440px, calc(100vw - 24px)); }

.favorite-card-actions { display: grid; justify-items: center; gap: 3px; }
.favorite-items .favorite-card-actions .listing-share-cover {
  position: static;
  padding: 0;
  border-radius: 50%;
}
