.build-button:before {
    line-height: 20px;
}

body {
    margin: 0;
    overflow: hidden;
}

#ui {
    position: fixed;
    top: 50px;
    left: 10px;
    background: rgba(255, 255, 255, 0.8);
    padding: 10px;
    border-radius: 5px;
    z-index: 100;
}

#ui button {
    padding: 5px 10px;
    margin: 2px;
    cursor: pointer;
}

#ui button.active {
    background: #08f;
    color: white;
}

.preview-holder {
    position: absolute;
    top: 10px;
    right: 10px;
    height: 100vh;
    overflow: auto;
}

.preview {
    position: relative;
    margin: 20px 0;
    top: 20px;
    right: 10px;
    background: rgba(255, 255, 255, 0.9);
    padding: 10px;
    border-radius: 5px;
    z-index: 100;
    width: 70px;
    height: 70px;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: background 0.2s;
}

.preview.active {
    background: rgba(0, 136, 255, 0.9);
}

.preview-title {
    font-size: 12px;
    margin-bottom: 5px;
}

.preview-canvas {
    width: 50px;
    height: 50px;
    border: 1px solid #ddd;
    border-radius: 3px;
}

div.form-container {
    width: 800px;
}

.house-form-body {
    flex-wrap: wrap;
}

.sold-delivered {
    flex-wrap: wrap;
    justify-content: center;
}

.sold-delivered-row {
    width: 210px;
}

.sold-label {
    white-space: nowrap;
}

.left-panel {
    position: absolute;
    margin-top: calc(85 / var(--dw) * 100vw);
    /* padding-left: calc(32 / var(--dw) * 100vw); */
}

.left-panel::before {
    /* content: ''; */
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(89.66deg, rgba(5, 9, 93, 0.3) 0.3%, rgba(5, 9, 93, 0) 83.77%);
    border-width: calc(1 / var(--dw) * 100vw) 0px calc(1 / var(--dw) * 100vw) 0px;
    border-style: solid;
    border-image-source: linear-gradient(90deg, #FFFFFF 0%, rgba(255, 255, 255, 0) 88.84%);
    border-image-slice: 1;
    backdrop-filter: blur(calc(100 / var(--dw) * 100vw));
    z-index: -1;
    pointer-events: none;
}

.rating-block {
    padding: calc(16 / var(--dw) * 100vw) calc(32 / var(--dw) * 100vw);
    padding-left: 0.5rem;
    position: relative;
    height: 320px !important;
    overflow: hidden;
    width: 400px;
}

.rating-block::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;

    /* height: calc(470 / var(--dw) * 100vw); */
    background: linear-gradient(89.66deg, rgba(5, 9, 93, 0.7) 0.3%, rgba(5, 9, 93, 0) 83.77%);
    z-index: -1;
    pointer-events: none;
    height: 300px;
}

.rating-item {
    display: grid;
    grid-template-columns: 20px 50px 130px 60px;
    margin-bottom: 10px;
    align-items: center;
}

.rating-number {
    border-radius: 50%;
    /*border: 1px solid #3758F9;*/
    color: #000;
    background: #fff;
    text-align: center;
    vertical-align: middle;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    margin-right: 10px;
}

.rating-number.active {
    background: #3758F9;
    color: #fff;
}

.rating-name {
    max-width: 120px;
    margin-right: 10px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rating-capital {
    color: rgba(0, 0, 0, 0.8);
}

.rating-item {
    transition: transform 0.5s ease;
    will-change: transform;
}

.form-image img.shop-form-add-img {
    width: auto;
    height: 100%;
}

.form-container .close {
    content: "";
    display: inline-block;
    width: 20px;
    height: 20px;
    background-image: url('/build/assets/images/close.svg');
    background-size: contain;
    background-repeat: no-repeat;
    vertical-align: middle;
    position: absolute;
    top: 20px;
    right: 20px;
    cursor: pointer;
}

.store-cards-double-holder {
    display: grid;
    grid-template-rows: 1fr 1fr;
    gap: 20px;
}

.store-card,
.store-card.build-more .plus-icon {
    color: rgba(55, 88, 249, 1);
}

.store-card .store-title {
    color: rgba(55, 88, 249, 1);
}

.store-card-half-life {
    color: rgba(55, 88, 249, 1);
    background: #fff;
    border-radius: 20px;
    width: 120%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.store-card-half-life .plus-icon {
    margin-right: 5px;
}

a.button-chip {
    text-decoration: none;
}

a.store-card-half-life {
    text-decoration: none;
}

.shop-edit-modal .form-input,
.shop-edit-modal .form-select,
.shop-edit-modal .cancel-form-button,
.shop-edit-modal .sell-button,
.shop-edit-modal .build-edit-button,
.shop-edit-modal .pause-work-checkbox {
    width: 200px !important;
    box-sizing: border-box;
}

div.header {
    align-items: flex-start;
}

@media (max-width: 1250px) {
    .title-gradient {
        left: 50px;
        font-size: 45px;
        top: 30px;
        line-height: 45px;
    }

    .city-image {
        right: auto;
        left: auto;
        width: 100%;
        bottom: 5%;
        height: 400px;
    }

    .login-block {
        top: 30%;
        width: 70%;
    }

    .store-title {
        height: 24px;
        overflow: hidden;
        text-overflow: ellipsis;
        width: 100%;
        white-space: nowrap;
        font-weight: normal;
    }

}

@media (max-width: 999px) {

    .button-chip.help,
    .button-chip.restart {
        display: none;
    }

    .shop-edit-modal.form-container {
        width: calc(100% - 20px) !important;
        max-width: 100% !important;
        padding: 10px !important;
        overflow-x: hidden !important;
    }

    .shop-edit-modal .form-input,
    .shop-edit-modal .form-select,
    .shop-edit-modal .cancel-form-button,
    .shop-edit-modal .build-form-button,
    .shop-edit-modal .sell-button,
    .shop-edit-modal .build-edit-button,
    .shop-edit-modal .pause-work-checkbox {
        width: 160px !important;
        box-sizing: border-box;
        margin: 0 auto 10px;
    }


    .form-container {
        box-sizing: border-box;
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 10px;
        gap: 10px;
        position: absolute;
        height: auto;
        left: 10px;
        top: 10%;
        background: rgba(255, 255, 255, 0.6);
        border: 1px solid #FFFFFF;
        backdrop-filter: blur(25px);
        border-radius: 20px;
        z-index: 110;
        overflow: auto;
        max-height: 90vh;
    }

    div.form-container {
        width: calc(100% - 20px);
    }

    .form-body {
        flex-direction: column-reverse;
        width: 100%;
        align-items: center;
        gap: 0;
        margin-bottom: 30px;
    }

    .cancel-form-button,
    .build-form-button {
        width: 120px;
    }

    .shop-edit-modal.form-container {
        top: 20px;
    }

    .shop-edit-modal.form-container .form-input,
    .shop-edit-modal.form-container .form-select {
        width: 160px;
    }

    .shop-edit-modal.form-container .cancel-form-button,
    .shop-edit-modal.form-container .build-form-button,
    .shop-edit-modal.form-container .build-edit-button,
    .shop-edit-modal.form-container .sell-button {
        width: 160px !important;
    }

    .sold-delivered {
        gap: 5px;
    }

    .sold-delivered-row {
        width: 170px;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-between;
    }

    .row-other .delivered-label {
        max-width: 125px;
    }

    .sold-delivered-row-status .delivered-label {
        width: 85px;
    }

    .sold-delivered-row-SpeedSumm .delivered-label {
        width: 85px;
    }

    .sold-delivered-row.sold-delivered-row-remove {
        gap: 0
    }

    .sold-delivered-row.sold-delivered-row-remove span {
        display: none;
    }

    .sold-delivered-row.sold-delivered-row-remove button {
        margin-top: 0 !important;
    }

    .rating-popup .rating-block {
        display: block;
    }

    .sold-delivered-row button {
        margin-top: 5px !important;
        width: 160px !important;
    }

    .rating-item {
        background: #fff;
        padding: 10px;
        border-radius: 20px;
    }

}

@media (max-width: 400px) {
    .sold-delivered-row {
        width: 40vw;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-between;
    }

    .store-card-half-life span {
        font-size: 12px;
    }

}


@media screen and (orientation: landscape) and (max-height: 500px) {
    .mobile-cards {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        padding: 8px 4px;
    }

    .mobile-cards .store-card,
    .mobile-cards .store-cards-double-holder {
        flex: 0 0 auto;
        margin: 0 6px 0 0;
    }

    .store-card {
        width: 30%;
    }
}

@media (min-width: 767px) and (max-width: 999px) {
    .store-image-container {
        height: 180px;
    }
}

@media (min-width: 1000px) and (max-width: 1600px) {
    .form-container {
        /* top: 50px; */
    }
}

@media (min-width: 767px) {
    .header-center {
        flex-wrap: wrap;
        justify-content: flex-end;
    }
}

@media (max-width: 1200px) {
    .rating-block {
        height: 350px !important;
        left: 0%;
    }

    .rating-block::before {
        height: 350px !important;
    }
}