.ui-widget {
	font-family: "Spoqa Han Sans Neo";
}

#datepicker {
	margin: 80px auto 0;
}

.ui-datepicker {
	width: 100%;
	height: 100%;
}

.ui-widget.ui-widget-content {
	border: none;
}

.ui-widget-header {
	background: transparent;
	border: none;
}

.ui-datepicker .ui-datepicker-header {
	padding: 0.8em 0;
}

.ui-datepicker .ui-datepicker-prev,
.ui-datepicker .ui-datepicker-next {
	top: 50%;
	margin-top: -14px;
}

.ui-datepicker th {
	padding: 1.1em 0.3em;
}

.ui-datepicker td {
	position: relative;
	width: 14.28%;
	border: 1px solid #f8f8f8;
	padding: 0;
}

.ui-datepicker td span,
.ui-datepicker td a {
	padding: 0;
	text-align: left;
}

.ui-datepicker th span[title="Sunday"] {
	color: #ff4e70;
}

.ui-datepicker th span[title="Saturday"] {
	color: #2a74e2;
}

.ui-datepicker tr > td:nth-child(5) a,
.ui-datepicker tr > td.ui-datepicker-other-month:nth-child(5) span,
.wrap_table tr > td:nth-child(5) a,
.wrap_table tr > td.ui-datepicker-other-month:nth-child(5) span {
	background: #d2d8ff;
	/* color: #000; */
}

.ui-datepicker .pay_date_txt {
	position: absolute;
	font-size: 14px;
	color: #000 !important;
	bottom: 0;
	left: 50%;
	transform: translate(-50%, -10px);
	width: 100%;
	text-align: center;
}

.ui-state-disabled,
.ui-widget-content .ui-state-disabled,
.ui-widget-header .ui-state-disabled {
	opacity: 1;
}

.ui-datepicker tr > td.ui-datepicker-other-month span {
	color: #c8c8c8;
}

.ui-datepicker tr:last-child td.ui-datepicker-other-month span {
	background: #fbfbfb !important;
	color: #c8c8c8;
}

.ui-datepicker tr:last-child td.ui-datepicker-other-month span:before {
	content: none;
}

/* 일요일 컬러 */
.ui-datepicker tr > td:first-child a,
.ui-datepicker tr > td:first-child span {
	color: #ff4e70;
}

/* 토요일 컬러 */
.ui-datepicker tr > td:last-child a,
.ui-datepicker tr > td:last-child span {
	color: #2a74e2;
}

/* 다음달 날짜 컬러 */
.ui-datepicker tr > td.ui-datepicker-other-month a,
.ui-datepicker tr > td.ui-datepicker-other-month span {
	color: #c8c8c8;
}

.ui-state-default,
.ui-widget-content .ui-state-default,
.ui-widget-header .ui-state-default,
.ui-button,
html .ui-button.ui-state-disabled:hover,
html .ui-button.ui-state-disabled:active {
	border: none;
}

.ui-state-default,
.ui-widget-content .ui-state-default,
.ui-widget-header .ui-state-default,
.ui-button,
html .ui-button.ui-state-disabled:hover,
html .ui-button.ui-state-disabled:active {
	font-weight: 300;
	font-size: 15px;
}

.ui-state-default,
.ui-widget-content .ui-state-default,
.ui-widget-header .ui-state-default,
.ui-button,
html .ui-button.ui-state-disabled:hover,
html .ui-button.ui-state-disabled:active {
	height: 78px;
	padding: 12px;
	background: #fff;
}

/* 오늘 날짜를 강조 Today Highlight */
.ui-state-highlight,
.ui-widget-content .ui-state-highlight,
.ui-widget-header .ui-state-highlight {
	background: #f6f6f6;
}

.ui-state-active,
.ui-widget-content .ui-state-active,
.ui-widget-header .ui-state-active,
a.ui-button:active,
.ui-button:active,
.ui-button.ui-state-active:hover {
	color: #7259ff !important;
	font-weight: 500;
}

.box-active-next.cancel {
	background-color: #fff5f5 !important;
}

.box-active-next.cancel:before {
	content: "취소가능일" !important;
	position: absolute;
	font-size: 14px;
	color: #000 !important;
	bottom: 0;
	left: 50%;
	transform: translate(-50%, -10px);
	width: 100%;
	text-align: center;
}

.box-active-next.preparation {
	background-color: #eff4ff !important;
}

.box-active-next.preparation:before {
	content: "출고예상일" !important;
	position: absolute;
	font-size: 14px;
	color: #000 !important;
	bottom: 0;
	left: 50%;
	transform: translate(-50%, -10px);
	width: 100%;
	text-align: center;
}

.box-active-next.available {
	background-color: #eff4ff !important;
}

.ui-datepicker-calendar td:nth-child(4) .box-active-next.available,
.ui-datepicker-calendar td:nth-child(5) .box-active-next.available,
.ui-datepicker-calendar td:nth-child(6) .box-active-next.available,
.ui-datepicker-calendar td:nth-child(7) .box-active-next.available {
	background-color: unset !important;
}

.box-active-next.available:before {
	content: "출고예상일" !important;
	position: absolute;
	font-size: 14px;
	color: #000 !important;
	bottom: 0;
	left: 50%;
	transform: translate(-50%, -10px);
	width: 100%;
	text-align: center;
}

/* 수~토 가상선택자 공백 확인 */
.ui-datepicker-calendar td:nth-child(4) .box-active-next.available::before,
.ui-datepicker-calendar td:nth-child(5) .box-active-next.available::before,
.ui-datepicker-calendar td:nth-child(6) .box-active-next.available::before,
.ui-datepicker-calendar td:nth-child(7) .box-active-next.available::before {
	content: "" !important;
	font-size: 0 !important;
}

.ui-state-active.regular_pay_date::after,
.ui-state-highlight::after,
.ui-widget-content .ui-state-highlight::after,
.ui-widget-header .ui-state-highlight::after {
	content: "";
	position: absolute;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: #7259ff;
	top: 8px;
	right: 8px;
}

/* Click Box Highlight */
.ui-state-active,
.ui-widget-content .ui-state-active,
.ui-widget-header .ui-state-active,
a.ui-button:active,
.ui-button:active,
.ui-button.ui-state-active:hover {
	border: none;
}

.box-active-next {
	position: relative;
	background-color: #eff4ff !important;
}

/* Other Month Disabled Date Style Custom */
.box-active-parent {
	opacity: 1 !important;
	-ms-filter: "alpha(opacity=100)" !important;
	filter: "alpha(opacity=100)" !important;
}

.ui-state-disabled.box-active-parent span {
	color: #000;
}

span.noDelivery {
	position: absolute;
	padding: 0 !important;
	margin: 0;
	top: 5px;
	left: 8px;
	width: 96px;
	color: #ff7348 !important;
	text-align: left !important;
	font-size: 12px;
	font-weight: bold;
}

span.calendar_today {
	position: absolute;
	padding: 0 !important;
	margin: 0;
	top: 5px;
	left: 8px;
	width: 96px;
	color: #7259ff !important;
	text-align: left !important;
	font-size: 12px;
	font-weight: bold;
}

span.ico_delivery {
	position: absolute;
	top: 15px;
	left: 10px;
	width: 42px;
	padding: 0 !important;
}

span.ico_delivery svg {
	max-width: 100%;
}

.ui-datepicker .ui-datepicker-title {
	font-size: 20px;
	color: #000;
}

/*  /////////////////////////////////////////////////////////////////////////////
	목요일만 선택 가능
//////////////////////////////////////////////////////////////////////////// */
#datepicker tr > td:not(:nth-child(5)) a.disabled,
#datepicker tr > td:not(:nth-child(5)) span.disabled {
	pointer-events: none;
}

.ui-datepicker th {
	font-size: 15px;
	font-weight: 500;
}

.popup_regular_delivery .wrap_table tr > td.ui-datepicker-other-month a,
.wrap_table tr > td.ui-datepicker-other-month span {
	color: #c8c8c8 !important;
}

@media (max-width: 767px) {
	.ui-datepicker .pay_date_txt {
		font-size: 10px;
	}

	.ui-datepicker-calendar td:nth-child(5) .box-active-next.regular_pay_date::before,
	.regular_pay_date:before {
		font-size: 11px !important;
	}

	.ui-datepicker {
		padding: 0;
	}

	.ui-state-default,
	.ui-widget-content .ui-state-default,
	.ui-widget-header .ui-state-default,
	.ui-button,
	html .ui-button.ui-state-disabled:hover,
	html .ui-button.ui-state-disabled:active {
		font-size: 11px;
	}

	.ui-datepicker tr > td:nth-child(5) a:before,
	.ui-datepicker tr > td.ui-datepicker-other-month:nth-child(5) span:before,
	.wrap_table tr > td:nth-child(5) a:before,
	.wrap_table tr > td.ui-datepicker-other-month:nth-child(5) span:before {
		font-size: 11px !important;
		word-break: break-word;
		width: 70%;
		transform: translate(-50%, -9px);
	}
	#datepicker {
		margin: 50px auto 0;
	}

	.ui-datepicker .ui-datepicker-title {
		font-size: 14px;
		font-weight: 500;
	}

	.box-active-next.cancel:before {
		font-size: 11px;
		word-break: break-word;
		width: 70%;
		transform: translate(-50%, -9px);
	}

	.box-active-next.preparation:before {
		font-size: 11px;
		word-break: break-word;
		width: 70%;
		transform: translate(-50%, -9px);
	}

	.box-active-next.available:before {
		font-size: 11px;
		word-break: break-word;
		width: 70%;
		transform: translate(-50%, -9px);
		font-size: 12px !important;
	}

	.ui-state-default,
	.ui-widget-content .ui-state-default,
	.ui-widget-header .ui-state-default,
	.ui-button,
	html .ui-button.ui-state-disabled:hover,
	html .ui-button.ui-state-disabled:active {
		font-size: 13px;
	}

	.ui-state-default,
	.ui-widget-content .ui-state-default,
	.ui-widget-header .ui-state-default,
	.ui-button,
	html .ui-button.ui-state-disabled:hover,
	html .ui-button.ui-state-disabled:active {
		height: 68px;
		padding: 8px;
	}
    
	.ui-state-default,
	.ui-widget-content .ui-state-default,
	.ui-widget-header .ui-state-default,
	.ui-button,
	html .ui-button.ui-state-disabled:hover,
	html .ui-button.ui-state-disabled:active {
		font-size: 13px;
	}

	.ui-state-default,
	.ui-widget-content .ui-state-default,
	.ui-widget-header .ui-state-default,
	.ui-button,
	html .ui-button.ui-state-disabled:hover,
	html .ui-button.ui-state-disabled:active {
		height: 62px;
		padding: 8px;
	}
}
