@charset "UTF-8";
@import url("https://fonts.googleapis.com/css2?family=Exo+2:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap");
@import url('https://fonts.googleapis.com/css2?family=Mulish:ital,wght@0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;0,1000;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900;1,1000&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Exo 2';
    font-size: 15px;
}

:root {
    --block_bg: #ecf0ec;
    --block_color_border: #dde0dd;
    --b-radius: 25px;
    --button_param_bg: #b6b5b5;
    --text_no_contrast: #8b8b8b;
}

[data-title] {
    position: relative;
    font-style: normal;
    font-size: 20px;
    color: #327fe4;
    display: none;

    &:after {
        content: 'ⓘ';
    }

    &:before,
    span {
        content: attr(data-title);
        width: auto;
        display: none;
        background: white;
        padding: 15px;
        border-radius: 10px;
        position: absolute;
        top: 100%;
        right: 0;
        font-size: 14px;
        color:#666;
        box-shadow: 0 5px 10px #00000009;
    }

    &:hover:before {
        display: block;
    }

    &:hover span {
        display: block;
    }

    & a {
        color: #327fe4;
        text-decoration: none;
        margin:0 4px;
        font-size: inherit;
    }
}


.hidden {
    display: none;
}

.wrapper {
    max-width: 1440px;
    margin: 0 auto;
    display: block;
    padding: 20px;

    @media (width<1440px) {
        max-width: 1024px;
    }
}

.b_section {
    display: grid;
    grid-template-columns: auto 20%;
    position: relative;
    margin: 20px 0 0;
    gap: 20px;

    @media (width<1024px) {
        grid-template-columns: 1fr;
    }
}

.b_item {
    display: flex;
    align-items: start;
    background: var(--block_bg);
    padding: 20px;
    border-radius: var(--b-radius);

    @media (width<1024px) {
        flex-wrap: wrap;
    }

    &:has(#total) {
        display: block;
        position: sticky;
        bottom: 0px;

        @media (width<1024px) {
            border-top: 1px solid #dae2ec;
        }
    }

    >p {
        border-bottom: 1px dashed var(--block_color_border);
        padding-bottom: 5px;
        width: 100%;
        margin: 5px 0 0;
        justify-content: space-between;
    }

    >hr {
        border-top: 1px solid var(--block_color_border);
        display: block;
        width: 100%;
        margin-block: 5px;
    }

    #total {
        font-size: 22px;
    }

    .total {
        display: flex;
        justify-content: space-between;
    }
}

.b_content {
    display: flex;
    flex-wrap: wrap;
    align-self: stretch;
    align-content: start;
    gap: 20px;

    @media (width<1024px) {
        margin: 20px 0;
    }
}

.b_content:not(:first-child) {
    margin-left: 30px;
    padding-inline-start: 30px;
    border-left: 1px solid var(--block_color_border);

    @media (width<900px) {
        border-left: none;
        border-top: 1px solid var(--block_color_border);
        margin: 20px 0;
        padding: 20px 0 0;
    }
}

.b_content>img {
    background: white;
    padding: 10px;
    border-radius: var(--b-radius);
    max-width: 60px;
    object-fit: contain;
    box-sizing: content-box;
}

.b_item_param {
    display: inline-block;
    flex-wrap: wrap;
    flex-basis: 100%;
}

.b_item_param>h2 {
    font-size: 17px;
    font-weight: 700;
}

.b_item_param input[type=text],
[type=number],
.b_item_param select {
    padding: 10px;
    border: none;
    margin: 10px 0 0;
    border-radius: var(--b-radius);
    outline: 0;
    width: 100%;
    font-weight: 500;
    background: white;

    &[disabled] {
        background: #d9e0dd;
        cursor: no-drop;

        &::placeholder {
            color: #c5cac7;
        }
    }
}

.b_item_options_wrapper {
    display: flex;
    flex-wrap: wrap;

    &:has(>input) {
        flex-wrap: nowrap;
    }

    >input:not(:last-child) {
        margin-right: 10px;
        ;
    }
}

.b_item_option {
    margin-block-start: 10px;
    display: flex;
    align-items: center;
    position: relative;
    cursor: pointer;
    margin-inline-end: 10px;
    position: relative;

    >p {
        font-size: 13px;
        cursor: default;
        color: var(--text_no_contrast);
    }

    &:before {
        content: '';
        min-width: 36px;
        height: 24px;
        background: var(--button_param_bg);
        margin-inline-end: 5px;
        border-radius: 50px;
    }

    &:after {
        content: '';
        width: 22px;
        height: 22px;
        background: white;
        left: 1px;
        position: absolute;
        border-radius: 100%;
        transition: all .1s ease
    }
}

.b_item_option:has(input:checked):after {
    left: 13px;
}

.b_item_option:has(input:checked):before {
    background: #4cba68
}

.b_item_option:has(input[disabled]) {
    &:after {
        background: #eedede;
        cursor: no-drop;
    }

    &:before {
        /* border:1px solid #d69b9b; */
        background: #ddbcbc;
        box-sizing: border-box;
    }
}

.b_item_option:has(input:checked)>p {
    color: black
}

.weedsSumm,
.shrubSumm,
.collectGrassSumm,
.exportGrassSumm,
.visitSumm,
.serviceSumm {
    display: none;
}

.b_section:has(#weeds:checked) .b_item>p:has(#weedsSumm),
.b_section:has(#shrub:checked) .b_item>p:has(#shrubSumm),
.b_section:has(#collecting:checked) .b_item>p:has(#collectGrassSumm),
.b_section:has(#exportGrass:checked) .b_item>p:has(#exportGrassSumm),
.b_item:has(#total:not(:empty)) .visitSumm,
.b_item:has(#total:not(:empty)) .serviceSumm {
    display: block;
}

.b_item_option_img {
    margin-block-start: 10px;
    display: inline-block;
    cursor: pointer;
}

.b_item_option_img>img {
    width: 40px;
    padding: 1px;
    border: 2px solid transparent;
    border-radius: var(--b-radius);
    background: white;
    object-fit: contain;

    &:hover {
        border: 2px solid var(--button_param_bg);
    }
}

.b_item_param>label:has(input[type=radio]:checked)>img {
    border: 2px solid #4cba68;
}