



/*********** SITE FORMS *******************/

.cck_page_form {
    display: flex;
    flex-direction: column;
}

.cck_page_form .cck-pos-mainbody {
    display: flex;
    flex-direction: column;
}

div.cck_forms input.inputbox,
div.cck_forms textarea.inputbox,
div.cck_forms select.inputbox,
div.cck_forms button.inputbox {
    float: left !important;
    margin: 0 !important;
    padding: 8px 10px !important;
    background: none repeat scroll 0 0 #f8f8f8 !important;
    height: 50px;
    vertical-align: middle;
    font-weight: 600;
    color: #666;
}




/*********** jgrid *******************/

.jgrid .icon-publish,
.jgrid .icon-unpublish{
    display: flex;
    justify-content: center;
    align-items: center;
    width: 32px;
    height: 32px;
    border: 1px solid #cccccc;
    border-radius: 50%;
    margin: 0 auto;
}
.jgrid + div {
    display: none;
}




/*********** checkbox, radio !!!! *******************/

.rsv-checkbox-set,
.rsv-radio-set {
    padding-top: 10px !important;
}

.rsv-checkbox-set input,
.rsv-radio-set input {
    margin-right: 5px;
    display: none;
}
.rsv-checkbox-set label,
.rsv-radio-set label {
    margin-right: 15px;
    cursor: pointer;
    display: flex !important;
    align-items: center;
    line-height: 130% !important;
    margin-bottom: 10px !important;
    position: relative;
    z-index: 100;
}

.rsv-checkbox-set.vertical label,
.rsv-radio-set.vertical label {
    width: fit-content;
    float: none !important;
}

.rsv-checkbox-set label:before,
.rsv-radio-set label:before {
    font-family: "Font Awesome 6 Free";
    font-size: 30px;
    line-height: 1;
    font-weight: 300;
    color: #e5e5e5;
    margin-right: 10px;
    flex-basis: 20px;
    flex-shrink: 0;
}
.rsv-checkbox-set label:before {
    content: "\f0c8";
}
.rsv-radio-set label:before {
    content: "\f111";
}
.rsv-checkbox-set input:checked + label:before {
    content: "\f14a";
    font-weight: 900;
    color: rgba(0, 0, 0, 0.5);
}
.rsv-radio-set input:checked + label:before {
    content: "\f13a";
    font-weight: 900;
    color: rgba(0, 0, 0, 0.5);
}




/*********** COLORBOX ONLY Style 4 !!!! *******************/

#cboxContent {
    padding: 50px;
    background: transparent;
}

#cboxLoadedContent {
    margin-bottom: 0;
}
#cboxOverlay {
    background: #000000;
    opacity: 0.8 !important;
}

#cboxClose {
    display: flex;
    align-items: center;
    top:-5px;
    right: 0;
    bottom: calc(100% - 53px);
    color: #999999;
}
#cboxPrevious,
#cboxNext {
    bottom: 50%;
    display: flex;
    align-items: center;
    width: 40px;
    height: 40px;
    color: transparent;
}
#cboxPrevious {
    left: 5px;
}
#cboxNext {
    left: calc(100% - 45px);
    justify-content: right;
}
#cboxClose::after,
#cboxPrevious::before,
#cboxNext::after  {
    font-family: "Font Awesome 6 Free";
    font-weight: 600;
    font-size: 32px;
    color: #999999;
}
#cboxClose::after {
    content: '\f00d';
    margin-left: 10px;
}
#cboxPrevious::before {
    content: '\f053';
    margin-left: 8px;
}
#cboxNext::after {
    content: '\f054';
    margin-right: 8px;
}

#cboxCurrent {
    left: 10px;
    top: 10px;
    bottom: calc(100% - 30px);
    width: 110px;
    color: #999999;
}

#cboxTitle {
    left: 5px;
    width: 100%;
    bottom: 10px;
}
#cboxTopCenter,
#cboxTopLeft,
#cboxTopRight,
#cboxBottomCenter,
#cboxBottomLeft,
#cboxBottomRight,
#cboxMiddleRight,
#cboxMiddleLeft {
    background: none;
}

/****************** Select2 ********************/

ul.select2-results__options::-webkit-scrollbar{
    width: 2px;
    background: #eeeeee;
}
ul.select2-results__options::-webkit-scrollbar-thumb{
    background: #cccccc;
}
ul.select2-results__options {		/* firefox*/
    scrollbar-color: rgb(204,204,204, 0.4) rgba(238,238,238, 0.3);
    scrollbar-width: thin;  /* толщина auto/thin/none */
    overflow-x: hidden;
}

/* visibled block */

.select2-container {
    width: 100%;
}

.select2-container--default .select2-selection--single {
    background-color: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 0;
    background-image: url(data:image/svg+xml;charset=UTF-8,%3Csvg%20width%3D%2224%22%20height%3D%2216%22%20viewBox%3D%220%200%2024%2016%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%20%20%20%20%3Cpolygon%20fill%3D%22%23666%22%20points%3D%2212%201%209%206%2015%206%22%20%2F%3E%0A%20%20%20%20%3Cpolygon%20fill%3D%22%23666%22%20points%3D%2212%2013%209%208%2015%208%22%20%2F%3E%0A%3C%2Fsvg%3E%0A) !important;
    background-repeat: no-repeat !important;
    background-position: 100% 50% !important;
    padding: 14px 25px 4px 10px !important;
    cursor: pointer;
    min-width: 150px;
    height: 50px;
    vertical-align: middle;
    font-weight: 600;
}
.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 26px;
    position: absolute;
    z-index: -10;
    top: 1px;
    right: 1px;
    width: 20px;
}

/* hidden block */
.select2-dropdown {
    top: 5px;
    border: 1px solid #e5e5e5 !important;
    background: #ffffff;
    min-width: 240px !important;
    padding: 5px 0;
}
.select2-search input:focus {
    outline: none;
    margin-bottom: 5px;
}
.select2-results {
    background: #ffffff;
    max-height: 432px;
}
ul.select2-results__options {
    background: #ffffff;
    max-height: 432px !important;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: #222222;
    color: white;
}

/****************** iframe ********************/

iframe {
    width: 100%;
}

.rsv-video-container_16_9 {
    position: relative;
    overflow: hidden;
    width: 100%;
    padding-top: 56.25%;
}

.rsv-video-container_16_9 iframe {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 100%;
}


/********************************************/
.no-empty-image:not(:has(.cck_value_upload_image)) {
    min-height: 100px;
    border: 1px solid #ebebeb;
}