.floating-selected-btn {
  position: fixed;
  right: 40px;
  bottom: 40px;
  z-index: 1101;
  background: #2196f3;
  color: #fff;
  border-radius: 10px;
  border: none;
  padding: 0px 10px 2px;
  height: 50px;
  font-size: 16px;
  font-weight: bold;
  box-shadow: 0 3px 12px rgba(0,0,0,0.08);
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  transition: box-shadow 0.15s;
}
.floating-selected-btn .arrow { 
  font-size: 15px;
  transition: transform 0.2s;
  font-weight: bold; 
}

.selected-layer-overlay {
  position: fixed;
  left: 0; top: 0; right: 0; bottom: 0;
  width: 100vw; height: 100vh;
  background: rgba(0,0,0,0.53);
  z-index: 1100;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  pointer-events: auto;
}

.selected-layer-panel {
    background: #fff;
    border-radius: 16px 16px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.16);
    width: 400px;
    height: 600px;
    margin: 0 52px 110px 0;
    padding: 32px 10px 26px 20px;
    position: relative;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}
.selected-layer-close, #selectedLayerClose {
  position: absolute;
  right: 10px;
  top: 5px;
  font-size: 38px;
  background: none;
  border: none;
  cursor: pointer;
  color: #717171;
}
.selected-layer-list-wrap {
  flex: 1 1 0;
  overflow-y: auto;
  margin-bottom: 15px;
  margin-top: 10px;
  padding: 0 20px 0 0;
}
.selected-group { 
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid #ddd;
}
.selected-group-title {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 10px;
  margin-top: 8px;
  color: #222;
}
.selected-card {
  background: #f4f4f4;
  border-radius: 10px;
  display: block;
  align-items: center;
  margin-bottom: 9px;
  justify-content: flex-start;
  padding: 0 0px;
  font-size: 15px;
  color: #888;
  box-sizing: border-box;
}
.selected-card img {
  object-fit: cover; border-radius: 10px;
}
.selected-card-title {
  font-weight: 500;
  color: #262b36;
}
.selected-card.empty {
  background: #f4f4f4;
  color: #aaa;
  justify-content: center;
  font-size: 15px;
  font-weight: normal;
}

#selectedResetBtn {
  width: 92%;
  background: #fff;
  border: 1px solid #323b45;
  color: #222;
  font-size: 17px;
  border-radius: 10px;
  padding: 8px 0 10px;
  margin-bottom: 0;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.13s, color 0.13s, border 0.13s;
}
#selectedResetBtn:hover { background: #f8fafd; color: #2196f3; }

#selectedResetModal {
  display: none;
  position: fixed;
  left: 0; top: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.24);
  z-index: 1201;
  align-items: center;
  justify-content: center;
  text-align: center;
}
#selectedResetModal.show { display: flex; }
#selectedResetModal > div, #selectedResetModal > p {
  background: #fff;
  padding: 72px 108px 72px;
  border-radius: 33px;
  margin: auto;
  min-width: 320px;
  font-size: 26px;
  line-height: 1.3;
  font-weight: bold;
  color: #333;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.13);
}
#resetConfirmBtn, #resetCancelBtn {
  margin: 20px 0px 0 0px;
  padding: 14px 20px;
  width: 105px;
  border-radius: 7px;
  border: none;
  font-size: 18px;
  font-weight: 600;
  background: #2196f3;
  color: #fff;
  cursor: pointer;
}
#resetCancelBtn {
  background: #dedede;
  color: #555;
}
@media (max-width: 600px) {
  .floating-selected-btn {
    right: 12px;
    bottom: 12px;
    width: 45vw;
    min-width: unset;
    max-width: 50vw;
    font-size: 14px;
    height: 40px;
    justify-content: center !important;
  }
  .selected-layer-panel {
  width: 60vw;
  min-width: unset;
  max-width: 90vw;
  height: 60vh;
  margin: 0 10px 0px 0;
  padding: 30px 0px 20px 20px;
  border-radius: 14px 14px;
  bottom: 78px;
  position: fixed;
  }

  #selectedResetModal > div, #selectedResetModal > p {
  background: #fff;
  padding: 42px 18px 42px;
  border-radius: 33px;
  margin: auto;
  min-width: 320px;
  font-size: 16px;
  line-height: 1.3;
  font-weight: bold;
  color: #333;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.13);
}

#resetConfirmBtn, #resetCancelBtn {
  margin: 20px 0px 0 0px;
  padding: 8px 20px;
  width: 85px;
  border-radius: 7px;
  border: none;
  font-size: 14px;
  font-weight: 600;
  background: #2196f3;
  color: #fff;
  cursor: pointer;
}
}

.selected-toast {
  position: fixed;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0,0,0,0.90);
  color: #fff;
  font-size: 18px;
  font-weight: 500;
  border-radius: 30px;
  padding: 24px 40px;
  z-index: 20000;
  text-align: center;
  display: none;
  box-shadow: 0 4px 16px rgba(0,0,0,0.13);
}
@media (max-width: 600px) {
  .selected-toast { font-size: 15px; padding: 16px 10px; }
}

.selected-layer-title {
  font-size: 1.8rem;
  font-weight: bold;
  margin-bottom: -20px;
  letter-spacing: -1px;
}
.selected-group-title {
  font-weight: bold;
  font-size: 0.98rem;
  margin: 22px 0 10px 0;
}
.selected-card img {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 0px;
    display: block;
    border: 1px solid #2196f3;
}
.selected-card.empty {
  background: #f5f5f5;
  color: #aaa;
  height: 75px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 8px;
}

/*.floating-selected-btn.float-above-footer {
   푸터와 겹치지 않도록 아래로부터 100px 더 위로 
  bottom: 110px !important;
  transition: bottom 0.3s cubic-bezier(.4,2.6,.6,1);
}*/
@media (max-width:600px) {
  .floating-selected-btn.float-above-footer {
    bottom: 180px !important;
  }

}

.floating-selected-btn {
/* ...기존... */
transition: transform 0.38s cubic-bezier(.42,1.6,.6,1), bottom 0.18s;
will-change: transform, bottom;
}

.floating-selected-btn {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
  transition: opacity 0.32s cubic-bezier(.42,1.6,.6,1), transform 0.38s cubic-bezier(.42,1.6,.6,1), bottom 0.18s;
}
.floating-selected-btn.fsb-hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(30px);
}


/* 플로팅 버튼 이미지용 세로 중앙정렬 클래스 */
.selected-btn-vertical {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  border: none;
  gap: 0;
}

/* 이미지 스타일 PC/모바일 */
.selected-btn-img {
  width: 170px;
  height: 58px;
  max-width: 90vw;
  object-fit: contain;
  display: block;
  pointer-events: none; /* 클릭은 버튼만 */
}

@media (max-width: 600px) {
  .selected-btn-img {
    width: 210px;  /* 모바일에서 별도 크기 잡을 시 여기 수정 */
    height: 58px;
    max-width: 96vw;
  }
  .floating-selected-btn.selected-btn-vertical {
    min-width: unset;
    max-width: 100vw;
    height: auto;
    right: 8px;
    bottom: 12px;
    padding: 0;
  }
}

.floating-selected-btn {
  background: transparent;
  border: none;
  outline: none;
  box-shadow: none;
  padding: 0;
  min-width: unset;
  min-height: unset;
  width: auto;
  height: auto;
  cursor: pointer;
  z-index: 1101;
  transition: opacity 0.32s cubic-bezier(.42,1.6,.6,1), transform 0.38s cubic-bezier(.42,1.6,.6,1), bottom 0.18s;
}
.floating-selected-btn.fsb-hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(30px);
}

/* === 플로팅 버튼 이미지형: 세로 정렬, 이미지 교체/반응형 === */
.selected-btn-vertical {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  border: none;
  gap: 0;
}
.selected-btn-img {
  width: 210px;
  height: 58px;
  max-width: 90vw;
  object-fit: contain;
  display: block;
  pointer-events: none;
}

@media (max-width: 600px) {
  .selected-btn-img {
    width: 190px;
    height: auto;
    max-width: 96vw;
  }
  .floating-selected-btn.selected-btn-vertical {
    min-width: unset;
    max-width: 100vw;
    height: auto;
    right: 7px;
    bottom: 12px;
    padding: 0;
  }
}

/* 필요시 기존 .floating-selected-btn의 배경, 보더, 그림자 제거 */
.floating-selected-btn {
  background: transparent;
  border: none;
  outline: none;
  box-shadow: none;
  padding: 0;
  min-width: unset;
  min-height: unset;
  width: auto;
  height: auto;
}
