/* 沿用宣紙、乾燥玫瑰、細金線。選購與補資料各一頁，手機只捲動 dialog。 */
.order-dialog {
  --order-paper: #fbf4ef;
  --order-line: rgba(142,117,73,.26);
  position: fixed; inset: 0; margin: 0; padding: 0; border: 0;
  width: 100%; max-width: none; height: 100%; height: 100dvh; max-height: none;
  color: #3d2d32; background: var(--order-paper); font: 16px/1.7 var(--sans);
  overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
.order-dialog::backdrop { background: #3d2d3266; }
.order-dialog *, .order-dialog *::before, .order-dialog *::after { box-sizing: border-box; }
.order-dialog [hidden] { display: none !important; }
.order-dialog :is(button,input,select,textarea,summary):focus-visible { outline: 2px solid #98702f; outline-offset: 3px; }
.order-bar { border-bottom: 1px solid var(--order-line); padding-top: env(safe-area-inset-top); }
.order-bar-inner { max-width: 620px; margin: auto; padding: 4px 20px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.order-back, .order-text-button { min-height: 44px; padding: 5px 0; border: 0; background: none; color: #865367; font: 14px/1.6 var(--sans); cursor: pointer; }
.order-text-button { text-decoration: underline; text-underline-offset: 4px; }
.order-brand { font: 900 20px/1.5 var(--serif); letter-spacing: .15em; color: #643b49; }
.order-main { width: 100%; max-width: 620px; margin: auto; padding: 22px 20px max(30px, env(safe-area-inset-bottom)); }
.order-progress { display: flex; justify-content: space-between; gap: 6px; list-style: none; padding: 0; margin: 0 0 21px; font-size: 12px; color: #83747a; }
.order-progress li { padding-bottom: 7px; flex: 1; border-bottom: 1px solid var(--order-line); }
.order-progress li.current { color: #865367; border-color: #865367; font-weight: 600; }
.order-title { margin: 0; font: 900 clamp(24px,6vw,30px)/1.5 var(--serif); color: #643b49; letter-spacing: .02em; }
.order-title:focus { outline: none; }
.order-lead { margin: 5px 0 0; font-size: 14px; color: #76676d; }
.order-local { margin: 14px 0 18px; color: #80653b; font-size: 12px; padding-left: 9px; border-left: 2px solid #c8b690; }
.order-products, .order-section { min-width: 0; padding: 0; border: 0; margin: 0; }
.order-products .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.order-product { display: grid; grid-template-columns: 20px minmax(0,1fr) auto; align-items: center; gap: 12px; padding: 15px 12px; background: #fffaf755; border: 1px solid var(--order-line); border-bottom-width: 0; cursor: pointer; }
.order-product:last-child { border-bottom-width: 1px; }
.order-product:has(input:checked) { background: #f1e2e5; border-left: 3px solid #865367; padding-left: 10px; }
.order-product input, .order-check input { position: static; opacity: 1; width: 18px; height: 18px; margin: 0; accent-color: #865367; }
.order-product-copy { display: grid; gap: 3px; }
.order-product-copy strong { font: 700 18px/1.5 var(--serif); color: #643b49; }
.order-product-copy > span { font-size: 12px; line-height: 1.65; color: #76676d; }
.order-product-copy > .order-product-note { color: #82612e; font-size: 11px; letter-spacing: .06em; }
.order-price { color: #80602f; font: 600 16px/1.4 var(--serif); white-space: nowrap; }
.order-selection-status { margin: 9px 0 0; font-size: 12px; color: #76676d; min-height: 20px; }
.order-totals { margin: 12px 0 18px; font-size: 14px; }
.order-totals p { margin: 3px 0; display: flex; gap: 12px; justify-content: space-between; }
.order-totals p > span:last-child { white-space: nowrap; }
.order-totals .order-total { margin-top: 10px; padding-top: 10px; align-items: baseline; border-top: 1px solid var(--order-line); }
.order-total strong { color: #643b49; font: 700 25px/1.3 var(--serif); white-space: nowrap; }
.order-primary { display: block; width: 100%; min-height: 52px; border: 1px solid #643b49; border-radius: 5px; padding: 13px 14px; background: #643b49; color: #fffaf0; font: 700 16px/1.6 var(--serif); letter-spacing: .04em; cursor: pointer; }
.order-primary:hover:enabled { background: #865367; }
.order-primary:disabled { background: #e3d6d9; border-color: #e3d6d9; color: #74636a; cursor: default; }
.order-help { margin: 7px 0 0; font-size: 12px; line-height: 1.75; color: #76676d; }
.order-form { display: block; position: static; max-width: none; margin: 0; }
.order-chosen { margin: 0 0 20px; padding: 12px 14px; background: #f1e2e5; font-size: 13px; color: #865367; }
.order-reading-brief { margin: 0 0 22px; padding: 0 0 12px; border-bottom: 1px solid var(--order-line); }
.order-reading-brief summary { min-height: 44px; padding: 10px 0; color: #865367; font-size: 14px; line-height: 1.75; cursor: pointer; text-wrap: pretty; }
.order-reading-brief summary:focus-visible { outline: 2px solid #98702f; outline-offset: 3px; }
.order-reading-brief ul { display: grid; gap: 13px; margin: 6px 0 13px; padding: 0; list-style: none; }
.order-reading-brief li { display: grid; grid-template-columns: 2.5em minmax(0,1fr); gap: 3px 10px; font-size: 14px; line-height: 1.8; }
.order-reading-topic { color: #82612e; font-weight: 500; white-space: nowrap; }
.order-reading-focus { grid-column: 2; justify-self: start; color: #82612e; background: #f2e4db; font-size: 11px; line-height: 1.8; padding: 0 6px; border-radius: 2px; }
.order-own { margin-bottom: 25px; }
.order-section-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.order-section-head h3, .order-review-section h3, .order-delivery h3 { margin: 0; font: 700 18px/1.6 var(--serif); color: #643b49; }
.order-data { margin: 0; padding: 13px 14px; background: #fffaf799; }
.order-data-row { display: grid; grid-template-columns: 4.5em minmax(0,1fr); gap: 8px; font-size: 14px; }
.order-data-row + .order-data-row { margin-top: 5px; }
.order-data dt { color: #76676d; }
.order-data dd { margin: 0; overflow-wrap: anywhere; white-space: pre-line; }
.order-qr { display: block; margin: 16px auto; border: 1px solid var(--order-line); border-radius: 8px; }
.order-method { min-height: 44px; border: 1px solid var(--order-line); border-radius: 6px; background: #fffaf7; color: #3d2d32; font: 15px/1.6 var(--sans); cursor: pointer; }
.order-method.active { border-color: #643b49; background: #643b49; color: #fffaf0; font-weight: 700; }
.order-reminder { margin: 10px 0; padding: 10px 12px; border-radius: 6px; background: #f1e2e5; color: #643b49; font: 700 15px/1.6 var(--sans); }
.order-reminder a { color: #643b49; text-decoration: underline; text-underline-offset: 3px; }
.order-section { margin: 25px 0; padding-top: 13px; border-top: 1px solid var(--order-line); }
.order-section legend { padding-right: 10px; font: 700 20px/1.6 var(--serif); color: #643b49; }
.order-field { min-width: 0; margin: 14px 0; }
.order-field label { display: block; font-size: 14px; color: #865367; margin-bottom: 6px; }
.order-field :is(input,select,textarea) { display: block; width: 100%; min-width: 0; max-width: 100%; min-height: 49px; padding: 11px 12px; border: 1px solid #b8a3aa; border-radius: 5px; background: #fffaf7; color: #3d2d32; font: 400 16px/1.55 var(--sans); letter-spacing: normal; box-shadow: none; appearance: none; -webkit-appearance: none; }
.order-field select { padding-right: 27px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='m1 1 4 4 4-4' fill='none' stroke='%2380602f' stroke-width='1.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }
.order-field textarea { resize: vertical; min-height: 100px; }
.order-field :is(input,textarea)::placeholder { color: #88767e; font-size: 14px; }
.order-field [aria-invalid="true"] { border-color: #994f3c; }
.order-error { margin: 6px 0; font-size: 13px; color: #994f3c; }
.order-error-summary { margin-bottom: 14px; }
.order-duo { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 12px; }
.order-check { display: flex; align-items: center; gap: 9px; min-height: 44px; font-size: 14px; color: #865367; cursor: pointer; }
.order-variant { margin: 4px 0 8px; padding: 10px 12px; background: #f2e4db; color: #715c36; font-size: 13px; }
.order-center { display: block; text-align: center; margin-left: auto; margin-right: auto; }
.order-review-data { margin: 14px 0; }
.order-review-data summary { color: #865367; font-size: 14px; min-height: 44px; padding: 8px 0; cursor: pointer; }
.order-review-section { border-top: 1px solid var(--order-line); padding-top: 16px; margin: 18px 0; }
.order-review-section .order-data { margin-top: 8px; }
.order-answer { white-space: pre-wrap; overflow-wrap: anywhere; margin: 6px 0; font-size: 15px; }
.order-delivery { margin-top: 24px; padding: 18px 0 10px; border-top: 1px solid var(--order-line); }
.order-delivery p { margin: 5px 0; color: #76676d; font-size: 13px; }
.product-buy { flex-shrink: 0; min-height: 54px; padding: 7px 10px; border: 1px solid #b8a3aa; border-radius: 4px; color: #865367; background: #fffaf777; font: 500 13px/1.6 var(--sans); cursor: pointer; }
.product-buy > span:first-child { display: block; color: #82612e; font-family: var(--serif); font-size: 16px; }
.product-buy:hover { background: #f1e2e5; border-color: #865367; }
.product-buy:focus-visible { outline: 2px solid #98702f; outline-offset: 3px; }
.other-readings .product { align-items: center; }
.other-readings[hidden] { display: none; }
@media (max-width: 359px) {
  .order-duo { grid-template-columns: minmax(0,1fr); gap: 0; }
  .order-product { gap: 8px; padding: 13px 9px; }
  .order-product:has(input:checked) { padding-left: 7px; }
  .order-product-copy strong { font-size: 17px; }
  .order-price { font-size: 15px; }
}
@media (min-width: 620px) {
  .order-main { padding-top: 34px; }
  .order-product { padding-top: 18px; padding-bottom: 18px; }
}
/* 付款前後的「截圖傳官方 LINE」提醒 */
.order-pay-alert { margin: 22px 0 14px; padding: 14px 16px; border: 1.5px solid #865367; border-radius: 8px; background: #f1e2e5; color: #643b49; }
.order-pay-alert strong { display: block; margin-bottom: 4px; font: 900 18px/1.5 var(--serif); }
.order-pay-alert p { margin: 0; font: 15px/1.7 var(--sans); }
.order-pay-alert ol { margin: 4px 0 6px; padding-left: 1.5em; font: 700 16px/1.85 var(--sans); }
.order-pay-alert .order-pay-alert-note { font-size: 13px; color: #76676d; }
.order-pay-choose { margin: 18px 0 8px; font: 700 17px/1.5 var(--serif); color: #643b49; }
.order-pay-card { margin: 0 0 14px; padding: 14px; border: 1px solid #d9c6cc; border-radius: 8px; background: #fffaf7; }
.order-pay-card .order-data { padding: 4px 2px 12px; background: none; }
.order-pay-card .order-data-row { padding: 3px 0; border-bottom: 1px dotted #d9c6cc; }
.order-pay-tag { display: inline-block; margin-bottom: 8px; padding: 3px 12px; border-radius: 999px; background: #f1e2e5; color: #643b49; font: 700 13px/1.6 var(--sans); }
.order-ghost { margin-top: 10px; background: transparent; color: #643b49; }
.order-ghost:hover:enabled { background: #f1e2e5; }
.order-pay-modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 20px; background: #3d2d3273; }
.order-pay-box { width: 100%; max-width: 360px; padding: 22px 20px 18px; border-radius: 12px; background: #fbf4ef; color: #3d2d32; box-shadow: 0 10px 30px #3d2d3240; }
.order-pay-box h3 { margin: 0 0 10px; text-align: center; font: 900 19px/1.5 var(--serif); color: #643b49; }
.order-pay-box p { margin: 0 0 8px; font: 15px/1.8 var(--sans); }
.order-pay-box p:last-of-type { margin-bottom: 16px; }
.order-after-steps { margin: 16px 0; padding: 14px 16px; border: 1.5px solid #865367; border-radius: 8px; background: #f1e2e5; color: #643b49; }
.order-after-steps h3 { margin: 0 0 6px; font: 900 19px/1.6 var(--serif); color: #e00000; }
.order-after-steps ol { margin: 0 0 6px; padding-left: 1.4em; font: 700 17px/1.8 var(--sans); }
.order-after-steps p { margin: 0; font: 15px/1.7 var(--sans); color: #643b49; }
.order-after-steps .order-ghost { background: #fffaf7; }
.order-after-steps .order-step-done { color: #2e7d32; }
.order-after-steps + .order-primary { margin-top: 4px; }
/* 先付款再送出 */
.order-pay-first { margin: 12px 0; padding: 10px 12px; border-radius: 6px; background: #fff3cd; border: 1px solid #e6c46a; color: #6b4e00; font: 700 15px/1.7 var(--sans); }
.order-birth-card { margin: 16px 0; padding: 12px 14px; border: 1px solid #d9c6cc; border-radius: 8px; background: #fffaf7; }
.order-birth-card h3 { margin: 0; font: 700 17px/1.6 var(--serif); color: #643b49; }
.order-birth-card .order-data { padding: 8px 0 4px; background: none; }
.order-edit-btn { flex-shrink: 0; min-height: 38px; padding: 4px 18px; border: 1.5px solid #865367; border-radius: 999px; background: #fff; color: #865367; font: 700 15px/1.4 var(--sans); cursor: pointer; }
.order-edit-btn:hover { background: #f1e2e5; }
.order-open-hint { margin-left: 8px; padding: 1px 8px; border: 1px solid #c9a9b3; border-radius: 999px; font-size: 12px; color: #865367; white-space: nowrap; }
.order-progress li.done { color: #8a7a52; border-color: #c9b48a; }
