/* Flower preferences and a small, accessible comparison collection. */
.choice-heart {
  display: block;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.gallery-toolbar { flex-wrap: wrap; }
.favorites-trigger,
.gallery-save {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid #cfc4b4;
  background: var(--cream);
  color: var(--plum);
  border-radius: 22px;
  min-height: 42px;
  padding: 9px 14px;
  font-size: 11px;
  line-height: 1.6;
  transition: background .25s, border-color .25s, color .25s;
}
.favorites-trigger { white-space: nowrap; flex-shrink: 0; }
.favorites-trigger:hover,
.gallery-save:hover { border-color: var(--gold); background: var(--paper); }
.favorites-count {
  min-width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  padding: 0 4px;
  background: var(--plum);
  color: var(--cream);
  font-size: 10px;
}
.gallery-tile { position: relative; min-width: 0; }
.gallery-tile > .gallery-card { display: block; width: 100%; }
.gallery-favorite {
  position: absolute;
  top: 11px;
  right: 11px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid #d7c393;
  border-radius: 50%;
  background: var(--cream);
  color: var(--plum);
  box-shadow: 0 2px 9px #00000015;
  transition: background .25s, color .25s, border-color .25s;
}
.gallery-favorite:hover { border-color: var(--gold); background: var(--paper); }
.gallery-favorite[aria-pressed="true"] {
  color: var(--cream);
  background: var(--plum);
  border-color: var(--gold);
}
.gallery-favorite[aria-pressed="true"] .choice-heart { fill: currentColor; }
.gallery-save { width: 100%; border-radius: 3px; margin-bottom: 10px; }
.gallery-save[aria-pressed="true"] { border-color: var(--gold); background: var(--paper); }
.gallery-save[aria-pressed="true"] .choice-heart { fill: var(--gold); stroke: var(--gold); }
.flower-preferences {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
  margin: 17px 0 15px;
  padding-top: 15px;
  border-top: 1px solid var(--line);
}
.choice-field { min-width: 0; }
.choice-field > label,
.order-form .choice-field > label {
  display: block;
  font-size: 11px;
  line-height: 1.6;
  font-weight: 600;
  margin: 0 0 7px;
}
.choice-field > label > span { color: var(--muted); font-weight: 400; }
.choice-field > select,
.choice-field > input[type="date"] {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 43px;
  padding: 10px 12px;
  border: 1px solid #cebdc5;
  border-radius: 3px;
  background: var(--cream);
  color: var(--plum);
  font-family: var(--sans);
  font-size: 12px;
  line-height: 1.6;
  color-scheme: light;
}
.choice-field > select:focus,
.choice-field > input[type="date"]:focus {
  border-color: #8a566e;
  box-shadow: 0 0 0 4px #81566e0a;
}
.choice-field > [aria-invalid="true"] { border-color: #8a566e; }
.choice-help {
  margin-top: 7px;
  font-size: 9px;
  line-height: 1.65;
  color: var(--muted);
}
.choice-status {
  min-height: 1.6em;
  margin: 12px 0 0;
  font-size: 11px;
  line-height: 1.7;
  color: var(--plum);
}
.choice-status:empty { min-height: 0; margin-top: 0; }
.gallery-dialog { max-height: 92dvh; }
.gallery-dialog .gallery-full-stage { min-height: 0; margin-top: 12px; }
.gallery-dialog .gallery-full-stage > img { height: 35vh; max-height: 360px; }
.gallery-dialog.has-album .gallery-full-stage > img { height: 30vh; }
.gallery-dialog .gallery-dialog-caption { margin: 12px 0; }
.gallery-dialog .gallery-dialog-caption h2 { font-size: 25px; }
.gallery-dialog .flower-preferences { margin-top: 12px; padding-top: 12px; }
.gallery-dialog .choice-help { font-size: 9px; }
.favorites-dialog { max-width: 880px; max-height: 92dvh; padding: 24px; }
.favorites-dialog > h2 {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 13px;
  margin: 18px 0 12px;
  font-size: 38px;
}
#favorites-list-count {
  display: inline-block;
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 600;
  line-height: 1.7;
  padding: 4px 10px;
  border: 1px solid #d7c393;
  border-radius: 18px;
  letter-spacing: 0;
}
.favorites-dialog > .favorites-intro {
  margin: 0 0 20px;
  font-size: 11px;
  color: var(--muted);
}
.favorites-empty {
  padding: 22px;
  border: 1px dashed #cfc4b4;
  background: var(--paper);
  font-size: 12px;
  line-height: 1.8;
}
.favorites-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 19px;
  min-width: 0;
  margin: 16px 0 21px;
}
.favorites-grid:empty { display: none; }
.favorite-item {
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--paper);
}
.favorite-open {
  display: block;
  width: 100%;
  min-width: 0;
  padding: 0;
  border: 0;
  text-align: left;
  color: var(--plum);
  background: transparent;
}
.favorite-item img {
  width: 100%;
  height: 190px;
  object-fit: contain;
  background: #eee6d9;
  border-radius: 3px;
}
.favorite-item h3,
.favorite-title {
  display: block;
  margin: 12px 0 5px;
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: -.3px;
  overflow-wrap: anywhere;
}
.favorite-item p,
.favorite-category {
  display: block;
  font-family: var(--sans);
  font-size: 9px;
  line-height: 1.6;
  color: var(--muted);
}
.favorite-remove,
.favorites-clear {
  border: 0;
  background: transparent;
  color: var(--plum);
  min-height: 35px;
  padding: 7px 0;
  font-size: 10px;
  line-height: 1.6;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.favorite-remove { margin-top: 4px; }
.favorites-clear { padding-left: 8px; padding-right: 8px; }
.favorites-actions .button.is-disabled{opacity:.5;cursor:default}
.favorites-actions { display: flex; align-items: center; gap: 18px; }
.favorites-actions > .button { flex: 1; min-width: 0; }
.favorites-actions > .favorites-clear { flex-shrink: 0; }
@media (max-width: 640px) {
  .favorites-trigger { font-size: 10px; min-height: 40px; padding: 8px 12px; }
  .gallery-favorite { width: 35px; height: 35px; top: 9px; right: 9px; }
  .gallery-favorite .choice-heart { width: 17px; height: 17px; }
  .gallery-dialog { max-height: 92dvh; }
  .gallery-dialog .gallery-full-stage > img,
  .gallery-dialog.has-album .gallery-full-stage > img { height: 27dvh; }
  .gallery-dialog .gallery-dialog-caption h2 { font-size: 21px; }
  .gallery-dialog .gallery-photo-thumbs { padding-top: 9px; gap: 6px; }
  .gallery-dialog .gallery-mini { width: 40px; height: 48px; }
  .gallery-dialog .flower-preferences { gap: 12px; }
  .choice-field > select,
  .choice-field > input[type="date"] { font-size: 16px; line-height: 1.5; padding: 9px 11px; min-height: 44px; }
  .gallery-dialog .gallery-save { min-height: 38px; font-size: 11px; padding: 7px 12px; }
  .favorites-dialog { padding: 17px; width: calc(100% - 24px); max-height: 92dvh; }
  .favorites-dialog > h2 { font-size: 30px; margin-top: 15px; gap: 9px; }
  .favorites-dialog > .favorites-intro { font-size: 10px; margin-bottom: 16px; }
  .favorites-grid { gap: 12px; margin-top: 14px; }
  .favorite-item { padding: 7px; }
  .favorite-item img { height: 140px; }
  .favorite-item h3,
  .favorite-title { font-size: 17px; line-height: 1.35; margin-top: 10px; }
  .favorite-item p,
  .favorite-category { font-size: 8px; }
  .favorite-remove { font-size: 9px; }
  .favorites-actions { flex-direction: column; gap: 9px; align-items: stretch; }
  .favorites-actions > .button { font-size: 11px; padding: 12px 15px; }
  .favorites-clear { align-self: center; }
  .favorites-empty { padding: 17px; font-size: 11px; }
}
@media (max-width: 400px) {
  .flower-preferences { grid-template-columns: minmax(0, 1fr); gap: 13px; }
  .choice-field > label,
  .order-form .choice-field > label { font-size: 11px; }
  .choice-help { font-size: 9px; }
  .favorite-item img { height: 125px; }
}
@media (prefers-reduced-motion: reduce) {
  .favorites-trigger, .gallery-save, .gallery-favorite { transition: none; }
}
