.bag-btn { text-decoration: none; }
body[data-provider] :is(.site-header, .announcement, .site-footer) { display: none; }
.preview-links { display: flex; align-items: center; gap: 8px 20px; flex-wrap: wrap; margin-left: auto; }
.preview-links a { color: #594860; text-underline-offset: 3px; font-size: .84rem; font-weight: 650; }
.preview-links button { margin-left: 0; }
.demo-start-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,300px),1fr)); align-items: start; gap: clamp(18px,3vw,42px); }
.demo-start-grid > section { padding: clamp(20px,3vw,35px); border-radius: 14px; border: 1px solid var(--rule); background: #fffdf7; }
.demo-start-grid > section:first-child { border-color: #d7c8e0; background: #efe8f4; }
.demo-start-grid h2 { margin: 0 0 16px; font: 740 clamp(1.45rem,2vw,1.85rem)/1.15 var(--display); letter-spacing: -.045em; }
.demo-start-grid ol { padding-left: 1.4rem; line-height: 1.9; }
.demo-start-grid p { margin-bottom: 0; color: #5e5264; }
.demo-start-books { list-style: none; padding: 0; }
.demo-start-books li { display: grid; grid-template-columns: 36px minmax(0,1fr) auto; gap: 12px; align-items: center; padding: 10px 0; }
.demo-start-books small { display: block; color: #62566b; }
@media (max-width: 700px) {
  .site-footer .footer-inner { flex-wrap: wrap; }
  .preview-links { margin: 0; width: 100%; }
}
.bag-btn[aria-current="page"] { background: #eee6f6; color: #4b3165; }
.order-page { width: min(90%, 1160px); margin: 0 auto; padding: clamp(24px, 3.5vw, 54px) 0 clamp(54px, 7vw, 94px); min-height: calc(100dvh - 212px); }
:where(.order-page) :where(h1, h2, h3, p, ul, ol, dl) { margin-block-start: 0; }
.order-page h2, .order-page h3 { font-family: var(--display); }
.order-page a { text-underline-offset: .2em; }
.order-heading { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 22px 32px; margin-bottom: clamp(24px, 3vw, 38px); }
.order-heading-main { min-width: 0; }
.order-back { display: inline-flex; align-items: center; gap: .45rem; font-size: .88rem; font-weight: 600; text-decoration: none; color: #60576a; }
.order-back:hover { text-decoration: underline; color: var(--purple); }
.order-back .ico { width: 15px; height: 15px; }
.order-heading h1 { margin: 12px 0 0; font: 800 clamp(2.65rem, 4.7vw, 4.55rem)/1 var(--display); letter-spacing: -.065em; }
.order-heading h1:focus { outline: none; }
.order-steps { display: flex; align-items: center; list-style: none; padding: 0; margin: 0 0 .4rem; }
.order-steps li { display: inline-flex; align-items: center; color: #706878; font-size: .84rem; white-space: nowrap; }
.order-steps li:not(:first-child)::before { content: ""; width: clamp(12px, 1.7vw, 24px); height: 1px; margin-inline: .54rem; background: #cfc7cb; }
.order-steps li > :is(span, a) { display: inline-flex; align-items: center; gap: .46rem; text-decoration: none; }
.order-steps a:hover { text-decoration: underline; }
.step-mark { display: inline-grid; place-items: center; width: 25px; height: 25px; border-radius: 50%; border: 1px solid #cfc7cb; font-size: .75rem; font-weight: 700; }
.step-mark .ico { width: 15px; height: 15px; }
.order-steps li[aria-current] { color: #422653; font-weight: 700; }
.order-steps [aria-current] .step-mark { background: #4a2d62; color: #fff; border-color: #4a2d62; }
.step-done .step-mark { background: #e7ddf2; color: #513365; border-color: #e7ddf2; }
.order-layout { display: grid; grid-template-columns: minmax(0, 1.66fr) minmax(290px, 1fr); align-items: start; gap: clamp(21px, 3vw, 38px); }
.order-main { min-width: 0; }
.order-layout:has(.cart-empty) .order-main { display: grid; align-self: stretch; }
.order-primary { display: inline-flex; align-items: center; justify-content: center; gap: .6rem; min-height: 48px; padding: .72rem 1.2rem; border: 1px solid #30213e; border-radius: 8px; background: #30213e; color: white; font: 700 .97rem/1.35 var(--body); text-align: center; text-decoration: none; }
.order-primary:hover:not(:disabled) { background: #503364; border-color: #503364; }
.order-primary:disabled { background: #e6d6a9; border-color: #d6c497; color: #65593e; cursor: default; }
.order-link { display: inline-flex; align-items: center; gap: .5rem; font-weight: 650; font-size: .92rem; color: #523367; }
.order-link:hover { color: #301a40; }
.order-summary { position: sticky; top: 20px; min-width: 0; }
.receipt { position: relative; padding: clamp(20px, 2.2vw, 32px); color: #302537; border: 1px solid #dfcb8e; border-top: 5px solid #e3ac23; background: #fff0c7; border-radius: 10px 10px 2px 2px; box-shadow: 0 5px 0 -2px #eadfbb; }
.receipt::after { content: ""; position: absolute; inset: 100% -1px auto; height: 6px; background: linear-gradient(135deg, #e1ce97 25%, transparent 25%) -5px 0 / 10px 10px, linear-gradient(225deg, #e1ce97 25%, transparent 25%) -5px 0 / 10px 10px; }
.receipt-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 23px; }
.receipt-head h2 { margin: 0; font: 760 clamp(1.45rem, 2.15vw, 1.92rem)/1.12 var(--display); letter-spacing: -.052em; }
.receipt-pattern { flex: none; width: 27px; height: 27px; border: 1px solid #8f6e25; background: repeating-conic-gradient(#ba8e31 0 25%, transparent 0 50%) center / 17px 17px; transform: rotate(7deg); opacity: .77; }
.receipt-items { margin: 0 0 19px; padding: 0 0 2px; list-style: none; border-bottom: 1px solid #e1cf9e; }
.receipt-item { display: grid; grid-template-columns: 36px 1fr auto; align-items: center; gap: 12px; padding: 0 0 15px; }
.receipt-thumb { width: 36px; aspect-ratio: .71; overflow: hidden; border-radius: 2px; box-shadow: 2px 3px 4px #2f233426; }
.receipt-item-info { display: grid; gap: 2px; min-width: 0; }
.receipt-item-info strong { font-size: .94rem; line-height: 1.25; }
.receipt-item-info > span { font-size: .78rem; color: #685d53; }
.receipt-price { font-size: .9rem; font-weight: 650; }
.receipt-coupon { margin: 0 0 18px; padding: 0 0 17px; border-bottom: 1px solid #dfcd9e; }
.receipt-coupon label { display: block; margin-bottom: 6px; font-size: .9rem; font-weight: 700; }
.coupon-controls { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 7px; }
.coupon-controls input, .coupon-controls button { min-height: 42px; border-radius: 7px; font-family: var(--body); }
.coupon-controls input { min-width: 0; width: 100%; padding: 8px 11px; border: 1px solid #a99b80; background: #fffdf8; font-size: 1rem; }
.coupon-controls input[aria-invalid="true"] { border-color: #9d2c3a; }
.coupon-controls button { padding: 7px 15px; border: 1px solid #513364; background: #fff9e7; color: #513364; font-size: .87rem; font-weight: 700; }
.coupon-controls button:hover { background: #513364; color: white; }
#coupon-help, #coupon-error { margin: 6px 0 0; color: #655942; font-size: .8rem; line-height: 1.5; }
#coupon-help strong { color: #544037; font-weight: 700; }
#coupon-error { color: #8a2031; font-weight: 600; }
.coupon-applied { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.coupon-ticket { display: inline-flex; align-items: center; gap: 6px; padding: 5px 8px; border: 1px dashed #aa9564; border-radius: 5px; background: #fff8e1; font-size: .84rem; }
.coupon-ticket .ico { width: 16px; height: 16px; color: #365943; }
#remove-coupon { padding: 6px 0; border: 0; background: transparent; color: #52364c; font-size: .82rem; font-weight: 600; text-decoration: underline; text-underline-offset: .18em; }
#remove-coupon:hover { color: #301a40; }
.receipt-lines .coupon-savings { color: #365943; }
.coupon-ticket small { display: block; margin-top: 3px; font-weight: 500; overflow-wrap: anywhere; }
.cart-book-offer { display: flex; align-items: center; gap: 12px; padding: 14px 16px; margin: 14px 0 0; border: 1px solid #c4d6c1; border-radius: 8px; background: #edf4e9; color: #314b3d; }
.cart-book-offer p { margin: 2px 0 0; line-height: 1.45; font-size: .91rem; }
#shelf-reader-offer { margin-bottom: 20px; scroll-margin-top: 18px; }
#shelf-reader-offer > .cart-book-offer { margin-top: 0; }
.reader-offer-remove { margin-inline-start: auto; flex-shrink: 0; border: 0; background: none; color: #365943; font: 650 .82rem var(--body); text-decoration: underline; cursor: pointer; }
@media (max-width: 580px) {
  .cart-book-offer:has(.reader-offer-remove) { display: grid; grid-template-columns: auto minmax(0,1fr); gap: 6px 10px; }
  .cart-book-offer .reader-offer-remove { grid-column: 2; justify-self: start; margin: 0; padding: 4px 0; }
}
.cart-offer-check { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; color: white; background: #44684c; }
.cart-offer-check .ico { width: 16px; height: 16px; }
.receipt-lines { margin: 0; display: grid; gap: .7rem; }
.receipt-lines > div, .receipt-total, .receipt-total > div { display: flex; align-items: baseline; justify-content: space-between; gap: .5rem; }
.receipt-lines dt, .receipt-lines dd { margin: 0; font-size: .96rem; }
.receipt-lines dt span { color: #675b4c; font-size: .85rem; }
.receipt-lines dd { font-weight: 600; }
.receipt-total { border-top: 1px dashed #bfa970; margin-top: 20px; padding-top: 16px; }
.receipt-total > span { font: 750 1.35rem/1.3 var(--display); letter-spacing: -.035em; }
.receipt-total small { font: 650 .72rem/1 var(--body); color: #716045; letter-spacing: .05em; }
.receipt-total strong { font: 800 2rem/1.1 var(--display); letter-spacing: -.055em; }
.receipt-action, .receipt-edit { margin-top: 22px; }
.receipt-action { width: 100%; }
.receipt-edit { color: #52364c; }
.receipt-note { margin: 9px 0 0 !important; font-size: .82rem; color: #625439; text-align: center; }
@media (max-width: 930px) {
  .order-page { width: 92%; }
  .order-layout { grid-template-columns: minmax(0, 1.38fr) minmax(250px, 1fr); gap: 18px; }
}
@media (max-width: 740px) {
  .order-page { width: calc(100% - 32px); }
  .order-layout { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .order-summary { position: static; }
  .order-layout:has(.cart-empty) .order-summary { display: none; }
  .order-heading { align-items: flex-start; flex-direction: column; gap: 15px; }
  .order-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: start; width: min(100%, 520px); margin: 0; }
  .order-steps li { position: relative; display: block; min-width: 0; white-space: normal; font-size: clamp(.74rem, 2.8vw, .88rem); text-align: center; line-height: 1.25; }
  .order-steps li > :is(span, a) { display: flex; flex-direction: column; align-items: center; gap: 6px; padding-inline: 2px; min-height: 44px; }
  .order-steps li:not(:first-child)::before { position: absolute; top: 12px; right: calc(50% + 18px); width: calc(100% - 36px); margin: 0; }
  .order-steps li > :is(span, a) > span:last-child { overflow-wrap: anywhere; text-wrap: balance; }
}
