.editor-container, .editor-modal { padding: 30px; opacity: 1; transition: opacity .2s, left .2s, right .2s, scale .2s; }
.editor-title { margin: 0; }
.editor-description { margin-bottom: 40px; }

.option-title { color: #c5c5c5; margin-top: 30px; font-weight: 500; margin-bottom: 8px; }
.option-footer { color: #8a8a8a; font-size: 14px; font-weight: 500; margin-top: 5px; }

.option-container.with-margin {
  margin-bottom: 10px;
}

.editor-alert {
  width: calc(100% - 44px);
  padding: 1px 22px;
  background-color: #363636;
  border-radius: 10px;
}
.alert-text { color: #c5c5c5; }

.opacity-container {
  opacity: 1;
  transition: opacity .3s;
}

.option-radio>img {
  padding: 10px;
  max-width: 30%;
  width: 240px;
  margin-right: 10px;
  margin-bottom: 5px;
  margin-top: 5px;
  border-radius: 10px;
  background-color: #222222;
  opacity: .5;
  overflow-x: hidden;
  transition:
    background-color .3s,
    opacity .3s;
}
.option-radio.sm>img {
  padding: 8px;
  max-width: 20%;
  width: 120px;
}
.option-radio.no-bg>img {
  background-color: transparent !important;
  padding: 0px;
  opacity: .8;
  margin-right: 20px;
}
.option-radio.no-bg:hover>img { opacity: 1; }
input[type="radio"]:checked+.option-radio>img { opacity: 1; }
input[type="radio"]:checked+.option-radio>img:not(.pattern-preview) { background-color: #363636; }

input.option-color {
  background-color: #222222;
  color: #c5c5c5;
  border: none;
  border-radius: 10px;
  padding: 10px;
}
#clr-picker { border-radius: 10px; background-color: #2e2e2e; box-shadow: none !important; }
#clr-color-area { border-top-left-radius: 10px; border-bottom-left-radius: 10px; }
button[aria-labelledby="clr-open-label"] { border-top-right-radius: 10px; border-bottom-right-radius: 10px; }
.clr-field button::after { box-shadow: none !important; }
.clr-field {
  margin-bottom: 5px;
  margin-top: 5px;
  margin-right: 10px;
}
.clr-field input, .clr-field {
  width: 30vw;
  max-width: 200px;
}
.clr-field button {
  background: repeating-linear-gradient(45deg,#131313 25%,transparent 25%,transparent 75%,#131313 75%,#131313),repeating-linear-gradient(45deg,#131313 25%,#2c2c2c 25%,#2c2c2c 75%,#131313 75%,#131313) !important;
}
@media (max-width: 1500px) { .clr-field input, .clr-field { max-width: 170px; } }
@media (max-width: 1350px) { .clr-field input, .clr-field { max-width: 160px; } }
@media (max-width: 1290px) { .clr-field input, .clr-field { max-width: 150px; } }
@media (max-width: 1240px) { .clr-field input, .clr-field { max-width: 140px; } }
@media (max-width: 1190px) { .clr-field input, .clr-field { max-width: 130px; } }
@media (max-width: 1140px) { .clr-field input, .clr-field { max-width: 120px; } }
@media (max-width: 1090px) { .clr-field input, .clr-field { max-width: 110px; } input.option-color { font-size: 11px; } }
@media (max-width: 1040px) { .clr-field input, .clr-field { max-width: 105px; } input.option-color { font-size: 11px; } }
@media (max-width: 1000px) { .clr-field input, .clr-field { max-width: 100px; } input.option-color { font-size: 10px; } }

.editor-modal {
  display: none;
  opacity: 0;
}
.modal-close, .modal-open {
  background-color: #222222;
  color: #c5c5c5;
  border: none;
  border-radius: 10px;
  padding: 10px;
  transition: background-color .3s;
  margin-right: 5px;
}
.modal-close:hover, .modal-open:hover { background-color: #363636; }
.editor-title.with-button { padding-top: 2px; }
.option-title.with-button { padding-top: 7px; margin-bottom: 15px; }

input.option-input, textarea.option-textarea {
  background-color: #222222;
  color: #c5c5c5;
  border: none;
  border-radius: 10px;
  padding: 10px;
  width: 100%;
  resize: none;
  transition: background-color .2s;
}

.option-icon.active,
textarea.option-textarea:active,
textarea.option-textarea:focus,
textarea.option-textarea:focus-visible,
textarea.option-textarea:focus-within,
input.option-input:active,
input.option-input:focus,
input.option-input:focus-visible,
input.option-input:focus-within,
input.option-color:active,
input.option-color:focus,
input.option-color:focus-visible,
input.option-color:focus-within {
  border: none;
  outline: none;
  background-color: #363636 !important;
}
[contenteditable="true"]:focus { outline: none; }
.option-input.with-icon { width: calc(100% - 38px); height: 37px; border-top-left-radius: 0px; border-bottom-left-radius: 0px; }
.option-icon {
  background-color: #222222;
  color: #c5c5c5;
  border: none;
  padding: 10.5px;
  float: left;
  border-top-left-radius: 10px;
  border-bottom-left-radius: 10px;
  transition: 
    background-color .2s;
}

.option-container:has(.option-slider) { width: 100%; }
.option-slider {
  -webkit-appearance: none;
  width: 100%;
  height: 25px;
  background-color: #222222;
  outline: none;
  border-radius: 10px;
}
.option-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 25px;
  height: 25px;
  background: #3d3d3d;
  cursor: pointer;
  border: none;
}
.option-slider::-moz-range-thumb {
  width: 25px;
  height: 25px;
  background: #3d3d3d;
  cursor: pointer;
  border: none;
}

.aspect-square,
label.aspect-square img {
  aspect-ratio: 1/1
}
.aspect-16\:9 {
  aspect-ratio: 16/9
}
.aspect-1\:0\.55 {
  aspect-ratio: 1/0.55
}

.pattern-label {
  background-color: transparent !important;
}