/* Paper & Ribbon — one shared sender foundation, derived from the supplied HTML. */
:root {
  --paper:#FBF9F6; --linen:#F6F3EE; --surface:#fff; --ink:#1B1A17;
  --muted:#5C5955; --subtle:#6B665F; --accent:#1E5A48; --accent-hover:#174838;
  --line:#ECE7DF; --input-line:#E2DCD2; --green-tint:#E3EFE8; --amber-tint:#FBEFD9;
  --danger:#A32D2D; --radius:18px;
  font-family:'DM Sans',system-ui,sans-serif; color:var(--ink); background:var(--paper);
  font-synthesis:none; -webkit-font-smoothing:antialiased;
}
* { box-sizing:border-box; }
[hidden] { display:none!important; }
body { margin:0; min-width:280px; font-size:16px; line-height:1.5; }
main { max-width:760px; margin:auto; padding:28px 24px 64px; min-height:75vh; }
body>header,body>footer { max-width:760px; margin:auto; padding:20px 24px; }
h1,h2,.brand,.display { font-family:'Fraunces',Georgia,serif; font-weight:500; letter-spacing:-.01em; line-height:1.15; }
h1 { font-size:clamp(28px,5vw,36px); margin:0 0 16px; }
h2 { font-size:28px; margin:0 0 18px; }
h3,h4 { font-family:'DM Sans',system-ui,sans-serif; line-height:1.35; margin:0 0 12px; }
h3 { font-size:17px; font-weight:600; } h4 { font-size:15px; }
p { margin:12px 0; } small { display:block; font-size:12px; line-height:1.5; color:var(--subtle); }
a { color:var(--accent); text-underline-offset:3px; overflow-wrap:anywhere; }
a:hover { color:var(--accent-hover); }
button,input,select,textarea { font:inherit; }
button { display:inline-flex; align-items:center; justify-content:center; gap:8px; min-height:50px; margin:8px 8px 8px 0; padding:12px 20px; border:1.5px solid var(--accent); border-radius:14px; background:var(--accent); color:#fff; font-size:15px; font-weight:600; line-height:1.35; cursor:pointer; }
/* :where() keeps the fill at bare-button weight, so text links and light buttons keep their own background on hover. */
button:where(:hover:not(:disabled)) { background:var(--accent-hover); border-color:var(--accent-hover); }
button.secondary { background:var(--surface); border-color:var(--input-line); color:var(--ink); }
/* A button styled as a text link never takes the green fill: the theme colours .text-link with the same green, so a
   filled one is an empty green box (the batch list's Remove, Send again, a prompt's ×). Places can still restyle it. */
button.text-link { min-height:44px; margin:0; padding:0 4px; border-color:transparent; background:transparent; color:var(--accent); text-decoration:underline; }
button.text-link:hover:not(:disabled) { background:transparent; border-color:transparent; }
button.secondary:hover:not(:disabled) { background:var(--linen); border-color:#C9C2B6; }
button:disabled { background:#D9D3C9; color:var(--subtle); border-color:#D9D3C9; cursor:not-allowed; }
button[aria-busy=true] { cursor:wait; } button[aria-busy=true]::after { content:' …'; }
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible,[tabindex]:focus-visible { outline:3px solid #98702C; outline-offset:3px; }
label { display:block; margin:16px 0; font-size:14px; font-weight:500; }
input:not([type=checkbox]):not([type=radio]),select,textarea { display:block; width:100%; max-width:100%; min-height:48px; margin-top:7px; padding:11px 14px; border:1.5px solid var(--input-line); border-radius:12px; background:#fff; color:var(--ink); font-size:16px; line-height:1.4; }
textarea { min-height:100px; resize:vertical; }
input:focus,select:focus,textarea:focus { border-color:var(--accent); }
input[type=checkbox],input[type=radio] { width:20px; height:20px; margin:0 9px 0 0; vertical-align:middle; accent-color:var(--accent); }
input[type=file] { font-size:14px; }
section { margin:20px 0; padding:20px; border:1px solid var(--line); border-radius:var(--radius); background:var(--surface); }
section:first-child { margin-top:0; }
details { margin:18px 0; padding:14px 16px; border:1px solid var(--line); border-radius:14px; background:var(--paper); }
summary { cursor:pointer; min-height:28px; padding:3px 0; font-size:14px; font-weight:600; line-height:1.5; }
details[open]>summary { margin-bottom:12px; }
img { max-width:100%; }
pre { white-space:pre-wrap; overflow-wrap:anywhere; padding:18px; border-radius:14px; background:var(--linen); font-size:14px; }
pre:empty { display:none; }
table { width:100%; border-collapse:collapse; } th,td { padding:12px; text-align:left; vertical-align:top; border-bottom:1px solid var(--line); }
th { font-size:12px; font-weight:600; color:var(--subtle); }
.muted,.variant { color:var(--subtle); } .eyebrow { color:var(--subtle); font-size:12px; font-weight:600; letter-spacing:.04em; text-transform:uppercase; }
.brandbar { display:flex; align-items:center; justify-content:space-between; gap:20px; max-width:760px; margin:auto; padding:24px; }
.brandbar .brand { color:var(--ink); font-size:26px; text-decoration:none; }
.brandbar>div { display:flex; align-items:center; gap:20px; }
.brandbar>div a { display:inline-flex; align-items:center; min-height:44px; font-size:14px; font-weight:600; text-decoration:none; }
.skip-link { position:absolute; top:-100px; left:16px; z-index:20; background:white; border:2px solid var(--accent); border-radius:10px; padding:12px 18px; }
.skip-link:focus { top:12px; }
#notice:empty { display:none; }
#notice:not(:empty),#status:not(:empty) { margin:0 0 20px; padding:14px 16px; color:#6E311B; background:#FBEFD9; border:1px solid #E9D4B5; border-radius:12px; font-size:14px; line-height:1.5; overflow-wrap:anywhere; }
#notice:not(:empty) { position:sticky; top:8px; z-index:5; }
main>aside { margin-bottom:20px; padding:14px 16px; background:var(--amber-tint); border:1px solid #E9D4B5; border-radius:12px; font-size:13px; color:#76410B; }
main>aside details { margin:8px 0 0; padding:0; border:0; background:transparent; }
.privacy-note { padding:14px 16px; border-radius:12px; background:var(--green-tint); color:#235443; font-size:14px; line-height:1.5; }
.status-pill { display:inline-flex; align-items:center; padding:4px 9px; border-radius:999px; background:var(--green-tint); color:var(--accent); font-size:12px; font-weight:600; line-height:1.4; }
.empty-state { padding:48px 20px; margin:24px 0; text-align:center; color:var(--muted); }
.empty-state h3 { font-family:'Fraunces',Georgia,serif; font-size:24px; font-weight:500; color:var(--ink); }
.empty-state p { max-width:38ch; margin:12px auto 20px; font-size:14px; }
.empty-state>a { display:inline-flex; align-items:center; justify-content:center; min-height:48px; padding:12px 20px; border-radius:14px; background:var(--accent); color:white; font-weight:600; text-decoration:none; }

/* Link intake and the single checkout workspace. */
.link-home { max-width:480px; margin:40px auto 0; padding:0; border:0; background:transparent; }
.link-home label { font-size:14px; font-weight:500; line-height:1.5; margin:24px 0 0; }
.link-home input { margin-top:8px!important; font-family:'DM Sans',system-ui,sans-serif; font-size:16px; font-weight:400; letter-spacing:normal; }
.link-home button { width:100%; margin:12px 0 0; min-height:54px; }
.checkout-workspace { max-width:600px; margin:0 auto; padding:0; border:0; background:transparent; }
.checkout-workspace>h2 { margin-bottom:22px; }
.unified-cart { margin:0; padding:0; border:0; background:transparent; }
.draft-line { padding:18px; margin:16px 0; border:1px solid var(--line); border-radius:18px; background:white; }
.draft-line:first-child { margin-top:0; }
.checkout-item { display:grid; grid-template-columns:84px minmax(0,1fr); align-items:start; gap:14px; }
.checkout-item>div:first-child { min-height:84px; overflow:hidden; border-radius:14px; background:var(--linen); }
.checkout-item>div:first-child>p { margin:0; min-height:84px; display:grid; place-items:center; padding:8px; text-align:center; font-size:11px; }
.checkout-item-info { min-width:0; }
.checkout-item-info h3 { margin:0 0 5px; font-size:16px; line-height:1.3; overflow-wrap:anywhere; }
.checkout-item-info p { margin:0 0 9px; font-size:13px; }
.checkout-item-info strong { font-size:14px; }
.draft-photo { display:block; width:84px; height:84px; margin:0; object-fit:contain; background:var(--linen); border-radius:14px; }
.draft-line details { margin-bottom:0; padding:12px 0 0; border:0; border-top:1px solid var(--line); background:transparent; border-radius:0; }
.draft-line details p,.draft-line details small { font-size:12px; }
.draft-line details a { display:inline-block; margin:8px 0; font-size:13px; }
.draft-summary { padding:20px; border:1px solid var(--line); border-radius:18px; background:white; margin-top:20px; }
.draft-summary p { font-size:14px; color:var(--muted); }
.draft-summary strong { display:block; font-size:16px; line-height:1.5; }
.draft-summary>button { width:100%; margin-right:0; }
.journey { display:flex; gap:12px; padding:0; margin:0 0 24px; list-style:none; counter-reset:step; }
.journey li { flex:1; padding-top:8px; border-top:2px solid var(--input-line); font-size:12px; color:var(--subtle); }
.journey li::before { counter-increment:step; content:counter(step) ' · '; }
.journey [aria-current] { border-color:var(--accent); color:var(--accent); font-weight:600; }
.product-list { margin:14px 0; }
.product-row { display:grid; grid-template-columns:84px minmax(0,1fr); gap:14px; padding:16px 0; border-bottom:1px solid var(--line); }
.product-row:last-child { border-bottom:0; }
.product-visual { display:grid; place-items:center; position:relative; width:84px; height:84px; overflow:hidden; background:var(--linen); border-radius:14px; }
.product-visual img { position:absolute; inset:0; width:100%; height:100%; object-fit:contain; }
.image-fallback { text-align:center; padding:8px; font-size:11px; color:var(--subtle); }
.product-detail { min-width:0; }
.product-detail h3 { margin:0 0 4px; font-size:16px; }
.product-detail p { margin:0 0 5px; font-size:13px; }
.product-detail small,.photo-credit { font-size:11px; }
.photo-credit { display:block; margin:6px 0; }
.line-prices { display:flex; justify-content:space-between; flex-wrap:wrap; gap:4px 12px; margin-top:10px; font-size:13px; }
.cost-summary { margin:20px 0; padding:16px; border-radius:14px; background:var(--linen); font-size:14px; }
.cost-summary>div { display:flex; justify-content:space-between; align-items:baseline; gap:16px; padding:5px 0; }
.cost-summary dt { color:var(--muted); }
.cost-summary dd { margin:0; white-space:nowrap; font-variant-numeric:tabular-nums; }
.cost-summary .grand-total { margin-top:10px; padding-top:14px; border-top:1px solid var(--input-line); font-size:16px; font-weight:600; }
.grand-total dt { color:var(--ink); }
.authorization-summary { display:grid; gap:6px; margin:20px 0; padding:18px; border:1px solid #CDDFD3; border-radius:18px; background:var(--green-tint); }
.authorization-summary>span { color:var(--muted); font-size:14px; }
.authorization-summary strong { font-size:20px; font-weight:600; line-height:1.3; }
.authorization-summary p { margin:0; font-size:13px; line-height:1.5; }

/* Gifts, detail and the post-authorization share card. */
.sender-orders { margin:0 auto; padding:0; max-width:600px; border:0; background:transparent; }
.sender-orders>h2 { margin-top:20px; }
.sender-orders>a:first-child { display:inline-flex; min-height:44px; align-items:center; font-size:14px; font-weight:600; text-decoration:none; }
.section-heading { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-bottom:24px; }
.section-heading h2 { margin:0; }
.section-heading>a { display:inline-flex; align-items:center; min-height:42px; padding:9px 14px; border-radius:999px; background:var(--accent); color:white; text-decoration:none; font-size:14px; font-weight:600; }
.gift-group { margin:22px 0; }
.gift-group>h3 { font-size:12px; color:var(--subtle); letter-spacing:.04em; text-transform:uppercase; margin:0 0 9px; }
.gift-row { display:flex; align-items:center; gap:12px; padding:14px; margin:8px 0; border:1px solid var(--line); border-radius:16px; background:white; color:var(--ink); text-decoration:none; }
.gift-row:hover { color:var(--ink); border-color:#B7CDBE; background:#FEFDFC; }
.gift-row>div:nth-child(2) { flex:1; min-width:0; }
.gift-row strong { display:block; font-size:15px; line-height:1.35; margin-bottom:5px; overflow-wrap:anywhere; }
.gift-row-image { display:grid; place-items:center; position:relative; flex:0 0 52px; width:52px; height:52px; border-radius:12px; overflow:hidden; background:var(--linen); color:var(--subtle); font-size:11px; }
.gift-row-image img { position:absolute; inset:0; width:100%; height:100%; object-fit:contain; }
.row-action { flex:0 0 auto; max-width:90px; color:var(--accent); font-size:12px; font-weight:600; }
.gift-preview-card { position:relative; margin:20px 0; padding:24px; border-radius:22px; background:var(--accent); color:#F6F1E8; overflow:hidden; }
.gift-preview-card>span { display:block; font-size:13px; letter-spacing:.04em; margin-bottom:20px; }
.gift-preview-card h3 { font-family:'Fraunces',Georgia,serif; font-size:30px; font-weight:500; line-height:1.15; margin:0 0 12px; }
.gift-preview-card>p { font-size:14px; color:#E5EBE5; }
.gift-preview-card .product-list { padding:10px 14px; margin:18px 0 0; border-radius:14px; background:rgba(246,241,232,.1); }
.gift-preview-card .product-row { grid-template-columns:52px minmax(0,1fr); border-color:#779788; gap:12px; padding:10px 0; }
.gift-preview-card .product-visual { width:52px; height:52px; border-radius:10px; }
.gift-preview-card .image-fallback { padding:3px; font-size:9px; overflow-wrap:anywhere; }
.gift-preview-card .product-detail h3 { font-family:'DM Sans',system-ui,sans-serif; font-size:14px; margin:0 0 4px; }
.gift-preview-card .product-detail p,.gift-preview-card .product-detail small,.gift-preview-card a { color:#E5EBE5; }
.gift-preview-card .line-prices { font-size:12px; }
.share-panel { margin:24px 0; }
.share-panel>h3 { font-size:15px; }
.share-panel>p { font-size:14px; }
.invitation-message { padding:16px; border:1px solid var(--line); background:white; border-radius:14px; line-height:1.6; }
.share-actions { display:grid; grid-template-columns:repeat(auto-fit,minmax(140px,1fr)); gap:10px; margin:14px 0; }
.share-actions button { width:100%; margin:0; }
.share-panel>a { display:inline-flex; min-height:44px; align-items:center; font-size:14px; font-weight:600; }
.share-panel small { margin:8px 0; }
.secondary-actions { display:flex; flex-direction:column; gap:10px; margin:28px 0 0; }
.secondary-actions>a { display:flex; justify-content:center; align-items:center; min-height:48px; padding:10px 16px; border:1px solid var(--input-line); border-radius:14px; background:white; text-decoration:none; font-size:14px; font-weight:600; }
.secondary-actions button { margin:0; }
#address { color:var(--ink); line-height:1.6; font-family:'DM Sans',system-ui,sans-serif; }

/* Wider Ops has its own component stylesheet; shared primitives stay compatible. */
.operations-flow main { max-width:1280px; }
.operations-flow .brandbar { max-width:1280px; }
body>footer { color:var(--subtle); font-size:12px; }
@media (max-width:600px) {
  main { padding:20px 20px 40px; }
  .brandbar { padding:20px; gap:16px; }
  .brandbar>div { gap:16px; }
  .brandbar .brand { font-size:24px; }
  body>header,body>footer { padding:20px; }
  section { padding:18px; }
  .link-home { margin-top:36px; }
  .link-home label { font-size:14px; }
  .product-row { grid-template-columns:76px minmax(0,1fr); gap:12px; }
  .product-visual { width:76px; height:76px; }
  .line-prices { display:grid; gap:3px; }
  .sender-orders>button,.checkout-workspace>button,.checkout-workspace>section>button { width:100%; margin-right:0; }
  .gift-row { padding:12px; gap:10px; }
  .row-action { max-width:68px; font-size:11px; }
  .gift-preview-card { padding:22px; }
  .gift-preview-card h3 { font-size:28px; }
}
@media (max-width:350px) {
  main,.brandbar { padding-left:16px; padding-right:16px; }
  .brandbar>div { gap:12px; }
  .checkout-item { grid-template-columns:68px minmax(0,1fr); gap:10px; }
  .draft-photo { width:68px; height:68px; }
  .gift-row { align-items:flex-start; flex-wrap:wrap; }
  .gift-row .row-action { margin-left:62px; max-width:none; }
}
@media (prefers-reduced-motion:reduce) {
  *,*::before,*::after { scroll-behavior:auto!important; animation:none!important; transition:none!important; }
}

.repeat-history { margin-top:40px; }
.repeat-history h2 { font-size:24px; }
.repeat-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(190px,1fr)); gap:12px; }
.repeat-card { border:1px solid var(--line); border-radius:16px; padding:16px; background:white; }
.repeat-card h3 { font-size:17px; }
.repeat-card p,.repeat-history>p { font-size:14px; }
.repeat-card button { min-height:44px; }
/* Private address review: the operator's place-the-order cards. */
#place{margin-top:20px;padding-top:16px;border-top:1px solid #E2DCD2}#place h2{font-size:1.1rem;margin:0 0 6px}
.place-card{border:1px solid #E2DCD2;border-radius:12px;padding:12px 14px;margin:10px 0}.place-card h3{margin:0 0 6px;font-size:1rem}.place-card ul{margin:0 0 8px;padding-left:1.1rem}.place-card p{margin:0 0 10px;color:#5C5955}
.place-card a.button{display:inline-block;background:#1E5A48;color:#fff;text-decoration:none;padding:10px 14px;border-radius:10px;font-weight:600;margin-right:8px}.place-card button.secondary{width:auto;min-height:40px}
#place .fine-print{color:#6B6760;font-size:.85rem;margin-top:10px}
/* Business gifting (business-ui.js) */
.business-page { display:grid; gap:14px; }
.business-points { margin:0; padding-left:20px; line-height:1.7; }
.business-form { display:grid; gap:12px; max-width:440px; }
.business-form label, .batch-note label, .batch-input label { display:grid; gap:4px; font-size:14px; }
.batch-input textarea, .batch-note textarea { width:100%; font:inherit; padding:10px; border-radius:10px; border:1px solid var(--input-line); }
.batch-input-actions { display:flex; flex-wrap:wrap; gap:8px; align-items:center; }
.batch-table, .batch-status { overflow-x:auto; }
.batch-table table, .batch-status { width:100%; border-collapse:collapse; font-size:14px; }
.batch-table td, .batch-table th, .batch-status td, .batch-status th { padding:6px 4px; border-bottom:1px solid var(--line); text-align:left; vertical-align:top; }
.batch-table input { width:100%; min-width:90px; font:inherit; padding:4px 6px; border:1px solid transparent; border-radius:6px; background:transparent; }
.batch-table input:focus { border-color:var(--input-line); background:var(--surface); }
.batch-table tr.flagged { background:var(--amber-tint); }
.flag { color:var(--danger); }
.batch-note label.batch-check { display:flex; align-items:center; gap:0; }
.batch-hint { margin:0; color:var(--muted); font-size:14px; }
.batch-preview { margin:0; padding:10px 14px; border-left:3px solid var(--input-line); color:var(--muted); font-style:italic; }
.batch-review { display:grid; gap:6px; }
.batch-count { font-weight:600; }
.batch-cost { display:grid; gap:4px; padding:10px 14px; border-radius:12px; background:var(--linen); font-size:14px; }
.batch-cost-line { display:flex; justify-content:space-between; gap:12px; }
.batch-cost-each { font-weight:600; border-top:1px solid var(--input-line); padding-top:4px; }
.batch-gift .offer-tag { margin-left:6px; vertical-align:1px; }
.business-prompt { display:flex; justify-content:space-between; align-items:center; gap:8px; margin-top:16px; padding:10px 14px; border-radius:12px; background:var(--linen); font-size:14px; }
/* Its dismiss is a plain ×, not a filled button: the global button fill and the theme's green .text-link otherwise made
   it an empty green box (green on green). Same treatment as the app banner's dismiss. */
.business-prompt .text-link { flex:none; min-width:44px; min-height:44px; margin:0; padding:0; border:0; border-radius:8px; background:transparent; color:var(--muted); font-size:22px; font-weight:400; line-height:1; text-decoration:none; }
.business-prompt .text-link:hover { background:transparent; color:var(--ink); }
.business-footer { margin-top:28px; text-align:center; font-size:13px; opacity:.75; }
.batch-list { padding-left:18px; line-height:1.8; }
/* Private review page: this order's card (Stripe Issuing Elements iframes). */
#card-fields{display:grid;gap:.5rem;margin:.75rem 0}
.card-row{display:grid;grid-template-columns:4.5rem 1fr auto;align-items:center;gap:.75rem}
.card-value{min-height:1.5rem}
.card-copy{position:relative;padding:.25rem .75rem;border:1px solid currentColor;border-radius:.5rem;font-size:.875rem;cursor:pointer}
.card-copy>div{position:absolute;inset:0}
