.custom-request {
  --request-ink: var(--b-ink, #304334);
  --request-muted: var(--b-muted-strong, #54614e);
  --request-surface: var(--b-surface, #fbf5e9);
  --request-border: var(--b-line, #c4cdbd);
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(0, 1.5fr);
  align-items: start;
  gap: clamp(24px, 5vw, 64px);
  width: min(1240px, calc(100% - 64px));
  margin: 32px auto 48px;
  padding: 0;
  color: var(--request-ink);
  background: transparent;
}

.custom-request > * { min-width: 0; }
.custom-request-intro { max-width: 36ch; padding-top: 10px; }
.custom-request-intro h1 { margin: 0 0 20px; font-size: clamp(38px, 4.5vw, 58px); line-height: 1.08; letter-spacing: -.04em; }
.custom-request-intro p { line-height: 1.65; }
.custom-request-kicker { color: var(--request-muted); font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.custom-request-support-link a { display: inline-flex; gap: 20px; align-items: center; min-height: 44px; text-decoration: underline; text-underline-offset: 5px; font-size: 14px; }
.custom-request-upload-note { margin-top: 28px; color: var(--request-muted); font-size: 14px; }
.custom-request-form { padding: 24px; background: var(--request-surface); border: 1px solid var(--request-border); }
.custom-request-form h2,
.custom-request-receipt h2 { margin: 0 0 8px; font-family: Georgia, serif; font-size: 28px; line-height: 1.2; letter-spacing: -.025em; }
.custom-request-required-note { margin-bottom: 18px; color: var(--request-muted); font-size: 13px; }
.custom-request-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.custom-request-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.custom-request-field-wide { grid-column: 1 / -1; }
.custom-request-grid label { margin: 0; color: var(--request-ink); font-size: 14px; font-weight: 600; }
.custom-request-optional { display: inline-block; margin-left: .35rem; color: var(--request-muted); font-size: .85rem; font-weight: 500; }
.custom-request-grid input,
.custom-request-grid textarea {
  box-sizing: border-box;
  width: 100%;
  min-height: 3rem;
  padding: .65rem .75rem;
  border: 1px solid color-mix(in srgb, var(--request-ink) 45%, var(--request-surface));
  border-radius: 0;
  color: var(--request-ink);
  background: var(--b-paper, #fffdf8);
  font: inherit;
}
.custom-request-grid textarea { min-height: 96px; resize: vertical; line-height: 1.5; }
.custom-request-grid input:focus-visible,
.custom-request-grid textarea:focus-visible,
.custom-request button:focus-visible,
.custom-request-extra summary:focus-visible { outline: 3px solid var(--b-ink, #304334); outline-offset: 3px; }
.custom-request-grid [aria-invalid="true"] { border-color: #a52820; outline: 2px solid #a52820; outline-offset: 1px; }
.custom-request-grid small { color: var(--request-muted); font-size: 12px; line-height: 1.5; }
.custom-request-field-error { min-height: 0; margin: 0; color: #7d1c16; font-weight: 650; line-height: 1.45; }
.custom-request-field-error:empty { display: none; }
.custom-request-extra { margin-top: 16px; border-block: 1px solid var(--request-border); }
.custom-request-extra summary { min-height: 44px; padding: 10px 0; cursor: pointer; font-size: 14px; }
.custom-request-extra > p { margin: 8px 0 16px; color: var(--request-muted); font-size: 13px; }
.custom-request-extra .custom-request-grid { margin-bottom: 18px; }
.custom-request-privacy { margin: 16px 0 8px; color: var(--request-muted); font-size: 13px; line-height: 1.55; }
.custom-request-status { margin: 0 0 12px; min-height: 1.5em; color: var(--request-muted); font-size: 13px; line-height: 1.5; }
.custom-request-status:empty { display: none; }
.custom-request-summary { margin: 0 0 1rem; padding: .9rem 1rem; border-left: .3rem solid #9a573b; background: #f4e4d7; font-weight: 650; }
.custom-request-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.custom-request button { min-height: 3rem; min-width: 3rem; padding: .7rem 1.15rem; border: 1px solid var(--b-green, #435e3f); border-radius: 0; color: var(--b-on-primary, #fffaf0); background: var(--b-green, #435e3f); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.custom-request button:disabled { cursor: not-allowed; opacity: .68; }
.custom-request button[data-retry],
.custom-request button[data-new-intent] { color: var(--request-ink); background: transparent; }
.custom-request-receipt { grid-column: 2; grid-row: 1; padding: 24px; border: 1px solid var(--request-border); background: var(--request-surface); overflow-wrap: anywhere; }
.custom-request-receipt:focus { outline: 3px solid #9a573b; outline-offset: 3px; }
.boutique-shell .custom-orders-supporting { scroll-margin-top: 24px; border-top: 1px solid var(--b-line); }
.boutique-shell .custom-orders-supporting .cms-page { padding-bottom: 40px; }
.boutique-shell .custom-orders-supporting .cms-section { padding-block: clamp(28px, 4vw, 48px); }
.boutique-shell .custom-orders-supporting .cms-section h2 { font-size: clamp(28px, 3vw, 40px); }

@media (max-width: 900px) {
  .custom-request { grid-template-columns: minmax(0, 1fr); gap: 20px; margin-top: 24px; }
  .custom-request-intro { max-width: none; padding: 0; }
  .custom-request-intro h1 { margin-bottom: 12px; }
  .custom-request-intro > p { max-width: 52ch; }
  .custom-request-support-link { margin-bottom: 0; }
  .custom-request-upload-note { margin: 0; }
  .custom-request-receipt { grid-column: 1; grid-row: auto; }
}

@media (max-width: 30rem) {
  .custom-request { width: calc(100% - 32px); gap: 16px; margin: 24px 16px 32px; }
  .custom-request-intro h1 { font-size: 38px; }
  .custom-request-intro > p:not(.custom-request-kicker) { margin-bottom: 8px; }
  .custom-request-kicker { margin-bottom: 8px; }
  .custom-request-support-link a { min-height: 44px; }
  .custom-request-upload-note { font-size: 13px; }
  .custom-request-form { padding: 18px; }
  .custom-request-form h2 { font-size: 26px; }
  .custom-request-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .custom-request-grid input,
  .custom-request-grid textarea { font-size: max(1rem, 1em); }
  .custom-request-actions { flex-direction: column; align-items: stretch; }
}
