.order-shell { max-width: 820px; margin: 0 auto; padding: 52px 20px 80px; }
.order-card { padding: clamp(24px, 5vw, 52px); }
.order-card h1 { margin-bottom: 28px; }
.order-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.order-heading h1 { margin: 0; }
.order-heading button { flex-shrink: 0; font-size: 14px; }
.back-to-orders { display: inline-block; margin-bottom: 14px; color: #b34417; font-weight: 700; }
.back-to-orders[hidden], .history-warning[hidden], .history-product img[hidden] { display: none; }
.history-note { color: #676d76; font-size: 14px; line-height: 1.7; }
.history-warning { border-radius: 10px; padding: 14px; background: #fff4dd; color: #704807; line-height: 1.6; }
.history-list { display: grid; gap: 18px; }
.history-card { border: 1px solid #e0e3e7; border-radius: 16px; padding: 18px; background: #fff; }
.history-product { display: flex; align-items: flex-start; gap: 16px; color: inherit; text-decoration: none; }
.history-product img { width: 88px; height: 104px; border-radius: 10px; object-fit: cover; background: #f5f6f8; flex-shrink: 0; }
.history-product h2 { font-size: 17px; line-height: 1.5; margin: 0 0 10px; overflow-wrap: anywhere; }
.history-product strong { display: block; font-size: 18px; }
.history-date { display: block; margin-top: 6px; color: #676d76; font-size: 13px; }
.history-actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 18px; }
.history-actions a { padding: 10px 14px; text-align: center; font-size: 14px; }
.history-actions .status-chip { font-size: 13px; }
.history-empty, .history-error, .history-loading { padding: 22px; border-radius: 12px; background: #f5f6f8; line-height: 1.7; }
.history-empty h2 { margin-top: 0; font-size: 20px; }
.history-empty p, .history-error p { color: #676d76; }
.manual-lookup { border-top: 1px solid #e0e3e7; padding-top: 20px; margin-top: 28px; }
.manual-lookup summary { cursor: pointer; font-size: 14px; font-weight: 700; color: #595959; }
.manual-lookup p { font-size: 14px; color: #676d76; line-height: 1.7; }
.manual-lookup form { margin-top: 14px; }
@media (max-width: 560px) { .order-shell { padding: 24px 12px 50px; } .order-card { padding: 22px 18px; } .order-heading h1 { font-size: 28px; } .order-heading { gap: 8px; } .history-product img { width: 68px; height: 85px; } .history-product { gap: 12px; } .history-card { padding: 14px; } .history-actions { flex-wrap: wrap; } }
.order-lookup { display: grid; gap: 10px; }
.order-lookup label { font-weight: 800; }
.order-lookup > div { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.order-result { margin-top: 30px; }
.order-summary { display: grid; gap: 14px; padding: 22px; border-radius: 14px; background: #f5f6f8; }
.order-summary dl { display: grid; grid-template-columns: 110px 1fr; gap: 10px; margin: 0; }
.order-summary dt { color: #676d76; }
.order-summary dd { margin: 0; font-weight: 700; }
.status-chip { width: fit-content; border-radius: 999px; background: #e9edf2; padding: 6px 10px; font-weight: 800; }
.status-chip.fulfilled { background: #e3f4e9; color: #1c6d3b; }
.status-chip.paid { background: #e7efff; color: #214e91; }
.delivery-notice { padding: 16px; border: 1px solid #cfe3d5; border-radius: 10px; background: #f0faf3; color: #245634; line-height: 1.6; }
.delivery-notice p { margin: 6px 0 0; font-size: .95rem; }
.status-chip.refunded { background: #fff0ec; color: #a23a28; }
.download-button { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; border-radius: 10px; background: #ff6b35; color: #17191f; font-weight: 900; }
.delivery-file { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; padding: 12px 14px; border: 1px solid #dde0e5; border-radius: 10px; background: #fff; }
.delivery-file span, .delivery-file small { color: #676d76; }
.delivery-file strong { overflow-wrap: anywhere; }
.animation-delivery-list { display: grid; gap: 14px; }
.animation-delivery-card { display: grid; gap: 12px; padding: 18px; border: 1px solid #d7e4dc; border-radius: 14px; background: #fff; }
.animation-delivery-card h3 { margin: 0; font-size: 19px; }
.animation-delivery-card p { margin: 0; }
.animation-delivery-link { display: grid; gap: 5px; }
.animation-delivery-link span { color: #676d76; font-size: 13px; }
.animation-delivery-link strong { overflow-wrap: anywhere; user-select: text; }
.animation-delivery-code strong { user-select: text; }
.animation-delivery-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.animation-delivery-actions a, .animation-delivery-actions button { min-height: 42px; border: 0; border-radius: 9px; padding: 10px 14px; font: inherit; font-weight: 800; cursor: pointer; }
.animation-delivery-open { display: inline-flex; align-items: center; background: #ff6b35; color: #17191f; text-decoration: none; }
.animation-delivery-open.disabled { background: #e6e8eb; color: #676d76; cursor: not-allowed; }
.animation-delivery-actions button { background: #eef2f6; color: #20242b; }
.animation-delivery-copy-message { min-height: 1.5em; color: #595959; font-size: 14px; }
.animation-resource-link { display: grid; gap: 10px; padding-top: 12px; border-top: 1px solid #e3e8e4; }
.animation-resource-link h4 { margin: 0; }
.animation-order-search { display: grid; gap: 8px; font-weight: 700; }
.animation-order-search input { min-width: 0; width: 100%; padding: 12px; border: 1px solid #c8cbd2; border-radius: 9px; font: inherit; }
.purchased-contents summary { cursor: pointer; font-weight: 700; }
.purchased-contents ol { max-height: 320px; overflow: auto; line-height: 1.8; padding-left: 24px; }
.animation-delivery-card { min-width: 0; overflow-wrap: anywhere; }
.sandbox-box { display: grid; gap: 10px; margin-top: 18px; padding: 18px; border: 1px dashed #d18e2c; border-radius: 12px; background: #fffaf0; }
.wechat-pay-box { display: grid; gap: 10px; margin-top: 18px; padding: 18px; border: 1px solid #b9e1c1; border-radius: 12px; background: #f1fbf3; }
.wechat-pay-box button { width: fit-content; }
.wechat-pay-box p { margin: 0; }
.wechat-qr { display: grid; justify-items: center; gap: 10px; width: fit-content; padding: 12px; border-radius: 12px; background: #fff; }
.wechat-qr img { width: min(260px, 72vw); height: auto; image-rendering: pixelated; }
.wechat-qr span { color: #343840; font-weight: 800; }
.order-review-form, .order-review-state { display: grid; gap: 12px; margin-top: 20px; padding: 22px; border: 1px solid #e2e3e7; border-radius: 14px; background: #fff; }
.order-review-form h2 { margin: 0; font-size: 22px; }
.order-review-form p, .order-review-state p { margin: 0; color: #595959; }
.order-review-form label { font-weight: 800; }
.order-review-form select, .order-review-form textarea { width: 100%; padding: 12px; border: 1px solid #c8cbd2; border-radius: 10px; font: inherit; }
.order-review-form textarea { min-height: 110px; resize: vertical; }
.order-review-form button { width: fit-content; }
.order-review-state span { color: #dd8b00; font-size: 22px; }
.order-review-state p { white-space: pre-wrap; overflow-wrap: anywhere; }
@media (max-width: 560px) { .order-lookup > div { grid-template-columns: 1fr; } .order-summary dl { grid-template-columns: 1fr; gap: 3px; } .delivery-file { grid-template-columns: 1fr; gap: 4px; } }
