.mh-flow {
    max-width: 1120px;
    margin: 0 auto 48px;
    padding: 8px 16px 0;
}

.mh-flow-head {
    margin: 8px 0 20px;
}

.mh-flow-head h1,
.mh-flow h2 {
    margin: 0 0 6px;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 0;
}

.mh-flow-head p,
.mh-flow .mh-lead {
    margin: 0;
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.5;
}

.mh-flow .required {
    position: static !important;
    margin: 6px 0 0 !important;
    color: var(--danger);
    font-size: 12px;
}

.mh-flow .form-control,
.mh-flow select.form-control,
.mh-flow textarea.form-control {
    border: 1px solid var(--border);
    border-radius: 10px;
    min-height: 46px;
    box-shadow: none;
    color: var(--text);
    background: #fff;
}

.mh-flow textarea.form-control { min-height: 96px; padding-top: 10px; }

.mh-flow .form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-soft);
}

.mh-flow label,
.mh-flow .info-title {
    display: block;
    margin: 0 0 6px;
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
}

.mh-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow);
    padding: 22px;
}

.mh-card + .mh-card { margin-top: 16px; }
.mh-grid > .mh-card,
.mh-rail-track > .mh-card,
.mh-recent-track > .mh-card,
.mh-rec-row > .mh-card { margin-top: 0; }

.mh-card h2,
.mh-card h3 {
    font-size: 18px;
    margin: 0 0 14px;
}

.mh-card h3 { font-size: 16px; margin-top: 8px; }

.mh-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px 16px;
}

.mh-fields .is-wide { grid-column: 1 / -1; }

.mh-auth {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 20px;
    align-items: start;
}

.mh-auth .mh-card h1 { font-size: 26px; margin-bottom: 8px; }

.mh-auth-aside {
    background: var(--primary);
    color: #fff;
    border: 0;
}

.mh-auth-aside h2,
.mh-auth-aside p,
.mh-auth-aside a { color: #fff; }

.mh-auth-aside p a { text-decoration: underline; font-weight: 700; }

.mh-auth-aside p { opacity: 0.9; margin-bottom: 18px; }

.mh-auth-aside a.btn {
    background: #fff;
    color: var(--primary);
    border: 0;
    border-radius: 10px;
    font-weight: 700;
    padding: 12px 16px;
}

.mh-flow .btn-primary,
.mh-flow .checkout-page-button,
.mh-flow .checkout-btn {
    min-height: 48px;
    padding: 12px 18px;
    border-radius: 10px;
    font-weight: 700;
}

.mh-flow .checkout-btn { width: 100%; }

.mh-flow .btn-default {
    min-height: 48px;
    padding: 12px 18px;
    border-radius: 10px;
    font-weight: 700;
    background: #fff;
    border: 1px solid var(--border);
    color: var(--text);
}

.mh-flow .mh-note {
    margin: 0 0 16px;
    padding: 12px 14px;
    border-radius: 12px;
    background: #fff6f6;
    border: 1px solid #f3c7c7;
    color: #9b1c1c;
}

.mh-row-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 8px;
}

.mh-check {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 0 0 10px;
    font-weight: 500;
}

.mh-check input { margin-top: 3px; }

.mh-account {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 20px;
    align-items: start;
}

.mh-account-nav {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    padding: 16px;
}

.mh-account > .mh-account-nav {
    width: auto !important;
    float: none !important;
    margin: 0;
    position: sticky;
    top: 16px;
}

.mh-account-nav h2 {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.mh-account-nav ul { list-style: none; margin: 0; padding: 0; }

.mh-account-nav li + li { margin-top: 4px; }

.mh-account-nav a {
    display: block;
    padding: 10px 12px;
    border-radius: 10px;
    color: var(--text);
    font-weight: 600;
    text-decoration: none;
}

.mh-account-nav a:hover { background: var(--primary-soft); color: var(--primary); }

.mh-order-list { display: grid; gap: 10px; }
.mh-order-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 16px 18px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    text-decoration: none;
}
.mh-order-card strong { display: block; font-size: 16px; }
.mh-order-card span,
.mh-order-card em { display: block; color: var(--text-muted); font-size: 13px; font-style: normal; }
.mh-order-card b { display: block; text-align: right; font-size: 16px; }
.mh-order-empty p { margin: 0; color: var(--text-muted); }
body.mh-store .mh-order-card,
body.mh-store .mh-order-card:hover { color: var(--text); text-decoration: none; }
body.mh-store .mh-order-card:hover { border-color: var(--primary); }

.mh-order-status {
    display: inline-flex;
    margin-bottom: 14px;
    padding: 6px 10px;
    border-radius: 999px;
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 13px;
    font-weight: 700;
}
.mh-order-facts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px 20px;
    margin-top: 14px;
}
.mh-order-facts .is-wide { grid-column: 1 / -1; }
.mh-order-facts span {
    display: block;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 700;
}
.mh-order-facts p { margin: 2px 0 0; }
.mh-order-facts .is-price { font-size: 20px; font-weight: 700; }
.mh-order-line {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}
.mh-order-line:last-child { border-bottom: 0; }
.mh-order-line img {
    width: 72px;
    height: 72px;
    object-fit: contain;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fff;
}
.mh-order-line h3 { margin: 0 0 4px; font-size: 14px; font-weight: 600; }
.mh-order-line p { margin: 0; color: var(--text-muted); font-size: 13px; }
body.mh-store .mh-order-line h3 a { color: var(--text); text-decoration: none; }

.mh-pay {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 20px;
    align-items: start;
}

.mh-summary {
    position: sticky;
    top: 16px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow);
    padding: 16px;
}

.mh-summary h2 { font-size: 18px; margin-bottom: 12px; }

.mh-steps {
    display: flex;
    gap: 8px;
    list-style: none;
    margin: 0 0 20px;
    padding: 0;
}

.mh-steps li {
    flex: 1;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 10px 12px;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-muted);
}

.mh-steps li.is-current {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.mh-steps a { color: inherit; text-decoration: none; }

.mh-summary .mh-line {
    display: flex;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}

.mh-summary .mh-line img {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 8px;
    background: var(--background);
}

.mh-summary .mh-line h3 {
    font-size: 14px;
    margin: 0 0 4px;
    font-weight: 600;
}

.mh-summary .mh-line .price { font-weight: 700; }

.mh-totals { margin-top: 8px; }

.mh-totals div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 7px 0;
    font-size: 14px;
}

.mh-totals .is-total {
    margin-top: 6px;
    padding-top: 10px;
    border-top: 1px solid var(--border);
    font-size: 18px;
    font-weight: 700;
}

.mh-choice-list,
.mh-choice-list tbody,
.mh-choice-list tr,
.mh-choice-list td {
    display: block;
    width: 100%;
    border: 0 !important;
    background: transparent;
}

.mh-choice-list td {
    border: 1px solid var(--border) !important;
    border-radius: 12px;
    padding: 12px 14px;
    margin: 0 0 8px;
    background: #fff;
}

.mh-choice-list label { margin: 0; cursor: pointer; font-weight: 600; }

.mh-choice-list input { margin-right: 8px; }

.mh-pay-note { color: var(--text-muted); font-size: 13px; margin: 0 0 12px; }

.mh-done {
    max-width: 640px;
    margin: 24px auto;
    text-align: center;
    padding: 36px 24px;
}

.mh-done h1 { font-size: 28px; }

.mh-frame {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.mh-frame iframe { display: block; width: 100%; min-height: 720px; border: 0; }

@media (max-width: 900px) {
    .mh-auth,
    .mh-account,
    .mh-pay,
    .mh-fields { grid-template-columns: 1fr; }
    .mh-account-nav,
    .mh-summary { position: static; }
    .mh-order-card,
    .mh-order-facts,
    .mh-order-line { display: grid; grid-template-columns: 1fr; }
    .mh-order-card b { text-align: left; }
}
