body {
  margin: 0;
  padding: 0;
}
@font-face {
  font-family: "Lato";
  src: url("../fonts/Lato-Regular.ttf") format("truetype");
}
@font-face {
  font-family: "Montserrat";
  src: url("../fonts/Montserrat-Regular.ttf") format("truetype");
}
@font-face {
  font-family: "Roboto";
  src: url("../fonts/RobotoSlab-Regular.ttf") format("truetype");
}
@font-face {
  font-family: "GravitasOne";
  src: url("../fonts/GravitasOne-Regular.ttf") format("truetype");
}
.custom-wrapper * {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
.custom-wrapper {
  display: flex;
  align-items: flex-start;
  margin: 0;
  padding: 0;
  gap: 20px;
  padding: 10px;
  box-sizing: border-box;
}
.custom-canvas {
  width: 600px;
  height: 600px;
  border: 1px solid #eee;
  box-sizing: border-box;
  overflow: hidden;
}
.custom-config {
  flex: 1;
  height: 100%;
  overflow-y: auto;
}
.custom-config-blk {
  margin-bottom: 20px;
  border: 1px solid #eee;
  padding: 16px;
  border-radius: 5px;
}
.custom-config-blk .config-label {
  font-size: 16px;
  font-weight: bold;
  margin: 0 0 10px;
}
.custom-config-blk .config-label-sub {
  font-size: 14px;
  font-weight: bold;
  margin: 10px 0 5px;
}
.custom-config-blk .config-desc {
  color: #666;
  font-size: 12px;
  margin: 0 0 10px;
}
.custom-config-blk .config-desc > p {
  margin: 0;
}
.upload-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
}
.custom-btn {
  position: relative;
  padding: 5px 10px;
  background-color: #1ba0d7;
  border: none;
  cursor: pointer;
  border-radius: 5px;
  color: white;
  font-size: 14px;
  cursor: pointer;
}
.custom-btn > input[type="file"] {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  cursor: pointer;
}
.delete-btn {
  padding: 10px 20px;
  color: #dc3545;
  border: none;
  cursor: pointer;
  border-radius: 5px;
  background: none;
  font-size: 14px;
}
.delete-btn[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
}
.required {
  color: red;
}

.select-box {
  position: relative;
  cursor: pointer;
  min-width: 120px;
}
.select-box > input {
  position: absolute;
  z-index: 0;
  opacity: 0;
  width: 0;
  height: 0;
}
.select-box > p {
  position: relative;
  display: block;
  width: 100%;
  border: 1px solid #a7a5a0;
  border-radius: 5px;
  height: 40px;
  padding: 0 10px;
  padding-right: 30px;
  line-height: 40px;
  background: #fff;
}
.select-box > p > i {
  position: absolute;
  top: 50%;
  right: 10px;
  margin-top: -3px;
}
.sel-opts {
  list-style: none;
  position: absolute;
  top: 36px;
  left: 0;
  border: 1px solid #a7a5a0;
  border-top: none;
  background: #fff;
  padding: 10px 0;
  width: 100%;
  z-index: 10;
  box-shadow: 0 10px 10px rgba(0, 0, 0, 0.2);
  border-bottom-left-radius: 5px;
  border-bottom-right-radius: 5px;
}
.sel-opts > li {
  display: flex;
  align-items: center;
  line-height: 30px;
  padding: 0 10px;
  &.active {
    font-weight: bold;
  }
}
.sel-opts > li:hover {
  background: #f5f5f5;
}
.sel-opts .color {
  display: inline-block;
  width: 20px;
  height: 20px;
  margin-right: 5px;
  border: 1px solid #eee;
}
.icon-tri {
  display: block;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 5px 5px 0 5px;
  border-color: #999 transparent transparent;
}

.radio-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 160px;
  overflow-x: hidden;
  overflow-y: auto;
}
.radio-item {
  position: relative;
}
.radio-item .radio-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
  border: 2px solid #ddd;
  border-radius: 5px;
  padding: 10px;
}
.radio-item input[type="radio"] {
  position: absolute;
  opacity: 0;
}
.radio-item input[type="radio"]:checked + .radio-label {
  border-color: #1ba0d7;
  background: #f6fcff;
}
.radio-group.color-group {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 10px;
}
.color-group .radio-label {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border: 2px solid #ddd;
  border-radius: 5px;
  padding: 5px;
}
.color-group .radio-label > span {
  display: block;
  width: 100%;
  height: 100%;
}

.config-input {
  border: 1px solid #a7a5a0;
  border-radius: 5px;
  padding: 10px;
  width: 100%;
}
.config-input:focus {
  outline: none;
  border-color: #1ba0d7;
}
.config-input-limit {
  margin: 0;
  color: #999;
  font-size: 12px;
  text-align: right;
}
@media screen and (max-width: 1500px){
    .custom-wrapper{
        flex-direction: column;
    }
    .custom-canvas{
        width: 100%;
    }
}

