.to-page {
    max-width: 720px;
}

.page-head {
    padding: var(--woo-space-4) 0 var(--woo-space-20);
}
.page-title {
    font-family: var(--woo-font-display);
    font-weight: 700;
    font-size: var(--woo-fs-2xl);
    color: var(--woo-ink);
    margin: 0;
    line-height: 1.1;
}
.page-sub {
    margin: var(--woo-space-8) 0 0;
    color: var(--woo-muted);
    font-size: var(--woo-fs-base);
}
.stack {
    display: flex;
    flex-direction: column;
    gap: var(--woo-space-18);
}

.to-form {
    display: flex;
    flex-direction: column;
    gap: var(--woo-space-16);
}
.hp {
    display: none;
}
.field label {
    display: block;
    font-size: var(--woo-fs-sm);
    font-weight: 600;
    color: var(--woo-ink);
    margin-bottom: var(--woo-space-6);
}
.req {
    color: #dc2626;
    font-weight: 700;
}
.field input {
    width: 100%;
    font: inherit;
    font-size: var(--woo-fs-sm);
    color: var(--woo-ink);
    background: #fff;
    border: 1px solid #dedede;
    border-radius: 12px;
    padding: var(--woo-space-13) var(--woo-space-14);
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.field input::placeholder {
    color: #757680;
}
.field input:focus {
    border-color: var(--woo-blue);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14);
}
.field input.invalid {
    border-color: #dc2626;
}

.field.two {
    display: flex;
    flex-wrap: wrap;
    gap: var(--woo-space-12);
}
.field.two > div {
    flex: 1 1 200px;
    min-width: 0;
}
.to-hint {
    font-size: var(--woo-fs-xs);
    color: var(--woo-muted);
    margin: 0;
}

.form-error {
    display: flex;
    gap: var(--woo-space-10);
    align-items: flex-start;
    padding: var(--woo-space-12) var(--woo-space-14);
    border: 1px solid #fecaca;
    background: #fef2f2;
    border-radius: 12px;
    color: #b91c1c;
    font-size: var(--woo-fs-sm);
    font-weight: 500;
}
.form-error svg {
    flex: 0 0 auto;
    margin-top: var(--woo-space-1);
}

.to-order {
    background: #fff;
    border: 1px solid var(--woo-line);
    border-radius: var(--woo-radius);
    padding: var(--woo-space-22);
}
.to-order-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--woo-space-12);
    margin-bottom: var(--woo-space-18);
}
.to-order-no {
    font-family: var(--woo-font-display);
    font-weight: 700;
    font-size: var(--woo-fs-base);
    color: var(--woo-ink);
}
.to-order-status {
    font-size: var(--woo-fs-sm);
    font-weight: 600;
    color: var(--woo-blue);
    margin-top: var(--woo-space-2);
}
.to-order-status.done {
    color: var(--woo-ok);
}

.to-order .st-collect {
    margin-bottom: var(--woo-space-20);
}
.to-paid {
    font-size: var(--woo-fs-sm);
    color: var(--woo-muted);
    margin: -2px 0 var(--woo-space-18);
}
.to-paid b {
    color: var(--woo-ink);
}

.to-ship-title {
    font-weight: 600;
    color: var(--woo-ink);
    font-size: var(--woo-fs-sm);
}
.to-ship-carrier {
    margin-top: var(--woo-space-2);
    font-size: var(--woo-fs-sm);
    color: var(--woo-muted);
}
.to-ship-desc {
    margin-top: var(--woo-space-8);
    font-size: var(--woo-fs-sm);
    color: var(--woo-muted);
    line-height: 1.5;
}

.st-hsteps {
    display: flex;
    align-items: flex-start;
}
.st-hstep {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    padding: 0 var(--woo-space-2);
}
.st-hstep::before {
    content: '';
    position: absolute;
    top: 11px;
    right: 50%;
    width: 100%;
    height: 2px;
    background: var(--woo-line);
    z-index: 0;
}
.st-hstep:first-child::before {
    display: none;
}
.st-hstep.done::before,
.st-hstep.active::before {
    background: var(--woo-ok);
}
.st-hstep-dot {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid var(--woo-line);
    background: #fff;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    color: #fff;
}
.st-hstep.done .st-hstep-dot {
    background: var(--woo-ok);
    border-color: var(--woo-ok);
}
.st-hstep.active .st-hstep-dot {
    border-color: var(--woo-blue);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15);
}
.st-hstep.done.active .st-hstep-dot {
    background: var(--woo-blue);
    border-color: var(--woo-blue);
}
.st-hstep-body {
    margin-top: var(--woo-space-8);
}
.st-hstep-label {
    font-size: var(--woo-fs-xs);
    font-weight: 600;
    color: var(--woo-ink);
    line-height: 1.2;
}
.st-hstep:not(.done):not(.active) .st-hstep-label {
    color: var(--woo-muted);
    font-weight: 500;
}
.st-hstep-date {
    font-size: var(--woo-fs-2xs);
    color: var(--woo-muted);
    margin-top: var(--woo-space-2);
}

.to-final {
    background: #fff;
    border: 1px solid var(--woo-line);
    border-radius: 14px;
    overflow: hidden;
}
.to-final + .to-final {
    margin-top: var(--woo-space-10);
}
.to-final > summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--woo-space-6) var(--woo-space-12);
    padding: var(--woo-space-16) var(--woo-space-18);
}
.to-final > summary::-webkit-details-marker {
    display: none;
}
.to-final-no {
    font-weight: 700;
    color: var(--woo-ink);
    font-size: var(--woo-fs-sm);
}
.to-final-status {
    font-size: var(--woo-fs-xs);
    font-weight: 600;
    color: var(--woo-muted);
}
.to-final-status.ok {
    color: var(--woo-ok);
}
.to-final-date {
    margin-left: auto;
    font-size: var(--woo-fs-xs);
    color: var(--woo-muted);
}
.to-final .chev {
    color: var(--woo-muted);
    transition: transform 0.15s ease;
    flex: 0 0 auto;
}
.to-final[open] .chev {
    transform: rotate(180deg);
}
.to-final-body {
    padding: var(--woo-space-16) var(--woo-space-18) var(--woo-space-18);
    border-top: 1px solid var(--woo-line);
}

.group-label {
    font-family: var(--woo-font-display);
    font-weight: 700;
    font-size: var(--woo-fs-xs);
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--woo-muted);
    margin: var(--woo-space-8) var(--woo-space-2) var(--woo-space-2);
}

.to-foot {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: var(--woo-space-24) 0 var(--woo-space-8);
}
.to-help {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--woo-space-8);
}
.to-help-text {
    font-size: var(--woo-fs-sm);
    color: var(--woo-muted);
    margin: 0;
    text-align: center;
}
.to-help-text a {
    color: var(--woo-blue);
    font-weight: 600;
    text-decoration: none;
}
.wa-line {
    display: flex;
    align-items: flex-end;
    gap: var(--woo-space-3);
    font-size: var(--woo-fs-sm);
    color: var(--woo-muted);
}
.wa-line span {
    line-height: 1.2;
}
.wa-line strong {
    color: var(--woo-ink);
}
.wa-ico {
    display: inline-flex;
    vertical-align: middle;
}
.wa-ico img {
    display: block;
}

@media (max-width: 560px) {
    .to-order {
        padding: var(--woo-space-18);
    }
    .st-hsteps {
        flex-direction: column;
    }
    .st-hstep {
        flex: 0 0 auto;
        flex-direction: row;
        align-items: flex-start;
        text-align: left;
        gap: var(--woo-space-14);
        padding: 0 0 var(--woo-space-22) 0;
    }
    .st-hstep:last-child {
        padding-bottom: 0;
    }
    .st-hstep::before {
        top: 24px;
        left: 11px;
        right: auto;
        bottom: 0;
        width: 2px;
        height: auto;
        background: var(--woo-line);
    }
    .st-hstep:first-child::before {
        display: block;
    }
    .st-hstep:last-child::before {
        display: none;
    }
    .st-hstep.done::before,
    .st-hstep.active::before {
        background: var(--woo-line);
    }
    .st-hstep-body {
        margin-top: 0;
        padding-top: var(--woo-space-2);
    }
    .st-hstep-label {
        font-size: var(--woo-fs-sm);
    }
    .st-hstep-date {
        font-size: var(--woo-fs-xs);
    }
}
