/* AFCC_STORYBOOK_PHASE12_ORDER_DETAILS_CSS_V1 — isolated, responsive, printable */
#afcc-order-details.afcc-p12{--p12-green:#103e31;--p12-dark:#0b3027;--p12-gold:#b88946;--p12-light:#fffdf6;--p12-gray:#5d6e64;box-sizing:border-box;max-width:100%;margin:20px 0 24px;padding:24px 24px 20px;border:1px solid #d9dfcf;border-radius:22px;background:linear-gradient(160deg,#fcfff9,#fffdf5 65%,#f7f0df);box-shadow:0 13px 38px #153d2810;color:var(--p12-green);overflow-wrap:anywhere}
#afcc-order-details *{box-sizing:border-box}
.afcc-p12-heading{display:flex;justify-content:space-between;gap:14px;padding-bottom:19px;border-bottom:1px solid #e5e7db}
.afcc-p12-heading h4{font:500 clamp(1.36rem,2.3vw,1.96rem)/1.2 Georgia,serif;color:#0d4432;margin:0 0 7px}
.afcc-p12-eyebrow{margin:0 0 9px;color:#907040;font-size:.7rem;letter-spacing:.16em;font-weight:800}
.afcc-p12-sub{margin:0;color:#637368;font-size:.9rem;max-width:62ch;line-height:1.5}
.afcc-p12-head-icon{display:grid;place-items:center;flex:0 0 62px;height:62px;border-radius:16px;background:#e9f2e7;border:1px solid #cddfcd;font:2.3rem Georgia,serif;color:#b78739}
.afcc-p12-controls{display:flex;flex-wrap:wrap;gap:11px;margin:19px 0 5px;align-items:end}
.afcc-p12-label{display:grid;gap:7px;flex:1 1 240px;color:#174c3b;font-size:.83rem;font-weight:750}
.afcc-p12-select{min-height:46px;border:1px solid #c9d8c8;border-radius:11px;padding:10px 12px;color:#164c38;background:#fff;max-width:100%;width:100%;font:inherit;font-weight:500}
.afcc-p12-button{font:750 .85rem/1.3 Arial,sans-serif;display:inline-flex;gap:8px;justify-content:center;align-items:center;text-decoration:none;cursor:pointer;padding:12px 17px;min-height:46px;border-radius:11px;transition:background .16s ease,border-color .16s ease}
.afcc-p12-primary{background:#10513d;color:#fff!important;border:1px solid #10513d}.afcc-p12-primary:hover{background:#176b51}
.afcc-p12-secondary{background:#f4f7ef;color:#24543f!important;border:1px solid #b6cfbc}.afcc-p12-secondary:hover{background:#eaf2e7}
.afcc-p12-button:disabled{cursor:wait;opacity:.55}
.afcc-p12-feedback{min-height:1.3em;margin:10px 0 17px;color:#66786c;font-size:.77rem}
.afcc-p12-receipt{background:white;border:1px solid #dfe6dc;border-radius:16px;padding:23px 25px;box-shadow:0 4px 14px #0f392608}
.afcc-p12-receipt-head{display:flex;justify-content:space-between;gap:15px;align-items:start;padding-bottom:19px;border-bottom:2px solid #d5c099}
.afcc-p12-brand{display:grid;gap:4px}.afcc-p12-brand strong{font:500 clamp(1.18rem,2.6vw,1.55rem)/1.2 Georgia,serif;letter-spacing:.03em;color:#103d30}.afcc-p12-brand span{font-size:.76rem;font-style:italic;color:#6e775f}
.afcc-p12-receipt-tag{display:grid;gap:4px;text-align:right}.afcc-p12-receipt-tag strong{font-size:.69rem;letter-spacing:.09em;color:#846332}.afcc-p12-receipt-tag small{color:#697468;font-size:.69rem}
.afcc-p12-meta,.afcc-p12-states{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px;margin:18px 0 0}
.afcc-p12-meta>div,.afcc-p12-states>div{display:grid;gap:5px;min-width:0}.afcc-p12-meta small,.afcc-p12-states small{font-size:.7rem;font-weight:750;text-transform:uppercase;letter-spacing:.055em;color:#728075}.afcc-p12-meta strong,.afcc-p12-states span{font-size:.91rem;color:#204636;font-weight:700;overflow-wrap:anywhere}
.afcc-p12-states{padding:15px 18px;margin-bottom:20px;border-radius:12px;background:#f6f8f2}.afcc-p12-states .afcc-p12-paid{color:#196f45}.afcc-p12-states .afcc-p12-pending{color:#8f602c}
.afcc-p12-receipt h5{font:500 1.23rem Georgia,serif;color:#104632;margin:23px 0 10px}
.afcc-p12-items{border-block:1px solid #e3e9df}.afcc-p12-item{display:flex;justify-content:space-between;align-items:start;gap:12px;padding:14px 2px;border-bottom:1px solid #edf0e9}.afcc-p12-item:last-child{border-bottom:0}
.afcc-p12-item>div:first-child{display:grid;gap:4px}.afcc-p12-item strong{font-size:.88rem;color:#193f32}.afcc-p12-item small,.afcc-p12-item-amount span{font-size:.77rem;color:#728075}.afcc-p12-item-amount{display:grid;gap:5px;text-align:right;white-space:normal;min-width:100px}
.afcc-p12-totals{display:grid;gap:10px;margin:18px 0 10px auto;padding-left:min(38%,210px)}
.afcc-p12-total-row{display:flex;align-items:start;justify-content:space-between;gap:10px;font-size:.86rem;color:#607568}.afcc-p12-total-row strong{text-align:right;color:#174936;white-space:nowrap}.afcc-p12-total-row.is-grand{border-top:2px solid #e6dcc6;margin-top:8px;padding-top:14px;color:#0f3b2e;font-weight:900;font-size:1rem}.afcc-p12-total-row.is-grand strong{font-size:1.15rem}
.afcc-p12-footnote{border-top:1px solid #e6ebdf;margin-top:24px;padding-top:13px}.afcc-p12-footnote p{margin:6px 0;color:#64776a;font-size:.74rem;line-height:1.5}
.afcc-p12-closing{border-radius:12px;background:#f4f7ef;padding:14px;margin-top:18px;text-align:center;display:grid;gap:5px}.afcc-p12-closing strong{font:500 1.1rem Georgia,serif;color:#1a5a42}.afcc-p12-closing span{font-size:.72rem;color:#6b7e70}
.afcc-p12-actions{display:flex;flex-wrap:wrap;gap:9px;margin-top:17px}.afcc-p12-live-note{font-size:.75rem;color:#728274;line-height:1.5;margin:12px 0 0}
.afcc-p12-empty{display:grid;justify-items:center;text-align:center;gap:11px;background:#fff;border:1px dashed #d2dbcf;border-radius:13px;padding:28px 14px}.afcc-p12-empty span{font-size:2.2rem}.afcc-p12-empty strong{font:500 1.35rem Georgia,serif}.afcc-p12-empty p{max-width:46ch;color:#68766a;margin:0;font-size:.85rem}.afcc-p12-muted{color:#687969;font-size:.85rem}
@media(max-width:650px){#afcc-order-details.afcc-p12{margin:13px 0;padding:17px 15px}.afcc-p12-head-icon{width:43px;height:43px;flex-basis:43px;font-size:1.55rem;border-radius:12px}.afcc-p12-controls{display:grid}.afcc-p12-label{width:100%;min-width:0}.afcc-p12-receipt{padding:17px 14px}.afcc-p12-receipt-head{flex-wrap:wrap}.afcc-p12-receipt-tag{text-align:left}.afcc-p12-totals{padding-left:0}.afcc-p12-actions{display:grid}.afcc-p12-receipt h5{margin-top:19px}.afcc-p12-meta,.afcc-p12-states{gap:9px}.afcc-p12-item-amount{min-width:85px}}
@media print{
 @page{size:letter;margin:.55in}
 body.afcc-p12-printing *{visibility:hidden!important}
 body.afcc-p12-printing #afcc-p12-receipt,body.afcc-p12-printing #afcc-p12-receipt *{visibility:visible!important}
 body.afcc-p12-printing #afcc-p12-receipt{box-shadow:none!important;border:0!important;padding:0!important;border-radius:0!important;position:absolute!important;top:0!important;left:0!important;width:100%!important;max-width:none!important;background:#fff!important;color:#000!important}
 body.afcc-p12-printing #afcc-p12-receipt .afcc-p12-item{break-inside:avoid}
 body.afcc-p12-printing #afcc-p12-receipt .afcc-p12-receipt-head,body.afcc-p12-printing #afcc-p12-receipt .afcc-p12-totals,body.afcc-p12-printing #afcc-p12-receipt .afcc-p12-closing{break-inside:avoid}
}
