/* datepicker css start*/
/* Datepicker 메인 컨테이너 */
.ui-datepicker {
    width: 280px !important;
    padding: 0 !important;
    border: none !important;
    border-radius: 12px !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1) !important;
    font-family: 'Pretendard', -apple-system, sans-serif !important;
    background: #fff !important;
    margin-top: 5px !important;
}

/* 헤더 영역 (월/년 표시부) */
.ui-datepicker-header {
    background-color: #3b82f6 !important; /* 메인 테마색 */
    border: none !important;
    border-bottom-left-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
    border-top-left-radius: 12px !important;
    border-top-right-radius: 12px !important;
    padding: 12px 0 !important;
    color: #fff !important;
}

/* 이전/다음 달 버튼 */
.ui-datepicker-prev, .ui-datepicker-next {
    top: 10px !important;
    cursor: pointer !important;
    border: none !important;
    background: transparent !important;
}

.ui-datepicker-prev:hover, .ui-datepicker-next:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    border-radius: 50% !important;
}

/* 요일 표시줄 */
.ui-datepicker th {
    padding: 10px 0 !important;
    color: #64748b !important;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    border: none !important;
}

/* 날짜 칸 */
.ui-datepicker td {
    border: none !important;
    padding: 2px !important;
}

.ui-datepicker td span, 
.ui-datepicker td a {
    display: block !important;
    padding: 8px 0 !important;
    text-align: center !important;
    border: none !important;
    background: none !important;
    color: #1e293b !important;
    border-radius: 8px !important;
    transition: all 0.2s ease !important;
}

/* 날짜 호버 효과 */
.ui-datepicker td a:hover {
    background-color: #f1f5f9 !important;
    color: #3b82f6 !important;
}

/* 오늘 날짜 표시 */
.ui-datepicker-today a {
    background-color: #eff6ff !important;
    color: #3b82f6 !important;
    font-weight: bold !important;
}

/* 선택된 날짜 */
.ui-datepicker-current-day a {
    background-color: #3b82f6 !important;
    color: #fff !important;
    box-shadow: 0 4px 6px -1px rgba(59, 130, 246, 0.5) !important;
}

/* 다른 달 날짜 숨기기 또는 흐리게 */
.ui-priority-secondary {
    opacity: 0.3 !important;
}
/* 전체 컨테이너 */
.ui-datepicker {
    width: 260px !important;
    padding: 0 !important;
    border: none !important;
    border-radius: 12px !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1) !important;
    font-family: 'Pretendard', sans-serif !important;
    background: #fff !important;
}

/* 헤더: 녹색 계열 + 슬림 사이즈 */
.ui-datepicker-header {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%) !important;
    border: none !important;
    border-radius: 12px 12px 0 0 !important;
    padding: 8px 0 !important;
    color: #fff !important;
}

/* 요일 표시줄 */
.ui-datepicker th {
    padding: 10px 0 !important;
    font-size: 0.8rem !important;
    font-weight: 600 !important;
    color: #64748b !important;
}

/* ★ 토요일/일요일 요일 색상 ★ */
.ui-datepicker th.ui-datepicker-week-end:first-child { color: #ff4d4d !important; } /* 일요일 헤더 */
.ui-datepicker th.ui-datepicker-week-end:last-child { color: #4d7cff !important; }  /* 토요일 헤더 */

/* 날짜 칸 */
.ui-datepicker td {
    padding: 2px !important;
}

.ui-datepicker td a, .ui-datepicker td span {
    display: block !important;
    padding: 8px 0 !important;
    text-align: center !important;
    border-radius: 8px !important;
    font-size: 0.9rem !important;
    color: #334155 !important; /* 평일 기본 색상(진한 회색) */
    text-decoration: none !important;
}

/* ★ 토요일/일요일 날짜 색상 ★ */
/* 일요일 (첫 번째 열) */
.ui-datepicker-calendar tbody td:first-child a {
    color: #ff4d4d !important; 
}
/* 토요일 (마지막 열) */
.ui-datepicker-calendar tbody td:last-child a {
    color: #4d7cff !important;
}

/* 호버 효과 */
.ui-datepicker td a:hover {
    background-color: #f1f5f9 !important;
}

/* 오늘 날짜 */
.ui-datepicker-today a {
    background-color: #e7faf3 !important;
    color: #12b886 !important;
    font-weight: bold !important;
}

/* 선택된 날짜 */
.ui-datepicker-current-day a {
    background-color: #12b886 !important;
    color: #fff !important;
}
/* datepicker css end*/


.steps{
  display: none;
}

.step-wrap{
  display: none;
}

.hide{
  display: none;
}

.pic-options {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 12px;
}

.pic-options > div {
  display: inline-block;
  margin-right: 0;
  vertical-align: top;
}

.pic-options label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px;
  box-sizing: border-box;
  cursor: pointer;
  vertical-align: top;
}

.pic-options img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

#bannerPreviewWrap {
  width: 360px;
  height: 320px;  
  top: 0px;
}

.step-buttons{
  display: none;
}

#stepBtn1{
  display: block;
}

#confirmBox .jp-prev-tpl{
  left: 0 !important;
}

.detail-wraps {
  display: none;
}

.campaign-add-cont  .type1 {
	margin-bottom: 40px;
}

.page-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom: 12px; /* 필요시 */
}
.page-head .page-title{
  margin:0; /* h2 기본 margin 제거 */
}

#couponGrid .box-tit{
  text-align: left;
}



/*칼라피커관련*/
.picker-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

/* 텍스트 입력창 스타일 */
.color-input {
    width: 150px;
    height: 38px;
    padding: 0 12px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font-size: 14px;
    color: #333;
    background-color: #fff;
}

/* 색상 선택 버튼 스타일 */
.btn-select-color {
    padding: 0 20px;
    height: 40px;
    background: #fff;
    /* 이미지와 유사한 짙은 남색/회색 테두리 */
    border: 1px solid #6b7280; 
    border-radius: 4px;
    color: #1f2937;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-select-color:hover {
    background-color: #f9fafb;
    border-color: #374151;
}

/* Spectrum 기본 모양 커스텀 (가장 왼쪽 사각형) */
.sp-replacer {
    border: 1px solid #d1d5db !important;
    border-radius: 4px !important;
    background: #fff !important;
    padding: 4px !important;
    pointer-events: none; /* 마우스 클릭 무시 */
    cursor: default;
}
.sp-preview {
    width: 25px !important;
    height: 25px !important;
    border: none !important;
}
.sp-dd { display: none !important; } /* 삼각형 아이콘 숨김 */

.btn-minus-circle{
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid #ddd;
  background: #fff;
  margin-left: 8px;
  line-height: 26px;
  text-align: center;
  cursor: pointer;
}
.btn-minus-circle:disabled{ opacity:.5; cursor:default; }

/* 기타 입력 row */
.inp-text-wrap.jp-other-row{
  position: relative;
  padding-right: 44px; /* -버튼 자리 확보 */
}

/* input은 100% */
.inp-text-wrap.jp-other-row input.block{
  width: 100%;
  box-sizing: border-box;
}

/* - 버튼: 입력 우측에 고정 */
.inp-text-wrap.jp-other-row .btn-minus-circle{
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid #ddd;
  background: #fff;
  line-height: 26px;
  text-align: center;
  cursor: pointer;
}

/* 카운터도 우측 아래로 빼고 싶으면 (선택) */
.inp-text-wrap.jp-other-row .inp-counter{
  position: absolute;
  right: 44px;  /* -버튼 왼쪽 */
  bottom: -22px; /* 아래로 */
}

.jp-other-rows .jp-other-row{
  margin-top: 25px; /* 기존 mt8(8px) 느낌이면 8+10=18 */
}

/* 첫 row는 위 간격 없애기 */
.jp-other-rows .jp-other-row:first-child{
  margin-top: 8px; /* 필요없으면 0으로 */
}

.jp-btn-add-other{
  margin-top: 25px;
}

.btn.ic_add::before {	
	vertical-align: middle;	
}

.c-steps {
  display: none;
}

.coupon-preview .img {
  width: 72px;
  height: 72px;
  overflow: hidden;
}

.coupon-preview .img svg,
.coupon-preview .img img {
  width: 100%;
  height: 100%;
  display: block;
}

.border-none{
  border: none !important;
  border-radius: 0;
}

.campaign-preview{
  display: none;
}

.jp-coupon-description{
  font-size: 16px;
  color: #242933;
}

#inventoryPreview {
    position: relative;
    width: 100%;       /* 항상 가로 100% */
    height: 0;         /* 실제 높이는 padding으로 결정 */
    background-color: #f8f9fa;
    border: 2px solid #dee2e6;
    overflow: hidden;
}

/* 내부 콘텐츠 중앙 정렬 */
#inventoryPreview .preview-inner {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    display: table;    /* 구형 브라우저 세로 중앙 정렬용 */
    width: 100%;
    height: 100%;
}

#inventoryPreview .preview-inner #dimensionText {
    display: table-cell;
    vertical-align: middle;
    text-align: center;
    font-weight: bold;
    color: #333;
    font-size: 20px;
}

.w-100 {
  width: 100%;
}

.jp-period .jp-range {
  display: flex;
  align-items: center;
  gap: 10px;
}

.table td{
  word-break:break-all;
}

.hidden {
    display: none;
}

/* 팝업형 인벤토리 미리보기 */
.js-popup-img-area {
    background: #A6B4C2;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.js-popup-dim-text {
    color: #000;
    font-size: 16px;
    font-weight: 500;
}

.mt-32 {
  margin-top: 32px;
}

.jp-number-input-wrap {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  vertical-align: middle;
}

.jp-number-input-wrap .jp-number-input {
  width: 120px;
  height: 36px;
  padding: 0 10px;
  border: 1px solid #d9d9d9;
  border-radius: 4px;
  box-sizing: border-box;
  font-size: 16px;
  line-height: 34px;
  text-align: right;
  background: #fff;
  color: #222;
  outline: none;
}

.jp-number-input-wrap .jp-number-input:focus {
  border-color: #222;
}

.jp-number-input-wrap .jp-number-input:disabled {
  background: #f5f5f5;
  color: #999;
  cursor: not-allowed;
}

.jp-number-input-wrap .jp-number-suffix {
  display: inline-block;
  font-size: 16px;
  line-height: 1;
  color: #666;
  white-space: nowrap;
}

/* 쿠폰 - 아이콘 이미지 */
.page-section .icon-img {
    width: 80px;
    height: 80px;
    margin-bottom: 12px;
}

/* 스피너 */
#loading-spinner {
    display: none;
    position: fixed;        /* 스크롤과 무관하게 화면 전체 덮기 */
    inset: 0;               /* top/right/bottom/left: 0 */
    z-index: 9999;
    background: rgba(0, 0, 0, 0.15);   /* 반투명 회색 오버레이 */
    cursor: not-allowed;    /* 클릭 불가 시각적 피드백 */
}
.cv-spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
.spinner {
    width: 48px;
    height: 48px;
    border: 3px solid #FFF;
    border-radius: 50%;
    display: inline-block;
    position: relative;
    box-sizing: border-box;
    animation: rotation 1s linear infinite;
}
.spinner::after {
    content: '';
    box-sizing: border-box;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 3px solid transparent;
    border-bottom-color: #FF3D00;
}
@keyframes rotation {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* 인벤토리 미리보기용 텍스트 스타일 */
.layout-text {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    width: 100%;
    font-size: 1rem;
}