/* Wishlist + contact form. Uses the site's tokens from styles.css. */
.item-card-wrap {
  position: relative;
}
.item-card-wrap > .item-card {
  height: 100%;
}
.wl-add {
  align-items: center;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(18, 33, 24, 0.18);
  color: var(--ink);
  cursor: pointer;
  display: inline-flex;
  font-size: 1.25rem;
  height: 2.75rem;
  justify-content: center;
  line-height: 1;
  position: absolute;
  right: 0.8rem;
  top: 0.8rem;
  transition: transform 150ms ease, background 150ms ease;
  width: 2.75rem;
  z-index: 2;
}
.wl-add::before {
  content: "♡";
}
.wl-add:hover {
  background: var(--soft-acid);
}
.wl-add:active {
  transform: scale(0.9);
}
.wl-add.is-on {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--acid);
}
.wl-add.is-on::before {
  content: "♥";
  animation: wl-pop 280ms ease;
}
.wl-add:focus-visible,
.wl-fab:focus-visible,
.wl-btn:focus-visible,
.wl-remove:focus-visible,
.wl-close:focus-visible,
.wl-dialog-add:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 2px;
}
@keyframes wl-pop {
  50% {
    transform: scale(1.4);
  }
}

#item-dialog .dialog-actions .wl-dialog-add {
  background: var(--soft-acid);
  border-color: var(--ink);
  font-weight: 700;
}
#item-dialog .dialog-actions .wl-dialog-add.is-on {
  background: var(--ink);
  color: var(--acid);
}

/* floating badge */
.wl-fab {
  align-items: center;
  background: var(--ink);
  border: 0;
  border-radius: 999px;
  bottom: max(1rem, env(safe-area-inset-bottom));
  box-shadow: 0 10px 30px rgba(18, 33, 24, 0.35);
  color: var(--white);
  cursor: pointer;
  display: inline-flex;
  font-weight: 700;
  gap: 0.55rem;
  min-height: 3rem;
  padding: 0.55rem 0.7rem 0.55rem 1rem;
  position: fixed;
  right: max(1rem, env(safe-area-inset-right));
  z-index: 50;
}
.wl-fab-icon {
  color: var(--acid);
}
.wl-fab-text {
  display: inline-flex;
  flex-direction: column;
  font-size: 0.82rem;
  line-height: 1.15;
  text-align: left;
}
.wl-count {
  background: var(--acid);
  border-radius: 999px;
  color: var(--ink);
  font-size: 0.85rem;
  min-width: 1.7rem;
  padding: 0.15rem 0.5rem;
  text-align: center;
}
.wl-fab:not(.has-items) {
  opacity: 0.85;
}
.wl-fab.bump {
  animation: wl-bump 350ms ease;
}
@keyframes wl-bump {
  40% {
    transform: scale(1.12);
  }
}
.wl-toast {
  background: var(--ink);
  border: 0;
  border-radius: 999px;
  bottom: 5rem;
  color: var(--white);
  font-weight: 600;
  inset: auto auto 5rem 50%;
  margin: 0;
  padding: 0.55rem 1rem;
  transform: translateX(-50%);
}

/* drawer */
.wl-dialog {
  background: var(--paper);
  border: 0;
  border-radius: 1.25rem 0 0 1.25rem;
  box-shadow: var(--shadow);
  color: var(--ink);
  height: 100dvh;
  margin: 0 0 0 auto;
  max-height: 100dvh;
  max-width: min(30rem, 100vw);
  overflow: hidden;
  padding: 0;
  width: 100%;
}
.wl-dialog[open] {
  display: flex;
  flex-direction: column;
  animation: wl-slide 220ms ease;
}
.wl-dialog::backdrop {
  background: rgba(18, 33, 24, 0.5);
}
@keyframes wl-slide {
  from {
    transform: translateX(2rem);
    opacity: 0;
  }
}
.wl-head {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  padding: 1rem 1.25rem;
}
.wl-head h2 {
  font-family: "Manrope", sans-serif;
  font-size: 1.15rem;
  margin: 0;
}
.wl-he {
  color: var(--muted);
  display: block;
  font-family: "Heebo", "DM Sans", sans-serif;
}
.wl-head .wl-he {
  font-size: 0.95rem;
}
.wl-close,
.wl-remove {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 50%;
  cursor: pointer;
  flex: none;
  font-size: 1.4rem;
  height: 2.75rem;
  line-height: 1;
  width: 2.75rem;
}
.wl-close:hover,
.wl-remove:hover {
  background: var(--soft-acid);
}
.wl-body {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 1rem 1.25rem calc(1.5rem + env(safe-area-inset-bottom));
}
.wl-list {
  display: grid;
  gap: 0.6rem;
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
}
.wl-row {
  align-items: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  display: flex;
  gap: 0.75rem;
  padding: 0.5rem;
}
.wl-row img {
  border-radius: 0.6rem;
  flex: none;
  height: 3.5rem;
  object-fit: cover;
  width: 3.5rem;
}
.wl-row-text {
  display: grid;
  flex: 1;
  gap: 0.1rem;
  min-width: 0;
}
.wl-row-name {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.3;
  overflow: hidden;
}
.wl-empty {
  color: var(--muted);
  padding: 2rem 0;
  text-align: center;
}
.wl-form {
  display: grid;
  gap: 0.8rem;
}
.wl-form.is-busy {
  opacity: 0.7;
  pointer-events: none;
}
.wl-form-title {
  font-family: "Manrope", sans-serif;
  font-weight: 800;
  margin: 0;
}
.wl-hint {
  color: var(--muted);
  font-size: 0.88rem;
  margin: -0.4rem 0 0;
}
.wl-field {
  display: grid;
  gap: 0.25rem;
}
.wl-label {
  font-size: 0.88rem;
  font-weight: 600;
}
.wl-field input,
.wl-field textarea {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 0.8rem;
  color: var(--ink);
  font: inherit;
  font-size: 1rem; /* 16px: stops iOS zoom on focus */
  min-height: 2.9rem;
  padding: 0.65rem 0.85rem;
  width: 100%;
}
.wl-field input:focus,
.wl-field textarea:focus {
  border-color: var(--ink);
  outline: 3px solid var(--acid);
}
.wl-field input[aria-invalid="true"] {
  border-color: #c0392b;
}
.wl-error {
  background: #fdecea;
  border-radius: 0.7rem;
  color: #8e2417;
  font-size: 0.9rem;
  margin: 0;
  padding: 0.55rem 0.8rem;
}
.wl-check {
  align-items: center;
  display: flex;
  font-weight: 600;
  gap: 0.6rem;
  min-height: 2.75rem;
}
.wl-check input {
  accent-color: var(--ink);
  height: 1.3rem;
  width: 1.3rem;
}
.wl-check span,
.wl-label,
.wl-btn,
.wl-fab-text {
  align-items: baseline;
}
.wl-hp {
  height: 0;
  left: -9999px;
  overflow: hidden;
  position: absolute;
  width: 0;
}
.wl-privacy {
  background: var(--soft-acid);
  border-radius: 0.8rem;
  font-size: 0.82rem;
  line-height: 1.45;
  margin: 0;
  padding: 0.65rem 0.85rem;
}
.wl-privacy .wl-he {
  margin-top: 0.3rem;
}
.wl-btn {
  border: 1px solid var(--ink);
  border-radius: 999px;
  cursor: pointer;
  font-weight: 700;
  min-height: 3rem;
  padding: 0.7rem 1.2rem;
  text-align: center;
}
.wl-btn .wl-he {
  color: inherit;
  opacity: 0.8;
}
.wl-btn-primary {
  background: var(--ink);
  color: var(--acid);
}
.wl-btn:disabled {
  cursor: progress;
  opacity: 0.75;
}
.wl-btn.is-loading::before {
  animation: wl-spin 700ms linear infinite;
  border: 3px solid currentColor;
  border-radius: 50%;
  border-right-color: transparent;
  content: "";
  display: inline-block;
  height: 1em;
  margin-right: 0.5rem;
  vertical-align: -0.15em;
  width: 1em;
}
@keyframes wl-spin {
  to {
    transform: rotate(360deg);
  }
}
.wl-success {
  display: grid;
  gap: 0.6rem;
  justify-items: center;
  padding: 2.5rem 0.5rem;
  text-align: center;
}
.wl-success:focus {
  outline: 0;
}
.wl-success-icon {
  align-items: center;
  background: var(--acid);
  border-radius: 50%;
  display: flex;
  font-size: 2rem;
  height: 4rem;
  justify-content: center;
  margin: 0;
  width: 4rem;
}
.wl-success h3,
.wl-success p {
  margin: 0;
}

@media (max-width: 620px) {
  .wl-dialog {
    border-radius: 1.25rem 1.25rem 0 0;
    height: 92dvh;
    margin: auto 0 0;
    max-height: 92dvh;
    max-width: 100vw;
  }
  .wl-dialog[open] {
    animation-name: wl-rise;
  }
  .wl-fab-text .wl-he {
    display: none;
  }
}
@keyframes wl-rise {
  from {
    transform: translateY(2rem);
    opacity: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .wl-dialog[open],
  .wl-fab.bump,
  .wl-add.is-on::before,
  .wl-btn.is-loading::before {
    animation-duration: 1ms;
    animation-iteration-count: 1;
  }
}

.wl-label .wl-he,
.wl-check .wl-he,
.wl-btn .wl-he {
  display: inline;
  margin-inline-start: 0.35rem;
}
.wl-error .wl-he {
  color: inherit;
  margin-top: 0.15rem;
}
