/* Image-order page-specific UI and image export styles.
   Shared shell: css/app-shell.css
   Form alignment: css/bulk-shell.css
   Text-order-only: css/single.css
   This file is the ONLY home for image-order page overrides and exported-image styling. */

/* Product picker / form */
.bulk-dropdown-items{padding:8px 0 4px}.bulk-picker-row{display:grid;grid-template-columns:minmax(0,1fr) 88px 38px;gap:9px;align-items:center;margin:0 0 12px}.bulk-picker-row .item-select{width:100%;min-width:0}.bulk-picker-row .qty-select{width:100%;min-width:0}.bulk-picker-remove{border:1px solid #ddd;background:#fff;border-radius:8px;min-height:42px;font-size:18px}.bulk-picker-row select{min-height:44px}.bulk-dropdown-items .sub-btn{margin-top:4px}@media(max-width:430px){.bulk-picker-row{grid-template-columns:minmax(0,1fr) 72px 34px;gap:6px}}

/* Product picker / form */
.bulk-field-help{font-size:13px;line-height:1.65;color:#626d65;margin:0 0 8px;font-weight:400}
  .bulk-returning-note{display:flex;flex-direction:column;gap:5px;margin:0 0 21px;padding:13px 15px;border:1px solid #b8c9bd;border-left:4px solid #7b9b86;border-radius:8px;background:#f2f7f3;color:#304438}
  .bulk-returning-note>strong,.bulk-returning-note>span{font-size:14px;line-height:1.75}
  .bulk-returning-note span strong{font-weight:700}

/* Product picker / form */
.bulk-order-page #formSection .bulk-footer-actions{display:flex;gap:8px;flex:1;min-width:0}
.bulk-order-page #formSection .bulk-footer-actions .btn-add,.bulk-order-page #formSection .bulk-footer-actions .bulk-footer-export{flex:1;min-width:0;width:auto!important;margin:0!important;display:flex;align-items:center;justify-content:center;text-align:center;font-size:clamp(11px,2.9vw,14px)!important;line-height:1.35;padding:12px 7px!important;white-space:normal}
.bulk-order-page #formSection .bulk-footer-actions .bulk-footer-export{background:#2e5541!important;color:#fff!important;border:1px solid #2e5541!important;border-radius:8px;font-weight:700;cursor:pointer}
.bulk-order-page #formSection .bulk-footer-actions .bulk-footer-export.display-none{display:none!important}
@media(max-width:600px){.bulk-order-page #formSection .footer-content{flex-wrap:wrap!important}.bulk-order-page #formSection .bulk-footer-actions{width:100%;flex-basis:100%}}

/* Export image */
/* Preview-only: legible order sheet for manual headquarters entry */
.bulk-order-page .order-image-sheet{font-family:"Noto Sans JP",sans-serif!important;background:#fff!important;color:#25332b!important;border:1px solid #cad8ce!important;border-radius:12px!important;padding:22px!important;box-shadow:none!important;line-height:1.65}
.bulk-order-page .order-image-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;border-bottom:2px solid #35654c;padding-bottom:14px;margin-bottom:15px}
.bulk-order-page .order-image-kicker{display:block;font-size:11px;color:#527360;font-weight:600}
.bulk-order-page .order-image-heading h3{font-size:20px!important;margin:2px 0 0!important;color:#214b36!important;line-height:1.35}
.bulk-order-page .order-image-date{text-align:right;font-size:11px;color:#65746b;flex-shrink:0}
.bulk-order-page .order-image-date strong{color:#243f30;font-size:13px}
.bulk-order-page .order-image-identity{display:grid;grid-template-columns:1fr 1fr;gap:12px;padding:12px 14px;margin:0 0 17px;border-radius:8px;background:#edf4ee}
.bulk-order-page .order-image-field{display:flex;flex-direction:column;gap:2px;min-width:0;overflow-wrap:anywhere}
.bulk-order-page .order-image-field>span{font-size:11px;color:#65766a;font-weight:500}
.bulk-order-page .order-image-field>strong{font-size:14px;font-weight:700;color:#20392a}
.bulk-order-page .order-image-identity .order-image-field>strong{font-size:17px}
.bulk-order-page .order-image-section{margin:0 0 17px}
.bulk-order-page .order-image-section h4{font-size:13px;font-weight:700;color:#28563b;margin:0 0 9px;padding-bottom:5px;border-bottom:1px solid #d6e2d8}
.bulk-order-page .order-image-details{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 16px}
.bulk-order-page .order-image-products{width:100%!important;margin:0!important;border-collapse:collapse!important;table-layout:auto!important}
.bulk-order-page .order-image-products th{background:#eaf2eb!important;color:#304a37!important;font-size:11px!important;padding:9px 6px!important;border-bottom:1px solid #cbd8ce!important}
.bulk-order-page .order-image-products td{font-size:12px!important;padding:10px 6px!important;border-bottom:1px solid #e2e9e3!important;color:#29362d!important}
.bulk-order-page .order-image-products th:first-child,.bulk-order-page .order-image-products td:first-child{text-align:left!important}
.bulk-order-page .order-image-products th:not(:first-child),.bulk-order-page .order-image-products td:not(:first-child){white-space:nowrap}
.bulk-order-page .order-image-totals{background:#f4f8f4;border-top:2px solid #35654c;padding:12px 14px;border-radius:0 0 8px 8px;font-size:12px}
.bulk-order-page .order-image-totals>div{display:flex;justify-content:space-between;gap:12px;margin:4px 0;font-size:12px!important;color:#36483b!important}
.bulk-order-page .order-image-totals>div>span:last-child,.bulk-order-page .order-image-totals>div>strong{font-weight:700}
@media(max-width:450px){.bulk-order-page .order-image-sheet{padding:14px!important}.bulk-order-page .order-image-heading h3{font-size:17px!important}.bulk-order-page .order-image-identity{gap:7px;padding:10px}.bulk-order-page .order-image-identity .order-image-field>strong{font-size:14px}.bulk-order-page .order-image-products td{font-size:11px!important}}

/* Export image */
.bulk-order-page #completeSection .btn-card-download{display:flex!important;align-items:center;justify-content:center;width:100%!important;max-width:none!important;min-height:48px;margin:12px 0 30px!important;padding:13px 20px!important;background:#315b43!important;color:#fff!important;border:1px solid #315b43!important;border-radius:9px!important;box-shadow:none!important;font-family:"Noto Sans JP",sans-serif!important;font-size:14px!important;font-weight:700!important;letter-spacing:0!important;cursor:pointer;transition:background .2s}
.bulk-order-page #completeSection .btn-card-download:hover{background:#244a34!important}
.bulk-order-page #completeSection .btn-card-download:disabled{opacity:.6;cursor:wait}
.bulk-order-page .order-image-members{background:#edf4ee;border-radius:8px;padding:13px 15px;margin:0 0 17px;font-size:12px;line-height:1.9;color:#314538}
.bulk-order-page #completeSection .card-wrapper{margin-bottom:20px}

/* Payment and flow */
.bulk-order-page .bulk-payment-heading{display:flex;justify-content:flex-end;margin-bottom:9px}
.bulk-order-page .bulk-reset-payment{font:inherit;font-size:12px;background:#fff;color:#4e6555;border:1px solid #b8c9bd;border-radius:7px;padding:7px 11px;cursor:pointer}
.bulk-order-page .bulk-combined-member{border-bottom:1px solid #dce7de;padding:14px 0}
.bulk-order-page .bulk-combined-member:last-child{border-bottom:0}
.bulk-order-page .bulk-combined-member-head{display:flex;justify-content:space-between;gap:10px;align-items:baseline;font-size:14px;font-weight:700;color:#264a34}
.bulk-order-page .bulk-combined-member-meta{font-size:12px;color:#4b6052;margin:8px 0}
.bulk-order-page .bulk-combined-member-items{font-size:12px;margin:7px 0 10px}
.bulk-order-page .bulk-combined-member-items>div{display:flex;justify-content:space-between;gap:10px;padding:4px 0}
.bulk-order-page .bulk-combined-member-total{text-align:right;font-size:13px;font-weight:700}
.bulk-order-page .bulk-combined-summary{display:flex;justify-content:space-between;background:#edf4ee;border-radius:8px;padding:13px;margin-top:12px;font-weight:700}

/* Payment and flow */
.bulk-order-page .bulk-stage-one-action{margin:18px 0 10px}
.bulk-order-page .bulk-stage-one-action .btn-add{width:100%;min-height:49px}
.bulk-order-page .bulk-stage-one-next{margin:14px 0 120px}
.bulk-order-page #bulkGoPayment,.bulk-order-page .bulk-final-export{width:100%;min-height:52px;background:#315b43;border:1px solid #315b43;border-radius:9px;color:#fff;font:inherit;font-weight:700;cursor:pointer}
.bulk-order-page #bulkGoPayment:disabled{opacity:.4;cursor:not-allowed}
.bulk-order-page .bulk-stage-back{margin:14px 0}
.bulk-order-page .bulk-stage-back button{background:none;border:0;color:#315b43;font:inherit;cursor:pointer}
.bulk-order-page .bulk-final-export{margin:16px 0 32px}
.bulk-order-page.bulk-final-step #topOfForm,.bulk-order-page.bulk-final-step .bulk-products-card,.bulk-order-page.bulk-final-step .bulk-member-utility,.bulk-order-page.bulk-final-step .bulk-stage-one-action,.bulk-order-page.bulk-final-step .bulk-stage-one-next,.bulk-order-page.bulk-final-step .footer-bar{display:none!important}
.bulk-order-page.bulk-final-step #bulkFinalStage{display:block!important}
.bulk-order-page:not(.bulk-final-step) #bulkFinalStage{display:none!important}

/* Footer and spacing */
/* 固定フッターに入力内容・追加済み注文が隠れないよう余白を確保 */
.bulk-order-page #orderForm{padding-bottom:190px!important}
.bulk-order-page #orderListContainer{scroll-margin-bottom:190px}
.bulk-order-page .bulk-stage-one-next{margin-bottom:28px!important}
@media(max-width:600px){.bulk-order-page #orderForm{padding-bottom:220px!important}}

/* Footer and spacing */
.bulk-order-page #formSection .bulk-footer-actions .bulk-footer-next{flex:1;min-width:0;min-height:46px;padding:9px 7px;border:1px solid #315b43;border-radius:8px;background:#315b43;color:#fff;font:inherit;font-size:14px;font-weight:700;line-height:1.4;cursor:pointer}
.bulk-order-page #formSection .bulk-footer-actions .bulk-footer-next.display-none{display:none!important}
.bulk-order-page #formSection .bulk-footer-actions #bulkFooterAdd{font-size:14px!important;padding:9px 7px!important;line-height:1.4}

/* Shared payment image */
.bulk-order-page .bulk-combined-info{background:#f6f9f6;border:1px solid #e1eae2;border-radius:8px;padding:11px 14px}
.bulk-order-page .bulk-combined-info-row{display:flex;justify-content:space-between;gap:14px;padding:5px 0;font-size:12px;color:#364b3b}
.bulk-order-page .bulk-combined-info-row strong{font-weight:700;overflow-wrap:anywhere;text-align:right}

/* Guided bulk-order workflow and consistent text-order cards */
.bulk-order-page #formSection .bulk-products-card{background:#fff!important;border:1px solid #e3e3e3!important;border-radius:12px!important;padding:20px!important;margin-bottom:20px!important;box-shadow:none!important}
.bulk-order-page #formSection .bulk-products-card .section-title{margin-top:0!important}
.bulk-order-page #formSection .footer-totals{font-size:15px!important;line-height:1.5!important}
.bulk-order-page #formSection .footer-totals #displayPrice{font-size:clamp(21px,5vw,27px)!important;font-weight:700!important}
.bulk-order-page #formSection .footer-subtext{font-size:clamp(13px,3.3vw,16px)!important;line-height:1.55!important}
.bulk-order-page #formSection .footer-subtext #displaySubtotal,.bulk-order-page #formSection .footer-subtext #displayPt{font-size:inherit!important;font-weight:700!important}
.bulk-order-page #formSection .bulk-flow-hint{font-size:12px!important;font-weight:500;color:#52715c;margin-bottom:4px}
.bulk-order-page #formSection .bulk-footer-actions .bulk-another-member{flex:1;min-width:0;min-height:48px;background:#fff;color:#315b43;border:1px solid #aebfb2;border-radius:9px;font:inherit;font-weight:700;padding:9px;cursor:pointer}
.bulk-order-page #formSection .bulk-footer-actions .display-none{display:none!important}
@media(max-width:600px){.bulk-order-page #formSection .bulk-products-card{padding:17px!important}.bulk-order-page #formSection .bulk-footer-actions{flex-direction:column}.bulk-order-page #formSection .footer-totals{width:100%}}

/* Compact footer and receipt table */
.bulk-order-page #formSection .footer-totals{width:100%;line-height:1.4!important}
.bulk-order-page #formSection .footer-totals #displayPrice{font-size:23px!important}
.bulk-order-page #formSection .footer-subtext{font-size:13px!important}
.bulk-order-page #formSection .bulk-flow-hint{width:100%;font-size:12px!important;margin:0!important}
.bulk-order-page #formSection .bulk-footer-actions{width:100%;flex:unset!important}
.bulk-order-page .bulk-combined-table{width:100%;border-collapse:collapse;table-layout:fixed}
.bulk-order-page .bulk-combined-table th{background:#edf4ee;color:#31543d;font-size:12px;padding:9px 5px;text-align:left;border-bottom:1px solid #cbd9ce}
.bulk-order-page .bulk-combined-table td{font-size:14px;padding:10px 5px;border-bottom:1px solid #dfe8e1;overflow-wrap:anywhere}
.bulk-order-page .bulk-combined-table th:first-child,.bulk-order-page .bulk-combined-table td:first-child{width:42%;font-weight:600}
.bulk-order-page .bulk-combined-table th:nth-child(2),.bulk-order-page .bulk-combined-table td:nth-child(2){width:12%;text-align:center}
.bulk-order-page .bulk-combined-table th:nth-child(3),.bulk-order-page .bulk-combined-table td:nth-child(3){width:23%;text-align:right}
.bulk-order-page .bulk-combined-table th:nth-child(4),.bulk-order-page .bulk-combined-table td:nth-child(4){width:23%;text-align:right}
@media(max-width:450px){.bulk-order-page .bulk-combined-table td{font-size:12px;padding:8px 3px}.bulk-order-page .bulk-combined-table th{font-size:11px;padding:8px 3px}}

.bulk-order-page #formSection #bulkFooterAdd:disabled{opacity:.38!important;cursor:not-allowed!important;box-shadow:none!important}
.bulk-order-page #formSection .footer-bar{padding-top:15px!important;padding-bottom:18px!important}
.bulk-order-page #formSection .footer-content{row-gap:11px!important}
.bulk-order-page #formSection .bulk-footer-actions button{min-height:52px!important}
.bulk-order-page #orderForm{padding-bottom:260px!important}

.bulk-order-page .order-image-sheet .bulk-receipt-name,.bulk-order-page .order-image-sheet .bulk-receipt-name span,.bulk-order-page .order-image-sheet .bulk-receipt-name strong{font-weight:800!important}
.bulk-order-page #completeSection .bulk-pdf-download{display:block;width:100%;min-height:46px;margin:0 0 30px;padding:12px 16px;background:#fff;color:#315b43;border:1px solid #aebfb2;border-radius:9px;font:inherit;font-size:14px;font-weight:700;cursor:pointer}
.bulk-order-page #completeSection .btn-card-download{margin-bottom:10px!important}

/* Keep output-only controls hidden before generation; style revision action. */
.bulk-order-page #completeSection.display-none{display:none!important}
.bulk-order-page #completeSection .bulk-revise-order{display:flex;align-items:center;justify-content:center;width:100%;min-height:48px;margin:20px 0 24px;padding:12px 16px;border:1px solid #315b43;border-radius:10px;background:#fff;color:#315b43;font:700 14px/1.5 "Noto Sans JP",sans-serif;box-shadow:none;cursor:pointer}
.bulk-order-page #completeSection .bulk-revise-order:hover{background:#edf4ee}

/* Payment-step order review dialog */
.bulk-order-page .bulk-review-trigger{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;margin:0 0 20px;padding:17px 19px;background:#fff;border:1.5px solid #aeb8b1;border-radius:12px;box-shadow:3px 4px 0 rgba(83,99,89,.075);color:#25533e;font:700 16px/1.5 "Noto Sans JP",sans-serif;text-align:left;cursor:pointer}
.bulk-order-page .bulk-review-trigger span:last-child{font-size:25px;line-height:1}
.bulk-review-dialog{width:min(92vw,560px);max-height:min(80vh,760px);padding:0;border:1px solid #cbd8cf;border-radius:16px;box-shadow:0 20px 60px rgba(18,39,28,.24);color:#263d30}
.bulk-review-dialog::backdrop{background:rgba(14,30,23,.55)}
.bulk-review-dialog-inner{padding:20px;overflow-y:auto;max-height:80vh}
.bulk-review-dialog-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:18px}
.bulk-review-dialog-head h2{font-size:19px;margin:0;color:#25533e}
.bulk-review-close{width:40px;height:40px;border:1px solid #d3dfd6;border-radius:50%;background:#fff;font-size:26px;color:#315b43;cursor:pointer}
.bulk-review-member{padding:16px 0;border-top:1px solid #d9e3dc}
.bulk-review-member h3{font-size:16px;margin:0 0 4px}
.bulk-review-id{font-size:12px;color:#61766a;margin:0 0 12px}
.bulk-review-item{display:flex;flex-direction:column;gap:3px;padding:9px 0;border-bottom:1px solid #edf1ee;font-size:14px;overflow-wrap:anywhere}
.bulk-review-item small{color:#61766a;font-size:12px}
.bulk-review-total{font-weight:700;text-align:right;margin-top:12px;color:#25533e}
.bulk-review-done{width:100%;min-height:48px;margin-top:14px;border:0;border-radius:9px;background:#315b43;color:#fff;font:700 15px "Noto Sans JP",sans-serif;cursor:pointer}

/* Existing added orders are the review entry points on the payment step. */
.bulk-order-page .bulk-review-list-card{margin:0 0 20px;padding:18px;background:#fff;border:1.5px solid #aeb8b1;border-radius:12px;box-shadow:3px 4px 0 rgba(83,99,89,.075)}
.bulk-order-page .bulk-review-list-card h2{margin:0 0 6px;font-size:17px;line-height:1.5;color:#25533e}
.bulk-order-page .bulk-review-hint{margin:0 0 14px;font-size:12px;color:#65766b}
.bulk-order-page .bulk-review-order-list{display:grid;gap:9px}
.bulk-order-page .bulk-review-order-row{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;min-height:70px;padding:12px 14px;border:1px solid #d5ddd7;border-radius:10px;background:#fafbfa;color:#27392e;text-align:left;font-family:"Noto Sans JP",sans-serif;cursor:pointer}
.bulk-order-page .bulk-review-order-row:hover,.bulk-order-page .bulk-review-order-row:focus-visible{background:#eff5f0;border-color:#8ba795}
.bulk-order-page .bulk-review-order-info{display:flex;flex-direction:column;gap:4px;min-width:0}
.bulk-order-page .bulk-review-order-info strong{font-size:14px;overflow-wrap:anywhere}
.bulk-order-page .bulk-review-order-info small{font-size:12px;line-height:1.5;color:#637568;overflow-wrap:anywhere}
.bulk-order-page .bulk-review-order-arrow{flex:none;font-size:26px;color:#315b43}

/* Reuse the original order list on the payment step instead of duplicating it. */
.bulk-order-page #bulkFinalStage #orderListContainer{display:block!important;margin:12px 0 22px!important;padding:18px!important;background:var(--order-card-background,#fff)!important;border:var(--order-card-border-width,1.5px) solid var(--order-card-border,#aeb8b1)!important;border-radius:var(--order-card-radius,12px)!important;box-shadow:var(--order-card-shadow,3px 4px 0 rgba(83,99,89,.075))!important}
.bulk-order-page #bulkFinalStage #orderListContainer .bulk-added-order-delete{display:inline-flex!important;align-items:center;justify-content:center}
.bulk-order-page #formSection .bulk-added-order-content[role="button"]{cursor:pointer;border-radius:7px}
.bulk-order-page #formSection .bulk-added-order-content[role="button"]:focus-visible{outline:2px solid #315b43;outline-offset:4px}
.bulk-order-page #formSection .bulk-added-order-content[role="button"]::after{content:"タップして詳細を見る ›";display:block;margin-top:8px;font-size:12px;font-weight:700;color:#315b43}
