input[type=text].xDate {
    background-image: url(../svg/form/calendar1.svg);
    background-repeat: no-repeat;
    background-position: right 8px center;
    padding-right: 32px;
    max-width: 132px;
}

/* retina display */
@media only screen and (-webkit-min-device-pixel-ratio: 1.5),
only screen and (-o-min-device-pixel-ratio: 3/2),
only screen and (min--moz-device-pixel-ratio: 1.5),
only screen and (min-device-pixel-ratio: 1.5) {
    input[type=text].xDate {
        background-size: 22px;
        max-width: 152px;
    }
}

form.dark input[type=text].xDate {
    max-width: none;
}

.xCalendar {
    margin-top:  2px;
    position: absolute;
    width: 280px;
    border: 1px solid #999;
    padding: 4px;
    background-color: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    z-index: 1;
    font-family: sans-serif;
    font-size: 14px;
}

.xCalendar h3.my {
    font-size: 18px;
    font-weight: normal;
    line-height: 40px;
    text-align: center;
    cursor: pointer;
    margin: 0 50px;
    padding: 0;

    font-family: sans-serif;
}

/*.xCalendar a.month {
    display: inline-block;
    font-size: 18px;
    line-height: 40px;
    width: 200px;
    vertical-align: top;
    text-align: center;
    text-decoration: none;
}*/

.xCalendar a.left,
.xCalendar a.right {
    width: 40px;
    height: 40px;
    cursor: pointer;
    position: relative;
    display: inline-block;
    vertical-align: top;
}

.xCalendar a.left {
    float: left;
}

.xCalendar a.right {
    float: right;
}

.xCalendar h3 {
    font-size: 18px;
    line-height: 40px;
    text-align: center;
    cursor: pointer;
    margin: 0 50px;

    font-family: sans-serif;
}

.xCalendar a.left hr,
.xCalendar a.right hr {
    margin: 0;
    position: absolute;
    width: 13px;
    height: 1px;
    background-color: #999;
    border: none;
    pointer-events: none;
}

.xCalendar a.left hr {
    left: 13px;
}

.xCalendar a.right hr {
    left: 15px;
}

.xCalendar a.left:hover hr,
.xCalendar a.right:hover hr {
    background-color: #333;
}

.xCalendar a.left hr:first-child {
    transform: rotate(-45deg);
    top: 15px;
}

.xCalendar a.left hr:last-child {
    transform: rotate(45deg);
    top: 24px;
}

.xCalendar a.right hr:first-child {
    transform: rotate(45deg);
    top: 15px;
}

.xCalendar a.right hr:last-child {
    transform: rotate(-45deg);
    top: 24px;
}

.xCalendar div.weekdays {
    color: #777;
    border-top: 1px solid #CCC;
    border-bottom: 1px solid #CCC;
    margin: 2px 0;
}

.xCalendar div.weekdays span {
    display: inline-block;
    width: 40px;
    text-align: center;
    line-height: 30px;
}

.xCalendar span.today,
.xCalendar a.today {
    display: block;
    border-top: 1px solid #CCC;
    text-align: center;
    line-height: 27px;
    color: #777;
    margin-top: 2px;
    padding-top: 2px;
}

.xCalendar a.today:hover {
    cursor: pointer;
    color: #000;
}

.xCalendar div.days a,
.xCalendar div.days span {
    display: inline-block;
    width: 40px;
    line-height: 30px;
    text-align: center;
}

.xCalendar div.days span {
    color: #777;
}

.xCalendar div.days a {
    cursor: pointer;
}

.xCalendar div.days span.current,
.xCalendar div.days a.current { /* INFO: today in dates */
    background-color: #EEE;
}

.xCalendar div.days a:hover {
    background-color: #3CDFFF;
}

.xCalendar div.days a.day { /* INFO: first or last day from selection */
    background-color: #3CDFFF;
}

.xCalendar div.days a.days { /* INFO: days between two dates */
    background-color: #B1F2FF;
}

@media only screen and (-webkit-min-device-pixel-ratio: 1.5),
only screen and (-o-min-device-pixel-ratio: 3/2),
only screen and (min--moz-device-pixel-ratio: 1.5),
only screen and (min-device-pixel-ratio: 1.5) {
    .xCalendar { font-size: 18px !important; }
}


/* *** */
/*.xCalendar a.month {
    margin: 0 50px;
}*/

.xCalendar a.close {
    position: relative;
    display: block;
    width: 40px;
    height: 40px;
    cursor: pointer;
    float: left;
}

.xCalendar a.close hr {
    position: absolute;
    top: 11px;
    left: 12px;
    border: none;
    width: 18px;
    height: 1px;
    background-color: #8e8e8e;
    pointer-events: none;
}

.xCalendar a.close hr:first-child {
    transform: rotate(45deg);
}

.xCalendar a.close hr:last-child {
    transform: rotate(-45deg);
}

.xCalendar a.close:hover hr {
    background-color: #000;
}

.xCalendar a.up,
.xCalendar a.down {
    position: relative;
    display: block;
    width: 40px;
    height: 40px;
    cursor: pointer;
    float: right;
}

.xCalendar a.up hr,
.xCalendar a.down hr {
    position: absolute;
    border: none;
    width: 13px;
    height: 1px;
    background-color: #8e8e8e;
    pointer-events: none;
}

.xCalendar a.up hr {
    top: 10px;
}

.xCalendar a.up hr:first-child {
    left: 13px;
    transform: rotate(45deg);
}

.xCalendar a.up hr:last-child {
    left: 4px;
    transform: rotate(-45deg);
}

.xCalendar a.down hr {
    top: 14px;
}

.xCalendar a.down hr:first-child {
    left: 4px;
    transform: rotate(45deg);
}

.xCalendar a.down hr:last-child {
    left: 13px;
    transform: rotate(-45deg);
}

.xCalendar a.up:hover hr,
.xCalendar a.down:hover hr { background-color: #000; }

.xCalendar div.months {
    width: 100%;
    column-count: 3;
    column-gap: 10px;
    border-top: 1px solid #CCC;
    border-bottom: 1px solid #CCC;
    padding: 5px 0;
}

.xCalendar div.months a {
    display: block;
    padding: 5px 10px;
    text-decoration: none;
    cursor: pointer;
    color: #999;
}

.xCalendar div.months a.current,
.xCalendar div.months a:hover {
    color: #000;
}

/* INFO: YEARS */
.xCalendar div.months a:nth-last-child(-n+6) {
    float: right;
}

/* INFO: two dates */
.xDates {
    position: relative;
    white-space: nowrap;
    display: inline-block;
}

.xSearch .xDates {
    margin: 3px;
    vertical-align: top;
}

input.xDate {
    background-color: var(--white);
    border: 1px solid  var(--border);
    line-height: 32px;

    padding: 0 40px 0 10px;
}

.xDates > div.arrow {
    display: inline-block;
    width: 34px;
    border: 1px solid #CCC;
    background-color: #FFF;
    height: 32px;
    vertical-align: top;
}

.xDates > div.arrow::after {
    position: absolute;
    display: block;
    content: ' ';
    border-bottom: 1px solid #000;
    border-right: 1px solid #000;
    width: 5px;
    height: 5px;
    top: 13px;
    right: 15px;
    transform: rotate(45deg);
}

.xDates:not(.show) > nav {
    display: none;
}

.xDates nav {
    position: absolute;
    border: 1px solid #CCC;
    background-color: #FFF;
    left: 0;
    right: 0;
    margin-top: 3px;
}

.xDates nav a {
    display: block;
    text-align: left;
    padding: 10px;
}

.xDates nav a:hover {
    background-color: #f6f6f6;
}

.xCalendar .days {
    white-space: wrap;
}

/* input[type=text].xDate {
    max-width: 90px;
    font-size: 14px;
} */