/* Only the scanner preorder dialog; existing page and demo modals stay unchanged. */
.preorder-modal { --bs-modal-width: 1180px; --bs-modal-margin: 24px; z-index: 1060; }
.preorder-modal.modal.fade { transition: opacity .38s ease; }
.preorder-modal.modal.fade .modal-dialog { opacity: 0; transform: translate3d(0, 36px, 0) scale(.91); transform-origin: 50% 65%; transition: transform .44s cubic-bezier(.22,.7,.25,1), opacity .32s ease; }
.preorder-modal.modal.show .modal-dialog { opacity: 1; transform: none; }
.preorder-modal .preorder-dialog { width: calc(100% - 48px); max-width: 1180px; height: calc(100% - 48px); min-height: calc(100% - 48px); margin: 24px auto; }
.preorder-modal .modal-content { max-height: 100%; border-radius: 28px; background: #fff; }
body.preorder-modal-open > .modal-backdrop { backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.preorder-header { display: flex; flex: 0 0 auto; align-items: flex-start; justify-content: space-between; gap: 24px; padding: 28px 34px 26px; color: #fff; background: #172a3a; }
.preorder-eyebrow { display: block; margin-bottom: 8px; color: #b9d8dc; font-size: 14px; line-height: 1.5; letter-spacing: .035em; }
.preorder-header h2 { margin: 0; color: #fff; font-size: clamp(27px, 3vw, 37px); line-height: 1.2; }
.preorder-header h2:focus { outline: none; }
.preorder-header p { margin-top: 10px; color: #d6e1e8; font-size: 16px; line-height: 1.5; }
.preorder-close { display: grid; place-items: center; flex: 0 0 42px; width: 42px; height: 42px; padding: 0; border: 1px solid #718592; border-radius: 50%; color: #fff; background: transparent; transition: background .2s, transform .2s; }
.preorder-close .icon { width: 22px; height: 22px; }
.preorder-close:hover { background: #304655; transform: rotate(90deg); }
.preorder-close:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }
.preorder-modal .preorder-body { padding: 30px 34px 34px; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #a4bec2 #f5f5f7; }
.preorder-plan { display: grid; grid-template-columns: 1fr auto; align-items: start; gap: 18px 24px; padding: 24px 28px; margin-bottom: 30px; border: 1px solid #d3e1e3; border-radius: 20px; background: #edf4f4; }
.preorder-caption { display: block; color: #49696e; font-size: 14px; line-height: 1.5; font-weight: 500; }
.preorder-plan h3 { margin: 5px 0 9px; font-size: 28px; line-height: 1.2; }
.preorder-billing { display: inline-block; padding: 4px 11px; border-radius: 100px; background: #d7e8ea; color: #365e65; font-size: 14px; }
.preorder-price { display: flex; flex-direction: column; gap: 5px; text-align: right; }
.preorder-price strong { font-size: 36px; line-height: 1.2; font-weight: 600; white-space: nowrap; }
.preorder-price-unit { font-size: 19px; font-weight: 400; }
.preorder-price > span { color: #4e626b; font-size: 14px; }
.preorder-setup-note { grid-column: 1 / -1; display: flex; align-items: flex-start; gap: 9px; padding-top: 15px; margin: 0; border-top: 1px solid #d0e0e2; color: #49626a; font-size: 14px; line-height: 1.5; }
.preorder-setup-note .icon { width: 18px; height: 18px; margin-top: 1px; }
.preorder-columns { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 32px; align-items: start; }
.preorder-details h3, .preorder-process h3 { font-size: 26px; line-height: 1.25; margin: 6px 0 10px; }
.preorder-section-intro { color: #5c6b74; font-size: 16px; line-height: 1.6; margin-bottom: 24px; }
.preorder-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.preorder-field { min-width: 0; }
.preorder-field label { display: block; margin-bottom: 8px; font-size: 16px; font-weight: 500; line-height: 1.5; }
.preorder-field label > span { display: block; color: #657079; font-size: 13px; font-weight: 400; }
.preorder-field input { display: block; width: 100%; padding: 15px 18px; border: 0; border-radius: 14px; background: #f1f3f4; color: #172a3a; font-size: 17px; line-height: 1.5; outline: none; }
.preorder-field input:focus { background: #e8eff0; outline: none; }
.preorder-error { display: block; margin-top: 8px; color: #933c3c; font-size: 14px; line-height: 1.5; }
.preorder-modal .phone-mask-wrap { position: relative; display: block; min-width: 0; }
.preorder-modal .phone-mask-visual { position: absolute; z-index: 1; inset: 0; padding: 15px 18px; overflow: hidden; pointer-events: none; white-space: pre; font-size: 17px; line-height: 1.5; }
.preorder-modal .phone-mask-written { visibility: hidden; }
.preorder-modal .phone-mask-written.is-empty { visibility: visible; color: #788691; }
.preorder-modal .phone-mask-pending { color: #9cabb4; }
.preorder-consent { margin-top: 25px; padding-top: 22px; border-top: 1px solid #e1e8ea; }
.preorder-consent-caption { display: block; margin-bottom: 12px; color: #5c6b74; font-size: 14px; line-height: 1.5; }
.preorder-consent-row { display: grid; grid-template-columns: 25px minmax(0, 1fr); gap: 13px; align-items: start; }
.preorder-consent-row > input { appearance: none; width: 25px; height: 25px; margin: 2px 0 0; border: 1px solid #708993; border-radius: 50%; background: #fff; cursor: pointer; }
.preorder-consent-row > input:checked { background: radial-gradient(circle, #fff 0 4px, #508991 5px); border-color: #508991; }
.preorder-consent-row > input:focus-visible { outline: 2px solid #508991; outline-offset: 4px; }
.preorder-consent-row > input[aria-invalid="true"] { border-color: #a44848; }
.preorder-consent-row label { color: #4f606b; font-size: 14px; line-height: 1.7; cursor: pointer; }
.preorder-consent-row a { color: #365e65; text-decoration: underline; text-underline-offset: 3px; }
.preorder-submit { width: 100%; margin-top: 24px; min-height: 54px; justify-content: space-between; }
.preorder-mail-note { margin-top: 12px; color: #5c6b74; font-size: 13px; line-height: 1.6; text-align: center; }
.preorder-draft { margin-top: 18px; padding: 18px; border-radius: 16px; background: #eaf1f2; }
.preorder-draft p { margin-bottom: 12px; font-size: 15px; }
.preorder-draft .text-link { font-size: 15px; }
.preorder-process { padding: 24px; border: 1px solid #dce7e9; border-radius: 20px; background: #f5f8f8; }
.preorder-process-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.preorder-step-count { flex: 0 0 auto; color: #4f6c72; font-size: 13px; }
.preorder-process h3 { margin-bottom: 24px; }
.preorder-timeline { list-style: none; padding: 0; margin: 0; }
.preorder-timeline > li { display: grid; position: relative; grid-template-columns: 33px minmax(0, 1fr); gap: 13px; padding-bottom: 23px; }
.preorder-timeline > li:not(:last-child)::before { content: ''; position: absolute; left: 16px; top: 34px; bottom: 1px; width: 1px; background: #cedfe2; }
.preorder-timeline > li:last-child { padding-bottom: 0; }
.preorder-step-number { display: grid; place-items: center; width: 33px; height: 33px; border: 1px solid #c4d9dd; border-radius: 50%; background: #e7f0f1; color: #365e65; font-size: 13px; font-weight: 500; }
.preorder-timeline h4 { margin: 4px 0 6px; font-size: 16px; line-height: 1.4; }
.preorder-timeline p { color: #5b6c76; font-size: 14px; line-height: 1.6; }
.preorder-timeline p strong { color: #365e65; font-weight: 500; }
.preorder-payment-step .preorder-step-number { color: #fff; background: #172a3a; border-color: #172a3a; }
.preorder-deposit { display: inline-block; margin: 2px 0 6px; color: #172a3a; font-size: 24px; font-weight: 600; }
.preorder-process-note { margin-top: 23px; padding-top: 17px; border-top: 1px solid #dce7e9; color: #4e6770; font-size: 13px; line-height: 1.65; }
@media (max-width: 950px) {
  .preorder-columns { grid-template-columns: 1fr; gap: 28px; }
  .preorder-timeline { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
  .preorder-timeline > li { padding-bottom: 0; }
  .preorder-timeline > li::before { display: none; }
}
@media (max-width: 575.98px) {
  .preorder-modal .preorder-dialog { width: calc(100% - 20px); height: calc(100% - 24px); min-height: calc(100% - 24px); margin: 12px auto; }
  .preorder-modal .modal-content { border-radius: 22px; }
  .preorder-header { gap: 12px; padding: 22px 20px; }
  .preorder-header h2 { font-size: 27px; }
  .preorder-header p { font-size: 14px; }
  .preorder-eyebrow { font-size: 12px; }
  .preorder-close { flex-basis: 36px; width: 36px; height: 36px; }
  .preorder-modal .preorder-body { padding: 20px; }
  .preorder-plan { grid-template-columns: 1fr; gap: 17px; padding: 20px; margin-bottom: 25px; }
  .preorder-plan h3 { font-size: 26px; }
  .preorder-price { text-align: left; }
  .preorder-price strong { font-size: 33px; }
  .preorder-price-unit { font-size: 18px; }
  .preorder-fields { grid-template-columns: 1fr; gap: 18px; }
  .preorder-field label > span { display: inline; }
  .preorder-process { padding: 20px; }
  .preorder-timeline { grid-template-columns: 1fr; gap: 0; }
  .preorder-timeline > li { padding-bottom: 23px; }
  .preorder-timeline > li:not(:last-child)::before { display: block; }
  .preorder-consent-row label { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .preorder-modal.modal.fade, .preorder-modal.modal.fade .modal-dialog, .preorder-close, .preorder-field input { transition: none; }
  .preorder-modal.modal.fade .modal-dialog { transform: none; }
}
