.wish-quick-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  margin-top: 12px;
  text-align: left;
}

.search-link-panel {
  margin-top: 14px;
  padding: 15px;
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 14px;
  background: rgba(255, 255, 255, .1);
  color: #fff;
}

.search-link-panel[hidden] {
  display: none;
}

.search-link-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 12px;
  text-align: left;
}

.search-link-panel-head strong,
.search-link-panel-head small {
  display: block;
}

.search-link-panel-head small {
  margin-top: 2px;
  color: #c7d8d4;
  font-size: 10px;
}

.search-link-panel-head button {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .14);
  color: #fff;
  cursor: pointer;
  font-size: 20px;
}

.search-link-panel form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
  text-align: left;
}

.search-link-panel label {
  font-size: 10px;
  font-weight: 700;
}

.search-link-panel input {
  display: block;
  width: 100%;
  margin-top: 4px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 9px;
  background: #fff;
  color: var(--ink);
}

.search-primary-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  border-bottom: 1px solid #e7e2d8;
  background: #f4f8f2;
}

.search-primary-actions .search-query-option {
  border-bottom: 0;
}

.search-add-query {
  display: inline-flex;
  min-width: 205px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin: 7px;
  padding: 9px 13px;
  border: 0;
  border-radius: 10px;
  background: var(--orange);
  color: #fff;
  cursor: pointer;
  font-size: 12px;
}

.search-add-query span {
  font-size: 18px;
  line-height: 1;
}

.search-add-query:hover,
.search-add-query:focus-visible {
  outline: 3px solid rgba(238, 108, 57, .2);
  background: var(--orange-dark);
}

.search-suggestion b {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.search-suggestion b i {
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  border-radius: 8px;
  background: var(--teal);
  color: #fff;
  font-size: 17px;
  font-style: normal;
}

.search-suggestion.is-adding {
  cursor: wait;
  opacity: .65;
}

.product-added-toast {
  max-width: min(90vw, 520px);
  text-align: center;
}

.quick-add-wish,
.quick-add-link {
  min-height: 54px;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 13px;
  cursor: pointer;
}

.quick-add-wish {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 11px;
  padding: 9px 14px;
  background: #fff7ed;
  color: var(--teal);
}

.quick-add-wish[hidden] {
  display: none;
}

.quick-add-wish > span:first-child {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  place-items: center;
  border-radius: 10px;
  background: var(--orange);
  color: #fff;
  font-size: 22px;
}

.quick-add-wish > span:last-child {
  min-width: 0;
}

.quick-add-wish strong,
.quick-add-wish small {
  display: block;
}

.quick-add-wish strong {
  overflow: hidden;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.quick-add-wish small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
}

.quick-add-wish:hover,
.quick-add-wish:focus-visible {
  outline: 3px solid rgba(255, 255, 255, .2);
  background: #fff;
}

.quick-add-wish:disabled {
  cursor: wait;
  opacity: .78;
}

.quick-add-link {
  padding: 0 17px;
  background: rgba(255, 255, 255, .08);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.quick-add-link:hover,
.quick-add-link:focus-visible {
  outline: 0;
  background: rgba(255, 255, 255, .17);
}

.result-source-heading {
  grid-column: 1 / -1;
  margin: 6px 0 -7px;
  color: var(--teal);
  font-family: 'Fraunces', serif;
  font-size: 22px;
}

.result-source-more {
  margin-top: 22px;
  padding-top: 25px;
  border-top: 1px solid var(--line);
}

.product-image-placeholder {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  background: linear-gradient(135deg, #f4eee3, #e6eee5);
  font-size: 52px;
}

.product-idea-label {
  margin-bottom: 15px;
  color: var(--teal);
  font-size: 13px;
  font-weight: 700;
}

.no-shop-link {
  padding-top: 11px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  text-align: center;
}

.product-link-toggle {
  display: inline-flex;
  width: 100%;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-top: 10px;
  padding: 8px 10px;
  border: 1px solid #b9d9c8;
  border-radius: 10px;
  background: #edf8f1;
  color: #26734f;
  cursor: pointer;
  font-size: 11px;
  font-weight: 800;
}

.product-link-toggle span {
  font-size: 18px;
  line-height: 1;
}

.product-link-toggle small {
  color: #5d806d;
  font-size: 9px;
  font-weight: 600;
}

.product-link-toggle:hover,
.product-link-toggle:focus-visible,
.product-link-toggle[aria-expanded="true"] {
  outline: 0;
  border-color: #4a9b70;
  background: #dff2e6;
}

.product-link-input {
  margin-top: 9px;
  padding: 10px;
  border-radius: 10px;
  background: #f5faf6;
}

.product-link-input[hidden] {
  display: none;
}

.product-link-input label,
.product-link-input > small {
  display: block;
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
}

.product-link-input input {
  display: block;
  width: 100%;
  margin: 4px 0 5px;
  padding: 9px;
  border: 1px solid #b9d9c8;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-size: 12px;
}

.is-product-idea {
  border-style: dashed;
}

.saved-note {
  max-width: 100%;
  line-height: 1.25;
}

.public-saved-note {
  background: transparent;
  color: var(--muted);
  padding-inline: 0;
}

.item-link-editor {
  grid-column: 1 / -1;
  border-top: 1px solid #ece6dc;
  background: #fffaf2;
}

.item-link-editor summary {
  padding: 11px 14px;
  color: var(--teal);
  cursor: pointer;
  font-size: 11px;
  font-weight: 800;
  list-style: none;
}

.item-link-editor summary::-webkit-details-marker {
  display: none;
}

.item-link-editor form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 9px;
  align-items: end;
  padding: 0 12px 13px;
}

.item-link-editor label {
  min-width: 0;
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
}

.item-link-editor input {
  display: block;
  width: 100%;
  margin-top: 3px;
  padding: 9px;
  border: 1px solid #d8d4cb;
  border-radius: 8px;
  background: #fff;
}

.item-link-editor button {
  min-height: 39px;
  padding: 8px 12px;
  background: var(--teal);
  color: #fff;
}

@media (max-width: 620px) {
  .search-link-panel form {
    grid-template-columns: 1fr;
  }

  .search-primary-actions {
    grid-template-columns: 1fr;
  }

  .search-add-query {
    min-width: 0;
    min-height: 44px;
    margin: 0 10px 10px;
  }

  .wish-quick-actions {
    grid-template-columns: 1fr;
  }

  .quick-add-wish,
  .quick-add-link {
    width: 100%;
    min-height: 50px;
  }

  .quick-add-link {
    border-color: rgba(255, 255, 255, .22);
  }

  .quick-add-wish strong {
    font-size: 13px;
  }

  .result-source-heading {
    font-size: 20px;
  }

  .product-card {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
  }

  .product-card .product-image {
    height: 100%;
    min-height: 205px;
    aspect-ratio: auto;
  }

  .product-card .product-body {
    padding: 15px 13px;
  }

  .product-card .product-body h3 {
    font-size: 16px;
  }

  .product-card .button-add {
    min-height: 44px;
    padding: 9px 7px;
    font-size: 11px;
  }

  .product-idea-label,
  .no-shop-link {
    font-size: 10px;
  }

  .item-link-editor form {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 390px) {
  .product-card {
    grid-template-columns: 96px minmax(0, 1fr);
  }

  .product-card .product-body {
    padding: 13px 11px;
  }
}
