.order-page {
    width: min(100% - 40px, 1280px);
    margin: 0 auto;
    background: #ffffff;
    padding: 42px 15px 80px;
}

.order-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin: 0;
    padding: 0 0 26px;
    border-bottom: 1px solid #202124;
}

.order-head h1 {
    margin: 0;
    color: #202124;
    font-size: 32px;
    line-height: 1.35;
    font-weight: 600;
}

.order-steps {
    display: flex;
    align-items: center;
    gap: 18px;
    margin: 0;
    padding: 0;
    color: #8a929d;
    font-size: 14px;
    list-style: none;
}

.order-steps li {
    position: relative;
    white-space: nowrap;
}

.order-steps li + li::before {
    position: absolute;
    top: 50%;
    left: -12px;
    width: 5px;
    height: 5px;
    border-top: 1px solid #a8afb8;
    border-right: 1px solid #a8afb8;
    transform: translateY(-50%) rotate(45deg);
    content: "";
}

.order-steps .is-active {
    color: #202124;
    font-weight: 700;
}

/* 바로구매(mode=direct): 장바구니 단계·링크 숨김 */
.order-page.is-direct-order [data-order-step-cart],
.order-page.is-direct-order [data-order-back-cart] {
    display: none !important;
}

.order-page.is-direct-order [data-order-step-checkout]::before {
    content: none;
}

/* 배송지 선택/추가 모달 */
body.is-order-address-modal-open {
    overflow: hidden;
}

.order-address-modal {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.order-address-modal[hidden] {
    display: none !important;
}

.order-address-modal__backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    background: rgba(15, 18, 28, 0.48);
    cursor: pointer;
}

.order-address-modal__panel {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    width: min(100%, 560px);
    max-height: min(88vh, 720px);
    overflow: hidden;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 16px 48px rgba(15, 18, 28, 0.18);
}

.order-address-modal__panel--form {
    max-height: min(92vh, 780px);
    overflow: auto;
}

.order-address-modal__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 22px 22px 14px;
    border-bottom: 1px solid #edf0f4;
}

.order-address-modal__head h2 {
    margin: 0;
    color: #202124;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.35;
}

.order-address-modal__head p {
    margin: 6px 0 0;
    color: #7d8490;
    font-size: 13px;
    line-height: 1.45;
}

.order-address-modal__close {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border: 1px solid #e5e8ee;
    border-radius: 8px;
    background: #ffffff;
    color: #4f5661;
    cursor: pointer;
}

.order-address-modal__toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 22px 0;
}

.order-address-modal__toolbar span {
    color: #7d8490;
    font-size: 14px;
}

.order-address-modal__toolbar button {
    min-height: 40px;
    padding: 0 14px;
    border: 1px solid #202124;
    border-radius: 6px;
    background: #202124;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}

.order-address-modal__status {
    margin: 12px 22px 0;
    padding: 12px 14px;
    border-radius: 6px;
    background: #f7f8fa;
    color: #4f5661;
    font-size: 13px;
    line-height: 1.45;
}

.order-address-modal__status.is-error {
    background: rgba(221, 74, 44, 0.08);
    color: #dd4a2c;
}

.order-address-modal__list {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 14px 22px 8px;
    display: grid;
    gap: 12px;
}

.order-address-card {
    border: 1px solid #e5e8ee;
    border-radius: 10px;
    padding: 16px;
    background: #ffffff;
}

.order-address-card.is-selected {
    border-color: #dd4a2c;
    background: #fffaf8;
}

.order-address-card.is-default {
    box-shadow: inset 3px 0 0 #dd4a2c;
}

.order-address-card__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.order-address-card__head strong {
    display: block;
    color: #202124;
    font-size: 16px;
    font-weight: 700;
}

.order-address-card__head em {
    display: inline-block;
    margin-top: 4px;
    padding: 2px 8px;
    border-radius: 999px;
    background: #f3f4f6;
    color: #5f6672;
    font-size: 12px;
    font-style: normal;
    font-weight: 600;
}

.order-address-card__info {
    margin: 0 0 12px;
    color: #4f5661;
    font-size: 14px;
    line-height: 1.5;
}

.order-address-card__info p {
    margin: 0 0 4px;
}

.order-address-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.order-address-card__actions button {
    min-height: 36px;
    padding: 0 12px;
    border: 1px solid #d9dde5;
    border-radius: 6px;
    background: #ffffff;
    color: #202124;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}

.order-address-card__actions button.is-primary {
    border-color: #dd4a2c;
    background: #dd4a2c;
    color: #ffffff;
}

.order-address-card__actions button.is-danger {
    border-color: #f0c7bf;
    color: #dd4a2c;
}

.order-address-modal__foot {
    padding: 14px 22px 20px;
    border-top: 1px solid #edf0f4;
}

.order-address-modal__foot button {
    width: 100%;
    min-height: 44px;
    border: 1px solid #d9dde5;
    border-radius: 6px;
    background: #ffffff;
    color: #202124;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.order-address-editor-form {
    display: grid;
    gap: 14px;
    padding: 18px 22px 22px;
}

.order-address-editor-form__status {
    padding: 12px 14px;
    border-radius: 6px;
    background: #f7f8fa;
    color: #4f5661;
    font-size: 13px;
}

.order-address-editor-form__status.is-error {
    background: rgba(221, 74, 44, 0.08);
    color: #dd4a2c;
}

.order-address-check {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #202124;
    font-size: 14px;
    font-weight: 500;
}

.order-address-check input {
    width: 18px;
    height: 18px;
}

.order-guest-notice {
    margin: 0 0 16px;
    padding: 14px 16px;
    border: 1px solid #e5e8eb;
    border-radius: 8px;
    background: #f7f8fa;
}

.order-guest-notice strong {
    display: block;
    margin: 0 0 6px;
    color: #202124;
    font-size: 14px;
    font-weight: 700;
}

.order-guest-notice p {
    margin: 0;
    color: #4f5661;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.5;
}

.order-guest-notice a {
    color: #dd4a2c;
    font-weight: 700;
    text-decoration: underline;
}

/* 배송 요청사항: select 기본 + 직접입력 토글(작은 체크) */
.order-memo-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.order-memo-field > span:first-child {
    color: #6b7280;
    font-size: 13px;
    font-weight: 600;
}

.order-memo-field__select {
    width: 100%;
}

.order-memo-custom-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: fit-content;
    max-width: 100%;
    margin: 0;
    padding: 0;
    color: #4f5661;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.3;
    cursor: pointer;
    user-select: none;
}

.order-memo-custom-toggle input[type="checkbox"] {
    width: 14px !important;
    height: 14px !important;
    min-width: 14px !important;
    max-width: 14px !important;
    min-height: 14px !important;
    max-height: 14px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 1px solid #c5cad3 !important;
    border-radius: 3px !important;
    background: #ffffff !important;
    appearance: auto;
    flex: 0 0 14px;
    align-self: center;
    cursor: pointer;
    accent-color: #dd4a2c;
    box-sizing: border-box;
}

.order-memo-custom-toggle span {
    flex: 0 1 auto;
    white-space: nowrap;
}

.order-memo-field [data-order-memo-custom-input],
.order-memo-field [data-order-address-editor-memo-custom-input] {
    width: 100%;
    margin: 0;
}

.order-memo-field [data-order-memo-custom-input][hidden],
.order-memo-field [data-order-address-editor-memo-custom-input][hidden] {
    display: none !important;
}

.order-memo-field select:disabled {
    background: #f7f8fa;
    color: #7d8490;
    cursor: not-allowed;
}

.order-address-editor-form__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 4px;
}

.order-address-editor-form__actions button {
    min-height: 48px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
}

.order-address-editor-form__actions button[type="button"] {
    border: 1px solid #d9dde5;
    background: #ffffff;
    color: #202124;
}

.order-address-editor-form__actions button[type="submit"] {
    border: 1px solid #dd4a2c;
    background: #dd4a2c;
    color: #ffffff;
}

@media (max-width: 720px) {
    .order-address-modal {
        padding: 0;
        align-items: flex-end;
    }

    .order-address-modal__panel {
        width: 100%;
        max-height: 92vh;
        border-radius: 16px 16px 0 0;
    }
}

.order-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 42px;
    align-items: start;
    margin: 0;
    padding: 32px 0 0;
}

.order-content {
    display: grid;
    gap: 34px;
    min-width: 0;
}

.order-message {
    padding: 14px 16px;
    border: 1px solid rgba(221, 74, 44, 0.22);
    border-radius: 6px;
    background: rgba(221, 74, 44, 0.08);
    color: #dd4a2c;
    font-size: 14px;
    line-height: 1.5;
}

.order-message.is-success {
    border-color: #e5e8ee;
    background: #fafbfc;
    color: #4b5563;
}

.order-section {
    border-bottom: 1px solid #e5e8ee;
    padding-bottom: 34px;
}

.order-section__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.order-section__head h2 {
    margin: 0;
    color: #202124;
    font-size: 22px;
    line-height: 1.35;
    font-weight: 600;
}

.order-section__head span {
    color: #7d8490;
    font-size: 14px;
}

.order-section__head button {
    min-height: 36px;
    padding: 0 14px;
    border: 1px solid #d9dde5;
    border-radius: 6px;
    background: #ffffff;
    color: #202124;
    font-size: 14px;
    font-weight: 500;
}

.order-items {
    display: grid;
    border-top: 1px solid #edf0f4;
}

.order-item {
    display: grid;
    grid-template-columns: 104px minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    padding: 22px 0;
    border-bottom: 1px solid #edf0f4;
}

.order-item__thumb {
    display: block;
    overflow: hidden;
    border-radius: 8px;
    background: #f3f4f6;
    aspect-ratio: 1 / 1;
}

.order-item__thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.order-item__body {
    min-width: 0;
}

.order-item__body p,
.order-item__body h3 {
    margin: 0;
}

.order-item__body p,
.order-item__body span,
.order-item__body em {
    color: #7b838f;
    font-size: 14px;
    font-style: normal;
}

.order-item__body h3 {
    margin-top: 6px;
    color: #202124;
    font-size: 18px;
    line-height: 1.42;
    font-weight: 700;
    word-break: keep-all;
}

.order-item__body span,
.order-item__body em {
    display: block;
    margin-top: 6px;
}

.order-item > strong {
    color: #202124;
    font-size: 18px;
    font-weight: 700;
    white-space: nowrap;
}

.order-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 16px;
}

.order-benefit {
    display: grid;
    gap: 18px 16px;
}

.order-field {
    display: grid;
    gap: 8px;
    min-width: 0;
    color: #202124;
    font-size: 14px;
    font-weight: 700;
}

.order-field--wide {
    grid-column: 1 / -1;
}

.order-field--postcode {
    max-width: 320px;
}

.order-address-search {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 96px;
    gap: 8px;
}

.order-address-search button,
.order-phone-change button {
    min-height: 48px;
    border: 1px solid #202124;
    border-radius: 6px;
    background: #202124;
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
}

.order-phone-change {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 88px;
    gap: 8px;
}

.order-phone-change button:disabled {
    border-color: #c5cad3;
    background: #c5cad3;
    color: #ffffff;
    cursor: not-allowed;
}

.order-phone-note {
    margin: 0;
    color: #7d8490;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
}

.order-phone-note.is-complete {
    color: #0f766e;
}

.order-phone-error {
    margin: 0;
    color: #dd4a2c;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
}

/* checkbox/radio 는 전체 폭·48px 높이 규칙에서 제외 (직접입력 체크 거대화 방지) */
.order-field input:not([type="checkbox"]):not([type="radio"]),
.order-field select {
    width: 100%;
    height: 48px;
    padding: 0 14px;
    border: 1px solid #d9dde5;
    border-radius: 6px;
    background: #ffffff;
    color: #202124;
    font-size: 15px;
    outline: 0;
    box-sizing: border-box;
}

.order-field input:not([type="checkbox"]):not([type="radio"]):focus,
.order-field select:focus {
    border-color: #dd4a2c;
}

.order-field input:not([type="checkbox"]):not([type="radio"]):read-only {
    background: #f7f8fa;
    color: #4f5661;
}

.order-payment {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.order-payment label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    border: 1px solid #d9dde5;
    border-radius: 6px;
    color: #202124;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.order-payment label.is-selected {
    border-color: #dd4a2c;
    background: #fff8f6;
    color: #dd4a2c;
}

.order-payment[data-order-fulfillment] label:has(input:disabled) {
    background: #f3f4f6;
    border-color: #e5e7eb;
    color: #9ca3af;
    cursor: not-allowed;
}

.order-payment[data-order-fulfillment] input:disabled,
.order-payment[data-order-fulfillment] label:has(input:disabled) span {
    color: #9ca3af;
    accent-color: #9ca3af;
    cursor: not-allowed;
}

.order-payment input {
    width: 16px;
    height: 16px;
    accent-color: #dd4a2c;
}

.order-payment-hint {
    margin: 10px 0 0;
    color: #6b7280;
    font-size: 13px;
    line-height: 1.5;
}

.order-payment-return__desc {
    margin: 8px 0 0;
    color: #4f5661;
    font-size: 15px;
}

.order-payment-return__actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.order-payment-return__actions a {
    color: #202124;
    font-size: 14px;
    font-weight: 600;
    text-decoration: underline;
}

.order-summary {
    position: sticky;
    top: calc(var(--site-header-height, 139px) + 24px);
}

.order-summary__box {
    padding: 24px;
    border: 1px solid #202124;
    border-radius: 8px;
    background: #ffffff;
}

.order-summary__box h2 {
    margin: 0 0 18px;
    color: #202124;
    font-size: 22px;
    line-height: 1.35;
    font-weight: 700;
}

.order-summary dl {
    margin: 0;
    padding: 0 0 16px;
    border-bottom: 1px solid #edf0f4;
}

.order-summary dl div,
.order-summary__total {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
}

.order-summary dl div + div {
    margin-top: 12px;
}

.order-summary dt,
.order-summary dd {
    margin: 0;
    font-size: 14px;
}

.order-summary dt {
    color: #6f7680;
}

.order-summary dd {
    color: #202124;
    font-weight: 700;
}

.order-summary__total {
    margin-top: 18px;
}

.order-summary__total span {
    color: #202124;
    font-size: 15px;
    font-weight: 700;
}

.order-summary__total strong {
    color: #dd4a2c;
    font-size: 28px;
    line-height: 1.2;
    font-weight: 700;
}

.order-agreement-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 18px;
}

.order-agree {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    min-width: 0;
    margin: 0;
    color: #4b5563;
    font-size: 13px;
    line-height: 1.5;
    word-break: keep-all;
}

.order-agree input {
    width: 16px;
    height: 16px;
    margin-top: 2px;
    accent-color: #dd4a2c;
}

.order-summary__box .order-policy-view {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: auto;
    min-height: 30px;
    margin: 0;
    padding: 0 10px;
    border: 1px solid #d9dde5;
    border-radius: 6px;
    background: #ffffff;
    color: #4b5563;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.5;
    text-decoration: none;
    cursor: pointer;
}

.order-policy-modal[hidden] {
    display: none !important;
}

.order-policy-modal {
    position: fixed;
    inset: 0;
    z-index: 260;
}

.order-policy-modal__backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    min-height: 0;
    margin: 0;
    border: 0;
    border-radius: 0;
    background: rgba(0, 0, 0, 0.55);
}

.order-policy-modal__panel {
    position: absolute;
    top: 50%;
    left: 50%;
    display: flex;
    flex-direction: column;
    width: min(calc(100% - 32px), 620px);
    max-height: min(80dvh, 720px);
    transform: translate(-50%, -50%);
    overflow: hidden;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.24);
}

.order-policy-modal__head {
    display: flex;
    flex: 0 0 auto;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 20px 14px;
    border-bottom: 1px solid #edf0f4;
}

.order-policy-modal__head h2 {
    margin: 0;
    color: #202124;
    font-size: 19px;
    font-weight: 800;
}

.order-policy-modal__head p {
    margin: 4px 0 0;
    color: #7a818c;
    font-size: 12px;
}

.order-policy-modal__close {
    flex: 0 0 auto;
    width: 34px;
    min-height: 34px;
    margin: -6px -8px 0 0;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #5f6368;
    cursor: pointer;
}

.order-policy-modal__body {
    min-height: 180px;
    padding: 20px;
    overflow-y: auto;
    color: #343a40;
    font-size: 14px;
    line-height: 1.75;
    overscroll-behavior: contain;
}

.order-policy-modal__state {
    margin: 60px 0;
    color: #7a818c;
    text-align: center;
}

.order-policy-modal__state.is-error {
    color: #b42318;
}

.order-policy-modal__content h1,
.order-policy-modal__content h2,
.order-policy-modal__content h3,
.order-policy-modal__content h4 {
    margin: 1.2em 0 0.5em;
    color: #202124;
    line-height: 1.4;
}

.order-policy-modal__content p,
.order-policy-modal__content ul,
.order-policy-modal__content ol {
    margin: 0 0 0.9em;
}

.order-policy-modal__content ul,
.order-policy-modal__content ol {
    padding-left: 1.5em;
}

.order-policy-modal__foot {
    flex: 0 0 auto;
    padding: 12px 20px calc(12px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid #edf0f4;
}

.order-policy-modal__foot button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 46px;
    margin: 0;
    border: 0;
    border-radius: 7px;
    background: #dd4a2c;
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

body.is-refund-policy-open {
    overflow: hidden;
}

.order-summary__box button,
.order-summary__box > a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 48px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 700;
}

.order-summary__box button {
    margin-top: 18px;
    background: #dd4a2c;
    color: #ffffff;
}

.order-summary__box > a {
    margin-top: 8px;
    border: 1px solid #d9dde5;
    color: #202124;
}

.order-complete {
    background: #f7f8fa;
}

/* 주문완료 하단은 상단 주문 요약과 같은 폭으로 정렬한다. */
.order-complete-content {
    width: min(100%, 760px);
    margin: 28px auto 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 20px;
    align-items: start;
}

.order-complete-content .order-complete-products {
    grid-column: 1 / -1;
    min-width: 0;
    margin: 0;
    padding: 20px;
    border: 1px solid #e5e8ee;
    border-radius: 10px;
}

.order-complete-content .order-section__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.order-complete-content .order-section__head span { margin: 0; flex-shrink: 0; }
.order-complete-content .order-item:last-child { border-bottom: 0; padding-bottom: 0; }
.order-complete-content .order-item__body h3 { overflow-wrap: anywhere; }

.order-complete-content .order-complete-delivery,
.order-complete-content .order-complete-summary {
    position: static;
    min-width: 0;
    height: 100%;
    padding: 20px;
    border: 1px solid #e5e8ee;
    border-radius: 10px;
    background: #fff;
    overflow-wrap: anywhere;
}

.order-complete-content .order-complete-delivery { display: flex; flex-direction: column; gap: 8px; }
.order-complete-content h2 { margin: 0; font-size: 18px; line-height: 1.4; font-weight: 700; color: #202124; }
.order-complete-content .order-complete-delivery h2,
.order-complete-content .order-complete-summary h2 { margin-bottom: 16px; font-size: 18px; }
.order-complete-content .order-complete-summary > div strong { font-size: 24px; white-space: nowrap; }
.order-complete-content .order-complete-delivery span { border-radius: 6px; }

@media (max-width: 768px) {
    .order-complete-content { grid-template-columns: minmax(0, 1fr); gap: 16px; margin-top: 24px; }
    .order-complete-content .order-complete-products,
    .order-complete-content .order-complete-delivery,
    .order-complete-content .order-complete-summary { padding: 16px; }
    .order-complete-content .order-item { grid-template-columns: 64px minmax(0, 1fr); gap: 10px 12px; padding-top: 16px; }
    .order-complete-content .order-item__thumb { grid-row: span 2; }
    .order-complete-content .order-item__body h3 { font-size: 16px; }
    .order-complete-content .order-item > strong { font-size: 16px; }
}

.order-complete-panel,
.order-complete-layout {
    width: min(100% - 40px, 1280px);
    margin: 0 auto;
    padding-right: 15px;
    padding-left: 15px;
}

.order-complete-panel {
    padding-top: 34px;
    padding-bottom: 34px;
    border-bottom: 1px solid #e5e8ee;
    background: #ffffff;
}

.order-complete-message {
    display: grid;
    justify-items: center;
    text-align: center;
}

.order-complete-message > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: #dd4a2c;
    color: #ffffff;
    font-size: 28px;
}

.order-complete-message h2 {
    margin: 18px 0 0;
    color: #202124;
    font-size: 28px;
    line-height: 1.35;
    font-weight: 700;
}

.order-complete-message p {
    margin: 8px 0 0;
    color: #6f7680;
    font-size: 15px;
    line-height: 1.6;
    word-break: keep-all;
}

.order-complete-info {
    width: min(100%, 760px);
    margin: 28px auto 0;
    border-top: 1px solid #202124;
    border-bottom: 1px solid #e5e8ee;
}

.order-complete-info dl {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 0;
}

.order-complete-info div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-width: 0;
    min-height: 52px;
    padding: 0 16px;
    border-bottom: 1px solid #edf0f4;
}

.order-complete-info div:nth-last-child(-n + 2) {
    border-bottom: 0;
}

.order-complete-info div:nth-child(odd) {
    border-right: 1px solid #edf0f4;
}

.order-complete-info dt,
.order-complete-info dd {
    margin: 0;
    font-size: 14px;
}

.order-complete-info dt {
    color: #6f7680;
}

.order-complete-info dd {
    min-width: 0;
    color: #202124;
    font-weight: 700;
    text-align: right;
    word-break: break-all;
}

[data-order-pickup][hidden],
[data-order-shipping-field][hidden] { display: none !important; }

.order-complete-actions {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 28px;
}

.order-complete-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 150px;
    min-height: 46px;
    padding: 0 18px;
    border: 1px solid #d9dde5;
    border-radius: 6px;
    background: #ffffff;
    color: #202124;
    font-size: 15px;
    font-weight: 700;
}

.order-complete-actions__primary {
    border-color: #dd4a2c !important;
    background: #dd4a2c !important;
    color: #ffffff !important;
}

.order-complete-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 42px;
    align-items: start;
    padding-top: 34px;
}

.order-complete-detail {
    display: grid;
    gap: 34px;
    min-width: 0;
    padding: 28px;
    border: 1px solid #e5e8ee;
    border-radius: 8px;
    background: #ffffff;
}

.order-complete-detail .order-section:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.order-complete-delivery {
    display: grid;
    gap: 12px;
    padding: 18px 20px;
    border-radius: 8px;
    background: #f8f9fb;
    color: #4b5563;
    font-size: 15px;
    line-height: 1.55;
}

.order-complete-delivery strong,
.order-complete-delivery p {
    margin: 0;
}

.order-complete-delivery strong {
    color: #202124;
    font-size: 17px;
    font-weight: 700;
}

.order-complete-delivery span {
    width: fit-content;
    margin-top: 4px;
    padding: 6px 12px;
    border-radius: 999px;
    background: #eef1f4;
    color: #5b6470;
    font-size: 13px;
}

.order-complete-summary {
    position: sticky;
    top: calc(var(--site-header-height, 139px) + 24px);
    padding: 24px;
    border: 1px solid #202124;
    border-radius: 8px;
    background: #ffffff;
}

.order-complete-summary h2 {
    margin: 0 0 18px;
    color: #202124;
    font-size: 22px;
    line-height: 1.35;
    font-weight: 700;
}

.order-complete-summary dl {
    margin: 0;
    padding: 0 0 16px;
    border-bottom: 1px solid #edf0f4;
}

.order-complete-summary dl div,
.order-complete-summary > div {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
}

.order-complete-summary dl div + div {
    margin-top: 12px;
}

.order-complete-summary dt,
.order-complete-summary dd {
    margin: 0;
    font-size: 14px;
}

.order-complete-summary dt {
    color: #6f7680;
}

.order-complete-summary dd {
    color: #202124;
    font-weight: 700;
}

.order-complete-summary > div {
    margin-top: 18px;
}

.order-complete-summary > div span {
    color: #202124;
    font-size: 15px;
    font-weight: 700;
}

.order-complete-summary > div strong {
    color: #dd4a2c;
    font-size: 28px;
    line-height: 1.2;
    font-weight: 700;
}

@media (max-width: 1024px) {
    .order-layout {
        grid-template-columns: 1fr;
    }

    .order-summary,
    .order-complete-summary {
        position: static;
    }

    .order-complete-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .order-page {
        width: min(100% - 30px, 1280px);
        padding: 24px 0 96px;
    }

    .order-head,
    .order-layout {
        width: 100%;
        padding-right: 0;
        padding-left: 0;
    }

    .order-complete-panel,
    .order-complete-layout {
        width: 100%;
        padding-right: 15px;
        padding-left: 15px;
    }

    .order-head {
        display: block;
        padding-bottom: 20px;
    }

    .order-head h1 {
        font-size: 24px;
    }

    .order-steps {
        margin-top: 12px;
        font-size: 14px;
    }

    .order-layout {
        gap: 30px;
        padding-top: 26px;
    }

    .order-content {
        gap: 30px;
    }

    .order-section {
        padding-bottom: 30px;
    }

    .order-section__head h2,
    .order-summary__box h2 {
        font-size: 20px;
    }

    .order-item {
        grid-template-columns: 88px minmax(0, 1fr);
        gap: 14px;
        align-items: start;
    }

    .order-item > strong {
        grid-column: 2;
    }

    .order-fields,
    .order-payment {
        grid-template-columns: 1fr;
    }

    .order-summary__box {
        padding: 20px;
    }

    .order-complete-panel {
        padding-top: 28px;
        padding-bottom: 30px;
    }

    .order-complete-message h2 {
        font-size: 24px;
    }

    .order-complete-info dl {
        grid-template-columns: 1fr;
    }

    .order-complete-info div,
    .order-complete-info div:nth-child(odd) {
        border-right: 0;
    }

    .order-complete-info div:nth-last-child(-n + 2) {
        border-bottom: 1px solid #edf0f4;
    }

    .order-complete-info div:last-child {
        border-bottom: 0;
    }

    .order-complete-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .order-complete-actions a {
        width: 100%;
    }

    .order-complete-detail,
    .order-complete-summary {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .order-section__head {
        display: block;
    }

    .order-section__head span,
    .order-section__head button {
        margin-top: 8px;
    }
}

body.is-live-order-open {
    overflow: hidden;
}

.live-order-modal[hidden] {
    display: none !important;
}

.live-order-modal {
    position: fixed;
    inset: 0;
    z-index: 200;
    touch-action: none;
}

.live-order-modal__backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    background: rgba(0, 0, 0, 0.55);
}

.live-order-modal__panel {
    position: absolute;
    left: 50%;
    bottom: 0;
    display: flex;
    flex-direction: column;
    width: min(100%, 960px);
    max-height: min(94dvh, 920px);
    transform: translateX(-50%);
    border-radius: 22px 22px 0 0;
    background: #ffffff;
    box-shadow: 0 -16px 48px rgba(0, 0, 0, 0.2);
}

.live-order-modal__head {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 18px 12px;
    border-bottom: 1px solid #edf0f4;
}

.live-order-modal__head h2 {
    margin: 0;
    color: #202124;
    font-size: 18px;
    font-weight: 800;
}

.live-order-modal__close {
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #5f6368;
    cursor: pointer;
}

.live-order-modal__close i {
    font-size: 22px;
}

.live-order-modal__body {
    overflow: auto;
    padding: 0 16px calc(16px + env(safe-area-inset-bottom, 0px));
    overscroll-behavior: contain;
    touch-action: pan-y;
}

.live-order-modal .order-page,
.live-order-modal .is-checkout-modal-page {
    width: 100%;
    margin: 0;
    padding: 8px 0 24px;
    background: #ffffff;
}

.live-order-modal .order-layout {
    padding-top: 16px;
}

.order-guest[hidden] { display: none !important; }
.order-guest .order-phone-note { margin: 0 0 16px; }
.order-guest .order-agree { margin-top: 16px; }
.order-agreement-row.order-guest .order-agree { margin-top: 0; }
.order-guest .order-phone-change button { flex-shrink: 0; min-height: 44px; white-space: nowrap; }
.order-guest .order-phone-change input { min-width: 0; }

.lb-sheet-modal {
    pointer-events: none;
}

.lb-sheet-modal > * {
    pointer-events: auto;
}

.live-order-modal [data-order-back-products] {
    display: inline-flex;
    margin-top: 10px;
    color: #5f6368;
    font-size: 13px;
    font-weight: 700;
}

@media (min-width: 768px) {
    .live-order-modal__panel {
        top: 50%;
        bottom: auto;
        max-height: min(90dvh, 860px);
        transform: translate(-50%, -50%);
        border-radius: 18px;
    }
}
