input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* byhyeonrok */
.was-validated .form-img:invalid, .form-img.is-invalid {
	border: 1px solid red;
	background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%23ff5c75' viewBox='0 0 12 12'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23ff5c75' stroke='none'/%3e%3c/svg%3e");
	background-repeat: no-repeat;
	background-position: center center;
	background-size: calc(1.5em + 1.5rem) calc(1.5em + 1.5rem); 
}

/* 스피너 S */
/* 전체 화면을 덮는 검은 배경 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3); /* 배경 */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999; /* 다른 요소들 위에 표시 */
}

.spinner {
    border: 8px solid #f3f3f3; /* 연한 회색 */
    border-top: 8px solid #225EFF; /* 강렬한 청록색 */
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
}

/* 회전 애니메이션 */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
/* 스피너 E */

/* list 에서 사진 조절 */
.item-list img {
  width: 100%;
  height: 300px;  
  object-fit: cover; /* 비율을 유지하며 크기 조정 */
}

.item-view img {
  width: 100%;
  height: 500px;  
  object-fit: contain;
  background-color: #eeeeee; /* 빈 공간 배경색 */
}

.item-view-list img {
  width: 100%;
  height: 100px;  
  object-fit: cover; /* 비율을 유지하며 크기 조정 */
}
  
.editor-wrap p{
	margin-bottom:0
}

/* rangeCss S */
.range-container {
    position: relative;
    display: inline-block;
    width: 100%;
}

.custom-range {
    width: 100%;
    appearance: none;
}

/* 툴팁 스타일 */
.range-tooltip {
    position: absolute;
    top: -35px;
    background: #5465FF;
    color: white;
    padding: 5px 10px;
    font-size: 12px;
    border-radius: 5px;
    opacity: 0;
    transition: opacity 0.2s ease-in-out;
    pointer-events: none;
    white-space: nowrap;
}
/* rangeCss E */
/* sold out S */
.sold-out {
    position: relative;
    opacity: 0.5; /* 상품 흐리게 */
    filter: grayscale(100%); /* 흑백 효과 추가 */
}

.sold-out-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* 반대 방향 + 더 눕힌 회전 */
/*     transform: translate(-50%, -50%) rotate(40deg); /* 반대 방향 + 더 눕힌 회전 */ 
    color: white;
    font-size: 1.4rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 4px;
    opacity: 0.85; /* 살짝 투명하게 */
/*     text-shadow: 5px 5px 15px rgba(0, 0, 0, 0.6); /* 더 강한 그림자 효과 */ 
    animation: fadeIn 0.5s ease-in-out;
}

.sold-out .sold-out-product {
    position: relative;
    color: rgba(255, 255, 255, 0.6); /* 흐릿한 색상 */
    text-decoration: line-through; /* 기본 취소선 */
    font-weight: bold;
    font-size: 1.2rem;
    opacity: 0.6; /* 흐리게 */
}

/* 더 두껍고 강조된 줄 */
.sold-out .sold-out-product::after {
    content: "";
    position: absolute;
    top: 50%;
    left: -5%;
    width: 110%;
    height: 2px; /* 선 두께 조절 */
    background: rgba(255, 0, 0, 0.8); /* 더 진한 빨간색 */
    border-radius: 2px; /* 부드러운 끝처리 */
}
/* sold out E */

/* 테이블 스크롤S */
.table-wrapper {
    width: 100%;
    overflow-x: auto;
}

.table-wrapper table {
    min-width: 800px;
    white-space: nowrap;
}
/* 테이블 스크롤E */

/* 팝업 S */
.popup-layer {
	position:fixed;
	left:0;
	top:0;
	width:100%;
	height:100%;
	z-index:3;
}

.popup-layer + .popup-layer{
	z-index:9;
	margin-left:1rem;
	top:1rem;
}
.popup-layer + .popup-layer + .popup-layer{
	z-index:8;
	margin-left:2rem;
	top:2rem;
}

.popup-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 300px;
    padding: 0;
    background: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    text-align: center;
    line-height:1;
}

.popup-content img{
	max-width:100%;
	font-size:0;
}

.popup-buttons {
  display: flex;
  justify-content: space-between;
  width: 100%;
  box-sizing: border-box;
}

.popup-buttons .popup-btn {
  border: 0;
  color: #fff;
  background-color: transparent;
  padding: 1rem;
  font-size: 12px;
  font-weight: bold;
  box-sizing: border-box;
}

.popup-buttons .dismiss-popup {
  flex: 1;
  background-color: #111;
  text-align: left;
}

.popup-buttons .close-popup {
  width: 70px; /* 또는 flex: 0 0 50px; */
  background-color: blue;
  text-align: center;
  padding-left: 0;
  padding-right: 0;
}

@media (max-width: 768px) {
  .popup-buttons {
    flex-direction: row;
  }

  .popup-buttons .dismiss-popup {
    flex: 1;
  }

  .popup-buttons .close-popup {
    width: 70px;
  }
}
/* 팝업 E */

/* 모달 p 태그 여백 제거S */
.modal-body p {
  margin: 0px !important;
}
/* 모달 p 태그 여백 제거E */