/* Cart and order summary share the collection's paper, berry, and handwritten accents. */
.creative-shop .header-row { gap: 24px; }
.creative-shop .header-row nav { margin-left: auto; }
.cart-trigger { display: inline-flex; align-items: center; gap: 10px; min-height: 46px; padding: 8px 15px; flex-shrink: 0; border: 1px solid var(--berry); border-radius: 100px; background: transparent; color: var(--berry); font-size: 14px; }
.cart-trigger span { display: grid; place-items: center; background: var(--berry); color: var(--paper); min-width: 26px; height: 26px; padding-inline: 5px; border-radius: 100px; font-size: 12px; }
.creative-shop .filters button { max-width: 100%; min-width: 0; overflow-wrap: anywhere; }
.cart-announcement { position: fixed; z-index: 40; bottom: 16px; left: 50%; translate: -50% 0; max-width: calc(100% - 32px); padding: 12px 20px; border-radius: 4px; background: var(--ink); color: var(--paper); box-shadow: 0 5px 24px #58263c25; font-size: 14px; pointer-events: none; }
.cart-announcement:empty { display: none; }
.creative-shop .product-bottom button.add-to-cart { background: var(--berry); color: var(--paper); border-radius: 3px 16px 3px 16px; padding: 10px 16px; text-decoration: none; display: inline-flex; align-items: center; gap: 16px; white-space: nowrap; }
.creative-shop .product-bottom button.add-to-cart:hover { background: #70203b; }
.dialog-product-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; margin-top: 24px; }
.creative-shop .dialog-product-actions .button { margin-top: 0; }
.cart-text-button { border: 0; background: none; color: var(--berry); font-size: 14px; text-decoration: underline; text-underline-offset: 5px; padding: 10px 0; min-height: 44px; }
.cart-dialog { width: min(690px, calc(100% - 32px)); max-height: calc(100svh - 32px); overflow-y: auto; overscroll-behavior: contain; border: 1px solid #dec9c9; border-radius: 5px; padding: 40px; background: var(--paper); color: var(--ink); box-shadow: 0 25px 100px #2b162b50; }
.cart-dialog::backdrop { background: #2c132dad; backdrop-filter: blur(5px); }
body:has(dialog[open]) { overflow: hidden; }
.cart-dialog .eyebrow { margin-bottom: 14px; font-size: 11px; }
.cart-dialog h2 { font-size: clamp(34px,5vw,48px); padding-right: 22px; }
.cart-intro { color: var(--muted); font-size: 14px; margin-top: 14px; }
.cart-status { font-size: 14px; padding: 12px 14px; background: #f8e4a2; border-radius: 3px; margin-top: 18px; }
.cart-status:empty { display: none; }
.cart-dialog fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.cart-items { list-style: none; padding: 0; margin: 24px 0 0; }
.cart-item { display: grid; grid-template-columns: 76px minmax(0,1fr) auto; gap: 18px; padding-block: 22px; border-bottom: 1px dashed var(--line); align-items: start; }
.cart-item > img { border-radius: 4px; width: 76px; height: 90px; object-fit: contain; background: #f4e4dd; }
.cart-item-copy { min-width: 0; }
.cart-category { font-size: 10px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); overflow-wrap: anywhere; }
.cart-item h3 { font-size: 25px; margin-top: 5px; overflow-wrap: anywhere; }
.cart-item-copy > p:not(.cart-category) { font-size: 13px; color: var(--muted); margin-top: 7px; }
.cart-item-controls { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 13px; }
.quantity-control { display: inline-flex; border: 1px solid var(--line); border-radius: 3px; align-items: center; }
.quantity-control button { width: 44px; height: 44px; border: 0; background: transparent; color: var(--berry); font-size: 21px; }
.quantity-control span { min-width: 27px; text-align: center; font-size: 14px; }
.cart-dialog button:disabled { cursor: default; }
.cart-remove { border: 0; background: none; color: var(--muted); font-size: 12px; text-decoration: underline; min-height: 44px; padding-inline: 8px; }
.cart-line-total { font-size: 15px; padding-top: 5px; font-variant-numeric: tabular-nums; }
.cart-total-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 25px; }
.cart-total-row span { font-size: 15px; }
.cart-total-row small { display: block; font-size: 12px; color: var(--muted); margin-top: 3px; }
.cart-total-row strong { font-family: var(--serif); font-size: 33px; font-weight: 400; }
.cart-dialog .cart-primary { width: 100%; margin-block: 22px 12px; }
.checkout-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.checkout-actions .cart-primary { padding-inline: 16px; }
.checkout-actions .email-order-button { background: transparent; color: var(--berry); }
.checkout-actions .email-order-button:hover { background: #f7ebe5; }
.shop-email { overflow-wrap: anywhere; }
.cart-empty { padding: 40px 0 12px; text-align: center; }
.cart-empty > span { display: block; color: var(--berry); font-size: 50px; }
.cart-empty h3 { font-size: 30px; margin-block: 12px; }
.cart-empty p { font-size: 14px; color: var(--muted); }
.checkout-details { margin-top: 16px; }
.checkout-field-note { display: block; margin-top: 7px; color: var(--muted); font-size: 12px; line-height: 1.5; font-weight: 400; }
.order-paper { margin-top: 30px; border: 1px solid var(--line); border-bottom: 3px dashed var(--line); padding: 26px; background: #fffdf9; }
.receipt-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; border-bottom: 1px dashed var(--line); padding-bottom: 12px; }
.receipt-heading h3 { font-size: 27px; }
.receipt-heading button { white-space: nowrap; font-size: 12px; }
#orderReceipt { font-size: 14px; line-height: 1.6; overflow-wrap: anywhere; }
.receipt-shop { display: flex; gap: 14px; align-items: center; justify-content: space-between; margin-top: 21px; }
.receipt-shop > span:first-child { font: 32px/1.1 var(--serif); letter-spacing: -.045em; }
.receipt-state { background: #f5e4e8; color: var(--berry); border-radius: 30px; padding: 5px 10px; font-size: 10px; text-transform: uppercase; letter-spacing: .06em; flex-shrink: 0; }
.receipt-meta { display: grid; gap: 13px; margin: 20px 0 24px; }
.receipt-meta dt { color: var(--muted); font-size: 11px; margin-bottom: 4px; }
.receipt-meta dd { margin: 0; font-size: 13px; }
.receipt-meta .receipt-reference { font-family: ui-monospace,Consolas,monospace; font-size: 12px; letter-spacing: .01em; color: var(--berry); }
.receipt-section { border-top: 1px solid var(--line); padding-top: 18px; margin-top: 20px; }
.receipt-section h4 { margin: 0; font: 600 11px/1.5 var(--sans); text-transform: uppercase; letter-spacing: .1em; }
.receipt-section-heading { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 8px; }
.receipt-section-heading > span { color: var(--muted); font-size: 11px; }
.receipt-customer { display: grid; gap: 8px; margin: 12px 0 0; }
.receipt-customer > div { display: grid; grid-template-columns: 95px minmax(0,1fr); gap: 12px; }
.receipt-customer dt { color: var(--muted); font-size: 12px; }
.receipt-customer dd { margin: 0; font-size: 13px; }
.receipt-items { list-style: none; padding: 0; margin: 0; }
.receipt-items > li { padding-block: 18px; border-bottom: 1px dashed var(--line); }
.receipt-items > li:last-child { border-bottom: 0; padding-bottom: 0; }
.receipt-piece-heading { display: flex; align-items: flex-start; gap: 11px; }
.receipt-piece-heading > div { min-width: 0; }
.receipt-piece-number { font: italic 14px/1.5 var(--serif); color: var(--muted); min-width: 19px; }
.receipt-piece-heading h5 { font: 600 15px/1.4 var(--sans); margin: 0 0 4px; }
.receipt-piece-heading p { color: var(--muted); font-size: 12px; }
.receipt-piece-heading .receipt-product-id { font: 10px/1.5 ui-monospace,Consolas,monospace; margin-top: 5px; }
.receipt-amounts { display: grid; grid-template-columns: .6fr 1fr 1fr; gap: 10px; margin: 14px 0 0 30px; }
.receipt-amounts dt { color: var(--muted); font-size: 10px; margin-bottom: 3px; }
.receipt-amounts dd { margin: 0; font-size: 13px; font-variant-numeric: tabular-nums; }
.receipt-amounts > div:last-child { text-align: right; font-weight: 600; }
.receipt-price-note { margin: 10px 0 0 30px; color: var(--muted); font-size: 12px; font-style: italic; }
.receipt-totals { border-top: 1px solid var(--line); padding-top: 19px; margin: 23px 0 0; }
.receipt-totals > div { display: flex; justify-content: space-between; gap: 16px; margin-top: 9px; font-size: 12px; }
.receipt-totals dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
.receipt-totals > div:not(:first-child):not(:last-child) { color: var(--muted); }
.receipt-totals .receipt-grand-total { align-items: center; padding: 16px 12px; margin: 18px -12px 0; background: #f7ebe5; font-size: 15px; font-weight: 600; }
.receipt-grand-total dd { font-size: 23px; flex-shrink: 0; }
.receipt-grand-total small { display: block; margin-top: 5px; font-size: 10px; line-height: 1.4; font-weight: 400; color: var(--muted); }
.receipt-notes p { margin-top: 10px; font-size: 13px; white-space: pre-wrap; }
.receipt-footer { margin-top: 22px; font-size: 11px; color: var(--muted); line-height: 1.7; }
.receipt-footer strong { display: block; color: var(--ink); margin-top: 7px; font-weight: 400; }
.order-text-fallback { margin-top: 18px; font-size: 13px; }
.order-text-fallback summary { cursor: pointer; color: var(--berry); }
#orderMessageText { font: 12px/1.7 ui-monospace,Consolas,monospace; white-space: pre-wrap; overflow-wrap: anywhere; padding: 15px; border: 1px dashed var(--line); }
@media(max-width:900px) {
  .creative-shop .header-row { gap: 16px; }
  .creative-shop .header-row nav { gap: 18px; }
}
@media(max-width:760px) {
  .checkout-actions { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .checkout-actions .email-order-button { margin-top: 0; }
  .creative-shop .header-row { gap: 8px; }
  .creative-shop .menu-toggle { margin-left: auto; }
  .cart-trigger { padding-inline: 10px; gap: 6px; }
  .cart-dialog { padding: 30px 22px 22px; }
  .cart-item { grid-template-columns: 62px minmax(0,1fr); gap: 13px; }
  .cart-item > img { width: 62px; height: 80px; grid-row: span 2; }
  .cart-line-total { grid-column: 2; padding-top: 0; }
  .cart-item h3 { font-size: 24px; }
  .cart-total-row strong { font-size: 29px; }
  .order-paper { padding: 15px; }
  .receipt-heading { gap: 8px; }
  .receipt-heading h3 { font-size: 25px; }
  .receipt-customer > div { grid-template-columns: 73px minmax(0,1fr); gap: 10px; }
  .receipt-amounts { margin-left: 0; gap: 8px; }
  .receipt-amounts dd { font-size: 12px; }
  .receipt-totals .receipt-grand-total { align-items: flex-start; flex-direction: column; gap: 8px; }
  .receipt-grand-total dd { text-align: left; }
  .cart-announcement { width: max-content; font-size: 13px; }
}
