/* ==========================================================================
   Shipping Date Picker — Recharged Shipping Services
   ========================================================================== */

#rss-shipping-date-section {
	/* margin: 1.5em 0;
	padding: 1.25em 1.5em 1.5em;
	background: #f9fafb;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	transition: opacity 0.2s ease; */
	padding: 0 8px;
}

#rss-shipping-date-section.rss-hidden {
	display: none;
}

/* Heading
   ========================================================================== */

.rss-shipping-date-heading {
	margin: 0 0 1em;
	font-size: 1.1em;
	font-weight: 600;
	color: #111827;
	border: none;
	padding: 0;
}

/* Row
   ========================================================================== */

.rss-shipping-date-row {
	margin-bottom: 0 !important;
	padding: 0 !important;
}

.rss-shipping-date-row label {
	display: block;
	margin-bottom: 0.4em;
	font-weight: 500;
	color: #374151;
	font-size: 0.95em;
}

.rss-shipping-date-row label .required {
	color: #ef4444;
	margin-left: 2px;
	text-decoration: none;
}

/* Input
   ========================================================================== */

.rss-shipping-date-input {
	display: block;
	width: 100%;
	max-width: 240px;
	padding: 0.6em 0.85em;
	font-size: 1em;
	color: #111827;
	background: #ffffff;
	border: 1.5px solid #d1d5db;
	border-radius: 6px;
	cursor: pointer;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
	-webkit-appearance: none;
	appearance: none;
}

.rss-shipping-date-input:focus {
	outline: none;
	border-color: #2563eb;
	box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

/* Hint text
   ========================================================================== */

.rss-shipping-date-hint {
	display: block;
	margin-top: 0.45em;
	font-size: 0.82em;
	color: #6b7280;
}

/* Backorder notice (shown instead of the picker)
   ========================================================================== */

.rss-shipping-date-backorder-message {
	padding: 0 !important;
	/* margin: 0;
	padding: 0.85em 1em;
	background: #fffbeb;
	border: 1px solid #fde68a;
	border-radius: 8px;
	color: #92400e;
	font-size: 0.92em;
	line-height: 1.5; */
}

/* jQuery UI datepicker widget
   ========================================================================== */

.ui-datepicker {
	display: none;
	width: 18em;
	padding: 0.5em;
	background: #ffffff;
	border: 1px solid #e5e7eb;
	border-radius: 10px;
	box-shadow: 0 12px 32px rgba(17, 24, 39, 0.14);
	font-size: 0.9em;
	z-index: 99999 !important;
}

.ui-datepicker .ui-datepicker-header {
	position: relative;
	padding: 0.25em 0 0.6em;
}

.ui-datepicker .ui-datepicker-title {
	text-align: center;
	font-weight: 600;
	color: #111827;
}

.ui-datepicker .ui-datepicker-prev,
.ui-datepicker .ui-datepicker-next {
	position: absolute;
	top: 0;
	width: 1.9em;
	height: 1.9em;
	overflow: hidden;
	text-indent: -9999px;
	cursor: pointer;
	border-radius: 6px;
}

.ui-datepicker .ui-datepicker-prev { left: 0; }
.ui-datepicker .ui-datepicker-next { right: 0; }

.ui-datepicker .ui-datepicker-prev:hover,
.ui-datepicker .ui-datepicker-next:hover {
	background: #eff6ff;
}

.ui-datepicker .ui-datepicker-prev::after,
.ui-datepicker .ui-datepicker-next::after {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	width: 0.55em;
	height: 0.55em;
	border-top: 2px solid #374151;
	border-right: 2px solid #374151;
	text-indent: 0;
}

.ui-datepicker .ui-datepicker-prev::after {
	transform: translate(-30%, -50%) rotate(-135deg);
}

.ui-datepicker .ui-datepicker-next::after {
	transform: translate(-70%, -50%) rotate(45deg);
}

.ui-datepicker table {
	width: 100%;
	margin: 0;
	border-collapse: collapse;
	table-layout: fixed;
}

.ui-datepicker th {
	padding: 0.4em 0;
	font-size: 0.8em;
	font-weight: 600;
	color: #6b7280;
	text-transform: lowercase;
}

.ui-datepicker td {
	padding: 1px;
	text-align: center;
}

.ui-datepicker td a,
.ui-datepicker td span {
	display: block;
	padding: 0.5em 0;
	border-radius: 6px;
	text-align: center;
	text-decoration: none;
	color: #111827;
}

.ui-datepicker td a {
	cursor: pointer;
}

.ui-datepicker td a.ui-state-hover {
	background: #eff6ff;
}

.ui-datepicker td a.ui-state-active {
	background: #2563eb;
	color: #ffffff;
	font-weight: 600;
}

/* Disabled days (weekends, holidays, before minimum) are not clickable. */
.ui-datepicker td.ui-datepicker-unselectable span,
.ui-datepicker td.ui-state-disabled span {
	color: #d1d5db;
	cursor: not-allowed;
	text-decoration: line-through;
}

/* Thank you page message
   ========================================================================== */

.rss-shipping-date-thankyou-message {
	margin: 1em 0;
	padding: 0.85em 1em;
	background: #f0fdf4;
	border: 1px solid #bbf7d0;
	border-radius: 8px;
	color: #166534;
	font-size: 0.95em;
	line-height: 1.5;
}

/* Admin order detail
   ========================================================================== */

.rss-shipping-date-admin {
	margin-top: 0.75em;
	padding: 0.6em 0.85em;
	background: #f0fdf4;
	border-left: 3px solid #16a34a;
	border-radius: 4px;
	font-size: 0.9em;
	color: #166534;
}
