.preorder-notice { background: #f1f6fd; color: #102d6d; padding: 48px 0; }
.preorder-notice .preorder-notice-inner { display: flex; align-items: center; gap: 40px; width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; box-sizing: border-box; }
.preorder-notice-image { display: block; flex: 0 0 220px; }
.preorder-notice-image img { display: block; width: 100%; height: auto; border-radius: 4px; }
.preorder-notice-copy { min-width: 0; }
.preorder-notice-label { margin: 0 0 16px; font-size: 14px; font-weight: 600; }
.preorder-notice-label span { margin-left: 12px; font-size: 11px; letter-spacing: .14em; }
.preorder-notice h2 { margin: 0 0 16px; font-size: clamp(24px, 2.5vw, 34px); font-weight: 700; line-height: 1.4; word-break: keep-all; }
.preorder-notice h2 span { display: inline-block; font-weight: 400; }
.preorder-notice-product { margin: 0 0 24px; color: #425576; font-size: 15px; line-height: 1.6; word-break: keep-all; }
.preorder-notice-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.preorder-detail-button, .product-cafe24-button { display: inline-flex; align-items: center; justify-content: center; gap: 20px; min-height: 48px; padding: 12px 24px; border: 1px solid #112f78; border-radius: 4px; background: #112f78; color: #fff; font: inherit; font-size: 15px; font-weight: 600; text-decoration: none; cursor: pointer; box-sizing: border-box; }
.preorder-detail-button:hover, a.product-cafe24-button:hover { background: #071e57; color: #fff; }
.preorder-open { background: transparent; border: 0; padding: 12px 4px; min-height: 44px; color: #314c80; font: inherit; font-size: 14px; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.preorder-open[hidden] { display: none; }
.preorder-dialog { position: fixed; inset: 0; margin: auto; padding: 0; border: 0; border-radius: 8px; width: min(540px, calc(100vw - 64px), max(320px, calc(80dvh - 140px))); max-width: 540px; max-height: 80dvh; overflow-y: auto; color: #102d6d; background: #fff; box-shadow: 0 24px 80px #071e5740; }
.preorder-dialog::backdrop { background: #06142d80; }
/* Local inspection uses ordinary layers so the editor's picker can sit above it. */
.preorder-inspect-backdrop { position: fixed; inset: 0; z-index: 10000; background: #06142d80; }
.preorder-inspect-backdrop[hidden] { display: none; }
.preorder-dialog-inspect { z-index: 10001; }
.preorder-dialog-visual { position: relative; isolation: isolate; }
.preorder-dialog-title { position: absolute; inset: 0 0 auto; z-index: 1; box-sizing: border-box; margin: 0; padding: 22px 24px 64px; background: linear-gradient(to bottom, #fff 0, #fff calc(100% - 56px), rgb(255 255 255 / 85%) calc(100% - 40px), rgb(255 255 255 / 35%) calc(100% - 20px), transparent 100%); color: #102d6d; font-size: 22px; font-weight: 700; line-height: 1.5; word-break: keep-all; }
.preorder-dialog-title span { display: block; margin-top: 4px; font-size: 14px; font-weight: 400; }
.preorder-dialog-title:focus { outline: none; }
.preorder-dialog-image, .preorder-dialog-image img { display: block; width: 100%; height: auto; }
.preorder-dialog-image { position: relative; aspect-ratio: 1; overflow: hidden; }
.preorder-slide-track { display: flex; width: 100%; transition: transform 500ms cubic-bezier(.22, .61, .36, 1); }
.preorder-dialog-image img { flex: 0 0 100%; min-width: 0; aspect-ratio: 1; object-fit: contain; }
.preorder-dialog-image img:nth-child(2) { box-sizing: border-box; padding: max(0px, calc(var(--notice-image-inset, 150px) - 60px)) 0 0; object-position: calc(50% - 4px) 50%; background: #fff; }
@media (prefers-reduced-motion: reduce) {
    .preorder-slide-track { transition: none; }
}
.preorder-slide-count { position: absolute; bottom: 14px; right: 16px; padding: 5px 10px; border-radius: 20px; background: rgb(9 23 47 / 58%); color: #fff; font-size: 11px; line-height: 1.4; font-weight: 500; font-variant-numeric: tabular-nums; letter-spacing: .08em; pointer-events: none; }
.preorder-dialog-cta { display: flex; justify-content: center; margin: 14px 18px; font-weight: 500; }
.preorder-dialog-footer { display: flex; justify-content: space-between; padding: 0 8px 6px; border-top: 1px solid #e5eaf3; }
.preorder-dialog-footer button { min-height: 44px; padding: 10px 12px; border: 0; background: transparent; color: #455571; font: inherit; font-size: 13px; cursor: pointer; }
.preorder-dialog-open { overflow: hidden; }
.preorder-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.product-cafe24-purchase { margin-top: 4px; width: 100%; }
.product-cafe24-button { width: 100%; }
.product-cafe24-button:disabled { background: #e7ebf2; border-color: #d3dbe7; color: #68758c; cursor: default; }
.product-cafe24-pending { margin-top: 8px; color: #68758c; font-size: 13px; }
.preorder-notice a:focus-visible, .preorder-notice button:focus-visible, .preorder-dialog a:focus-visible, .preorder-dialog button:focus-visible, .product-cafe24-button:focus-visible { outline: 3px solid #3179ed; outline-offset: 3px; }
@media (max-width: 600px) {
    .preorder-notice { padding: 32px 0; }
    .preorder-notice .preorder-notice-inner { flex-direction: column; align-items: stretch; gap: 24px; }
    .preorder-notice-image { flex-basis: auto; width: 100%; max-width: 320px; align-self: center; }
    .preorder-notice h2 span { display: block; margin-top: 4px; font-size: 21px; }
    .preorder-notice-label { margin-bottom: 12px; }
    .preorder-dialog { width: min(320px, calc(100vw - 64px), max(200px, calc(80dvh - 140px))); max-height: 80dvh; }
    .preorder-dialog-title { padding: 18px 18px 64px; font-size: 18px; line-height: 1.4; }
    .preorder-dialog-title span { font-size: 13px; line-height: 1.5; }
    .preorder-dialog-cta { margin: 12px 16px; min-height: 44px; padding: 10px 16px; font-size: 14px; }
}
/* Keep the existing target-only purchase control reachable throughout mobile reading. */
@media (max-width: 767px) {
  body:has(.product-cafe24-purchase) { padding-bottom: calc(92px + env(safe-area-inset-bottom, 0px)); }
  .product-cafe24-purchase { position: fixed; inset: auto 0 0; z-index: 999; width: auto; margin: 0; padding: 12px 20px calc(12px + env(safe-area-inset-bottom, 0px)); box-sizing: border-box; border-top: 1px solid #dfe7f2; background: #fffffff5; box-shadow: 0 -6px 24px #102c6114; backdrop-filter: blur(12px); }
  .product-cafe24-purchase .product-cafe24-button { width: 100%; min-height: 50px; border-radius: 6px; font-size: 15px; box-shadow: 0 3px 9px #12377718; }
}
