.order-page {
    background: #f5f6f8;
}

.order-page__back {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 1.6rem;
    color: #5c6370;
    font-size: 1.4rem;
    font-weight: 600;
    text-decoration: none;
}

.order-page__back:hover {
    color: var(--secondary-color);
}

.order-page__head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 2.8rem;
}

.order-page__title {
    margin: 0 0 0.6rem;
    font-size: 2.8rem;
    line-height: 1.2;
    font-weight: 700;
}

.order-page__lead {
    margin: 0;
    max-width: 52rem;
    color: #5c6370;
    font-size: 1.5rem;
    line-height: 1.6;
}

.order-steps {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.order-steps__item {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    color: #8b919c;
    font-size: 1.3rem;
    font-weight: 600;
    white-space: nowrap;
}

.order-steps__item span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.6rem;
    height: 2.6rem;
    border-radius: 50%;
    background: #e7e9ee;
    color: #5c6370;
    font-size: 1.2rem;
}

.order-steps__item.is-active {
    color: var(--primary-color);
}

.order-steps__item.is-active span {
    background: var(--secondary-color);
    color: #fff;
}

.order-steps__item.is-done span {
    background: #212121;
    color: #fff;
}

.order-steps__line {
    width: 2.4rem;
    height: 1px;
    background: #d5d8de;
}

.order-card,
.order-summary {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(17, 24, 39, 0.06);
}

.order-card {
    padding: 2.4rem;
}

.order-card__section + .order-card__section {
    margin-top: 2.4rem;
    padding-top: 2.4rem;
    border-top: 1px solid #eee;
}

.order-card__heading {
    margin: 0 0 1.6rem;
    font-size: 1.7rem;
    font-weight: 700;
}

.order-field {
    margin-bottom: 1.6rem;
}

.order-field label {
    display: block;
    margin-bottom: 0.6rem;
    font-size: 1.4rem;
    font-weight: 600;
}

.order-field__req {
    color: var(--secondary-color);
}

.order-field input,
.order-field textarea {
    width: 100%;
    border: 1px solid #e3e5ea;
    border-radius: 8px;
    background: #fff;
    color: var(--primary-color);
    font-size: 1.5rem;
    line-height: 1.4;
}

.order-field input {
    height: 4.8rem;
    padding: 0 1.4rem;
}

.order-field textarea {
    min-height: 11rem;
    padding: 1.2rem 1.4rem;
    resize: vertical;
}

.order-field input:focus,
.order-field textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
}

.order-field input.is-invalid,
.order-field textarea.is-invalid {
    border-color: var(--secondary-color);
}

.order-field__error {
    margin-top: 0.4rem;
    color: var(--secondary-color);
    font-size: 1.3rem;
}

.order-choice {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
}

.order-choice label {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 4.4rem;
    margin: 0;
    border: 1px solid #e3e5ea;
    border-radius: 8px;
    background: #fff;
    font-size: 1.4rem;
    font-weight: 600;
    cursor: pointer;
}

.order-choice input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.order-choice label:has(input:checked) {
    border-color: var(--secondary-color);
    background: #fff5f5;
    color: var(--secondary-color);
}

.order-choice label:has(input:focus-visible) {
    outline: 2px solid var(--secondary-color);
    outline-offset: 2px;
}

.order-hint {
    margin: 0.6rem 0 0;
    color: #8b919c;
    font-size: 1.3rem;
}

.order-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 0.8rem;
}

.order-btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 4.2rem;
    padding: 0 2.2rem;
    border: 1px solid #d7dbe2;
    border-radius: 2.4rem;
    background: #fff;
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: 600;
    text-decoration: none;
}

.order-btn-ghost:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.order-summary {
    position: sticky;
    top: 2rem;
    overflow: hidden;
}

.order-summary__media {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 220px;
    background: #f3f4f6;
}

.order-summary__media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.order-summary__body {
    padding: 2rem 2.2rem 2.2rem;
}

.order-summary__kicker {
    margin-bottom: 0.4rem;
    color: var(--secondary-color);
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.order-summary__title {
    margin: 0;
    font-size: 1.9rem;
    line-height: 1.35;
    font-weight: 700;
}

.order-summary__ja {
    margin-top: 0.3rem;
    color: #6b7280;
    font-size: 1.3rem;
}

.order-summary__specs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin: 1.4rem 0 0;
    padding: 0;
    list-style: none;
}

.order-summary__specs li {
    padding: 0.4rem 0.8rem;
    border-radius: 999px;
    background: #f3f4f6;
    color: #374151;
    font-size: 1.2rem;
    font-weight: 600;
}

.order-summary__rows {
    margin: 1.6rem 0 0;
}

.order-summary__row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.9rem 0;
    border-top: 1px solid #eee;
    font-size: 1.4rem;
}

.order-summary__row dt {
    margin: 0;
    color: #6b7280;
    font-weight: 500;
}

.order-summary__row dd {
    margin: 0;
    font-weight: 700;
    text-align: right;
}

.order-summary__row--total {
    margin-top: 0.4rem;
    font-size: 1.6rem;
}

.order-summary__row--total dd {
    color: var(--secondary-color);
    font-size: 2rem;
}

.order-summary__note {
    margin: 1.2rem 0 0;
    padding: 1rem 1.2rem;
    border-radius: 8px;
    background: #f7f7f8;
    color: #5c6370;
    font-size: 1.3rem;
    line-height: 1.5;
}

.order-alert {
    margin-bottom: 1.6rem;
    padding: 1.2rem 1.4rem;
    border-radius: 8px;
    background: #fff5f5;
    color: #9f1239;
    font-size: 1.4rem;
}

.order-alert ul {
    margin: 0;
    padding-left: 1.6rem;
}

.order-review__list {
    margin: 0;
}

.order-review__row {
    display: grid;
    grid-template-columns: 14rem 1fr;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid #eee;
    font-size: 1.45rem;
}

.order-review__row dt {
    margin: 0;
    color: #6b7280;
    font-weight: 600;
}

.order-review__row dd {
    margin: 0;
}

@media only screen and (max-width: 991px) {
    .order-summary {
        position: static;
        margin-bottom: 2rem;
    }

    .order-page__title {
        font-size: 2.4rem;
    }
}

@media only screen and (max-width: 575px) {
    .order-card {
        padding: 1.8rem 1.4rem;
    }

    .order-steps__line {
        width: 1.2rem;
    }

    .order-review__row {
        grid-template-columns: 1fr;
        gap: 0.2rem;
    }

    .order-actions .primary__btn,
    .order-btn-ghost {
        width: 100%;
    }
}
