:root {
  --color: #424242;
  --primary-color: #0288d1;
  --primary-bg: #0288d1;
  --primary-bg-hover: #036da7;
  --muted-bg: #f4f6f7;
  --muted-bg-hover: #e9ebed;
  --muted-color: #757575;
  --gray-color: #616161;
  --danger-bg: #e91e63;
  --danger-bg-hover: #cf1b58;
  --white-color: #fff;

  --editor-height: 512px;
  --palette-size: 30px;
  --editor-right-size: 340px;
}

html * {
  scrollbar-width: 12px;
  scrollbar-width: thin;
  scrollbar-color: #2196f3 #eceff1;
  box-sizing: content-box;
}

*::-webkit-scrollbar,
html *::-webkit-scrollbar {
  height: 12px;
  width: 12px;
  scrollbar-width: thin;
}

*::-webkit-scrollbar-track,
html *::-webkit-scrollbar-track {
  background: #eceff1;
}

*::-webkit-scrollbar-thumb,
html *::-webkit-scrollbar-thumb {
  background-color: #2196f3;
  border-radius: 5px;
  border: 3px solid #eceff1;
}

body {
  margin: 0;
  padding: 0;
  height: 100%;
  width: 100%;
  font-family: Roboto, -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.2;
}

nav,
button,
.row-right,
.title-window,
#modal-account {
  user-select: none;
  -moz-user-select: none;
  -webkit-user-select: none;
}

.uk-text-small {
  font-size: 12px;
}

.uk-notification-message {
  font-size: 16px;
}
.uk-notification-message > div {
  padding-right: 15px;
}

.row {
  display: flex;
}

.row-left {
  flex-grow: 1;
  /*display: flex;*/
  background-color: #616161;

  justify-content: center;
  align-items: flex-start;
  height: 100vh;
}

.row-right {
  width: 340px;
  min-width: 340px;
  background-color: #fff;
  /*box-shadow: 4px 0px 10px #616161;*/
  z-index: 10;
  padding: 0 20px 20px;
  /*
  height: calc(100vh - 20px);
  min-height: 768px;
  */
}

.main-canvas-box {
  height: calc(100% - 62px);
  width: 100%;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.loading-spinner {
  position: absolute;
  margin: 0px auto;
  left: 0;
  right: 0;
  top: calc(50% - 30px);
  width: 60px;
  height: 60px;
}

.bg-transparent {
  background: transparent;
  background-image: url(../img/bg2.png);
  background-repeat: repeat;
  background-size: 20px;
  display: inline-block;
  max-width: 100%;
  height: auto;
  max-height: 100%;
}

.bg-editor {
  background: url(../img/editor.webp) center center;
  background-repeat: no-repeat;
  background-size: cover;
  display: inline-block;
  max-width: 100%;
  height: auto;
  max-height: calc(100vh - 82px);
}

#canvas2 {
  border: 1px solid red;
  max-height: calc(100vh - 82px);
}

.uk-navbar {
  width: 100%;
  min-height: 62px;
}

.uk-navbar-container:not(.uk-navbar-transparent) {
  background: #fff;
}

.btn-png-blue {
  width: 36px;
  height: 36px;
  background: var(--primary-color);
  border: none;
  border-radius: 2px;
  outline: none;
  padding: 0;
  cursor: pointer;
}

.btn-account {
  background-image: url(../img/account.png);
  background-size: cover;
}

.uk-text-small {
  font-size: 12px;
}

.uk-textarea,
.uk-textarea:focus {
  border: 1px solid #e0e0e0;
  background: #fff;
  background-color: #fff;
  color: var(--muted-color) !important;
  resize: none;
}
.uk-subnav {
  margin-inline: 0;
}
.uk-subnav > * {
  padding: 0;
}
.uk-subnav > * > * {
  background-color: var(--muted-bg);
  padding: 10px;
  text-transform: none;
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
  color: #616161;
  justify-content: center;
}

.uk-subnav > * > a:hover {
  background-color: var(--muted-bg-hover);
}

.uk-subnav a svg {
  fill: var(--gray-color);
  position: relative;
  top: -2px;
}
.uk-subnav > .uk-active > a svg {
  fill: var(--primary-color);
}
.uk-subnav a,
.uk-subnav > * > :first-child {
  text-decoration: none;
  text-transform: none;
  color: var(--gray-color);
}

.uk-subnav .uk-active > a {
  background-color: #fff !important;
  color: var(--primary-color);
}

.uk-button {
  text-transform: none;
}
.uk-button svg {
  fill: var(--color);
  position: relative;
  top: -2px;
}
.uk-button-primary svg,
.uk-button-danger svg,
.uk-button-dark svg,
.uk-button-remove svg,
.uk-button-success svg {
  fill: var(--white-color);
}



.uk-button-small {
  align-self: flex-start;
  line-height: 38px;
  font-size: 12px;
}
.uk-button-mini {
  align-self: flex-start;
  line-height: 30px;
  font-size: 12px;
  padding: 0 10px;
  margin-left: 5px;
}
.uk-button-large {
  padding-block: 15px;
  line-height: 28px;
  /*display: flex;
  align-items: center;
  justify-content: center;*/
}
.uk-button-primary, .uk-button-primary:disabled {
  background-color: var(--primary-bg);
}
.uk-button-primary:hover,
.uk-form-custom input[type="file"]:hover {
  background-color: var(--primary-bg-hover);
  cursor: pointer;
}
.uk-button-danger, .uk-button-danger:disabled {
  background-color: var(--danger-bg);
  color: #fff;
}
.uk-button-danger:hover {
  background-color: var(--danger-bg-hover);
}
.uk-button-muted,  .uk-button-muted:disabled{
  background-color: var(--muted-bg);
  border: 1px solid transparent;
}
.uk-button-muted:hover {
  background-color: var(--muted-bg-hover);
  color: var(--color);
}

.uk-button-dark, .uk-button-dark:disabled {
  background-color: #757575;
  color: #fff;
  border: 1px solid transparent;
}
.uk-button-dark:hover {
  background-color: var(--muted-bg-hover);
  background-color: #666;
}

.uk-button-remove,  .uk-button-remove:disabled{
  background-color: #ab47bc;
  color: #fff;
}
.uk-button-remove:hover {
  background-color: #8f3c9e;
}

.uk-button-success,  .uk-button-success:disabled{
  background-color: #9acd32;
  color: #fff;
}
.uk-button-success:hover {
  background-color: #7faa29;
}

.uk-button-plus {
  background: transparent;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 10px;
  width: var(--palette-size);
  height: var(--palette-size);
  box-sizing: border-box;
  border-color: transparent;
  font-size: 22px;
  color: var(--muted-color);
}

.uk-button-icon {
  padding: 0;
  width: 40px;
  height: 40px;
  border-radius: 0;
  background: var(--muted-bg);
  border: none;
}
.uk-button.uk-button.uk-button-icon {
  background: transparent;
  width: 34px;
}
.uk-button-group > .uk-button-icon > svg {
  fill: var(--color)
}
.uk-button-group > .uk-button-icon.uk-active > svg{
  fill: var(--primary-color)
}

.uk-button:disabled,
.uk-button-danger:disabled, 
.uk-button-default:disabled, 
.uk-button-primary:disabled, 
.uk-button-secondary:disabled,
.uk-button-muted:disabled,
.uk-button-dark:disabled,
.uk-button-remove:disabled
 {
  opacity: 0.6;
  pointer-events: none;
}
.disabled{
  opacity: 0.6;
  pointer-events: none;
}

#canvasOrig{
  display: none;
}

.copyr{
  font-size: 12px;
  color: #ccc;
  padding: 20px 0 0 0;
  margin-top: 30px;
  text-align: center;
  border-top: 1px solid #eee;
}
.copyr a{
  color: #ccc;
  text-decoration: underline;
}

input[type="file"] {
  display: none;
}
#box-removebg{
  min-height: 720px;
}
.title-sticky {
  background-color: #fff;
  position: sticky;
  top: 0;
  height: 60px;
  display: flex;
  align-items: center;
  z-index: 2;
}
.title-icon {
  width: 24px;
  cursor: pointer;
}
.title-icon svg {
  fill: var(--color);
  position: relative;
  top: -3px;
}
.title-icon:hover svg {
  fill: var(--primary-color);
}
.title-window {
  text-align: left;
  flex-grow: 1;
  font-size: 20px;
  color: var(--color);
  min-height: 30px;
  position: relative;
  max-width: 330px;
}
.border-red{
  border: 1px solid red;
}

.select-label {
  display: block;
  font-size: 12px;
  margin-bottom: 3px;
}
.editor-placeholder-image {
  position: relative;
  display: flex;
  justify-content: space-between;
  padding: 10px;
  border: 1px solid #e0e0e0;
  box-sizing: border-box;
}
.editor-selected-image {
  margin: 0;
  width: 100px;
  height: 70px;
}
.editor-selected-image > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.editor-selected-link-text {
  text-decoration: underline;
  font-size: 12px;
  line-height: 1.1;
  text-align: center;
  margin-top: 5px;
  margin-left: 3px;
  width: 94px;
}

.editor-labels-palette {
  margin-top: 3px;
  gap: 5px;
  min-width: 160px;
}
.editor-label-palette {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 0;
  width: var(--palette-size);
  height: var(--palette-size);
  border: 1px solid #9e9e9e;
  box-sizing: border-box;
  overflow: hidden;
}
.editor-label-palette > .uk-input {
  padding: 0;
  border: 0;
  width: var(--palette-size);
  height: var(--palette-size);
  transform: scale(1.5);
  box-sizing: border-box;
}
.input-select-color{
  width: var(--palette-size);
  height: var(--palette-size);
  border: 1px solid #9e9e9e;
  box-sizing: border-box;
  overflow: hidden;
  background-color: transparent;
  background-size: 10px;;
}

.img-generated{
  padding: 0 5px;
  cursor: pointer;
  min-height: 72px;
}
.img-generated:first-child{
  padding-left: 0;
}
.img-generated:last-child{
  padding-right: 0;
}
.img-generated > .image{
  width:72px;
  height: 72px;
  background-repeat: no-repeat;
  background-position: center center;
  background-size: contain;
  background-color: #eee;
}

.img-generated.uk-active>.image, .img-generated>.image:hover{
  border: 2px solid var(--primary-color);
  width:68px;
  height: 68px;
}

#lastik-box{
  background-color: transparent;
  width: 100%;
  height: 100%;
  position: relative;
  top: 0;
  left: 0;
  display: none;
}
#lastik-canvas-min{ 
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 5;
}
#lastik-canvas-big{ 
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
}
#lastik-round{
  display: none;
  position: absolute;
  top: -200px;
  left: -200px;
  z-index: 6;
  border: 1px solid red;
  width:100px;
  height: 100px;
  border-radius: 50%;
  background-color: rgba(249, 253, 1, 0.438);
}


/* ================ kselect =================*/
.kselect {
  min-width: 70px;
  max-width: 300px;
  border: 1px solid #a9a9a9 !important;
  border-radius: 3px;
  position: relative;
  font-size: 14px;
  display: flex;
  font-weight: 400;
  text-align: left;
  padding: 0 15px 0 0;
  cursor: pointer;
}
.kselect.disabled{
  color: #ccc;
  cursor: not-allowed;
}

.kselect .kselect-box {
  width: 100%;
  padding: 2px 6px;
  height: 26px;
  overflow: hidden;
  background: #fff;
}

.kselect .kselect-box span {
  display: inline;
}

.kselect .kselect-box span:first-child {
  right: auto;
}

.kselect .kselect-text {
  width: 100%;
  position: relative;
  top: 5px;
  overflow: hidden;
  white-space: nowrap;
  line-height: 1.2;
  display: inline-block !important;
}

.kselect .kselect-arrow {
  width: 22px;
  position: absolute;
  top: -5px;
  right: -5px;
}

.kselect .kselect-arrow svg {
  position: absolute;
  top: 8px;
  right: 6px;
  width: 14px;
}

.kselect .kselect-option {
  padding: 0;
  position: absolute;
  background: #fff;
  z-index: 100;
  border: 1px solid #a9a9a9 !important;
  top: 31px;
  left: -1px;
  margin: 0;
  overflow-y: auto;
  overflow-x: hidden;
}

.kselect .kselect-option div {
  padding: 4px 6px;
}

.kselect .kselect-option div:hover {
  background: #e0e0e0;
}

/* ================ kselect =================*/

.number-control {
  width: 30px;
  height: 30px;
  margin: 0 8px;
  background: transparent;
  border: 1px solid var(--muted-color);
  border-radius: 3px;
  color: var(--color);
  cursor: pointer;
  font-size: 16px;
}

.number-input {
  margin: 0;
  height: 22px;
  width: 40px;
  border: 1px solid var(--muted-color);
  border-radius: 3px;
  padding: 5px 8px;
  text-align: center;
  font-size: 14px;
}


.number-control:hover {
  border-color: var(--primary-color);
}

.number-control:active {
  border-color: var(--primary-color);
}

.number-control:focus,
.number-input:focus {
  outline: none
}

.number-input:hover {
  border-color: var(--primary-color);
}

.number-input::-webkit-outer-spin-button,
.number-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.number-input {
  -moz-appearance: textfield;
}

.svg-flip {
  cursor: pointer;
  fill:var(--muted-color)
}

/* =============== range ============ */
input[type="range"] {
  --c: #0288d1; /* active color */
  --g: 4px; /* the gap */
  --l: 4px; /* line thickness*/
  --s: 20px; /* thumb size*/

  width: 100%;
  height: var(--s); /* needed for Firefox*/
  --_c: color-mix(in srgb, var(--c), #000 var(--p, 0%));
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background: none;
  cursor: pointer;
  overflow: hidden;
}
input[type="range"]:focus-visible,
input[type="range"]:hover {
  --p: 25%;
}
input[type="range"]:active,
input[type="range"]:focus-visible {
  --_b: var(--s);
}
/* chromium */
input[type="range" i]::-webkit-slider-thumb {
  height: var(--s);
  aspect-ratio: 1;
  border-radius: 50%;
  box-shadow: 0 0 0 var(--_b, var(--l)) inset var(--_c);
  border-image: linear-gradient(90deg, var(--_c) 50%, #ababab 0) 0 1 /
    calc(50% - var(--l) / 2) 100vw/0 calc(100vw + var(--g));
  -webkit-appearance: none;
  appearance: none;
  transition: 0.3s;
}
/* Firefox */
input[type="range"]::-moz-range-thumb {
  height: var(--s);
  width: var(--s);
  background: none;
  border-radius: 50%;
  box-shadow: 0 0 0 var(--_b, var(--l)) inset var(--_c);
  border-image: linear-gradient(90deg, var(--_c) 50%, #ababab 0) 0 1 /
    calc(50% - var(--l) / 2) 100vw/0 calc(100vw + var(--g));
  -moz-appearance: none;
  appearance: none;
  transition: 0.3s;
}
@supports not (color: color-mix(in srgb, red, red)) {
  input[type="range"] {
    --_c: var(--c);
  }
  input[type="range"].red {
    --_c: red;
  }
  input[type="range"].green {
    --_c: green;
  }
  input[type="range"].blue {
    --_c: blue;
  }
}

input[type="range"].red {
  --c: red;
}
input[type="range"].green {
  --c: green;
}
input[type="range"].blue {
  --c: blue;
}

@media (max-width: 768px) {
  input[type="range"] {
    --l: 4px;
  }
}

input[type="range"]:disabled, .disabled input[type="range"]{
  --c: #aaa;
  pointer-events: none;
}
.disabled button{
  pointer-events: none;
}
.disabled{
  opacity: 0.5;
}

output {
  position: absolute;
  top: 0;
  bottom: 0;
  margin: auto 0;
  transform: translateX(-25%);
}
span.range-output {
  display: block;
  position: absolute;
  left: 10px;
  top: 25px;
  right: 10px;
  bottom: 0;
  pointer-events: none;
  font-size: 12px;
}

/* =============== range ============ */
.clicked{
  cursor: pointer;
}
.btn {
  margin: 0 5px;
}
.btn-price {
  margin: 0;
}
@media (max-width: 576px) {
  .btn-price {
    width: 100%;
  }
}
.btn-svg {
  background: var(--primary-bg);
  border: none;
  outline: none;
  padding: 2px;
  cursor: pointer;
}
.btn-svg > svg {
  fill: #fff;
}

.btn-svg-white {
  background: #fff;
  border: none;
  outline: none;
  padding: 2px;
  cursor: pointer;
}

.btn-svg-white > svg {
  fill: var(--primary-color);
}

.uk-button-group > .uk-button-icon > svg {
  fill: var(--color);
}
.uk-button-group > .uk-button-icon.uk-active > svg {
  fill: var(--primary-color);
}

.svg-btn {
  display: inline-block;
  cursor: pointer;
  width: 60px;
  text-align: center;
}
.svg-btn > label {
  display: block;
  width: 100%;
  text-align: center;
}
.svg-btn > svg {
  fill: #424242;
}
.svg-btn > svg:hover {
  fill: var(--primary-color);
}
.svg-btn-open {
  cursor: pointer;
  margin-left: 10px;
}
div.svg-btn-open,
div.svg-btn-text {
  float: left;
  min-height: 20px;
}
.svg-btn-open > svg {
  fill: #424242;
  position: relative;
  top: -2px;
}

.uk-table > tr:hover {
  cursor: pointer;
}


.uk-table tbody tr.uk-active, .uk-table>tr.uk-active,
.uk-table-hover tbody tr:hover, .uk-table-hover>tr:hover {
  background: #f2fba1
}

#modal-price table.uk-table > tr > td {
  vertical-align: middle;
}
#modal-price table.uk-table .thead:hover {
  background-color: initial !important;
}
/* ================= Modal ================== */
.editor-modal {
  font-family: Roboto, -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: var(--color);
}
.editor-modal .uk-button {
  text-transform: none;
}
.uk-modal-dialog[role="alertdialog"] .uk-modal-body {
  padding-top: 20px;
  padding-bottom: 20px;
  text-align: center;
}
.uk-modal-dialog[role="alertdialog"] .uk-modal-footer.uk-text-right {
  text-align: center !important;
}



.editor-modal {
  transition-duration: 0.1s;
}
.editor-modal .uk-modal-dialog {
  width: 760px;
  transform: none;
}
.uk-modal-body {
  padding: 0px 30px 30px;
  overflow: auto;
  max-height: calc(100vh - 250px);
}

#modal-style .uk-modal-body {
  padding: 0px 18px 30px;
}

#modal-style .uk-modal-header,
#modal-style .uk-modal-footer {
  padding: 15px 20px;
}

@media (max-width: 640px) {
  .uk-modal-body {
    max-height: calc(100vh - 170px);
  }
}
.editor-modal small {
  font-size: 12px;
}

.editor-modal .uk-modal-header {
  background-color: var(--muted-bg);
  padding-block: 10px;
  border: none;
}

.editor-modal .uk-thumbnav {
  text-align: center;
}
.editor-modal .uk-thumbnav > * > ::after {
  display: none;
}
.editor-modal .uk-thumbnav a {
  color: var(--color);
  transition: color 0.1s ease-in-out;
  text-decoration: none;
}
.editor-modal .uk-thumbnav a:hover {
  color: var(--primary-color);
}
.editor-modal .uk-thumbnav > .uk-active > a {
  color: var(--primary-color);
  font-weight: 600;
}
.editor-modal .uk-thumbnav img {
  border: 3px solid transparent;
  width: 100px;
  height: 80px;
  object-fit: cover;
}
.editor-modal .uk-thumbnav img.svg {
  width: 100px;
  height: auto;
}
.editor-modal .uk-thumbnav > .uk-active img {
  border-color: var(--primary-color);
}
.editor-modal .uk-thumbnav small {
  display: block;
  font-size: 12px;
  max-width: 94px;
  word-break: break-word;
}

.editor-modal .uk-modal-footer {
  border: none;
  font-size: 12px;
}

#editor-modal-upload > .uk-modal-dialog {
  width: var(--editor-right-size);
}
#editor-modal-upload .uk-modal-body {
  padding-block: 10px;
}
.editor-modal-block-select {
  display: flex;
  align-items: center;
}
#editor-modal-upload .editor-modal-block-select .uk-select {
  background-position-y: 50%;
  width: auto;
  padding-right: 20px;
  text-align: center;
  border: none;
}

/* ================= Modal ================== */

/* ========== account ==================*/
.socicon {
  margin-top: 20px;
}
.socicon > div {
  outline: 0;
  cursor: pointer;
  width: 47px;
  height: 47px;
  border-radius: 50%;
  border: none;
  display: inline-block;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  margin: 0 10px;
}

.socicon .btn-vk {
  background-image: url("/img/icon-vk.svg");
}
.socicon .btn-google {
  background-image: url("/img/icon-google.svg");
}
.socicon .btn-ya {
  background-image: url("/img/icon-ya.svg");
}
.socicon .btn-fb {
  background-image: url("/img/icon-fb.svg");
}
.socicon .btn-mailru {
  background-image: url("/img/icon-mail.svg");
}

/* =============== кнопки настроект блока =================*/
.btn-edit-object {
  position: absolute;
  max-width: 30px;
  height: 20px;
  border-radius: 50%;
  z-index: 1000;
  padding: 4px;
  background: var(--primary-color);
  border: 1px solid #fff;
  text-align: center;
  left: -2000px;
  top: -2000px;
}

.btn-edit-object .svg-icon {
  width: 20px;
  margin-right: 10px;
  cursor: pointer;
  display: inline-block;
}
.btn-edit-object .svg-icon svg {
  fill: #fff;
}
.btn-edit-object .svg-icon svg:hover {
  fill: #fff;
}

.btn-edit-object.group {
  position: relative;
  width: 100%;
  height: 20px;
  border-radius: 0;
  z-index: 1000;
  padding: 4px;
  background: #fff;
  border: none;
  text-align: center;
  left: 0;
  top: 12px;
}

.btn-edit-object.group .svg-icon svg {
  fill: var(--color);
}
.btn-edit-object.group .svg-icon svg:hover {
  fill: var(--primary-color);
}

.btn-edit-object.multi {
  max-width: 200px;
  border-radius: 0;
  background: #fff;
  box-shadow: 0px 0px 5px #000;
}
.btn-edit-object.multi .svg-icon {
  width: 20px;
  margin-right: 10px;
  top: 0;
  cursor: pointer;
  display: inline-block;
}

.btn-edit-object.multi .svg-icon svg {
  fill: var(--color);
}
.btn-edit-object.multi .svg-icon svg:hover {
  fill: var(--primary-color);
}

.btn-edit-object.multi .btns {
  display: flex;
  max-width: 300px;
  align-items: center;
  height: 100%;
}
.btn-edit-object.multi .btns > div {
  line-height: 1;
  margin: 0 10px;
  cursor: pointer;
}

.icon-upload{
  display: inline-block; 
  border:1px solid #aaa; 
  width:30px; 
  height: 30px; 
  background-position-x: center; 
  background-repeat: no-repeat; 
  background-size: cover; 
  background-image: url('/img/editor.webp');
}

.tint-canvas {
  width: calc(100% - 380px);;
  height: calc(100vh - 62px);
  position: absolute;
  top: 62px;
  display: flex;
  align-items: center;
  z-index: 9;
  background-color: #222;
  text-align: center;
  color: #fff;
}
.tint-canvas > div {
  width: 100%;
}
.wait{
  width: 380px;
  height: 100%;
  position: absolute;
  z-index: 20;
  background: #00000005;
  right: 0;
  display: none;
}
.wait.uk-active{
  display: block;
}
