* { box-sizing:border-box; }
body {
  --checkout-line:#d7cec0;
  --checkout-card:#fffcf6;
  --checkout-radius:16px;
  --checkout-inset:clamp(16px,2.5vw,32px);
  margin:0;
  min-height:100dvh;
  display:flex;
  flex-direction:column;
  background:var(--paper);
  color:var(--ink);
  font:16px/1.5 var(--ui-font);
}
.site-content > :is(header,main) { width:min(calc(100% - 2 * clamp(16px,4.2vw,48px)),1320px); margin-inline:auto; }
.site-header { min-height:80px; display:flex; align-items:center; justify-content:space-between; gap:16px; border-bottom:1px solid var(--checkout-line); }
.site-header .brand-lockup { width:clamp(142px,18vw,196px); height:auto; }
.site-header .brand::after { display:none; }
.site-header nav { display:flex; align-items:center; gap:clamp(8px,3vw,32px); font-size:.95rem; }
.site-header nav a { padding-block:8px; }
main { padding-block:clamp(38px,5vw,68px); }
h1 { max-width:22ch; margin:0 0 var(--space-3); font-size:clamp(2.8rem,4.1vw,4rem); line-height:1.03; letter-spacing:-.052em; }
h2 { margin:0 0 var(--space-2); font-size:24px; line-height:1.2; letter-spacing:-.025em; }
p { max-width:62ch; }
section { margin-block:var(--space-3); }
#checkout-steps:has(:is(#catalog,#selected):not([hidden])) #checkout-heading {
  position:absolute;
  width:1px;
  height:1px;
  overflow:hidden;
  clip-path:inset(50%);
  white-space:nowrap;
}
:is(#catalog,#selected) { margin-block-start:0; }
:is(#offers-heading,#selected-name) { margin:0 0 var(--space-3); font-size:clamp(2.8rem,4.1vw,4rem); line-height:1.04; letter-spacing:-.048em; }
.offer-photo { display:block; width:100%; aspect-ratio:1.8; object-fit:cover; border-radius:calc(var(--checkout-radius) - 5px); }
.service-scope { display:grid; gap:.45em; margin:0; padding:0; list-style:none; line-height:1.4; white-space:normal; }
.service-scope li { position:relative; padding-inline-start:1.45em; }
.service-scope li::before {
  content:"";
  position:absolute;
  inset:.36em auto auto .1em;
  width:.58em;
  height:.32em;
  border:solid var(--accent);
  border-width:0 0 2px 2px;
  transform:rotate(-45deg);
}
.price { font-weight:750; letter-spacing:-.035em; }
#checkout-steps:has(:is(#catalog,#selected):not([hidden])) { max-width:655px; margin-inline:auto; }
#catalog > #offers-heading { margin:0 0 24px; font-size:clamp(2.3rem,4.4vw,3.7rem); }
#checkout-steps:has(#catalog:not([hidden])) { max-width:1000px; }
#catalog .pricing-config { grid-template-columns:minmax(0,1fr) minmax(0,1fr); grid-template-areas:"purchase intro"; gap:clamp(28px,6vw,76px); }
#catalog .pricing-intro { display:grid; grid-template-columns:minmax(0,1fr); gap:14px; align-items:start; }
.pricing-media { --film-radius:12px; min-width:0; }
.pricing-media .label-study { width:100%; min-width:0; margin:0; }
.pricing-media .film-frame { --film-inset:4px; }
.pricing-intro h3 { margin:4px 0 0; font-size:1.15rem; }
.pricing-intro .service-inclusions { width:100%; margin:0; color:var(--muted); font-size:.95rem; }
@media(max-width:620px) {
  #catalog .pricing-config { grid-template-columns:1fr; grid-template-areas:"purchase" "intro"; gap:24px; }
}
#selected,.purchase-summary {
  padding:clamp(20px,3.4vw,40px); border:1px solid var(--checkout-line); border-radius:8px;
  background:var(--checkout-card);
}
.receipt-heading { display:flex; align-items:center; justify-content:space-between; gap:12px; }
#selected-name { margin:0; font-size:clamp(1.8rem,3vw,2.7rem); letter-spacing:-.05em; }
#change-offer { flex:none; font-weight:400; }
#selected-price { margin:6px 0 18px; font-size:clamp(1.55rem,2.4vw,2.15rem); line-height:1.1; font-variant-numeric:tabular-nums; }
#selected-service { padding-top:16px; border-top:1px solid var(--checkout-line); }
#selected-service [data-receipt="scope"] { margin-block:0; }
.checkout-entry { margin-top:12px; padding-top:20px; border-top:1px solid var(--checkout-line); }
#begin-form { margin:0; max-width:none; }
#begin-order { width:100%; }
#begin-form :is(input,button):disabled { cursor:default; }
#begin-form input:disabled { background:#eee9e0; }
button { min-height:var(--action-height); padding:10px 18px; border:1px solid transparent; border-radius:var(--radius); background:transparent; color:var(--ink); font:inherit; cursor:pointer; }
button:disabled { opacity:.5; cursor:default; }
:focus-visible { outline:2px solid var(--accent); outline-offset:3px; }
:is(#checkout-heading,#offers-heading,#selected-name,#order-heading,#your-order):focus { outline:none; }
:is(#offers-heading,#selected-name,#order-heading) { width:fit-content; scroll-margin-block-start:var(--space-2); }
form:where(:not(.pricing-config)) { display:grid; gap:var(--space-2); max-width:560px; margin-block:var(--space-3); }
label { display:grid; gap:var(--space-1); }
#begin-form > label { font-weight:650; }
#begin-form input { font-weight:400; }
.consent { display:flex; align-items:flex-start; gap:var(--space-1); min-height:var(--action-height); padding-block:var(--space-1); cursor:pointer; }
.consent input { flex:none; width:20px; height:20px; margin:2px 0; padding:0; accent-color:var(--accent); }
input,textarea,select { min-width:0; width:100%; border:1px solid var(--muted); border-radius:var(--radius); padding:12px; background:#fff; color:var(--ink); font:inherit; }
textarea { resize:vertical; }
.checkout-actions { display:flex; align-items:center; flex-wrap:wrap; gap:4px 22px; }
.checkout-actions .text-action,#change-offer { font-size:.94rem; }
#checkout-steps:has(#selected:not([hidden])) .checkout-actions { margin-top:16px; }

#status,#offers-status,#preview-notice { color:var(--muted); }
:is(#status,#offers-status):empty { display:none; }
a { color:inherit; text-underline-offset:3px; }
[hidden] { display:none!important; }
@media(max-width:740px) {
  .site-header { min-height:68px; }
  #begin-order { width:100%; }
}
@media(max-width:520px) {
  .site-content > :is(header,main) { width:calc(100% - 32px); }

}

#order { max-width:840px; }
#payment-state { margin:0 0 var(--space-2); color:var(--ink); font-size:1.12rem; line-height:1.5; }
#order[data-payment-state="eligible"] #payment-state::before {
  content:""; display:inline-block; width:.7em; height:.36em; margin-inline:2px 12px;
  border:solid #17613d; border-width:0 0 3px 3px; transform:translateY(-.17em) rotate(-45deg);
}
.purchase-summary { margin-block:24px 32px; }
.purchase-summary h2 { font-size:clamp(1.65rem,3vw,2.4rem); }
#order-summary { max-width:none; margin:0 0 var(--space-2); }
#order-summary > div { display:grid; grid-template-columns:minmax(7em,1fr) minmax(0,2fr); gap:16px; padding-block:9px; border-bottom:1px solid var(--checkout-line); }
#order-summary dt { color:var(--muted); }
#order-summary dd { margin:0; overflow-wrap:anywhere; }
#purchased-amount { font-weight:700; font-variant-numeric:tabular-nums; }
#checkout-steps:has(#order:not([hidden])) { max-width:840px; margin-inline:auto; }
#order-proof,#paid-brief-form,#artwork-form,#source-file-form {
  border:1px solid var(--checkout-line);
  border-radius:var(--checkout-radius);
  background:var(--checkout-card);
  padding:var(--checkout-inset);
}
#reference-value { margin:4px 0 0; max-width:70ch; font:normal .875rem/1.5 ui-monospace,monospace; overflow-wrap:anywhere; user-select:all; }
#order-proof h3,#service-receipt [data-receipt="scope"] { margin-block-start:0; }
#intake { border-block-start:1px solid var(--checkout-line); padding-block-start:var(--space-3); }
#paid-brief-form,#artwork-form,#source-file-form { max-width:none; }
summary { cursor:pointer; }

.saved-notes { white-space:pre-wrap; overflow-wrap:anywhere; }

body.reviewing .site-content > :is(header,main) { width:min(calc(100% - 2 * var(--space-3)),1320px); }
#order-review-view { margin:0; }
@media(max-width:520px) { body.reviewing .site-content > :is(header,main) { width:calc(100% - 32px); } }

#checkout-payment { display:flex; flex-wrap:wrap; align-items:center; gap:var(--space-1); }
.primary.paypal-action,.button.paypal-action {
  display:inline-flex; align-items:center; justify-content:center; gap:10px; min-height:46px;
  padding:10px 20px; border:1px solid transparent; border-radius:var(--radius);
  background:#ffc439; color:#111; font-weight:650; text-decoration:none;
}
.primary.paypal-action:hover,.button.paypal-action:hover { background:#f4b82e; }
.paypal-mark-definition { position:absolute; }
.paypal-mark { flex:none; width:26px; height:26px; }
#begin-order:not(.paypal-action) .paypal-mark { display:none; }
#checkout-payment .button { display:inline-flex; align-items:center; justify-content:center; padding:10px 24px; text-decoration:none; }
#checkout-payment button:not(.primary) { border-color:var(--checkout-line); }
#checkout-payment [role="status"] { flex-basis:100%; margin:0; }
#checkout-payment [role="status"]:empty { display:none; }
#checkout-payment [aria-disabled="true"] { opacity:.5; cursor:default; }

#source-file-hint { margin:0; color:var(--muted); font-size:.875rem; }
input[type=file]::file-selector-button { font:inherit; color:inherit; border:0; border-radius:var(--radius); background:#e9e6df; padding:6px 12px; margin-right:12px; cursor:pointer; }

#recovery {
  width:min(100%,540px); margin:0 auto; padding:clamp(18px,4vw,40px);
  border:1px solid var(--checkout-line); border-radius:var(--checkout-radius); background:var(--checkout-card);
}
/* A fragment or a focused recovery heading opens the whole page, including its header. */
:is(#catalog,#your-order) { scroll-margin-block-start:100vh; scroll-margin-block-start:100dvh; }
.recovery-title { display:flex; justify-content:space-between; align-items:center; gap:12px; }
#recovery h1 { margin:0; max-width:12ch; font-size:clamp(32px,5.2vw,48px); }
.order-slip { width:clamp(40px,5vw,66px); flex:none; filter:drop-shadow(1px 4px 2px #47331b18); }
#recovery .recovery-intro { margin:.8em 0 1.7em; color:var(--muted); max-width:36ch; }
#recovery label { font-weight:600; font-size:.9375rem; }
#recovery input { border-color:#a7a39b; font-weight:400; }
#recovery form { margin-block:18px; }
#recovery button.primary { font-weight:650; }
.recovery-actions { display:flex; align-items:baseline; justify-content:space-between; gap:16px; }
#find-references { justify-self:start; }
#reference-status:empty { display:none; }
#recovery #code-form { border-top:1px solid #e2ded6; padding-top:20px; }

#selected-photo:empty { display:none; }
#selected-photo { margin-bottom:var(--space-2); }
:is(#checkout-help,.pricing-rates,.service-receipt dialog) {
  width:min(calc(100% - 32px),560px); max-height:calc(100dvh - 32px); overflow:auto;
  padding:clamp(20px,4vw,36px); border:1px solid var(--checkout-line); border-radius:var(--checkout-radius);
  background:var(--checkout-card); color:var(--ink); box-shadow:0 22px 72px #241a1633;
}
#checkout-help h2,.pricing-rates h2,.service-receipt dialog h2 {
  display:flex; align-items:center; gap:10px;
}
#checkout-help h2::before {
  content:""; flex:none; width:28px; height:28px; background:url("/website-assets/product2print-icon.svg") center/contain no-repeat;
}
:is(#checkout-help,.pricing-rates,.service-receipt dialog)::backdrop { background:#25211d66; }
:is(#checkout-help,.service-receipt dialog) form { display:flex; align-items:center; flex-wrap:wrap; justify-content:flex-end; gap:8px 16px; margin:20px 0 0; }
#checkout-help form a { margin-inline-end:auto; color:var(--accent); }
.service-receipt dialog h2 { justify-content:flex-start; margin:0 0 .4em; text-align:start; }
.service-receipt [data-receipt="text"] section { margin:1.15rem 0 0; }
.service-receipt [data-receipt="text"] h3 { margin:0 0 .25rem; font-size:1.03rem; }
.service-receipt [data-receipt="text"] p { margin:0; line-height:1.5; }
.pricing-rates-header,.pricing-receipt-total { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.pricing-rates-header { margin-block-end:var(--space-2); }
.pricing-rates-header h2 { margin:0; }
.pricing-rates-header .dialog-close { margin:0; }
.pricing-receipt-total { margin-top:16px; padding-top:16px; border-top:1px solid var(--checkout-line); font-weight:650; }
.pricing-receipt-total strong { font-size:1.35rem; }
.pricing-links { display:flex; flex-wrap:wrap; align-items:baseline; justify-content:space-between; gap:0 12px; }
.pricing-links .text-action { font-size:.94rem; }
.pricing-config input.pricing-quantity { width:3.75rem; text-align:center; padding-inline:5px; appearance:textfield; border:1px solid var(--checkout-line); border-radius:7px; }
.pricing-quantity::-webkit-inner-spin-button,.pricing-quantity::-webkit-outer-spin-button { appearance:none; margin:0; }
:is(.pricing-quantity,#recipient-email,#recovery-email)[data-pointer-focus]:focus:not([aria-invalid="true"]) { outline:none; }
.pricing-field-copy [data-pricing-rounds-included] { min-height:1.4em; color:var(--ink); }

#checkout-help p { margin:0 0 var(--space-2); }
@media(max-width:520px) {
  #checkout-help form { display:grid; grid-template-columns:auto auto; justify-content:start; align-items:center; }
  #checkout-help form a { grid-column:1/-1; }
}
