#cm_sticker,
#cm_sticker_layout {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  font-family: freesentationVF;
  font-size: 12px;
  user-select: none;
}
#cm_sticker {
  z-index: 1;
}
#cm_sticker_layout {
  z-index: 2;
}

.custommenu-wrapper {
  z-index: 3;
}

.cm-sticker-btn {
  width: 65px;
  height: 65px;
  border-radius: 100%;
  background: var(--cm-point-color);
  color: var(--cm-text-color);
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: visible;
  position: absolute;
}

.cm-sticker-btn.tlbtn {
  top: -9px;
  left: -9px;
}
.cm-sticker-btn.trbtn {
  top: -9px;
  right: -9px;
}
.cm-sticker-btn.blbtn {
  bottom: -9px;
  left: -9px;
}
.cm-sticker-btn.brbtn {
  bottom: -9px;
  right: -9px;
}


.cm-sticker-tip {
  -webkit-mask-image: url('data:image/svg+xml;utf8,<svg width="220" height="120" viewBox="0 0 200 110" xmlns="http://www.w3.org/2000/svg" role="img" aria-label="Rounded bookmark"><path d="M 0 110 L 36 12 A 12 12 0 0 1 48 0 L 188 0  A 12 12 0 0 1 200 12 L 200 110 Z"  fill="black"/></svg>');
  mask-image: url('data:image/svg+xml;utf8,<svg width="220" height="120" viewBox="0 0 200 110" xmlns="http://www.w3.org/2000/svg" role="img" aria-label="Rounded bookmark"><path d="M 0 110 L 36 12 A 12 12 0 0 1 48 0 L 188 0  A 12 12 0 0 1 200 12 L 200 110 Z"  fill="black"/></svg>');
  mask-size: 55px 30px;
  -webkit-mask-size: 55px 30px;
  color: var(--cm-point-color-auto);
  background: var(--cm-point-color);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 55px;
  height: 30px;
  position: absolute;
  top: -31px;
  left: 20px;
  padding-left: 4px;
}

#cm-sticker-list {
  background: var(--cm-form-basecolor);
  color: var(--cm-form-textcolor);
  left: 70px;
}

#cm-sticker-upload {
  background: var(--cm-form-textcolor);
  color: var(--cm-form-basecolor);
  left: 120px;
}

.cm-sticker-tool {
  position: fixed !important;
  width: 70vw;
  max-width: 600px;
  min-width: 400px;
  height: 120px;
  background: var(--cm-form-basecolor);
  border: 1px solid var(--cm-point-color);
  border-radius: 10px;
  box-shadow: -1px 3px 0px 2px rgba(0, 0, 0, 0.1);
  pointer-events: visible;
  bottom: 100px;
  left: 100px;
  z-index: 999;
  transition-duration: var(--cm-ani);
  transition-property: width, height;
}

.cm-sticker-tool-btn {
  filter: drop-shadow(1px 0 0 var(--cm-point-color)) drop-shadow(-1px 0 0 var(--cm-point-color)) drop-shadow(0 1px 0 var(--cm-point-color)) drop-shadow(0 -1px 0 var(--cm-point-color))
}

.cm-sticker-deck {
  width: 100%;
  height: 100%;
  overflow: auto;
}

.cm-sticker-uploadform {
  padding: 20px;
}

#cm_sticker_layout input,
#cm_sticker_layout select {
  border-radius: 5px;
  background: var(--cm-form-basecolor);
  color: var(--cm-form-textcolor);
  border: 1px solid;
}

#cm_sticker_layout .custommenubtn {
  padding: 6px 12px;
  background: var(--cm-point-color);
  color: var(--cm-point-color-auto);
  border-radius: 5px;
  margin: 0px 5px;
  border: none;
  font-family: freesentation5;
  display: inline-flex;
  font-size: 12px;
}

#cm_sticker_layout .custommenubtn:hover {
  background: var(--cm-form-color);
  color: var(--cm-text-color);
}

.cm-sticker-wrapper {
  position: absolute;
  padding: 30px;
  transition: opacity var(--cm-ani);
}

/* 온오프 */

.cm-sticker-wrapper {
  pointer-events: none;
}

#cm_sticker:not(.active) .cm-sticker-wrapper.inactive {
  opacity: 0.3;
  pointer-events: none;
}

#cm_sticker.active .cm-sticker-wrapper {
  pointer-events: visible;
  transition-duration: 0s;
}

.cm-sticker-control {
  display: none;
}

#cm_sticker.active .cm-sticker-control {
  display: block;
}


#cm_sticker.active .cm-sticker-wrapper.cm-spot {
  z-index: 99 !important;
}

#cm_sticker.active .cm-sticker-wrapper:hover .cm-sticker-control,
#cm_sticker.active .cm-sticker-wrapper.cm-spot .cm-sticker-control {
  background: rgb(255 169 169 / 18%);
  mix-blend-mode: difference;
  border-radius: 10px;
  border: 1px solid pink;
}

.cm-sticker-tool {
  display: none;
}

#cm_sticker_layout.active .cm-sticker-tool {
  display: block;
}

.cm-sticker-control {
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  position: absolute;
  z-index: 2;
}

.cm-sticker-control-header {
  display: flex;
  top: 4px;
  left: 4px;
  gap: 5px;
  position: absolute;
  width: calc(100% - 8px);
  pointer-events: none;
}

.cm-sticker-control-footer {
  display: flex;
  bottom: 4px;
  right: calc(50% - 70px);
  gap: 5px;
  position: absolute;
  font-size: 16px;
}

.cm-sticker-fix .cm-sticker-control-footer {
  right: 10px;
}

.cm-sticker-list {
  width: 100%;
  height: 100%;
  overflow-x: auto;
}

.cm-sticker-lists {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
}

.cm-sticker-box {
  width: 130px;
  display: inline-flex;
  flex-direction: column;
}

.cm-sticker-box-thumb {
  width: 110px;
  height: 80px;
  overflow: hidden;
  border: 1px solid;
  border-radius: 10px;
  margin: 10px;
}

.cm-sticker-box-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cm-sticker-box-btns {
  display: flex;
  padding: 0px 10px 10px 10px;
  justify-content: space-evenly;
  align-items: center;
  color: var(--cm-form-textcolor);
}

.cm-handle {
  width: 22px;
  height: 22px;
  background: white;
  color: black;
  border: 1px solid rgb(0 0 0 / 16%);
  box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1);
  font-size: 12px;
  border-radius: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  right: 4px;
  top: 4px;
  position: absolute;
  transition-duration: var(--cm-ani);
  transition-property: color, background, opacity;
}

.cm-handle:active {
  background: #222222;
  color: white;
}

.cm-handle i {
  pointer-events: none;
}

.ui-rotatable-handle {
  top: 4px !important;
  right: 34px !important;
  left: unset !important;
}

.cm-sticker-upbtn,
.cm-sticker-downbtn,
.cm-sticker-delbtn,
.cm-sticker-fixbtn,
.cm-sticker-index {
  width: 22px;
  height: 22px;
  background: white;
  color: black;
  border: 1px solid rgb(0 0 0 / 16%);
  box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1);
  font-size: 12px;
  border-radius: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition-duration: var(--cm-ani);
  transition-property: color, background, opacity;
}

.cm-sticker-upbtn:hover,
.cm-sticker-downbtn:hover {
  background: #222222;
  color: white;
}

.cm-sticker-delbtn:hover {
  background: #3d0404;
  color: white;
}

.cm-sticker-fix .cm-sticker-fixbtn,
.cm-sticker-fixbtn:hover {
  background: #222222;
  color: white;
}

.cm-sticker-fix.cm-sticker-wrapper {
  pointer-events: none;
}

.cm-sticker-fix .cm-sticker-control-header,
.cm-sticker-fix .cm-sticker-upbtn,
.cm-sticker-fix .cm-sticker-downbtn,
.cm-sticker-fix .cm-sticker-delbtn,
.cm-sticker-fix .cm-sticker-index,
.cm-sticker-fix .cm-handle {
  display: none;
}

.cm-sticker-fix .cm-sticker-fixbtn {
  pointer-events: visible;
}

select.cm-sticker-select {
  border-radius: 10px;
  background: white;
  color: black;
  padding: 5px;
  width: 100%;
  display: none;
}

.cm-sticker-control-header.active select.cm-sticker-select,
.cm-sticker-control-header:focus-within select.cm-sticker-select {
  display: block;
  pointer-events: visible;
}

.cm-sticker-more {
  width: 22px;
  height: 22px;
  background: white;
  color: black;
  border: 1px solid rgb(0 0 0 / 16%);
  box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1);
  font-size: 12px;
  border-radius: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition-duration: var(--cm-ani);
  transition-property: color, background, opacity;
  pointer-events: visible;
}

.cm-sticker-control-header.active {
  pointer-events: visible;
}

.cm-sticker-control-header.active .cm-sticker-more,
.cm-sticker-control-header:focus-within .cm-sticker-more {
  display: none;
}

.inactive.cm-handle {
  opacity: 0;
  pointer-events: none;
}

.cm-sticker {
  position: relative;
  z-index: 1;
}

.cm-sticker-overlay {
  position: absolute;
  pointer-events: none;
  mask-size: contain;
  mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  width: 100%;
  height: 100%;
}

/* 효과 */
.cm-sticker-e-shadow .cm-sticker {
  filter: drop-shadow(4px 0px 6px rgba(0, 0, 0, 0.3));
}

.cm-sticker-e-stroke .cm-sticker {
  filter: drop-shadow(0px 1px 0px var(--cm-point-color)) drop-shadow(1px 0px 0px var(--cm-point-color)) drop-shadow(0px -1px 0px var(--cm-point-color)) drop-shadow(-1px 0px 0px var(--cm-point-color));
}

.cm-sticker-e-rainbow .cm-sticker-overlay {
  background: linear-gradient(90deg, hsl(0deg 100% 60.06%) 0%, hsl(30deg 100% 61.03%) 16.6%, hsl(60deg 100% 59.76%) 33.3%, hsl(120deg 100% 62.76%) 50%, hsl(190deg 100% 61.58%) 66.6%, hsl(240deg 100% 58.05%) 83.3%, hsl(0deg 100% 58.45%) 100%);
  mix-blend-mode: normal;
  opacity: 0.2;
}

.cm-sticker-e-sticker .cm-sticker {
  filter: drop-shadow(1px 1px 0px rgb(250, 250, 250)) drop-shadow(1px -1px 0px rgb(250, 250, 250)) drop-shadow(-1px -1px 0px rgb(250, 250, 250)) drop-shadow(-1px 1px 0px rgb(250, 250, 250)) drop-shadow(0px 0px 2px rgba(0, 0, 0, 0.3));
}

/* 마우스오버 효과 */

.cm-sticker-he-expand,
.cm-sticker-he-opacity,
.cm-sticker-he-ttiyong,
.cm-sticker-he-spin {
  pointer-events: visible;
}

.cm-sticker-he-expand .cm-sticker {
  transition-duration: var(--cm-ani);
  transition-property: scale;
  transition-timing-function: cubic-bezier(0.075, 0.82, 0.165, 1);
}

.cm-sticker-he-expand.active .cm-sticker,
.cm-sticker-he-expand:hover .cm-sticker {
  scale: 1.05;
}

.cm-sticker-he-ttiyong.active .cm-sticker,
.cm-sticker-he-ttiyong:hover .cm-sticker {
  animation: ttiyong var(--cm-ani);
}

@keyframes ttiyong {
  0% {
    translate: 0px 0px;
  }

  10% {
    translate: 0px 0px;
  }

  60% {
    translate: 0px -30px;
  }

  100% {
    translate: 0px 0px;
  }
}

.cm-sticker-he-opacity .cm-sticker {
  transition-duration: var(--cm-ani);
  transition-property: opacity;
}

.cm-sticker-he-opacity.active .cm-sticker,
.cm-sticker-he-opacity:hover .cm-sticker {
  opacity: 0.3;
}


.cm-sticker-he-spin.active .cm-sticker,
.cm-sticker-he-spin:hover .cm-sticker {
  animation: spin2 var(--cm-ani);
  animation-timing-function: cubic-bezier(0.4, -0.54, 0.38, 1.41);
}

@keyframes spin2 {
  0% {
    rotate: 0deg;
  }

  100% {
    rotate: 360deg;
  }
}