/* UCZ Editor */
.ucoz-editor-panel,
#txtPart555message div:nth-child(1),
#txtPart555brief div:nth-child(1) {
  display: none !important;
}

.ucoz-editor-bottom {
  display: none !important;
}

.symbols-stat-wrapper {
  padding: 0;
  position: absolute;
  bottom: 10px;
  right: 10px;
  font-size: 12px;
  background: white;
  border-radius: 5px;
  padding: 5px 10px;
  color: #ccc;
}

/* ADD ORDER */

.checkbox {
  display: none
}

.label {
  align-items: center;
  align-self: flex-start;
  display: flex;
  margin: 10px 0;
  padding: 0 5px;
  cursor: pointer;
  font-weight: 500;
  box-sizing: border-box
}

@media (max-width:720px) {
  .label {
    margin: 35px 0;
  }
}

.clabel input[type=checkbox] {
  display: none;
}

.label:before {
  content: '';
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 1px solid var(--border-dark);
  border-radius: 5px;
  margin-right: 5px;
  background-repeat: no-repeat;
  background-position: center center;
  background-size: 50% 50%;
  background-color: none;
}

.checkbox:checked+label:before {
  background-color: var(--accent-color);
  border-color: transparent;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='ffffff' d='M6.564.75l-3.59 3.612-1.538-1.55L0 4.26 2.974 7.25 8 2.193z'/%3e%3c/svg%3e");
}

.checkbox:checked~.content-show {
  display: block;
  animation: slide-top .1s ease both
}

.add-pages-wrapper {
  display: flex;
  flex-wrap: wrap;
  flex-basis: 100%;
  font-family: 'Roboto';
  justify-content: space-between;
}

.add-content {
  display: flex;
  flex-wrap: wrap;
  flex-direction: column;
  flex-basis: calc(100% / 3 - 20px);
  flex-grow: 1;
  margin: 0 10px;
}

.content-show {
  display: none;
}

.add-content h2 {
  font-weight: 600;
  font-size: 18px;
  margin: 20px 0;
  text-transform: capitalize;
  padding: 0 15px
}

.add-content i {
  font-size: 14px;
  font-style: normal;
  margin-bottom: 10px;
  padding: 0 15px;
}

.add-pages-wrapper select {
  max-width: 300px;
  font-size: 14px !important;
}

.add-pages-wrapper input::placeholder {
  color: #b1b1b1;
  font-weight: 300;
}

.add-pages-wrapper .submit {
  margin: auto 0 0 0;
  padding: 15px;
  font-weight: 600;
  font-family: 'Arial';
  font-size: 14px;
}

/* ADD BLOG */
.add-item.panel select,
.add-item.panel input {
  display: flex;
  flex-basis: 100%;
  background: white !important;
}

.add-pages-wrapper.blog {
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: start;
}

.add-pages-wrapper.blog .log_button {
  background: var(--accent-color) !important;
  margin: 0 15px !important;
  font-weight: 600 !important;
  font-family: 'Roboto';
  letter-spacing: 1px;
  text-transform: none;
}

.add-pages-wrapper.blog h3 {
  display: flex;
  flex-basis: 100%;
  font-size: clamp(24px, 5vw, 28px);
  margin: 20px 0;
  font-weight: 400;
}

.add-item {
  display: flex;
  flex-wrap: wrap;
  flex-grow: 1;
  flex-basis: 100%;
  padding: 15px;
  border-radius: 10px;
}

.add-item:has(.item-block:nth-child(2)) .item-block {
  flex-basis: auto;
}

.add-item label {
  font-size: 14px;
  font-weight: 500;
  flex-basis: 100%;
}

.add-item.column {
  flex-direction: column;
}

.item-block {
  flex-basis: 100%;
  position: relative;
}

.add-item.text.head {
  margin-top: 30px;
}

.add-item.text input,
.add-item.text textarea {
  border: 2px solid var(--border-dark);
  flex-basis: 100%;
  padding: 30px;
  border-radius: 10px;
  width: 100%;
  font-size: 16px;
  font-family: 'Roboto';
  resize: none;
  background: white;
}

.add-item.text label {
  font-size: clamp(16px, 2vw, 18px);
  z-index: 10;
  background: white;
  padding: 0 10px;
  left: 30px;
  font-weight: 600;
  position: absolute;
  bottom: calc(100% - 9px)
}

@media (max-width:500px) {
  .item-block {
    border: 0;
    margin: 0 5px;
    padding: 0;
  }
}

/* BB CODES */


.item-block:has(textarea:focus-within) .bb-buttons,
.item-block:focus-within .bb-buttons,
.item:has(textarea:focus-within) .bb-buttons,
.item:focus-within .bb-buttons {
  opacity: 1;
  animation: slide-top .3s ease;
  display: flex;
}

.bb-buttons {
  background: white;
  position: relative;
  border-radius: 5px;
  opacity: 0;
  display: none;
  border: 1px dashed #bbb;
  margin-top: 10px
}

.bb-buttons:focus-within {
  opacity: 1;
}

@media (max-width:500px) {
  .bb-buttons {
    display: none;
    position: relative;
  }
}

.bb-buttons input,
.bb-buttons select {
  display: flex !important;
  align-content: center !important;
  align-self: center !important;
  align-items: center !important;
  line-height: 0;
  margin: 5px !important;
  box-sizing: border-box !important;
  padding: 0 !important;
  width: 32px !important;
  height: 32px !important;
  justify-content: center !important;
  font-family: 'Exo 2' !important;
  cursor: pointer;
  border: none !important
}

.bb-buttons input:hover,
.bb-buttons select:hover {
  background: var(--border-dark) !important
}

.invisibleMob {
  display: block;
}

@media (max-width:500px) {
  .invisibleMob {
    display: none !important;
  }
}

/* ADD STORE */
.add-store-wrapper,
.add-blog-wrapper {
  flex-grow: 1;
  display: flex;
  flex-wrap: wrap;
  font-family: 'Roboto';
}

.store-add-item,
.blog-add-item {
  padding: 5px;
  flex-basis: 0;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

@media (max-width:500px) {
  .blog-add-item {
    flex-basis: 100%;
  }
}

.store-add-item.full,
.blog-add-item.full {
  flex-basis: 100%;
}

.store-add-item h3,
.blog-add-item h3 {
  margin-bottom: 30px;
  font-size: 24px;
  font-weight: 500;
  font-family: 'Roboto';
}

.item {
  display: block;
  margin-bottom: 20px;
  flex-basis: 100%;
  flex-grow: 1;
  position: relative;
}

.item.file .file-button {
  padding: 5px 10px;
  border-radius: 5px;
  background: var(--border);
  margin: 10px 0;
  display: table;
  cursor: pointer;
}

.image-uploader-type-switcher {
  justify-content: start;
}

.item .tag {
  position: absolute;
  bottom: 25px;
  right: 10px;
  line-height: 0;
  color: var(--border-dark)
}

.item.category {
  position: initial;
}

.item.category .u-comboedit {
  font-weight: 500 !important;
  font-size: 16px !important;
  min-width: 50px !important;
  background-color: white !important;
  font-family: 'Roboto' !important;
  line-height: 100%;
  text-align: left;
  border: 1px solid #ccc;
  padding: 10px !important;
  margin: 5px 0 !important;
}

.item.status select:has(option[value="Нет в наличии"]:checked) {
  color: red !important
}

.item.status select:has(option[value="В наличии"]:checked) {
  color: var(--main-color) !important
}

.subitem {
  display: flex;
  flex-grow: 1;
  align-items: center;
  justify-content: center;
}

.subitem.loadFile img {
  width: 256px;
  height: 256px;
  object-fit: contain;
  border-radius: 5px;
}

@media (max-width:720px) {
  .subitem.loadFile {
    /* flex-wrap: wrap; */
  }

  .subitem.loadFile img {
    width: 128px;
    height: 128px;
  }
}

.subitem .item {
  margin-right: 10px;
}

.subitem .item:last-of-type {
  margin-right: 0
}

.subitem.moder {
  align-items: flex-start;
}

.subitem.moder label {
  display: flex;
  align-items: center;
  margin: 15px 0;
  margin-top: 0;
}

.subitem.moder label:last-of-type {
  margin: 0;
}

.subitem.moder label:before {
  content: '';
  min-width: 20px;
  height: 20px;
  border: 1px solid #ccc;
  display: flex;
  justify-content: center;
  align-items: center;
  line-height: 100%;
  margin-right: 5px;
  border-radius: 5px;
  color: black;
  cursor: pointer;
}

.subitem.moder label:has(input[type="checkbox"]:checked):before {
  content: '✔';
  font-weight: 600;
  color: var(--accent-color)
}

.subitem.moder label~#topperiod {
  display: none
}

.subitem.moder label:has(input[id="isontop"]:checked)~#topperiod {
  display: block
}

.item p {
  font-size: 16px;
  font-weight: 600;
  margin: 5px 0;
  display: block;
}

.item i {
  font-style: normal;
  font-size: 14px;
  color: #333;
  display: block
}

.store-add-item input::placeholder,
.store-add-item textarea::placeholder,
.blog-add-item input::placeholder,
.blog-add-item textarea::placeholder {
  color: var(--border-dark);
}

.store-add-item input[type=text],
.store-add-item select,
.store-add-item textarea,
.store-add-item input[type=number],
.blog-add-item input[type=text],
.blog-add-item select,
.blog-add-item textarea,
.blog-add-item input[type=number] {
  background: white !important;
  padding: 10px !important;
  border: 1px solid #ccc !important;
  border-radius: 0;
  font-size: 16px;
  border-radius: 5px;
  display: block;
  width: 100%;
  margin: 5px 0;
  font-family: 'Roboto';
  resize: none;
}

.store-add-item input[type=number],
.blog-add-item input[type=number] {
  flex-direction: 0;
  flex-grow: 1;
  display: flex;
}

/* images */
.iCode_el,
.iCode_in {
  display: none
}

#iplus .button {
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 5px;
  background: var(--accent-color-lite);
  font-size: 18px;
  cursor: pointer;
  margin: 2px 0;
}

#iplus .button:hover {
  background: var(--accent-color);
}

form#addEntForm .iCode_block {
  margin: 0;
}

form#addEntForm .iPhotoPrev {
  position: relative !important;
  max-height: none !important;
  width: 180px !important
}

form#addEntForm article[id*=iCode] {
  margin: 5px !important;
}

form#addEntForm article[id*=iCode].added {
  background: none !important;
  border-top: 1px solid var(--border-dark);
  border-radius: 0;
  padding: 1px 0 !important;
}

div[id*=imblock] {
  display: flex;
  align-items: center;
  width: 140px;
  padding: 5px;
  margin: 0 !important;
}

body.dir div[id*=imblock] {
  align-items: baseline !important;
  width: auto !important;
  padding: 0;
}

div[id*=imblock]:has(span) span {
  display: none;
}

div[id*=imblock]:before {
  content: counter(img-attach) '. ';
  counter-increment: img-attach;
  font-weight: 500;
}

#image-attachments {
  counter-reset: img-attach;
}

@media (max-width:500px) {
  #image-attachments input[id^="fln"] {
    width: 150px;
  }
}