.order-summary { scroll-margin-top: 1rem; min-width: 0; }
.order-summary [hidden] { display: none !important; }
.summary-items { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--shop-border); }
.summary-items li { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: .7rem; padding: .8rem 0; }
.summary-item-text { min-width: 0; }
.summary-item-text strong { display: block; font-size: .9rem; }
.summary-item-text small { display: block; margin-top: .3rem; color: #486b80; line-height: 1.5; font-size: .78rem; overflow-wrap: anywhere; }
.summary-item-price { font-size: .9rem; font-weight: 600; white-space: nowrap; }
.summary-empty { font-size: .9rem; color: #486b80; }
.summary-edit { display: inline-block; margin: .65rem 0 .25rem; font-size: .8rem; text-decoration: underline; text-underline-offset: .2rem; }
.order-summary dl div { gap: .75rem; align-items: baseline; }
.order-summary dt { min-width: 0; }
.order-summary dd { min-width: 0; max-width: 58%; text-align: right; overflow-wrap: anywhere; margin-left: 0; }
.summary-policies { border-top: 1px solid var(--shop-border); padding-top: .7rem; }
.summary-policies p, .summary-conversion { color: #486b80; font-size: .76rem; line-height: 1.55; margin: 0 0 .6rem; }
.summary-policies a { text-decoration: underline; text-underline-offset: .15rem; }
.summary-account { margin: .8rem 0; font-size: .8rem; line-height: 1.5; overflow-wrap: anywhere; }
.summary-account .button { min-height: 44px; display: flex; justify-content: center; }
.order-result { margin: .75rem 0; font-size: .82rem; line-height: 1.55; overflow-wrap: anywhere; }
.order-confirmation { padding: 1rem; border: 1px solid #cad6e1; border-radius: 12px; background: #f7f9fc; color: #243957; }
.order-confirmation-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .5rem; }
.order-confirmation-heading > strong { font-size: 1rem; }
.order-status-badge { background: #e8edf6; color: #3e5277; border-radius: 20px; padding: .25rem .55rem; font-size: .66rem; font-weight: 600; white-space: nowrap; }
.order-confirmation .order-reference { margin: .5rem 0 .8rem; font-size: .73rem; color: #52677f; }
.order-reference strong { letter-spacing: .05em; font-variant-numeric: tabular-nums; color: #243957; }
.order-confirmation-total { display: flex; justify-content: space-between; align-items: baseline; gap: .6rem; border-top: 1px solid #dce3eb; padding-top: .75rem; }
.order-confirmation-total strong { font-size: 1.25rem; white-space: nowrap; }
.order-confirmation .order-confirmation-books { margin: .25rem 0 .8rem; color: #52677f; font-size: .75rem; }
.order-confirmation-fulfillment { border-top: 1px solid #dce3eb; padding-top: .7rem; }
.order-confirmation-fulfillment > strong { font-size: .78rem; }
.order-confirmation-fulfillment p { margin: .2rem 0 0; font-size: .74rem; color: #52677f; }
.order-confirmation .order-confirmation-note { margin: .8rem 0; font-size: .72rem; color: #52677f; }
.order-confirmation-details { border-top: 1px solid #dce3eb; padding-top: .25rem; }
.order-confirmation-details summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; gap: .4rem; font-size: .74rem; text-decoration: underline; text-underline-offset: .2rem; }
.order-confirmation-details summary::before { content: '+'; text-decoration: none; }
.order-confirmation-details[open] summary::before { content: '−'; }
.order-confirmation-details p { margin: .25rem 0 .5rem; font-size: .7rem; color: #52677f; }
.order-confirmation-details code { display: block; margin-top: .2rem; font-size: .69rem; overflow-wrap: anywhere; user-select: all; }
@media(max-width:650px) {
 .order-summary { padding: 1.15rem; margin-bottom: 1rem; }
 .order-summary h2 { font-size: 1.55rem; }
 .order-summary .summary-total dd { font-size: 1.45rem; }
 .summary-edit { min-height: 36px; display: flex; align-items: center; }
}

/* Ownership applies only to digital-volume choices. */
.book-option.book-owned{cursor:default;border-color:#a8bfce;background:#edf4f8}
.book-owned .book-option-art{opacity:.65}
.book-owned-note{display:block;padding:0 6px 8px;color:#28516a;font:600 11px/1.3 Arial,sans-serif;text-align:center}
