/* Receipt/fulfillment editor: cart-identical totals and one visible receive-method label. */
#checkoutEditorSummary{background:transparent!important;border-radius:0!important;padding:4px 0 10px!important}
#checkoutEditorSummary .checkout-receive-total-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;width:100%;align-items:start}
#checkoutEditorSummary .checkout-receive-total-grid>div{display:flex;flex-direction:column;gap:9px;min-width:0}
#checkoutEditorSummary .checkout-receive-total-grid>div:nth-child(2){align-items:center;text-align:center}
#checkoutEditorSummary .checkout-receive-total-grid>div:last-child{align-items:flex-end;text-align:right}
#checkoutEditorSummary .checkout-receive-total-grid span{font-weight:750;color:#46556b;font-size:clamp(12px,3.25vw,15px);white-space:nowrap}
#checkoutEditorSummary .checkout-receive-total-grid b,
#checkoutEditorSummary .checkout-receive-total-grid strong{font-size:clamp(14px,4.2vw,20px);font-weight:900;white-space:nowrap;letter-spacing:-.5px;font-variant-numeric:tabular-nums}
#checkoutEditorSummary .checkout-receive-discount{color:#a61b1b}
#checkoutEditorSummary .checkout-receive-total-grid strong{color:#c92a28}
#checkoutEditorModal .receive-method-sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
@media(max-width:360px){#checkoutEditorSummary .checkout-receive-total-grid{gap:3px}#checkoutEditorSummary .checkout-receive-total-grid span{font-size:11px}#checkoutEditorSummary .checkout-receive-total-grid b,#checkoutEditorSummary .checkout-receive-total-grid strong{font-size:13px}}

/* Delivery choices replace the native select after the buttons are mounted. */
#hallaDeliveryMethods{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;width:100%;margin:12px 0}
#hallaDeliveryMethods button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;min-width:0;min-height:76px;margin:0;padding:12px 4px;border:2px solid #d9e3dd;border-radius:14px;background:#fff;color:#14283f;font:inherit;font-size:clamp(12px,3.5vw,16px);line-height:1.3;cursor:pointer;box-sizing:border-box}
#hallaDeliveryMethods button span{font-size:24px}
#hallaDeliveryMethods button b{white-space:nowrap}
#hallaDeliveryMethods button[aria-pressed="true"]{border-color:#0e3a2b;background:#0e3a2b;color:#fff}
#hallaDeliveryMethods button:focus-visible{outline:3px solid #087ff5;outline-offset:3px}
#hallaPaidDeliveryBlock[hidden]{display:none!important}
#hallaPaidDeliveryBlock .halla-paid-fields{display:grid;gap:10px;min-width:0;margin-top:12px;padding:14px;border:1px solid #d6e5de;border-radius:14px;background:#f5faf7;color:#14283f}
#hallaPaidDeliveryBlock h3,#hallaPaidDeliveryBlock p{margin:0;line-height:1.5}
#hallaPaidDeliveryBlock label{display:grid;gap:6px}
#hallaPaidDeliveryBlock input{width:100%;min-width:0;box-sizing:border-box}
#hallaPaidQuoteDetails>div{display:flex;justify-content:space-between;gap:10px;padding:7px 0;border-bottom:1px solid #d6e5de;font-size:14px}
#hallaPaidQuoteDetails>div:last-child{font-weight:800;color:#0e3a2b}

/* Customer information sits between the method card and receipt date. */
#checkoutEditorModal .checkout-editor-panel[data-panel="customer"]{gap:0}
#checkoutCustomerFields{padding:17px 0 8px;margin:0;display:grid;gap:12px}
#checkoutCustomerFields h3{margin:0;font-size:17px;color:#14283f}
#checkoutCustomerFields label{display:grid;gap:7px;font-size:13px;font-weight:750;min-width:0}
#checkoutCustomerFields .checkout-contact-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
#checkoutCustomerFields input{font-size:16px;padding:12px 10px;background:#fff;color:#14283f}
#checkoutCustomerFields input[readonly]{background:#edf2ef;color:#4c6256;font-size:14px}
#checkoutCustomerFields #addressSearchFields{padding:0;margin:0;border:0;background:transparent}
#checkoutCustomerFields #localDeliveryDetails{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:12px}
.checkout-unit-input{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:8px;min-width:0}
#checkoutCustomerFields .checkout-unit-input input{padding-right:10px}
.checkout-unit-input span{color:#627268;font-size:15px;white-space:nowrap}
#hallaPaidAddressFields{display:grid;gap:8px;margin:0}
#hallaPaidAddressFields[hidden]{display:none!important}
.checkout-road-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px}
#hallaPaidSearchBtn{padding:10px;font-size:13px;white-space:nowrap;margin:0}
#hallaPaidQuoteBtn{font-size:12px;padding:6px 10px;margin:0}
#hallaPaidStatus{margin:0;font-size:12px;line-height:1.5}
#hallaPaidQuoteDisclosure{font-size:12px}
#checkoutRequests.checkout-extra{padding:6px 13px!important;margin:0 0 16px!important;background:#fff}
#checkoutRequests summary{font-size:14px;line-height:1.4}
#checkoutRequests textarea{margin-top:0;min-height:88px;font-size:16px}
#checkoutEditorModal .checkout-receive-first{margin-bottom:0!important}

/* Reduce stacked margins and empty legacy rows in the fulfillment editor. */
#checkoutEditorModal .checkout-receive-first{gap:8px;margin:0!important;padding:12px!important}
#checkoutEditorModal .checkout-receive-first>div:has(>#deliveryRuleText){display:none!important}
#checkoutEditorModal #hallaDeliveryMethods{margin:0;gap:8px}
#checkoutEditorModal #hallaPickupGuide,#checkoutEditorModal #hallaFreeDeliveryGuide{margin:0!important;padding:10px!important}
#checkoutEditorModal #hallaPickupGuide h3,#checkoutEditorModal #hallaFreeDeliveryGuide h3{margin-bottom:4px!important}
#checkoutEditorModal #hallaPaidDeliveryBlock .halla-paid-fields{margin-top:0;padding:10px;gap:6px}
#checkoutEditorModal #checkoutCustomerFields{padding:12px 0 6px;gap:8px}
#checkoutEditorModal #checkoutCustomerFields label{gap:4px}
#checkoutEditorModal #checkoutCustomerFields #addressSearchFields>label{margin-top:0}
#checkoutEditorModal #checkoutCustomerFields #localDeliveryDetails{margin-top:8px}
#checkoutEditorModal #checkoutRequests{margin:0 0 8px!important}
#checkoutEditorModal .checkout-date-section{margin:0!important;padding:10px!important}
#checkoutEditorModal .checkout-date-help{margin-bottom:6px}
#checkoutEditorModal .checkout-date-panel{padding:8px}
#checkoutEditorModal .checkout-time-field{margin-top:8px;padding-top:8px}
#checkoutEditorModal .checkout-editor-footer{padding-top:8px}

#checkoutEditorModal .checkout-date-help{display:none!important}
#checkoutPickupTimeButton{display:block;width:100%;margin:8px 0 0;text-align:left}
#checkoutPickupTimeButton[hidden],.checkout-pickup-modal[hidden]{display:none!important}
.checkout-pickup-modal{position:fixed;inset:0;z-index:12000;background:#0008;display:flex;align-items:center;justify-content:center;padding:16px;box-sizing:border-box}
.checkout-pickup-modal>section{width:min(400px,100%);max-height:85dvh;overflow:auto;border-radius:18px;background:#fff;color:#14283f;padding:18px;box-sizing:border-box}
.checkout-pickup-head{display:flex;align-items:center;justify-content:space-between;gap:8px}
.checkout-pickup-head h3{margin:0;font-size:19px}
#checkoutPickupTimeBody .checkout-time-field{display:block!important;margin:12px 0;padding:0;border:0}
#checkoutPickupTimeBody select{width:100%;min-height:48px;font:inherit;padding:12px;border:1px solid #d0dbd4;border-radius:10px;box-sizing:border-box}
#checkoutPickupTimeDone{width:100%;margin:0}

#checkoutPriceDateNotice{display:none!important}
#checkoutPickupTimeBody [hidden]{display:none!important}
#paidDeliveryTimeBody{display:grid;gap:10px;margin-top:12px}
#paidDeliveryTimeBody .paid-time-mode{display:flex;align-items:center;gap:9px;padding:12px;border:1px solid #d0dbd4;border-radius:10px}
#paidDeliveryTimeBody input[type=radio]{width:18px;height:18px;margin:0;accent-color:#0e3a2b}
#paidDeliveryTimeSelectWrap{display:grid;gap:6px;font-size:14px}
#hallaPaidDeliveryBlock .halla-paid-guide-list{margin:0;padding-left:18px;font-size:14px;line-height:1.6}
#hallaPaidQuoteFeedback{display:grid;gap:8px;margin-top:8px}
#hallaPaidQuoteFeedback[hidden]{display:none!important}
#hallaPaidQuoteFeedback>button[hidden],#hallaPaidQuoteFeedback>p[hidden]{display:none!important}

/* One vertical amount breakdown at the end of fulfillment information. */
#checkoutOrderTotals{margin-top:12px;padding:14px;border:1px solid #d8e3dc;border-radius:12px;background:#fff;color:#173c2e}
#checkoutOrderTotals h3{margin:0 0 10px;font-size:17px}
#checkoutOrderTotals dl{margin:0;display:grid;gap:9px}
#checkoutOrderTotals dl>div{display:flex;align-items:baseline;justify-content:space-between;gap:12px}
#checkoutOrderTotals dt{font-size:14px}
#checkoutOrderTotals dd{margin:0;white-space:nowrap;font-size:15px;font-weight:750;font-variant-numeric:tabular-nums}
#checkoutOrderTotals .checkout-order-discount dd{color:#ba2525}
#checkoutOrderTotals .checkout-order-grand-total{margin-top:2px;padding-top:11px;border-top:1px solid #dce5df;font-weight:850}
#checkoutOrderTotals .checkout-order-grand-total dt,#checkoutOrderTotals .checkout-order-grand-total dd{font-size:18px}

/* Required consent follows the final amount breakdown. */
#checkoutRequiredConsent{display:grid;gap:0;margin-top:14px}
#checkoutRequiredConsent .checkout-agree-all{display:flex;align-items:center;gap:10px;padding:10px 0;font-size:17px;font-weight:850;border-bottom:1px solid #dce5df}
#checkoutRequiredConsent input[type=checkbox]{width:22px;height:22px;flex:0 0 22px;margin:0;accent-color:#0e3a2b}
#checkoutRequiredConsent #privacyCard,#checkoutRequiredConsent .legal-consent-card{margin:0;padding:10px 0;border:0;border-bottom:1px solid #e4e9e6;border-radius:0;background:transparent}
#checkoutRequiredConsent #privacyCard{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:start;gap:6px}
#checkoutRequiredConsent .privacy-title,#checkoutRequiredConsent #privacySummary,#checkoutRequiredConsent #privacyCard>.inline-policy-link{display:none!important}
#checkoutRequiredConsent .privacy-check{display:flex;gap:10px;align-items:center;margin:0;font-size:14px}
#checkoutRequiredConsent .privacy-details{margin:0;padding:0;border:0;background:transparent}
#checkoutRequiredConsent .privacy-details[open]{grid-column:1/-1}
#checkoutRequiredConsent .privacy-details summary{color:#173c2e;text-decoration:underline;text-align:right;font-size:14px}
#checkoutRequiredConsent .checkout-policy-links{justify-content:flex-end;margin-top:6px}

/* Compact consent card matching the existing checkout form. */
#checkoutRequiredConsent{margin-top:12px;padding:4px 12px;background:#f8fbf9;border:1px solid #d8e3dc;border-radius:12px;gap:0}
#checkoutRequiredConsent .checkout-agree-all{display:flex!important;align-items:center!important;gap:9px!important;min-height:46px;padding:8px 0!important;margin:0!important;border:0!important;border-bottom:1px solid #dce5df!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;font-size:15px!important;line-height:1.4!important}
#checkoutRequiredConsent #privacyCard,#checkoutRequiredConsent .checkout-consent-row{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;align-items:center!important;gap:6px 10px!important;min-height:46px;margin:0!important;padding:8px 0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important}
#checkoutRequiredConsent #privacyCard{border-bottom:1px solid #e1e8e3!important}
#checkoutRequiredConsent .checkout-consent-label{display:flex!important;align-items:center!important;gap:9px!important;min-width:0!important;min-height:28px!important;width:auto!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;font-size:13px!important;font-weight:650!important;line-height:1.5!important}
#checkoutRequiredConsent .checkout-consent-label span{flex:1;min-width:0;font-size:13px!important;line-height:1.5!important;color:#173c2e}
#checkoutRequiredConsent input[type=checkbox]{appearance:auto!important;-webkit-appearance:checkbox!important;width:20px!important;height:20px!important;min-height:20px!important;min-width:20px!important;flex:0 0 20px!important;margin:0!important;padding:0!important;border-radius:4px!important;accent-color:#0e3a2b}
#checkoutRequiredConsent .checkout-consent-details{margin:0!important;padding:0!important;border:0!important;background:transparent!important;min-width:0}
#checkoutRequiredConsent .checkout-consent-details summary{list-style:none!important;padding:4px 0!important;margin:0!important;font-size:12px!important;font-weight:600!important;line-height:1.5!important;color:#557466!important;text-decoration:underline;text-align:right;white-space:nowrap}
#checkoutRequiredConsent .checkout-consent-details summary::-webkit-details-marker{display:none}
#checkoutRequiredConsent .checkout-consent-details[open]{grid-column:1/-1}
#checkoutRequiredConsent .privacy-detail-body{padding:8px 0 0;font-size:12px;line-height:1.5}
#checkoutRequiredConsent .checkout-policy-links{display:flex;flex-wrap:wrap;gap:6px 12px;justify-content:flex-start;margin:6px 0 0}
#checkoutRequiredConsent .checkout-policy-links button{font-size:12px!important;margin:0!important;padding:4px 0!important}
#checkoutEditorModal .submit-help{font-size:12px;margin:6px 0!important;padding:0!important;line-height:1.5}

/* Required fields and revised checkout reading order. */
#checkoutEditorModal .checkout-required-title{display:block;font-size:14px;font-weight:650}
#checkoutEditorModal .checkout-required-title .required-badge,#checkoutRequiredConsent .required-badge{display:inline-block;margin-left:4px;padding:2px 6px;font-size:11px!important;line-height:1.3!important;color:#b42323;background:#ffe5e5;border-radius:12px;vertical-align:middle}
#checkoutEditorModal .checkout-unit-input{position:relative}
#checkoutEditorModal .checkout-unit-input>.required-badge{position:absolute;top:-5px;right:32px;font-size:10px;padding:1px 5px;z-index:1}
#checkoutEditorModal #paidDeliveryDetailLabel{font-size:14px;font-weight:650;margin:2px 0 0}
#checkoutEditorModal #checkoutCustomerFields{padding-top:8px}

/* Group markers persist when fulfillment scripts refresh heading text. */
#checkoutEditorModal .receive-method-heading strong::after,
#checkoutEditorModal .checkout-date-title::after,
#checkoutEditorModal #checkoutCustomerHeading::after{content:"필수";display:inline-block;margin-left:8px;padding:2px 7px;border-radius:12px;background:#ffe5e5;color:#b42323;font-size:11px;font-weight:700;line-height:1.4;vertical-align:middle;white-space:nowrap}
