:root {
    --blue: #1158e7;
    --yellow: #fcaf17;
}

.carbody__skeleton {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.skeleton__center  {
    flex: 1 65%;
}

.skeleton__center img {
    user-select: none;
    display: block;
    margin-inline: auto;
    margin-top: 50px;
}

.skeleton__left, .skeleton__right {
    flex: 0 145px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
}

.skeleton__top,
.skeleton__bot {
    flex: 1 100%;
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
}

.skeleton__item {
    position: relative;
    border-radius: 24px;
    max-width: 144px;
    width: 100%;
    height: 60px;
    padding: 10px;
    box-shadow: 2px 4px 10px rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.skeleton__item::before {
    content: attr(data-count);
    position: absolute;
    width: 20px;
    height: 20px;
    top: 0;
    left: 0;
    z-index: 1;
    border: 1px solid #fff;
    text-align: center;
    font-size: 14px;
    font-weight: 700;
    line-height: 133%;
    color: #fff;
    outline: 1px solid var(--blue);
    background-color: var(--blue);
    border-radius: 50%;
}

.skeleton__item > .skeleton__item-title {
    display: inline-block;
    margin: 0;
    gap: 8px;
}

.skeleton__item img {
    user-select: none;
    max-width: 40px;
}


.skeleton__item-position {
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding-bottom: 10px;
    border-bottom: 1px solid lightgray;
    margin-bottom: 15px;
}

.skeleton__item .skeleton__item-position {
    display: none;
}

.skeleton__item[data-parts="2"] .skeleton__item-position {
    display: flex;
}

.skeleton__item-body {
    position: absolute;
    top: 105%;
    left: 0;
    background: #fff;
    border: 1px solid lightgray;
    box-shadow: 2px 4px 10px rgba(0, 0, 0, 0.4);
    border-radius: 10px;
    width: 270px;
    padding: 10px;
    z-index: 4;
    opacity: 0;
    pointer-events: none;
    transition: all .3s cubic-bezier(0.075, 0.82, 0.165, 1);
}

.skeleton__right .skeleton__item-body {
    right: 0;
    left: initial;
}

.skeleton__top .skeleton__item:nth-last-child(-n+7) .skeleton__item-body {
    right: 0;
    left: initial;
}

.skeleton__item.active .skeleton__item-body {
    opacity: 1;
    pointer-events: all;
}

.skeleton__item-title {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 15px;
    display: block;
}

.skeleton__item.active .skeleton__item-body .skeleton__item-title {
    display: none;
}

.skeleton__item-btn {
    padding: 10px 30px;
    width: 100%;
    margin-top: 20px;
}   

/* radio-btns */
.control {
    font-family: arial;
    display: block;
    position: relative;
    padding-left: 30px;
    margin-bottom: 2px;
    padding-top: 2px;
    cursor: pointer;
    font-size: 15px;
}
    .control input {
        position: absolute;
        z-index: -1;
        opacity: 0;
    }
.control_indicator {
    position: absolute;
    top: 2px;
    left: 0;
    height: 20px;
    width: 20px;
    background: #e6e6e6;
    border: 0px solid #000000;
    border-radius: undefinedpx;
}
.control:hover input ~ .control_indicator,
.control input:focus ~ .control_indicator {
    background: #cccccc;
}

.control input:checked ~ .control_indicator {
    background: var(--blue);
}
.control:hover input:not([disabled]):checked ~ .control_indicator,
.control input:checked:focus ~ .control_indicator {
    background: var(--blue);
}
.control input:disabled ~ .control_indicator {
    background: #e6e6e6;
    opacity: 0.6;
    pointer-events: none;
}
.control_indicator:after {
    box-sizing: unset;
    content: '';
    position: absolute;
    display: none;
}
.control input:checked ~ .control_indicator:after {
    display: block;
}
.control-radio .control_indicator {
    border-radius: 35%;
}

.control-radio .control_indicator:after {
    left: 6px;
    top: 6px;
    height: 8px;
    width: 8px;
    border-radius: 50%;
    background: #ffffff;
    transition: background 250ms;
}
.control-radio input:disabled ~ .control_indicator:after {
    background: #7b7b7b;
}.control-radio .control_indicator::before {
    content: '';
    display: block;
    position: absolute;
    left: 0;
    top: 0;
    width: 3.813rem;
    height: 3.815rem;
    margin-left: -19px;
    margin-top: -19px;
    background: var(--blue);
    border-radius: 3rem;
    opacity: 0.5;
    z-index: 99999;
    transform: scale(0);
}

#user-authentication-form span.h5 {
    display: block;
    text-align: center;
    margin-bottom: 15px;
}


@keyframes s-ripple {
    0% {
        opacity: 0;
        transform: scale(0);
    }
    20% {
        transform: scale(1);
    }
    100% {
        opacity: 0.01;
        transform: scale(1);
    }
}
@keyframes s-ripple-dup {
   0% {
       transform: scale(0);
    }
   30% {
        transform: scale(1);
    }
    60% {
        transform: scale(1);
    }
    100% {
        opacity: 0;
        transform: scale(1);
    }
}
.control-radio input + .control_indicator::before {
    animation: s-ripple 250ms ease-out;
}
.control-radio input:checked + .control_indicator::before {
    animation-name: s-ripple-dup;
}

.remove-line {
    display: block;
    cursor: pointer;
}

.hidden {
    display: none;
}

.total {
    text-align: right;
    font-weight: 700;
    font-size: 22px;
}

#skeleton_summury {
    margin-top: 20px;
}

#skeleton_summury td select {
    width: 100%;
    max-width: 300px;
}

#skeleton_summury td,
#skeleton_summury th {
    text-align: center;
}

#skeleton_summury select {
    height: 30px;
    border-radius: 4px;
    border: 1px solid rgb(149, 148, 148);
}

.form__overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100dvh;
    background: rgba(0, 0, 0, 0.3);
    z-index: 20;
    display: none;
}

.form__overlay.active {
    display: grid;
    place-items: center;
}

.form__overlay form {
    max-width: 425px;
    width: 100%;
    border-radius: 12px;
    background: #fff;
}

section.carbody-calculator {
    overflow: initial;
    padding: 40px 0;
}

@media (max-width: 1200px) {
    .skeleton__item {
        max-width: none;
        flex: 1 1 48%;
    }
    .skeleton__center {
        order: -1;
    }
    .skeleton__left, 
    .skeleton__right {
        flex: 1 100%;
        flex-wrap: wrap;
        flex-direction: row;
    }
    .skeleton__bot .skeleton__item:nth-child(1) { order: 8; }
    .skeleton__bot .skeleton__item:nth-child(2) { order: 7; }
    .skeleton__bot .skeleton__item:nth-child(3) { order: 6; }
    .skeleton__bot .skeleton__item:nth-child(4) { order: 5; }
    .skeleton__bot .skeleton__item:nth-child(5) { order: 4; }
    .skeleton__bot .skeleton__item:nth-child(6) { order: 3; }
    .skeleton__bot .skeleton__item:nth-child(7) { order: 2; }
    .skeleton__bot .skeleton__item:nth-child(8) { order: 1; }
    /* .skeleton__right {
        order: 5;
    } */
    .skeleton__left {
        order: 6;
    }
    .skeleton__left .skeleton__item:nth-child(1) { order: 8; }
    .skeleton__left .skeleton__item:nth-child(2) { order: 7; }
    .skeleton__left .skeleton__item:nth-child(3) { order: 6; }
    .skeleton__left .skeleton__item:nth-child(4) { order: 5; }
    .skeleton__left .skeleton__item:nth-child(5) { order: 4; }
    .skeleton__left .skeleton__item:nth-child(6) { order: 3; }
    .skeleton__left .skeleton__item:nth-child(7) { order: 2; }
    .skeleton__left .skeleton__item:nth-child(8) { order: 1; }
    
    .carbody__skeleton {
        flex-direction: column;
    }
}

@media (max-width: 1024px) {
    .carbody__skeleton {
        margin-bottom: 20px;
    }

    .skeleton__block {
        flex: 1 100%;
        flex-wrap: wrap;
        align-items: flex-start;
    }

    .skeleton__center img {
        margin-top: 0;
    }

    .skeleton__item {
        width: 48%;
        border-radius: 12px;
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        gap: 16px;
        height: auto;
        min-height: 72px;
    }

    .skeleton__item.active .skeleton__item-body {
        position: initial;
        flex: 1 100%;
        box-shadow: none;
        border: none;
    }

    .skeleton__item.active .skeleton__item-body .skeleton__item-title {
        display: none;
    }

    .skeleton__item img {
        width: 50px;
    }
    .skeleton__item > .skeleton__item-title {
        display: inline-block;
        margin: 0;
    }
}

.invalid {
    width: 100%;
    margin-top: 0.25rem;
    font-size: .875em;
    color: #dc3545;
}

.carbody-calculator #carbody-result {
    margin-top: 40px;
}

@media (max-width: 768px) {
    .skeleton__item  {
        width: 100%;
        max-width: 100%;
    }
    #skeleton_summury th,
    #skeleton_summury td {
        font-size: 14px;
        vertical-align: middle;
    }
    .total {
        font-size: 18px;
    }
}

@media (max-width: 540px) {
    #skeleton_summury .butn {
        width: 100%;
    }
    .skeleton__item {
        flex: 1 1 100%;
    }
    .skeleton__left, 
    .skeleton__right {
        flex: 1 1 100%;
    }
}