/*
 * Self-contained styles for the jQuery UI datepicker used by the
 * [lectionary] shortcode. Replaces the previous external Google CDN
 * jQuery UI stylesheet.
 *
 * Targets the markup jQuery UI's datepicker.js generates (.ui-datepicker
 * and friends). Matches WordPress admin-style neutral colours so it sits
 * comfortably in most themes.
 */

.acc_lectionary_form {
    margin: 1em 0;
}

.acc_lectionary_form .accdatepicker {
    padding: 0.4em 0.6em;
    font: inherit;
    border: 1px solid #8c8f94;
    border-radius: 3px;
    background: #fff;
}

.ui-datepicker {
    display: none;
    width: 17em;
    padding: 0.5em;
    background: #fff;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
    font-family: inherit;
    font-size: 13px;
    color: #1d2327;
    z-index: 9999;
}

.ui-datepicker-header {
    position: relative;
    padding: 0.4em 0;
    background: #f6f7f7;
    border-bottom: 1px solid #dcdcde;
    border-radius: 3px 3px 0 0;
    text-align: center;
    font-weight: 600;
}

.ui-datepicker-prev,
.ui-datepicker-next {
    position: absolute;
    top: 50%;
    width: 1.8em;
    height: 1.8em;
    margin-top: -0.9em;
    cursor: pointer;
    text-align: center;
    line-height: 1.8em;
    color: #2271b1;
    user-select: none;
}

.ui-datepicker-prev {
    left: 0.4em;
}

.ui-datepicker-next {
    right: 0.4em;
}

.ui-datepicker-prev:hover,
.ui-datepicker-next:hover {
    color: #135e96;
}

.ui-datepicker-prev .ui-icon,
.ui-datepicker-next .ui-icon {
    display: block;
    overflow: hidden;
    text-indent: -9999px;
    width: 100%;
    height: 100%;
}

.ui-datepicker-prev .ui-icon::before,
.ui-datepicker-next .ui-icon::before {
    content: "";
    display: block;
    margin: 0.55em auto;
    width: 0.6em;
    height: 0.6em;
    border-style: solid;
    border-color: currentColor;
    text-indent: 0;
}

.ui-datepicker-prev .ui-icon::before {
    border-width: 0 0 2px 2px;
    transform: rotate(45deg);
}

.ui-datepicker-next .ui-icon::before {
    border-width: 2px 2px 0 0;
    transform: rotate(45deg);
}

.ui-datepicker-prev.ui-state-disabled,
.ui-datepicker-next.ui-state-disabled {
    opacity: 0.35;
    cursor: default;
}

.ui-datepicker-title {
    margin: 0 2.4em;
    line-height: 1.8em;
}

.ui-datepicker-title select {
    margin: 0 2px;
    font: inherit;
}

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

.ui-datepicker-calendar th,
.ui-datepicker-calendar td {
    padding: 0;
    text-align: center;
    border: 0;
}

.ui-datepicker-calendar th {
    padding: 0.3em 0;
    font-weight: 600;
    color: #50575e;
}

.ui-datepicker-calendar td a,
.ui-datepicker-calendar td span {
    display: block;
    padding: 0.4em 0;
    text-decoration: none;
    color: #1d2327;
    border-radius: 3px;
}

.ui-datepicker-calendar td a:hover {
    background: #f0f0f1;
}

.ui-datepicker-calendar td.ui-datepicker-today a {
    background: #f0f6fc;
    color: #2271b1;
    font-weight: 600;
}

.ui-datepicker-calendar td.ui-datepicker-current-day a,
.ui-datepicker-calendar td a.ui-state-active {
    background: #2271b1;
    color: #fff;
}

.ui-datepicker-calendar td.ui-datepicker-other-month span,
.ui-datepicker-calendar td.ui-state-disabled span {
    color: #c3c4c7;
}

.ui-datepicker-unselectable.ui-state-disabled {
    cursor: default;
}

.ui-helper-hidden-accessible {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    border: 0;
}
