/* Donor #details extras: share, ask, notify, analogs, ship notice, cheaper, reserve */

.product-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin: -0.35rem 0 1rem;
}

.product-share {
  display: flex;
  align-items: center;
  gap: 6px;
}

.product-share__label {
  color: #64748b;
  font-size: 0.75rem;
  margin-right: 2px;
}

.product-share__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #475569;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.product-share__btn:hover {
  border-color: #bfdbfe;
  background: #eff6ff;
  color: #1d4ed8;
}

.product-share__btn svg {
  display: block;
  width: 16px;
  height: 16px;
}

/* Chip actions: fav in toolbar, ask on separate row */
.product-action-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 30px;
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #334155;
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease,
    box-shadow 0.15s ease;
}

.product-action-chip:hover {
  border-color: #bfdbfe;
  background: #eff6ff;
  color: #1d4ed8;
  text-decoration: none;
}

.product-action-chip__icon {
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  display: block;
}

.product-fav-link.is-active {
  border-color: #fecaca;
  background: #fef2f2;
  color: #b91c1c;
}

.product-fav-link.is-active:hover {
  border-color: #fca5a5;
  background: #fee2e2;
  color: #991b1b;
}

.product-fav-link {
  appearance: none;
  margin: 0;
}

.product-fav-link:hover {
  text-decoration: none;
}

/* Title row: ask — top right, outline pill */
.product-info-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px 20px;
  margin-bottom: 0.65rem;
}

.product-info-head__body {
  flex: 1;
  min-width: 0;
}

.product-info-head .product-sku {
  margin-bottom: 0.5rem;
}

.product-info-head .product-title {
  margin-bottom: 0;
}

.product-ask-link {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #475569;
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: none;
  transition: color 0.15s ease;
}

.product-ask-link:hover {
  color: #1d4ed8;
  text-decoration: underline;
  text-underline-offset: 3px;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.product-ask-link__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid #e2e8f0;
  color: #64748b;
}

.product-ask-link:hover .product-ask-link__icon {
  border-color: #bfdbfe;
  background: #eff6ff;
  color: #1d4ed8;
}

.product-ask-link__icon svg {
  display: block;
  width: 18px;
  height: 18px;
}

@media (max-width: 560px) {
  .product-info-head {
    flex-direction: column;
    align-items: stretch;
  }

  .product-ask-link {
    align-self: flex-start;
    margin-top: 0;
  }
}

.product-secondary-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  margin: 0.75rem 0 0.25rem;
}

.product-notify-link,
.product-analogs-link {
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
}

.product-notify-link {
  color: #c2410c;
}

.product-notify-link:hover {
  text-decoration: underline;
}

.product-notify-link[hidden] {
  display: none !important;
}

.product-analogs-link {
  color: #2f6fdb;
}

.product-analogs-link:hover {
  text-decoration: underline;
}

.product-ship-notice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 0.85rem;
  margin-bottom: 1rem;
  padding: 12px 14px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-left: 3px solid #3b6fd9;
  box-shadow: none;
}

.product-ship-notice__mark {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  margin-top: 1px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: none;
  color: #3b6fd9;
  box-shadow: none;
}

.product-ship-notice__mark svg {
  display: block;
  width: 20px;
  height: 20px;
}

.product-ship-notice__content {
  flex: 1;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.product-ship-notice__text {
  margin: 0;
  color: #334155;
  font-size: 0.8125rem;
  line-height: 1.5;
}

.product-ship-notice strong {
  color: #1e40af;
  font-weight: 700;
}

.product-cheaper-link {
  display: inline-block;
  margin-top: 0;
  color: #2563eb;
  font-weight: 600;
  font-size: 0.8125rem;
  text-decoration: none;
  white-space: nowrap;
}

.product-cheaper-link:hover {
  text-decoration: underline;
}

/* Price row: amount left, «Нашли дешевле?» right */
.product-price-block .price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px 16px;
  flex-wrap: wrap;
}

.product-price-block .price-row__main {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.5rem;
  min-width: 0;
}

.product-price-block .product-cheaper-link {
  flex: 0 0 auto;
  margin-left: auto;
  font-size: 0.875rem;
}

@media (max-width: 420px) {
  .product-price-block .price-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .product-price-block .product-cheaper-link {
    margin-left: 0;
  }
}

.product-reserve {
  margin-top: 0.85rem;
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid #86efac;
  background: linear-gradient(180deg, #f0fdf4 0%, #ecfdf5 100%);
  color: #14532d;
}

.product-reserve[hidden] {
  display: none !important;
}

.product-reserve__title {
  font-weight: 700;
  font-size: 0.9375rem;
  margin: 0 0 6px;
}

.product-reserve__desc {
  font-size: 0.8125rem;
  line-height: 1.45;
  margin: 0 0 8px;
}

.product-reserve__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  font-size: 0.8125rem;
  margin-bottom: 10px;
}

.product-reserve__meta strong {
  font-weight: 700;
}

.product-reserve__btn {
  appearance: none;
  border: 0;
  border-radius: 8px;
  background: #16a34a;
  color: #fff;
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 8px 14px;
  cursor: pointer;
}

.product-reserve__btn:hover {
  background: #15803d;
}

/* Simple modal for ask / cheaper / notify */
.pdm {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.pdm.is-open {
  display: flex;
}

.pdm__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
}

.pdm__panel {
  position: relative;
  z-index: 1;
  width: min(420px, 100%);
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.2);
  padding: 20px 20px 18px;
}

.pdm__title {
  margin: 0 0 6px;
  font-size: 1.125rem;
  font-weight: 700;
  color: #0f172a;
}

.pdm__lead {
  margin: 0 0 14px;
  color: #64748b;
  font-size: 0.875rem;
  line-height: 1.4;
}

.pdm__field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 10px;
}

.pdm__field label {
  font-size: 0.75rem;
  font-weight: 600;
  color: #475569;
}

.pdm__field input,
.pdm__field textarea {
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 9px 11px;
  font: inherit;
  font-size: 0.875rem;
}

.pdm__field textarea {
  min-height: 88px;
  resize: vertical;
}

.pdm__actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 8px;
}

.pdm__btn {
  appearance: none;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  background: #fff;
  padding: 8px 14px;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
}

.pdm__btn--primary {
  border-color: #2f6fdb;
  background: #2f6fdb;
  color: #fff;
}

.pdm__close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #64748b;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}

.pdm__toast {
  margin-top: 8px;
  color: #15803d;
  font-size: 0.8125rem;
  font-weight: 600;
  display: none;
}

.pdm__toast.is-on {
  display: block;
}
