/* Buyer product card: dense enough to fit the complete buying flow at 100% zoom. */
.product-dialog {
  width: min(1120px, calc(100vw - 32px));
  max-width: 1120px;
  max-height: calc(100dvh - 24px);
  overflow: hidden;
}

.product-dialog-layout {
  grid-template-columns: minmax(320px, .92fr) minmax(420px, 1.08fr);
  height: min(720px, calc(100dvh - 24px));
  min-height: 0;
  max-height: calc(100dvh - 24px);
}

.product-dialog-visual {
  min-height: 0;
  height: 100%;
  aspect-ratio: auto;
}

.product-dialog-copy {
  padding: clamp(22px, 3vw, 38px);
  overflow-y: auto;
  justify-content: flex-start;
  font-weight: 400;
}

.product-dialog-copy .kicker,
.product-dialog-maker,
.product-dialog-facts dt,
.product-dialog-facts dd,
.product-dialog-description,
.product-dialog-tags span {
  font-weight: 400 !important;
}

.product-dialog-copy h2 {
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(1.65rem, 2.8vw, 2.45rem);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -.025em;
  margin: 2px 44px 10px 0;
}

.product-dialog-description {
  font-size: .95rem;
  line-height: 1.45;
  max-height: 118px;
  margin: 0 0 7px;
}

.product-dialog-facts {
  gap: 5px 14px;
  margin: 8px 0;
  font-size: .84rem;
}

.product-dialog-tags { max-height: 56px; overflow: auto; }
.product-dialog-price {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1.25rem;
  font-weight: 400;
  margin: 10px 0 12px;
}

.product-dialog-actions {
  margin-top: auto;
  padding: 12px 0 2px;
  gap: 8px;
  background: #fffdfa;
}

.product-dialog-actions .button {
  min-width: 0;
  padding: 12px 13px;
  font-weight: 400;
  white-space: nowrap;
}

.product-dialog-message {
  width: auto;
  flex-basis: 100% !important;
}

/* Seller listing editor shown in the supplied screenshot. */
.listing-dialog {
  width: min(980px, calc(100vw - 32px));
  max-width: 980px;
  max-height: calc(100dvh - 24px);
  overflow-x: hidden;
}

.listing-dialog .dialog-heading { padding: 22px 28px 16px; }
.listing-dialog .dialog-heading h2 {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1.85rem;
  font-weight: 400;
  letter-spacing: -.02em;
}
.listing-dialog .dialog-heading p,
.listing-dialog .eyebrow { font-weight: 400; }
.listing-dialog .listing-form { padding: 20px 28px 28px; gap: 13px 16px; }
.listing-dialog .dashboard-form label,
.listing-dialog .dashboard-form small,
.listing-dialog .dashboard-form legend { font-weight: 400; }
.listing-dialog .dashboard-form input,
.listing-dialog .dashboard-form textarea,
.listing-dialog .dashboard-form select { font-weight: 400; }
.listing-dialog .dashboard-form textarea { resize: vertical; }
.listing-dialog .dash-button { font-weight: 400; }

@media (max-width: 760px) {
  .product-dialog {
    width: calc(100vw - 16px);
    max-height: calc(100dvh - 12px);
  }
  .product-dialog-layout {
    display: flex;
    flex-direction: column;
    height: calc(100dvh - 12px);
    max-height: calc(100dvh - 12px);
  }
  .product-dialog-visual {
    flex: 0 0 min(34vh, 300px);
    width: 100%;
  }
  .product-dialog-copy {
    flex: 1 1 auto;
    min-height: 0;
    max-height: none;
    padding: 18px;
  }
  .product-dialog-copy h2 { font-size: 1.55rem; }
  .product-dialog-description { max-height: 92px; }
  .product-dialog-actions { position: sticky; bottom: 0; }
  .listing-dialog { width: calc(100vw - 16px); }
  .listing-dialog .dialog-heading { padding: 20px 20px 14px; }
  .listing-dialog .listing-form { padding: 18px 20px 24px; }
}

@media (max-height: 680px) and (min-width: 761px) {
  .product-dialog-copy { padding: 18px 26px; }
  .product-dialog-copy h2 { font-size: 1.65rem; margin-bottom: 6px; }
  .product-dialog-description { max-height: 76px; }
  .product-dialog-tags { display: none; }
  .product-dialog-facts { margin: 5px 0; }
}
