html {
  width: 100%;
}

body {
  overflow-x: hidden !important;
}

body.show-spinner>main {
  overflow: hidden !important;
}

/* Hide everything under body tag */
body.show-spinner>* {
  opacity: 0;
}

/* Spinner */
body.show-spinner::after {
  content: " ";
  display: inline-block;
  width: 30px;
  height: 30px;
  border: 2px solid rgba(0, 0, 0, 0.2);
  border-radius: 50%;
  border-top-color: rgba(0, 0, 0, 0.3);
  animation: spin 1s ease-in-out infinite;
  -webkit-animation: spin 1s ease-in-out infinite;
  left: calc(50% - 15px);
  top: calc(50% - 15px);
  position: fixed;
  z-index: 1;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@-webkit-keyframes spin {
  to {
    -webkit-transform: rotate(360deg);
  }
}

div#feature_list .form-group {
    display: flex;
}


[data-action="deleteProductFeature"] {
    font-size: 28px;
    display: flex;
    justify-content: center;
    align-items: baseline;
    padding-top: 30px;
    cursor:pointer;
}

.alert {
    position: fixed;
    top: 50%;
    padding: 20px 60px;
    left: 50%;
    border-radius: 5px;
    transform: translate(-50%, -50%);
    display: none;
}

.customAlert {
    padding: 20px 30px;
    margin: 0 0 30px 0;
    font-size: 14px;
}

.forMessages {
    color: #e52121;
    margin: 10px 0 0 0;
    font-size: 14px;
}

.btnAddFeature:hover {
    color: #fff !important;
}

.is-invalid {
    border-color: #dc3545 !important;
    padding-right: calc(1.5em + .75rem) !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='%23dc3545' viewBox='-2 -2 7 7'%3e%3cpath stroke='%23dc3545' d='M0 0l3 3m0-3L0 3'/%3e%3ccircle r='.5'/%3e%3ccircle cx='3' r='.5'/%3e%3ccircle cy='3' r='.5'/%3e%3ccircle cx='3' cy='3' r='.5'/%3e%3c/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: center right calc(.375em + .1875rem) !important;
    background-size: calc(.75em + .375rem) calc(.75em + .375rem) !important;
}

.input-readonly {
    background-color: #e9ecef !important;
}

.custom-control .btn {
    opacity: 0.5 !important;
    transition: all .3s ease-in-out;
    cursor: pointer;
}

.custom-control .active {
    opacity: 1 !important;
}

.popup_notify {
    transition: all 0.2s ease-out;
    position: absolute;
    bottom: 5%;
    right: 3%;
    padding: 40px 20px;
    display: none;
    text-align: center;
    vertical-align: middle;
    min-width: 400px;
}

.select2-container--disabled span.selection span.select2-selection {
    background-color: #e9ecef !important;
}

.products_preview_container img {
    display: block !important;
    width: 70px !important;
    height: 70px !important;
    object-fit: cover !important;
    border-radius: 3px !important;
}

.catalog-image-upload-form .custom-file-input:lang(en) ~ .custom-file-label {
    line-height: 66px;
    border-top-left-radius: .75rem;
    border-bottom-left-radius: .75rem;
}

.catalog-image-upload-form .custom-file-input:lang(en) ~ .custom-file-label::after {
    content: 'Открыть проводник';
    height: 86px;
    line-height: 66px;
}

.catalog-image-upload-form .input-group-append .btn {
    border-top-right-radius: .75rem;
    border-bottom-right-radius: .75rem;
}

.image-catalog-item-block span {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.search-input input[type="text"] {
    padding: 10px;
    min-width: 350px;
}

.search-input .search-sm:after {
    top: 8px !important;
}

.main_image_ajaxselect .select2-selection--single {
    height: auto !important;
    min-height: 39px !important;
}

.main_image_ajaxselect .select2-selection--single .select2-selection__rendered {
    height: auto !important;
    min-height: 39px !important;
}

.main_image_ajaxselect .select2-selection__clear {
    margin-top: 16px !important;
}

.main_image_ajaxselect .select2-selection__placeholder {
    display: block !important;
    margin-top: 10px !important;
}
