.film-wrapper {
    margin-bottom: 2rem;
    margin-top: 3rem;
}

.film-wrapper h3 {
    margin: 0;
}

/* .hidden-inv{
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    position: absolute !important;
    z-index: -1000 !important;
} */

.film-wrapper .messages {
    display: none;
    padding: 10px;
    background: #4fad00;
    color: white;
    font-weight: bold;
}

.length-container__inner{
    display: flex;
    align-items: center;
}

.film-wrapper .message-success,
.film-wrapper .message-fail {
    display: block;
}

.film-wrapper .message-success {
    background: #4fad00;
}

.film-wrapper .message-fail {
    background: red;
}

.PACKAGES-film-container .item-row .PACKAGES-type-wrapper {
    display: flex;
    align-items: center;
}

.PACKAGES-type-wrapper > div {
    display: flex;
}

.PACKAGES-type-wrapper label {
    font-weight: normal;
    margin-left: 1rem;
    margin-right: 1.3rem;
}

.PACKAGES-type-wrapper .PACKAGES-label {
    margin-right: 1.3rem;
}

.PACKAGES-film-container {
    margin-bottom: 5rem;
    margin-top: 2rem;
}

.PACKAGES-film-container .item-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-direction: column;

    padding: 1rem 0.5rem;
    padding-right: 1.6rem;

    counter-reset: parameter-num2;
}

.PACKAGES-film-container .item-row .num::before {
    display: inline-block;

    flex-shrink: 0;

    counter-increment: parameter-num2;
    content: counter(parameter-num2);

    width: 26px;
    height: 26px;
    margin-right: 12px;

    border: 1px solid #009ADE;
    border-radius: 50%;

    color: #009ADE;
    font-weight: 600;
    font-size: 16px;
    text-align: center;
    line-height: 1.5;
}

.PACKAGES-film-container .item-row > div {
    display: flex;
    width: 100%;
    justify-content: flex-start;
    align-items: center;
    margin-bottom: 3rem;
}

.PACKAGES-film-container .item-row > div > .PACKAGES-label,
.PACKAGES-film-container .item-row > div > label {
    flex-shrink: 0;
    display: inline-block;
    margin-bottom: 0;
    margin-right: 10px;
    font-weight: 700;
    width: 12%;
}

.PACKAGES-film-container .item-row .quality-container {
    display: flex;
    align-items: center;
}

.PACKAGES-film-container .item-row .quality-container img {
    width: 71px;
    height: 71px;
    margin-right: 10px;
}

.PACKAGES-film-container .item-row .quality-container label,
.PACKAGES-film-container .item-row .type-container label {
    font-weight: normal;
}

.type-container label > span{
    font-size: 13px;
}

.PACKAGES-film-container .item-row .quality-container > div,
.PACKAGES-film-container .item-row .type-container > div {
    display: flex;
    align-items: flex-start;
    margin-right: 2.5rem;

}

.PACKAGES-film-container .item-row .quality-container > div label,
.PACKAGES-film-container .item-row .type-container > div label {
    /* margin-left: 1rem; */
    margin-right: 0;
    margin-bottom: 0;
}

.PACKAGES-film-container .item-row .sizes-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.PACKAGES-film-container .item-row .sizes-container > div {
    display: flex;
    align-items: center;
}

.PACKAGES-film-container .item-row .sizes-container label,
.PACKAGES-film-container .item-row .sizes-container .PACKAGES-label {
    margin-right: 10px;
    margin-bottom: 0;
    font-weight: normal;
}

.PACKAGES-film-container .item-row .counter-wrapper {
    display: flex;
    align-items: center;
}

.PACKAGES-film-container .item-row .PACKAGES-film-count-container {
    position: relative;
}



.PACKAGES-film-container .item-row .weight-container {
    display: flex;
    color: red;
}

.PACKAGES-film-container .item-row .sizes-container .weight-container .PACKAGES-label{
    margin-right: 0
}

.weight-container__calculated{
    position: absolute;
    display: flex;
    min-width: 200px;
    top: 100%;
    left: 50%;
    transform: translate(-50%,20%);
}

.weight-container__calculated-inner{
    width: 100%;
    display: flex;
    /* gap: 5px; */
    justify-content: center;
    flex-wrap: wrap;
}

.weight-container__calculated .weight-container{
    /* position: absolute; */
    display: flex;
    border-top: none;
    text-align: center;
    /* top: 35px; */
    font-size: 1.2rem;
    /* left: 0; */
}

.PACKAGES-film-container .item-row .weight-container.ps-hidden {
    display: none;
}

#valve-length{
    position: absolute;
    top: 100%;
    color: red;
    left: 50%;
    transform: translate(-50%);
    width: 100%;
    text-align: center;
}

.PACKAGES-film-length-container{
    position: relative;
}

.hidden-block {
    display: none !important;
}

.PACKAGES-film-container .item-row .weight-value {
    padding: 1px 3px;
}

.PACKAGES-film-container .item-row .min-weight-alert {
    /* position: absolute; */
    display: block;
    border-top: none;
    color: red;
    text-align: center;
    /* top: 35px; */
    /* right: 0; */
    font-size: 1.2rem;
}

.PACKAGES-film-container .item-row .ps-restricted {
    animation-duration: 0.6s;
    animation-name: shining;
    animation-iteration-count: 10;
    animation-direction: alternate;
}

@keyframes shining {
    from {
        border-bottom: 2px solid transparent;
    }

    to {
        border-bottom: 2px solid #f00;
    }
}

.PACKAGES-film-container .PACKAGES-delete-item-button-container {
    display: flex;
    justify-content: center;
    width: 10%;
}

.PACKAGES-film-container input[type="number"] {
    width: 65px;
    padding: 5px;

    border: 1px solid var(--ps-select-border-color);
}

.PACKAGES-film-container .PACKAGES-delete-item-button-container button {
    width: 100%;
}

.PACKAGES-film-container .item-row .PACKAGES-delete-item-button-container button {
    height: 16px;
    width: 16px;

    background: none;
    background-image: url("./images/svg/x.svg");
    background-position: 50% 50%;
    background-size: contain;

    border: none;
}

.PACKAGES-film-container .item-row:first-child .PACKAGES-delete-item-button-container button {
    display: none;
}

.PACKAGES-film-container .item-row .add-item-row-btn {
    display: none;
}

.PACKAGES-film-container .item-row .add-item-row-btn:only-child {
    display: block;
}

.PACKAGES-film-container .item-row .add-item-row-alter-btn {
    font-size: 13px;
}

.PACKAGES-film-container .item-row.ps-hidden {
    display: none;
}

.item-row.clear-top-border {
    border-top: none;
}

.PACKAGES-film-container .item-row .sizes-wrapper {
    margin-bottom: 1rem;
}

.type-container > div label {
    display: flex;
    padding: 10px;
    /* border: 1px solid gray; */
    justify-content: center;
    flex-direction: column;
    text-align: center;
    border: 1px solid var(--ps-select-border-color);
}

.type-container > div input:checked + label{
    outline: 2px solid #167ac5;
}

.add-outline{
    outline: 2px solid #167ac5;
}

.type-container > div img{
    max-width: 100px;
}

.type-container > div label{
    margin: 0;
    width: 100%;
}

.type-container > div input{
    display: none;
}

@media (max-width: 1319px) {
    .PACKAGES-film-container .item-row .sizes-container {
        flex-wrap: wrap;
    }

    .PACKAGES-film-container .item-row .sizes-container > div {
        width: 50%;
        margin-bottom: 1rem;
    }

    .PACKAGES-film-container .item-row .PACKAGES-film-count-container .counter-wrapper{
        width: inherit;
    }

    .weight-container{
        display: flex;
        gap: 5px;
    }
    .min-weight-alert{
        right: 25px;
    }
    .weight-container .PACKAGES-label{
        width: inherit !important
    }

    .PACKAGES-film-container .item-row .PACKAGES-film-count-container .counter-wrapper label{
        margin-right: 0;
    }

    .PACKAGES-film-container .item-row .min-weight-alert{
        right: 35px;
    }

    .weight-container__calculated{
        position: absolute;
        width: 200px;
    }

    .PACKAGES-film-count-container .counter-wrapper{
        position: relative;
    }

    .PACKAGES-film-container .item-row .sizes-container label,
    .PACKAGES-film-container .item-row .sizes-container .PACKAGES-label {
        width: 40%;
        flex-shrink: 0;
    }

    .PACKAGES-film-container .item-row .sizes-wrapper {
        align-items: baseline;
    }

    .PACKAGES-film-container .item-row .counter-wrapper {
        width: 100%;
    }

    .PACKAGES-film-container .item-row {
        flex-wrap: wrap;
        padding-left: 1.6rem;
    }

    .PACKAGES-film-container .item-row .ps-counter_block {
        margin: 0;
    }

    .PACKAGES-film-container input[type="number"] {
        width: 100px;
    }


    .PACKAGES-film-container .item-row .add-item-row-btn {
        display: block;
    }

    .PACKAGES-film-container .item-row .add-item-row-alter-btn {
        display: none;
    }
}

@media (max-width: 900px) {
    .PACKAGES-film-container .item-row > div {
        flex-wrap: wrap;
    }

    .PACKAGES-film-container .item-row > div > .PACKAGES-label,
    .PACKAGES-film-container .item-row > div > label {
        width: 80%;
    }

    .PACKAGES-film-container .item-row .type-container,
    .PACKAGES-film-container .item-row .quality-container,
    .PACKAGES-film-container .item-row .sizes-container {
        margin-top: 1rem;
        margin-left: 3.8rem;
    }
}

@media (max-width: 579px) {
    .PACKAGES-film-container .item-row .type-container,
    .PACKAGES-film-container .item-row .quality-container,
    .PACKAGES-film-container .item-row .sizes-container {
        flex-direction: column;
    }

    .weight-container__calculated{
        min-width: 200px;
    }

    .PACKAGES-film-container .item-row .sizes-container > div {
        width: 100%;
    }

    .length-container__inner{
        width: 100%;
    }

    .PACKAGES-film-container .item-row .PACKAGES-film-count-container .counter-wrapper label{
        margin-right: 10px;
    }

    .PACKAGES-film-container .item-row .sizes-container > div:last-child {
        margin-top: 2rem;
    }
}

@media (max-width: 440px) {
    .PACKAGES-film-container .item-row .counter-wrapper,
    .PACKAGES-film-container .item-row .sizes-container > div,
    .length-container__inner {
        justify-content: space-between;
    }
}