#category_form {
    color: #242424;
    font-family: AlbertaSans, Roboto, sans-serif;
    line-height: 24px;

    --popup-width: 720px;

    -webkit-user-select: none;
    /* Safari */
    -ms-user-select: none;
    /* IE 10 and IE 11 */
    user-select: none;
    /* Standard syntax */
}

#category_form *::-webkit-scrollbar {
    width: 7px;
    height: 7px;
}

#category_form *::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.45);
    border-radius: 10px;
    box-shadow: rgba(255, 255, 255, 0.3) 0 0 0 1px;
}

#category_form *:hover::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.55);
}

#category_form:before {
    content: none;
}

#category_form .modal-content {
    padding: 0;
    max-height: 88vh;
    font-size: 14px;
    border: 0;
    /* max-height: 80%; */
    overflow: unset;
    height: 100%;
    display: flex;
    flex-direction: column;
}

#category_form .modal-inner {
    height: calc(100% - 240px);
    max-height: 745px;
    -webkit-border-radius: 20px;
    -moz-border-radius: 20px;
    border-radius: 20px;
    width: var(--popup-width);
    margin-left: calc((var(--popup-width) / 2 * -1));
    top: 120px;
    font-size: 16px;
}

#category_form .modal-inner * {
    box-sizing: border-box;
}

#category_form .modal-close:after {
    background: url(/images/popups/close-shadow3.svg) center no-repeat;
    margin-left: calc((var(--popup-width) / 2 - 25px));
    top: 92px;
    color: #FFFFFF;
    z-index: 10000001;
    position: absolute;
    font-size: 0px;
    height: 15px;
    width: 15px;
}

#category_form .modal-close:before {
    opacity: 0.7;
    cursor: default;
    display: block;
}

@media screen and (max-height: 840px) {
    #category_form .modal-inner {
        height: calc(100% - 120px);
        max-height: 745px;
        top: 60px;
    }

    #category_form .modal-close:after {
        top: 32px;
    }
}

@media screen and (max-height: 520px) {}

@media screen and (max-width: 730px) {
    #category_form.modal-container .modal-inner {
        width: auto;
        -webkit-border-radius: 0;
        -moz-border-radius: 0;
        border-radius: 0;
        -webkit-box-sizing: border-box;
        -moz-box-sizing: border-box;
        box-sizing: border-box;
        top: 42px;
        left: 0;
        right: 0;
        padding-top: 0;
        height: calc(100% - 42px);
        -webkit-box-shadow: none;
        box-shadow: none;
        margin-left: 0 !important;
        overflow: hidden;
        max-height: unset;
    }

    #category_form.modal-container .modal-content {
        max-height: unset;
        height: 100%;
        overflow: auto;
    }

    #category_form .modal-close:after {
        padding: 2px 8px;
        margin-left: 0;
        top: 12px;
        left: auto;
        right: 10px;
    }
}

#category_form_header {
    background: #fff;
    padding: 30px;
    display: flex;
    flex-wrap: nowrap;
    align-items: flex-start;
    gap: 0 5px;
    flex-direction: column;
}

@media screen and (max-width: 30em) {
    #category_form_header {
        padding: 20px 16px;
        gap: 10px;
    }
}

#category_form_header_main_text {
    font-size: 22px;
    font-weight: bold;
    line-height: 30px;
}

#category_form_header_side_text,
#category_form_header_side_text a {
    /* color: #9A9A9A; */
    font-size: 16px;
    text-decoration: none;
    line-height: 21px;
}

#category_form__subscribe_alert {
    padding: 0 20px 20px 20px;
}

#category_form__subscribe_alert .alert_container {
    display: table;
}

#category_form_content {
    padding: 0 16px 0 30px;
    max-height: calc(100% - 111px - 77px);
    display: flex;
    flex-direction: column;
    /* min-height: unset; */
    flex: 1;
    overflow: auto;
    margin-right: 8px;
}

@media screen and (max-width: 30em) {
    #category_form_content {
        padding: 0 16px 20px;
        max-height: calc(100% - 101px - 77px);
    }
}





#category_form footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0;
    padding: 20px 30px 20px;
    z-index: 1;
    transition: box-shadow 0.5s ease;
}
#category_form footer.shadow {
  box-shadow: 0 0 40px 0 rgb(4 30 77 / 12%);
}

@media screen and (max-width: 730px) {
    #category_form footer {
        padding: 13px;
        box-shadow: 0 0 40px 0 rgb(4 30 77 / 12%);
        margin: 0;
    }
}

@media screen and (max-width: 350px) {
    #category_form footer {
        /* margin: 0; */
    }
}

@media screen and (max-width: 520px) {
    #category_form footer #footer_terms_wrapper {
        /* margin: 50px 0 30px; */
    }
}

#category_form #footer_actions_wrapper {
    width: 100%;
    display: flex;
    gap: 5px 10px;
    flex-wrap: wrap;
}

#category_form #footer_actions_wrapper .button.plus {
    margin-right: auto;
}
@media screen and (max-width: 730px) {
    #category_form #footer_actions_wrapper {
        width: unset;
    }
    #category_form #footer_actions_wrapper .button.plus {
        display: none;
    }
}

#category_form #footer_actions_wrapper .footer-button_wrap {
    gap: 5px;
    display: flex;
    /* margin-left: auto; */
    width: 100%;
}

#category_form .category_item:first-child {
    border-top: 1px solid #D9D9D9;
}

#category_form .category_item {
    border-bottom: 1px solid #D9D9D9;
}

#category_form .category_item input {}

#category_form .category_item label {
    min-height: 50px;
    word-break: break-all;
}


.category_item input.style_chb_24:checked+label {
    color: #242424;
    font-weight: bold;
}



#category_form .button {
    background-color: white;
    color: #242424;
    border: 1px solid #D9D9D9;
    padding: 0 30px;
    border-radius: 10px;
    cursor: pointer;
    /* font-size: 16px; */
    transition: color 0.5s ease, background-color 0.5s ease, border-color 0.5s ease;
    display: inline-flex;
    font-size: 16px;
    height: 50px;
    align-items: center;
    line-height: 21px;
}

#category_form .button:hover {
    border-color: #242424;
}

#category_form .button.fill {
    background-color: #417FF2;
    color: white;
    border: 0;
}

#category_form .button.fill:hover {
    background-color: #1F68EF;
}


#category_form .button.plus {
    background-color: white;
    color: #417FF2;
    border: 0;
    padding-left: 25px;
    background-image: url(/images/UI_icons/blue/plus.svg);
    background-repeat: no-repeat !important;
    background-position-y: center;
    background-position-x: 0;
    background-size: 14px;
    min-height: 50px;
}

#category_form .button.plus:hover {
    color: #242424;
    background-image: url(/images/UI_icons/plus.svg);
}

#category_form #category_form_content .button.plus {
    display: none;
}
@media screen and (max-width: 730px) {
    #category_form #category_form_content .button.plus {
        display: flex;
    }
}



#category_form .inside-popup {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000999;
    opacity: 0;
    color: #242424;
    line-height: 1.3;
    z-index: 10009999;

    opacity: 1;
    display: none;
}

#category_form .inside-popup-inner {
    position: absolute;
    background: #fff;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
    width: 580px;
    margin-left: -290px;
    left: 50%;
    top: calc(50% - 60px);
    margin-top: -170px;
    max-height: calc(100% - 400px);
    overflow: visible;
    border: none;
    border-radius: 20px;
    z-index: 10000003;
    overflow: auto;
    padding: 30px;
    max-width: calc(100% - 20px);
}

#category_form .inside-popup .close {
    display: block;
    text-indent: -100px;
    overflow: hidden;
    text-decoration: none;
    cursor: pointer;
}

#category_form .inside-popup .close:before {
    display: block;
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000002;
    background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAEElEQVR42gEFAPr/AAAAAMwA0QDNTiUx4gAAAABJRU5ErkJggg==);
    opacity: 0.7;
}

#category_form .inside-popup .close:after {
    content: "\00d7";
    position: absolute;
    left: 50%;
    text-decoration: none;
    text-indent: 0;
    margin-left: 275px;
    color: white;
    z-index: 10000002;
    border-radius: 3px;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    line-height: 25px;
    border: 0px;
    cursor: pointer;
    top: 50%;
    margin-top: calc(-170px - 25px - 60px);
    font-size: 0px;
    background: url(/images/popups/close-shadow3.svg) center no-repeat;
    height: 18px;
    width: 18px;
    padding: 0;
}

@media screen and (max-height: 840px) {
    #category_form .inside-popup-inner {
        max-height: calc(100% - 200px);
    }
}

@media screen and (max-height: 520px) {}

@media screen and (max-width: 600px) {
    #category_form .inside-popup-inner {
        margin-left: 0;
        left: 10px;
    }

    #category_form .inside-popup .close:after {
        left: unset;
        margin-left: unset;
        right: 10px;
    }

}


#category_form .inside-popup .category-title {
   margin-bottom: 30px;
   font-size: 22px;
   line-height: 30px;
   font-weight: bold;
}

#category_form .inside-popup label {
    color: #4A4A4A;
    font-size: 16px;
    padding-bottom: 10px;
    display: inline-block;
}


#category_form .inside-popup input {
    border: 1px solid #D9D9D9;
    border-radius: 10px;
    height: 50px;
    padding: 0 15px;
    color: #242424;
    font-size: 16px;
}

#category_form .inside-popup .category-access-switch {
    font-size: 0;
    position: relative;
}

#category_form .inside-popup .styled-select {
    height: unset;
    background: transparent;
    border: none;
    position: unset;
    width: 100%;
}

#category_form .inside-popup .select-selected {
    font-size: 16px;
    border: 1px solid #D9D9D9 !important;
    background: 0 0;
    color: #242424;
    height: 50px;
    width: 100%;
    background-repeat: no-repeat;
    background-position-x: calc(100% - 10px);
    background-position-y: calc(50% + 1px);
    background-image: url(/images/UI_icons/inputs/dropdown_grey.svg);
    background-size: 10px;
    line-height: 21px;
    padding: 0 15px;
    border-radius: 10px !important;
    display: flex;
    align-items: center;
    gap: 10px;
}

#category_form .inside-popup  .select-selected:after {
    display: none;
}
#category_form .inside-popup .select-selected img {
    width: 14px;
    height: 14px;
}

#category_form .inside-popup .select-selected.select-arrow-active {
    background-image: url(/images/UI_icons/inputs/dropdown_active_grey.svg);
    border-bottom-left-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}
#category_form .inside-popup .select-selected + .select-items {
   font-size: 14px;
   border: 1px solid #D9D9D9;
   box-shadow: none;
   border-radius: 0;
   border-bottom-left-radius: 10px !important;
   border-bottom-right-radius: 10px !important;
   overflow: hidden;
   top: calc(100% - 1px);
   padding: 5px 0;
}
#category_form .inside-popup .styled-select .select-items > div:hover {
    background: #f0f4f5;
}
#category_form .inside-popup .select-items .value {
    color: white;
}
#category_form .inside-popup .select-items > div {
    transition: 0.5s ease;
    color: #242424;
    font-size: 14px;
}
#category_form .inside-popup .select-items .checked:before {
    background-size: 14px;
    left: 10px;
    width: 14px;
}



#category_form .inside-popup .new_category_buttonset {
    margin-top: 30px;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}