body {
	--mb-color-datepicker-primary: #23282d;
	--mb-color-datepicker-border: #23282d;
	--mb-color-datepicker-active: var(--wp-admin-theme-color, #2271b1);
	--mb-color-datepicker-heading: #fff;
}

/* Fix empty block below admin footer (issue #24) */
#ui-datepicker-div {
	display: none;
	z-index: 999999 !important;
}

/* Style for multiple months */
.ui-datepicker-multi .ui-datepicker-group {
	padding: 0 .5%;
	box-sizing: border-box;
}
.ui-datepicker-multi .ui-datepicker-group .ui-datepicker-calendar {
	width: 100%;
}

/* Date Picker Default Styles */
.ui-datepicker {
	padding: 0;
	border: 1px solid #ddd;
	border-radius: 4px;
}
.ui-datepicker * {
	padding: 0;
	border-radius: 0;
}
.ui-datepicker table {
	font-size: 13px;
	margin: 0;
}
.ui-datepicker .ui-datepicker-header,
.ui-timepicker-div .ui-widget-header {
	border: none;
	font-weight: normal;
}
.ui-datepicker .ui-datepicker-header .ui-state-hover {
	border-color: transparent;
	cursor: pointer;
	border-radius: 0;
}

.ui-datepicker .ui-datepicker-title {
	margin-top: .4em;
	margin-bottom: .3em;
	font-size: 14px;
}
.ui-datepicker .ui-datepicker-prev-hover,
.ui-datepicker .ui-datepicker-next-hover,
.ui-datepicker .ui-datepicker-next,
.ui-datepicker .ui-datepicker-prev {
	height: 1em;
	top: .9em;
	border: none;
}
.ui-datepicker .ui-datepicker-prev-hover {
	left: 2px;
}
.ui-datepicker .ui-datepicker-next-hover {
	right: 2px;
}
.ui-datepicker .ui-datepicker-next span,
.ui-datepicker .ui-datepicker-prev span {
	background-image: url('data:image/png;base64,[encoded data, 8400 characters]');
	background-position: -32px 0;
	margin-top: 0;
	top: 0;
	font-weight: normal;
}
.ui-datepicker .ui-datepicker-prev span {
	background-position: -96px 0;
}
.ui-datepicker th {
	padding: 0.75em 0;
	color: #fff;
	font-weight: normal;
	border: none;
}
.ui-datepicker td {
	background: #f1f1f1;
	border: none;
	padding: 0;
}
.ui-datepicker td .ui-state-default {
	background: transparent;
	border: none;
	text-align: center;
	padding: .5em;
	margin: 0;
	font-weight: normal;
	color: #32373c;
}
.ui-datepicker td .ui-state-active,
.ui-datepicker td .ui-state-hover {
	color: #fff;
}
.ui-datepicker td.ui-state-disabled,
.ui-datepicker td.ui-state-disabled .ui-state-default {
	opacity: 1;
	color: #999;
}


/* Month and year select dropdowns */
.ui-datepicker select.ui-datepicker-month,
.ui-datepicker select.ui-datepicker-year {
	background: none;
	color: inherit;
	border: none;
}
.ui-datepicker select.ui-datepicker-month option,
.ui-datepicker select.ui-datepicker-year option {
	color: #3c434a;
	background: #fff;
}

/* Button pane */
.ui-datepicker .ui-datepicker-buttonpane button {
	border-radius: 2px;
}

/* Timepicker */
.ui-timepicker-div .ui-slider-access {
	display: inline-block;
}
.ui-timepicker-div .ui-slider-access button {
    padding: 0 8px;
    margin: 0 2px;
    border-radius: 4px;
}
.ui-timepicker-div .ui-slider-access button span.ui-button-icon {
	display: inline;
}
.ui-timepicker-oneLine .ui-widget-header {
	margin-right: -2px;
}

/* Color schemes */
.ui-datepicker .ui-datepicker-header,
.ui-timepicker-div .ui-widget-header,
.ui-datepicker .ui-datepicker-header .ui-state-hover,
.ui-datepicker thead {
	background: var(--mb-color-datepicker-primary);
	color: var(--mb-color-datepicker-heading);
}
.ui-datepicker th {
	border-top: 1px solid var(--mb-color-datepicker-border);
}
.ui-datepicker td .ui-state-active,
.ui-datepicker td .ui-state-hover {
	background: var(--mb-color-datepicker-active);
}
.ui-datepicker .ui-datepicker-title {
	color: var(--mb-color-datepicker-heading);
}

.admin-color-blue {
	--mb-color-datepicker-primary: #4796b3;
	--mb-color-datepicker-border: #52accc;
	--mb-color-datepicker-active: #096484;
}
.admin-color-coffee {
	--mb-color-datepicker-primary: #46403c;
	--mb-color-datepicker-border: #59524c;
	--mb-color-datepicker-active: #c7a589;
}
.admin-color-ectoplasm {
	--mb-color-datepicker-primary: #413256;
	--mb-color-datepicker-border: #523f6d;
	--mb-color-datepicker-active: #a3b745;
}
.admin-color-midnight {
	--mb-color-datepicker-primary: #26292c;
	--mb-color-datepicker-border: #363b3f;
	--mb-color-datepicker-active: #e14d43;
}
.admin-color-modern {
	--mb-color-datepicker-primary: #1e1e1e;
	--mb-color-datepicker-border: #363b3f;
	--mb-color-datepicker-active: #3858e9;
}
.admin-color-ocean {
	--mb-color-datepicker-primary: #627c83;
	--mb-color-datepicker-border: #738e96;
	--mb-color-datepicker-active: #9ebaa0;
}
.admin-color-sunrise {
	--mb-color-datepicker-primary: #be3631;
	--mb-color-datepicker-border: #cf4944;
	--mb-color-datepicker-active: #dd823b;
}
.admin-color-light {
	--mb-color-datepicker-primary: #e5e5e5;
	--mb-color-datepicker-border: #f0f0f0;
	--mb-color-datepicker-active: #888;
	--mb-color-datepicker-heading: inherit;
}
/* Light */
.admin-color-light .ui-datepicker .ui-datepicker-next span,
.admin-color-light .ui-datepicker .ui-datepicker-prev span {
	background-image: url('data:image/png;base64,[encoded data, 11376 characters]');
}
.admin-color-light .ui-datepicker .ui-datepicker-title,
.admin-color-light .ui-datepicker td .ui-state-default,
.admin-color-light .ui-datepicker th {
	color: #555;
}
.admin-color-light .ui-datepicker td .ui-state-active,
.admin-color-light .ui-datepicker td .ui-state-hover {
	color: #fff;
}
.admin-color-light .ui-datepicker td.ui-state-disabled,
.admin-color-light .ui-datepicker td.ui-state-disabled .ui-state-default {
	color: #ccc;
}
