@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600;700&display=swap');

.mc-app {
    --bg: #20262c;
    --bg-light: #283139;
    --panel: #303a43;
    --panel-light: #37434d;
    --panel-dark: #1a2025;

    --border: #46535e;
    --border-light: #566572;

    --blue: #6687a1;
    --blue-light: #7899b3;
    --blue-dark: #4f6d84;
    --blue-bg: #2c3e4c;

    --text: #e1e5e8;
    --text-soft: #b7c0c7;
    --muted: #84919b;

    color: var(--text);
    background: var(--bg);

    font-family: "JetBrains Mono", monospace;

    border: 1px solid #3b464f;
    border-radius: 12px;
    overflow: hidden;

    box-shadow: 0 12px 35px rgba(0, 0, 0, .28);

    box-sizing: border-box;
}

.mc-app *,
.mc-app *::before,
.mc-app *::after {
    box-sizing: border-box;
}


.mc-topbar {
    min-height: 68px;

    display: flex;
    align-items: center;

    gap: 22px;
    padding: 0 26px;

    background: #242c33;

    border-bottom: 1px solid #3b4750;
}

.mc-brand {
    color: #edf1f3;

    font-size: 15px;
    font-weight: 700;

    letter-spacing: 4px;

    white-space: nowrap;
}

.mc-subtitle {
    flex: 1;

    color: var(--muted);

    font-size: 11px;
}

.mc-topstats {
    color: #7f8c96;

    font-size: 10px;

    white-space: nowrap;
}

.mc-topstats b {
    color: var(--blue-light);

    margin-left: 18px;
}

.mc-topstats i {
    display: inline-block;

    width: 7px;
    height: 7px;

    margin-right: 6px;

    border-radius: 50%;

    background: #6e8da5;
}

.mc-layout {
    display: grid;

    grid-template-columns:
        minmax(250px, 320px)
        minmax(430px, 1fr)
        minmax(280px, 320px);

    gap: 16px;

    padding: 16px;

    align-items: start;
}

.mc-products {
    padding: 7px;

    background: #293139;

    border: 1px solid #414d57;
    border-radius: 9px;
}

.mc-caption,
.mc-form-grid label > span {
    display: block;

    margin-bottom: 9px;

    color: #8997a1;

    font-size: 9px;
    font-weight: 600;

    letter-spacing: 1.5px;
}

.mc-product-grid {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 4px;
}

.mc-product {
    position: relative;

    max-width: 88%;

    min-height: 58px;

    padding: 7px 28px 7px 38px;

    text-align: left;

    color: #c3cbd1;

    background: #333d46;

    border: 1px solid #4b5862;
    border-radius: 7px;

    cursor: pointer;

    font-family: inherit;

    transition:
        background .15s ease,
        border-color .15s ease,
        color .15s ease;
}

.mc-product:hover {
    color: #e4e9ec;

    background: #39454f;

    border-color: #637482;
}

.mc-product.is-active {
    color: #dce8f0;

    background: #314453;

    border-color: #6687a1;

    box-shadow: inset 3px 0 0 #6687a1;
}

.mc-product-icon {
    position: absolute;

    left: 11px;
    top: 50%;

    transform: translateY(-50%);

    color: #91a5b4;

    font-size: 18px;
}

.mc-product.is-active .mc-product-icon {
    color: #9db6c9;
}

.mc-product-name {
    display: block;

    font-size: 11px;
    line-height: 1.25;
}

.mc-product-count {
    position: absolute;

    right: 8px;
    top: 50%;

    transform: translateY(-50%);

    color: #8996a0;

    font-size: 9px;
}

.mc-product-more {
    grid-column: 1 / -1;
}

.mc-main {
    min-width: 0;
}

.mc-display {
    min-height: 132px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 16px 20px;

    background: #171d22;
    border: 1px solid #3c4851;
    border-radius: 9px;

    box-shadow: inset 0 1px 0 rgba(255,255,255,.025);
}

.mc-box {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    align-items: center;
}

.mc-price {
    text-align: center;
    border-top: 1px solid #303b44;
    padding-top: 8px;
}

.mc-display-value {
    text-align: center;
}

.mc-display-value strong {
    display: block;

    color: #dce6ed;

    font-size: clamp(30px, 4vw, 46px);

    line-height: .95;

    font-weight: 500;

    letter-spacing: -1px;
}

.mc-display-value:nth-child(2) strong {
    color: #9eb8cc;
}

.mc-display-value small {
    display: block;

    margin-top: 9px;

    color: #74828c;

    font-size: 8px;

    letter-spacing: 1.5px;
}

.mc-meta {
    display: flex;
    align-items: center;

    margin: 9px 2px 14px;

    color: #7f8c96;

    font-size: 10px;
}

.mc-meta b {
    color: #c3cbd1;
}

.mc-pencil {
    margin-left: 6px;

    border: 0;

    background: transparent;

    color: #8498a8;

    cursor: pointer;
}

.mc-stock {
    display: flex;
    align-items: center;

    gap: 7px;

    margin: 0 2px 17px;

    color: #44bb42;

    font-size: 10px;
}

.mc-stock span {
    width: 7px;
    height: 7px;

    border-radius: 50%;

    background: #44bb42;
}

.mc-stock a {
    margin-left: 5px;

    color: #8faabe;

    text-decoration: underline;
}

.mc-form-grid {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 12px;
}

.mc-form-grid label {
    min-width: 0;
}

.mc-form-grid select,
.mc-form-grid input {
    width: 100%;
    height: 43px;

    padding: 0 12px;

    color: #d6dde2;

    background: #252e35;

    border: 1px solid #4a5761;
    border-radius: 7px;

    outline: none;

    font-family: "JetBrains Mono", monospace;
    font-size: 12px;

    transition:
        border-color .15s ease,
        background .15s ease;
}

.mc-form-grid select:hover,
.mc-form-grid input:hover {
    background: #29333b;

    border-color: #60717f;
}

.mc-form-grid select:focus,
.mc-form-grid input:focus {
    background: #29343d;

    border-color: #6d8da5;

    box-shadow: 0 0 0 2px rgba(102, 135, 161, .12);
}

.mc-actions {
    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 6px;

    margin-top: 11px;
    padding: 7px;

    background: #252d34;

    border: 1px solid #414d56;
    border-radius: 9px;
}

.mc-actions button {
    min-height: 44px;

    padding: 4px 6px;

    color: #b8c2c9;

    background: #333d45;

    border: 1px solid #4c5963;
    border-radius: 6px;

    font-family: "JetBrains Mono", monospace;
    font-size: 9px;
    font-weight: 600;
    line-height: 1.15;

    cursor: pointer;

    transition:
        background .15s ease,
        border-color .15s ease,
        color .15s ease;
}

.mc-actions button:hover {
    color: #e0e7eb;

    background: #3a4751;

    border-color: #6a7f8f;
}

.mc-actions button:active {
    background: #2d3942;
}

.mc-actions .danger {
    color: #aeb8bf;

    background: #2c343b;

    border-color: #47535c;
}

.mc-bottom-actions {
    display: grid;

    grid-template-columns: 1fr auto;

    margin-top: 9px;
}

.mc-bottom-actions button {
    height: 49px;

    border-radius: 7px;

    font-family: "JetBrains Mono", monospace;
    font-size: 11px;
    font-weight: 600;

    cursor: pointer;
}

.mc-bottom-actions .tel-form-button {
    color: #eaf0f4;

    background: #526f87;

    border: 1px solid #67859d;

    box-shadow: 0 3px 9px rgba(0,0,0,.18);
}

.mc-bottom-actions .tel-form-button:hover {
    background: #5b7b94;
}

.mc-bottom-actions .tel-form-button span {
    margin-left: 7px;

    color: #c9d5dd;

    font-size: 9px;
    font-weight: 400;
}

.mc-bottom-actions .estimate {
    padding: 0 15px;

    color: #bbc4ca;

    background: #303a42;

    border: 1px solid #4a5862;
}

.mc-bottom-actions .estimate:hover {
    background: #38434c;
}

.mc-notice {
    opacity: 0;

    transform: translateY(5px);

    pointer-events: none;

    margin-top: 9px;

    padding: 8px;

    text-align: center;

    color: #a8bfce;

    background: #2a3a46;

    border: 1px solid #4e687b;
    border-radius: 6px;

    font-size: 10px;

    transition: .2s;
}

.mc-notice.is-visible {
    opacity: 1;

    transform: none;
}


.mc-help {
    min-width: 0;
}

.mc-paper {
    position: relative;

    min-height: 700px;

    padding: 21px 21px 34px;

    color: #89949c;

    background: #e4e7e9;

    border-radius: 7px;

    box-shadow: 0 6px 18px rgba(0,0,0,.16);

    font-family: "JetBrains Mono", monospace;

    font-size: 10px;
    line-height: 1.65;
}

.mc-paper::before,
.mc-paper::after {
    display: none;
}

.mc-paper-title {
    text-align: center;

    color: #66737d;

    font-size: 9px;

    letter-spacing: 1.5px;
}

.mc-paper-title.small {
    margin: 21px 0 8px;

    padding-top: 9px;

    border-top: 1px dashed #aeb7bd;
}

.mc-paper-rule {
    margin: 9px 0 15px;

    border-top: 1px solid #b8c0c5;
}

.mc-total {
    padding-bottom: 12px;

    border-bottom: 1px solid #b8c0c5;

    font-size: 11px;
}

.mc-total b {
    color: #35434d;
}

.mc-help-item {
    margin: 13px 0;
}

.mc-help-item > b {
    color: #43535f;
}

.mc-help-item a {
    color: #526f87;

    text-decoration: underline;
}

.mc-help-item::first-letter {
    color: #526f87;
}

.mc-schematic {
    width: 200px;
    height: 130px;

    margin: 16px auto 0;

    display: flex;

    align-items: center;
    justify-content: center;

    border: 1px dashed #aeb8be;
}

.mc-circle {
    width: 86px;
    height: 86px;

    border: 2px solid #607d94;

    border-radius: 50%;

    background:
        repeating-linear-gradient(
            45deg,
            transparent 0 4px,
            rgba(96,125,148,.08) 4px 5px
        );
}

.mc-field-length,
.mc-field-weight {
    transition: opacity .15s ease;
}

@media (max-width: 1100px) {

    .mc-layout {
        grid-template-columns:
            270px
            minmax(420px, 1fr);
    }

    .mc-help {
        grid-column: 1 / -1;
    }

    .mc-paper {
        min-height: auto;
    }
}

@media (max-width: 760px) {

    .mc-topbar {
        flex-wrap: wrap;

        gap: 8px 15px;

        padding: 14px 18px;
    }

    .mc-topstats {
        width: 100%;
    }

    .mc-layout {
        grid-template-columns: 1fr;

        padding: 10px;
    }

    .mc-products {
        order: 1;
    }

    .mc-main {
        order: 2;
    }

    .mc-help {
        order: 3;

        grid-column: auto;
    }

    .mc-product-grid {
        grid-template-columns: 1fr 1fr;
    }

    .mc-display {
        padding: 12px 8px;
    }

    .mc-display-value strong {
        font-size: 30px;
    }

    .mc-actions {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 460px) {

    .mc-product-grid,
    .mc-form-grid,
    .mc-bottom-actions,
    .mc-display {
        grid-template-columns: 1fr;
    }

    .mc-display {
        gap: 15px;
    }

    .mc-display-value small {
        margin-top: 5px;
    }
}

.mc-custom-fields {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}