.mps-series-page .container,
.mps-page {
    box-sizing: border-box;
    width: 90%;
    max-width: 1600px;
    margin-left: auto;
    margin-right: auto;

}

.mps-preview-banner {
    margin: 0 0 24px;
    padding: 12px 16px;
    background: #f4f1ea;
    border-left: 4px solid #c5a46e;
    color: #333;
}

.mps-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.45fr) minmax(0, 0.55fr);
    gap: 32px 36px;
    align-items: start;
    margin: 40px 0 36px;
}

.mps-layout__left,
.mps-layout__right,
.mps-gallery,
.mps-copy,
.mps-config {
    min-width: 0;
}

.mps-gallery {
    margin: 0 0 24px;
    max-width: 100%;
}

.mps-gallery__mainwrap {
    min-width: 0;
    max-width: 100%;
}

.mps-hero__photo {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
}

.mps-hero__thumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.mps-thumb {
    display: block;
    width: 18%;
    min-width: 56px;
    padding: 0;
    border: 2px solid #d9d9d9;
    background: #fff;
    cursor: pointer;
}

.mps-thumb img {
    display: block;
    width: 100%;
    height: auto;
}

.mps-thumb:focus,
.mps-thumb.is-active {
    border-color: #1f1f1f;
    outline: 2px solid #1f1f1f;
    outline-offset: 2px;
}

.mps-hero__name {
    margin: 0 0 12px;
    font-size: 28px;
    line-height: 1.25;
}

.mps-hero__summary,
.mps-hero__advantages {
    margin: 0 0 16px;
}

.mps-hero__advantages ul {
    margin: 0;
    padding-left: 20px;
}

.mps-hero__config-title {
    margin: 20px 0 8px;
    font-size: 22px;
}

.mps-hero__note {
    margin: 0 0 16px;
    color: #444;
}

.mps-oc {
    margin: 16px 0 0;
    padding: 18px 16px 16px;
    border: 1px solid #dedee5;
    background: #fff;
    box-shadow: 0 10px 28px rgba(22, 22, 23, 0.05);
    min-width: 0;
    max-width: 100%;
}

.mps-oc__heading {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

.mps-wizard {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 0 0 20px;
    padding: 0;
}

.mps-wizard__btn {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    width: 100%;
    min-width: 0;
    min-height: 56px;
    padding: 10px 14px;
    border: 2px solid #d9d9d9;
    background: #fff;
    color: #222;
    text-align: left;
    cursor: pointer;
}

.mps-wizard__btn.is-complete {
    border-color: #1d71b8;
    color: #1d71b8;
}

.mps-wizard__btn.is-pending {
    opacity: 0.72;
}

.mps-wizard__btn.is-active {
    border-color: #1d71b8;
    background: #1d71b8;
    color: #fff;
    opacity: 1;
}

.mps-wizard__btn:focus {
    outline: 2px solid #1d71b8;
    outline-offset: 2px;
}

.mps-wizard__num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #ececec;
    color: #222;
    font-size: 14px;
    font-weight: 700;
}

.mps-wizard__btn.is-complete .mps-wizard__num {
    background: #e8f2fa;
    color: #1d71b8;
}

.mps-wizard__btn.is-active .mps-wizard__num {
    background: #fff;
    color: #1d71b8;
}

.mps-wizard__label {
    min-width: 0;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.mps-tab {
    display: block;
    margin: 0 0 8px;
}

.mps-js .mps-tab {
    display: none;
}

.mps-js .mps-tab.is-active {
    display: block;
}

.mps-tab__title {
    margin: 0 0 14px;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #555;
}

.mps-tab__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 20px;
    row-gap: 18px;
    align-items: start;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.mps-tab__grid > .mps-group[data-group-key="Version"],
.mps-tab__grid > .mps-group[data-group-key="PressureRange"] {
    grid-row: 1;
}

.mps-tab__grid > .mps-group[data-group-key="ProcessConnection"],
.mps-tab__grid > .mps-group[data-group-key="RigidStem"] {
    grid-row: 2;
}

.mps-tab__grid > .mps-group[data-group-key="FlexibleStem"] {
    grid-row: 3;
}

.mps-tab__grid > .mps-group[data-group-key="OutputSignal"],
.mps-tab__grid > .mps-group[data-group-key="EConnection"] {
    grid-row: 1;
}

.mps-tab__grid > .mps-group[data-group-key="Thermocouple"],
.mps-tab__grid > .mps-group[data-group-key="AlarmType"] {
    grid-row: 2;
}

.mps-tab__grid > .mps-group[data-group-key="FilledMedia"],
.mps-tab__grid > .mps-group[data-group-key="Accuracy"] {
    grid-row: 3;
}

.mps-tab__grid > .mps-group[data-group-key="Diaphragm"] {
    grid-row: 4;
}

.mps-tab__grid > .mps-group[data-group-key="Version"],
.mps-tab__grid > .mps-group[data-group-key="ProcessConnection"],
.mps-tab__grid > .mps-group[data-group-key="FlexibleStem"],
.mps-tab__grid > .mps-group[data-group-key="OutputSignal"],
.mps-tab__grid > .mps-group[data-group-key="AlarmType"],
.mps-tab__grid > .mps-group[data-group-key="FilledMedia"],
.mps-tab__grid > .mps-group[data-group-key="Diaphragm"] {
    grid-column: 1;
}

.mps-tab__grid > .mps-group[data-group-key="PressureRange"],
.mps-tab__grid > .mps-group[data-group-key="RigidStem"],
.mps-tab__grid > .mps-group[data-group-key="EConnection"],
.mps-tab__grid > .mps-group[data-group-key="Thermocouple"],
.mps-tab__grid > .mps-group[data-group-key="Accuracy"] {
    grid-column: 2;
}

.mps-nav {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    margin: 18px 0 0;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.mps-configurator[data-step="2"] .mps-nav {
    justify-content: space-between;
}

.mps-nav__validate {
    display: inline-flex;
    flex: 0 0 auto;
}

.mps-nav .mps-btn,
.mps-nav__validate .mps-btn {
    width: auto;
    max-width: 100%;
    flex: 0 0 auto;
}

.mps-configurator[data-step="1"] [data-mps-prev],
.mps-configurator[data-step="1"] .mps-nav__validate {
    display: none;
}

.mps-configurator[data-step="2"] [data-mps-next] {
    display: none;
}

.mps-configurator[data-step="1"] [data-mps-result] {
    display: none;
}

.mps-verified {
    scroll-margin-top: 96px;
}

.mps-verified:focus,
.mps-result:focus {
    outline: none;
}

.mps-verified .product-details__buttons {
    margin-top: 16px;
    margin-bottom: 0;
}

.mps-quote[hidden] {
    display: none;
}

.mps-result {
    margin: 16px 0 0;
    padding: 14px 16px;
    background: #f1f8f1;
    scroll-margin-top: 96px;
}

.mps-result[hidden],
[data-mps-result][hidden] {
    display: none;
}

.mps-result:focus {
    outline: none;
}

.mps-result__title {
    margin: 0 0 8px;
    font-size: 16px;
    font-weight: 700;
}

.mps-result__code {
    margin: 0 0 8px;
    font-family: Consolas, "Courier New", monospace;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.35;
    overflow-wrap: anywhere;
    word-break: break-word;
    color: #111;
}

.mps-result__status {
    margin: 0 0 6px;
    font-size: 14px;
    font-weight: 700;
    color: #1f5d24;
}

.mps-result__note {
    margin: 0;
    font-size: 14px;
    color: #333;
}

.mps-oc__missing,
.mps-oc__warnings {
    margin: 0 0 16px;
}

.mps-oc__missing:empty,
.mps-oc__warnings:empty {
    display: none;
}

.mps-oc__tech-error {
    margin: 0 0 16px;
    padding: 10px 12px;
    border-left: 3px solid #8a1f1f;
    background: #fdf2f2;
    color: #8a1f1f;
    font-size: 14px;
}

.mps-oc__missing-title,
.mps-oc__warn-title {
    display: none;
}

.mps-section {
    margin: 0 0 22px;
    padding: 0;
}

.mps-section:last-of-type {
    margin-bottom: 8px;
}

.mps-section__title {
    margin: 0 0 12px;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #555;
}

.mps-section__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    justify-items: stretch;
}

.mps-group {
    margin: 0;
    padding: 0;
    border: 0;
    min-width: 0;
}

.mps-group--hidden {
    display: none !important;
}

.mps-group legend {
    float: none;
    width: 100%;
    max-width: 100%;
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 10px;
    overflow-wrap: anywhere;
}

.mps-group--error legend {
    color: #8a1f1f;
}

.mps-group__error {
    margin: 6px 0 0;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.4;
    color: #8a1f1f;
}

.mps-group__error[hidden] {
    display: none;
}

.mps-req {
    color: #8a1f1f;
}

.mps-select {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 48px;
    padding: 10px 12px;
    border: 2px solid #d9d9d9;
    background: #fff;
    scroll-margin-top: 96px;
}

.mps-select:focus {
    outline: 2px solid #1d71b8;
    outline-offset: 2px;
}

.mps-group--error .mps-select {
    border: 1px solid #8a1f1f;
    box-shadow: none;
}

.mps-group--error .mps-select:focus {
    outline: 2px solid #8a1f1f;
    outline-offset: 2px;
    border: 1px solid #8a1f1f;
}

.mps-btn {
    display: inline-block;
    min-height: 48px;
    padding: 12px 26px;
    border: 2px solid #1d71b8;
    background: #1d71b8;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1.2;
    cursor: pointer;
}

.mps-btn--primary {
    background: #1d71b8;
    border-color: #1d71b8;
    color: #fff;
}

.mps-btn--ghost {
    background: #fff;
    border-color: #1d71b8;
    color: #1d71b8;
}

.mps-btn:hover,
.mps-btn--primary:hover {
    background: #165a94;
    border-color: #165a94;
    color: #fff;
}

.mps-btn--ghost:hover {
    background: #f3f8fc;
    border-color: #1d71b8;
    color: #1d71b8;
}

.mps-btn:focus {
    outline: 2px solid #1d71b8;
    outline-offset: 3px;
}

.mps-btn:disabled {
    opacity: 0.45;
    cursor: default;
}

.mps-validate-wrap {
    margin: 8px 0 0;
}

.mps-nav .mps-btn {
    min-width: 140px;
}

.mps-docs {
    margin: 0;
    padding: 20px 0 0;
    border-top: 1px solid #dedee5;
}

.mps-docs__tabs {
    display: none;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 16px;
    max-width: 100%;
    min-width: 0;
}

.mps-docs__tab {
    min-height: 40px;
    max-width: 100%;
    padding: 8px 14px;
    border: 2px solid #d9d9d9;
    background: #fff;
    cursor: pointer;
    overflow-wrap: anywhere;
}

.mps-docs__tab.is-active {
    border-color: #1d71b8;
    background: #1d71b8;
    color: #fff;
}

.mps-docs__tab:focus {
    outline: 2px solid #1d71b8;
    outline-offset: 2px;
}

.mps-docs__heading {
    margin: 0 0 12px;
    font-size: 22px;
}

.mps-docs__panel + .mps-docs__panel {
    margin-top: 28px;
}

.mps-docs__body {
    overflow-wrap: anywhere;
    word-break: break-word;
    max-width: 100%;
}

.mps-docs__body img,
.mps-docs__body table,
.mps-docs__body pre {
    max-width: 100%;
}

.mps-docs__body table {
    display: block;
    overflow-x: auto;
}

.mps-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.mps-js .mps-docs__tabs {
    display: flex;
}

.mps-js .mps-docs__panel {
    display: none;
    margin-top: 0;
}

.mps-js .mps-docs__panel.is-active {
    display: block;
}

.mps-js .mps-docs__heading {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

@media (max-width: 700px) {
    .mps-tab__grid {
        grid-template-columns: minmax(0, 1fr);
        column-gap: 0;
        row-gap: 16px;
    }

    .mps-tab__grid > .mps-group[data-group-key] {
        grid-column: auto;
        grid-row: auto;
    }
}

@media (min-width: 992px) {
    .mps-section__grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
    }
}

@media (max-width: 991px) {
    .mps-series-page .container,
    .mps-page {
        width: calc(100% - 40px);
    }

    .mps-layout {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    .mps-layout__left,
    .mps-layout__right {
        display: contents;
    }

    .mps-copy {
        order: 1;
    }

    .mps-gallery {
        order: 2;
        margin: 0;
    }

    .mps-config {
        order: 3;
    }

    .mps-docs {
        order: 4;
        padding-top: 8px;
    }

    .mps-oc {
        padding: 16px 12px 12px;
    }
}

@media (max-width: 767px) {
    .mps-series-page .container,
    .mps-page {
        width: calc(100% - 24px);
    }

    .mps-thumb {
        width: 22%;
    }

    .mps-btn {
        width: 100%;
    }

    .mps-nav .mps-btn,
    .mps-nav__validate,
    .mps-nav__validate .mps-btn {
        width: auto;
    }

    .mps-section__grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .mps-wizard {
        gap: 8px;
    }

    .mps-wizard__btn {
        min-height: 48px;
        padding: 8px 10px;
        gap: 8px;
    }

    .mps-wizard__num {
        flex-basis: 22px;
        width: 22px;
        height: 22px;
        font-size: 12px;
    }

    .mps-wizard__label {
        font-size: 12px;
    }
}
