.purchase-page {
  color: #222;
  font-family: Arial, Helvetica, sans-serif;
  max-width: 1040px;
}
.purchase-back {
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.purchase-page h1 {
  font-size: 28px;
  line-height: 1.2;
  font-weight: 600;
  margin: 20px 0 8px;
}
.purchase-intro {
  color: #666;
  font-size: 14px;
  margin-bottom: 24px;
}
.purchase-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}
.purchase-page h2 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 16px;
}
.purchase-page label {
  display: block;
  font-size: 12px;
  margin-bottom: 5px;
}
.purchase-page label span {
  color: #777;
}
.purchase-page input,
.purchase-page select,
.purchase-page textarea {
  width: 100%;
  border: 1px solid #bbb;
  border-radius: 0;
  background: white;
  color: #222;
  font: inherit;
  font-size: 14px;
  padding: 8px;
  margin-bottom: 16px;
}
.purchase-page textarea {
  resize: vertical;
}
.purchase-page input:focus,
.purchase-page select:focus,
.purchase-page textarea:focus {
  outline: 2px solid #555;
  outline-offset: 1px;
}
.purchase-field-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.purchase-button {
  display: inline-block;
  background: #222;
  color: white;
  border: 1px solid #222;
  border-radius: 0;
  padding: 10px 18px;
  font: inherit;
  font-size: 14px;
  text-align: center;
  cursor: pointer;
}
.purchase-button:hover {
  background: #444;
}
.purchase-button:focus-visible {
  outline: 2px solid #777;
  outline-offset: 3px;
}
.purchase-form-section .purchase-button {
  width: 100%;
}
.purchase-help {
  font-size: 12px;
  color: #666;
  line-height: 1.5;
  margin-top: 10px;
}
.purchase-summary {
  padding: 18px;
  border: 1px solid #ccc;
  background: #f7f7f7;
}
.purchase-summary img {
  width: 100%;
  max-height: 220px;
  object-fit: contain;
  margin-bottom: 14px;
}
.purchase-summary h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
}
.purchase-summary p {
  font-size: 12px;
  color: #666;
  line-height: 1.5;
}
.purchase-price {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid #ccc;
  padding-top: 14px;
  margin-top: 16px;
  font-size: 14px;
}
.contact-email {
  display: inline-block;
  font-size: 12px;
  text-decoration: underline;
  overflow-wrap: anywhere;
  margin-top: 16px;
}
.purchase-action {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 20px;
}
.work-price {
  font-size: 18px;
}
#email-result {
  border-top: 1px solid #ccc;
  margin-top: 20px;
  padding-top: 16px;
  font-size: 13px;
}
.email-fallback {
  display: flex;
  gap: 16px;
  margin: 12px 0;
}
.email-fallback button {
  text-decoration: underline;
  cursor: pointer;
}
#email-result summary {
  cursor: pointer;
  margin-bottom: 12px;
}
@media (max-width: 680px) {
  .purchase-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .purchase-summary {
    grid-row: 1;
  }
  .purchase-summary img {
    max-height: 160px;
  }
  .purchase-field-pair {
    grid-template-columns: 1fr;
    gap: 0;
  }
}
.direct-contact {
  border: 1px solid #999;
  padding: 16px 18px;
  margin-bottom: 24px;
  background: #f5f5f5;
}
.direct-contact > span {
  display: block;
  font-size: 13px;
  margin-bottom: 5px;
}
.direct-email-row #copy-email-address {
  min-width: 0;
  text-align: left;
  cursor: pointer;
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
  overflow-wrap: anywhere;
}
.direct-contact p {
  font-size: 12px;
  color: #555;
  margin-top: 10px;
}
.purchase-email-actions {
  display: flex;
  align-items: stretch;
  gap: 8px;
}
.purchase-email-actions .purchase-button {
  flex: 1;
  width: auto;
}
.direct-email-row {
  display: flex;
  align-items: center;
  gap: 14px;
  justify-content: space-between;
}
#copy-email {
  flex-shrink: 0;
  min-width: 82px;
  border: 1px solid #aaa;
  padding: 7px 10px;
  font-size: 12px;
  cursor: pointer;
  background: #fff;
}
#copy-email:hover {
  background: #e9e9e9;
}
.direct-contact > .copy-email-status {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
.direct-contact > .copy-email-status.copy-error {
  position: static;
  width: auto;
  height: auto;
  clip-path: none;
  margin-top: 8px;
  font-size: 12px;
}
