/* Mise en forme locale du datepicker jQuery UI utilisé au checkout. */
.woocommerce-checkout .demosol-subscriber-declaration {
	background: #f4f7fa;
	border: 1px solid #d8e2ec;
	border-radius: 8px;
	box-sizing: border-box;
	font-size: 13px;
	line-height: 1.55;
	margin: 16px 0;
	padding: 14px 16px;
}

.woocommerce-checkout .demosol-subscriber-declaration label {
	align-items: flex-start;
	display: flex;
	gap: 9px;
}

.woocommerce-checkout .demosol-subscriber-declaration input[type='checkbox'] {
	flex: 0 0 auto;
	margin: 4px 0 0;
}

.woocommerce-checkout .demosol-subscriber-declaration a {
	font-weight: 600;
	text-decoration: underline;
}

.woocommerce-checkout .ui-datepicker {
	background: #fff;
	border: 1px solid #d8e2ec;
	border-radius: 10px;
	box-shadow: 0 12px 32px rgba(23, 35, 60, 0.18);
	box-sizing: border-box;
	display: none;
	font-family: inherit;
	font-size: 14px;
	max-width: calc(100vw - 32px);
	padding: 14px;
	width: 320px;
	z-index: 100000 !important;
}

.woocommerce-checkout .ui-datepicker .ui-datepicker-header {
	align-items: center;
	display: flex;
	justify-content: space-between;
	margin-bottom: 12px;
	position: relative;
}

.woocommerce-checkout .ui-datepicker .ui-datepicker-prev,
.woocommerce-checkout .ui-datepicker .ui-datepicker-next {
	color: #0e5a8a;
	cursor: pointer;
	font-size: 0;
	text-decoration: none;
}

.woocommerce-checkout .ui-datepicker .ui-datepicker-prev {
	order: 1;
}

.woocommerce-checkout .ui-datepicker .ui-datepicker-next {
	order: 3;
}

.woocommerce-checkout .ui-datepicker .ui-datepicker-prev::before,
.woocommerce-checkout .ui-datepicker .ui-datepicker-next::before {
	display: block;
	font-size: 20px;
	line-height: 1;
}

.woocommerce-checkout .ui-datepicker .ui-datepicker-prev::before {
	content: "‹";
}

.woocommerce-checkout .ui-datepicker .ui-datepicker-next::before {
	content: "›";
}

.woocommerce-checkout .ui-datepicker .ui-datepicker-title {
	display: flex;
	flex: 1;
	gap: 8px;
	justify-content: center;
	margin: 0 8px;
	order: 2;
}

.woocommerce-checkout .ui-datepicker select.ui-datepicker-month,
.woocommerce-checkout .ui-datepicker select.ui-datepicker-year {
	background: #fff;
	border: 1px solid #d8e2ec;
	border-radius: 6px;
	font: inherit;
	height: 36px;
	margin: 0;
	padding: 4px 8px;
	width: auto;
}

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

.woocommerce-checkout .ui-datepicker th,
.woocommerce-checkout .ui-datepicker td {
	border: 0;
	padding: 2px;
	text-align: center;
}

.woocommerce-checkout .ui-datepicker th {
	color: #64748b;
	font-size: 12px;
	font-weight: 600;
}

.woocommerce-checkout .ui-datepicker td a,
.woocommerce-checkout .ui-datepicker td span {
	border-radius: 6px;
	box-sizing: border-box;
	color: #17233c;
	display: block;
	line-height: 32px;
	min-height: 32px;
	text-align: center;
	text-decoration: none;
}

.woocommerce-checkout .ui-datepicker td a:hover,
.woocommerce-checkout .ui-datepicker .ui-datepicker-current-day a {
	background: #0e5a8a;
	color: #fff;
}

.woocommerce-checkout .ui-datepicker .ui-datepicker-today a {
	box-shadow: inset 0 0 0 1px #f6be1a;
}

.woocommerce-checkout .ui-datepicker .ui-state-disabled span {
	color: #a8b2bf;
}

.woocommerce-checkout .ui-datepicker .ui-datepicker-buttonpane {
	border-top: 1px solid #d8e2ec;
	display: flex;
	justify-content: space-between;
	margin-top: 10px;
	padding-top: 10px;
}

.woocommerce-checkout .ui-datepicker .ui-datepicker-buttonpane button {
	background: #f4f7fa;
	border: 1px solid #d8e2ec;
	border-radius: 6px;
	color: #17233c;
	cursor: pointer;
	font: inherit;
	padding: 6px 10px;
}

@media (max-width: 480px) {
	.woocommerce-checkout .ui-datepicker {
		left: 16px !important;
		right: 16px !important;
		width: auto;
	}
}
