/* <--------------------------------------> */

@media (max-width: 991px) {
    .po-footer {
        height: 172px !important;
        min-height: 132px;
    }

    .service-options-sub1 {
        flex-direction: column;
    }

    .po-order-step-wrap {
        align-items: unset !important;
        flex-direction: column;
    }

    .po-img-circle {
        margin-bottom: 8px;
    }

    .order-info-button-block {
        gap: 5px;
    }

    .system-close-order {
        margin-top: 0px;
    }

    .po-payout-form .row {
        padding: 0 !important;
    }

    .executor-two-body tr {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .executor-two-body th,
    .executor-two-body td {
        flex: unset;
        width: 100%;
    }
}

/* <--------------------------------------> */
@media screen and (max-width: 900px) {
    .executors__wrapper {
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -ms-flex-direction: column;
        flex-direction: column;
    }

    .executors__map {
        width: 100%;
        height: 400px;
    }

    .executors__aside {
        width: 100%;
        padding: 0px 0;
    }

    .executors__title,
    .executors__top,
    .executors__list {
        padding: 0 0px;
    }

    .executors__title {
        margin-top: 24px !important;
    }
}

/* <--------------------------------------> */

@media (max-width: 768px) {
    main {
        margin-top: 101px;
    }

    .popup-auth,
    .popup-recovery,
    .popup-executor,
    .popup-auth-guest {
        /* position: fixed; */
        bottom: auto;
        top: 100px;
        left: 50%;
        right: auto;
        transform: translateX(-50%);
    }

    .popup-executor {
        top: auto;
        bottom: 100px;
    }

    .popup-recovery {
        width: 100%;
    }

    .logo__image {
        width: auto;
    }

    .header {
        padding-top: 10px;
    }

    .button-menu {
        margin-right: 0.4rem !important;
    }

    /* .po-footer {
        position: fixed;
    } */

    .main-container .h1:first-child {
        margin-top: 10px;
    }

    .main-container .h3 {
        margin-top: 10px;
    }

    .po-main-img-typography {
        margin-top: 24px;
    }

    .po-main-card-container {
        margin-top: 36px;
    }

    .po-main-service-container .h2:first-child {
        margin-top: 12px;
    }

    .po-main-service-cell-img {
        max-width: 48px;
    }

    .filter-form {
        flex-direction: column;
    }

    .po-filter-item,
    .po-filter-select {
        width: 100% !important;
    }

    .po-daterange {
        width: 100%;
    }

    .po-order-info {
        flex-direction: column;
    }

    .po-table-list .col-auto {
        width: 100% !important;
    }

    .po-mob-col2 {
        margin-top: 1.5rem !important;
    }

    .admin-table,
    .apayout table,
    .payout-table {
        width: 100%;
        margin-bottom: 15px;
        border: 1px solid #ddd;
        display: block;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        -ms-overflow-style: -ms-autohiding-scrollbar;
    }

    .po-nice-select-wrap {
        min-width: auto;
    }
}

/* <--------------------------------------> */

@media (max-width: 575.98px) {
    main {
        margin-top: 60px;
    }

    .po-button,
    .po-button-2 {
        font-size: 14px;
    }

    .po-icon-txt {
        font-size: 14px;
    }

    .open-popup-auth {
        margin-left: 1rem !important;
    }

    .popup-auth-guest {
        margin-left: 1rem !important;
    }

    .po-btn-demo {
        width: 132px;
        min-width: 132px;
    }

    .po-btn-demo,
    .button-menu {
        margin-right: 0.4rem !important;
    }

    .po-top-bar {
        padding: 0 5px;
    }

    .header {
        height: 60px;
        padding-top: 10px;
    }

    .logo__image {
        width: 104px;
    }

    .popup-menu {
        width: 95%;

        height: 100% !important;
        overflow-y: auto;
    }

    .main-container .h1 {
        font-size: 30px;
    }

    .main-container .h3 {
        font-size: 20px;
        margin-top: 10px;
    }

    .main-container .h5 {
        font-size: 14px;
    }

    .main-container .p4 {
        font-size: 12px;
    }

    .po-main-img-typography {
        margin-top: 24px;
    }

    .po-right-list {
        margin-top: 30px;
    }

    .po-main-card-container {
        margin-top: 30px;
    }

    .po-main-card {
        margin-bottom: 0px;
    }

    .po-main-card-content {
        height: 100%;
        width: 100%;
    }

    .po-main-card-text-wrap {
        margin-top: 15px;
    }

    .po-main-card-image-wrap img {
        display: block;

        width: 50px;
        height: 50px;
    }

    .po-main-service-cell-wrap {
        margin-bottom: 10px;
    }

    .order-form-container {
        margin-top: 15px;
    }

    .tabs__control {
        column-gap: 10px;
    }

    .panel-container {
        margin-top: 15px;
        padding-right: 15px;
        padding-left: 15px;
    }

    .order-info-button-block {
        gap: 5px;
        flex-direction: column;
    }

    .system-close-order {
        justify-content: center !important;
        margin-top: 0px;
    }

    .button-separator {
        display: none;
    }

    .counters {
        gap: 5px;
    }

    .po-grid-service {
        grid-template-columns: repeat(1, 1fr);
    }

    .po-grid-service input,
    .po-add-service-select {
        max-width: unset;
    }

    .po-button-add-service-wrap {
        position: relative;
        bottom: 0;
        margin-top: 16px;
    }

    .add-service-form {
        position: relative;
        top: 40px;

        margin: 0;
    }

    .po-serv-wrapper {
        height: 450px;
        overflow-y: auto;
    }

    .po-info-grid {
        grid-template-columns: minmax(120px, 30%) 1fr;
    }
}

/* <--------------------------------------> */

@media (max-width: 360px) {
    .logo__image {
        width: 65px;
    }

    .po-btn-demo,
    .button-menu {
        margin-right: 0rem !important;
    }

    .po-top-bar {
        padding-right: 0;
    }

    .po-show-info-label {
        width: 130px;
    }

    .nextStepInfo {
        gap: 5px;
        flex-direction: column;
    }
}

/* <--------------------------------------> */
/* <--------------------------------------> */

@media (min-width: 768px) and (max-width: 991px) {
    .order-info-button-block {
        gap: 5px;
        flex-direction: column;
    }

    .system-close-order {
        justify-content: center !important;
        margin-top: 0px;
    }

    .button-separator {
        display: none;
    }
}

/* <--------------------------------------> */

@media (min-width: 575.98px) and (max-width: 768px) {
    .po-main-card-content {
        flex-direction: row;
        max-width: unset;
        padding: 16px 0px 16px 20px;
        text-align: left;
        gap: 16px;
    }

    .po-main-card-image-wrap {
        width: 50px;
        height: 50px;
        flex-shrink: 0;
        flex-grow: 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .po-main-card-image-wrap img {
        display: block;

        width: 50px;
        height: 50px;
    }

    .po-main-card-text-wrap {
        margin-top: 0;
        margin-left: 32px;
        align-items: flex-start;
    }
}

/* <--------------------------------------> */

@media screen and (orientation: landscape) {
    .popup {
        height: auto;
        max-height: none;
        /* position: absolute; */
    }

    .popup-executor {
        position: absolute;
        top: auto;
        bottom: 100px;
        right: 100px;
        width: 340px;
        max-width: 90vw;
        height: auto;
        box-sizing: border-box;
    }
}
