/****************************************************************************
 * Base
 ****************************************************************************/
.ui-widget.ui-widget-content{
    border: none; border-radius: 0; padding: .5rem 2rem;
    background-color: #fff; border: none; width: 18rem;
    box-shadow: 0.5rem 0.5rem 2rem -0.25rem rgba(0,0,0,.5);
    border-radius: .25rem; margin-top: 1.75rem;
}
.home .ui-widget.ui-widget-content {
    margin-left: -25px;
}
.ui-widget.ui-widget-content:before{
    position: absolute; left: 2rem; top: -1.5rem;
    border: 1.25rem solid rgba(0,0,0,0);
    border-bottom: 1.5rem solid #fff;
    border-top: none; content: '';
    width: 2.5rem; height: 1.5rem;
    display: block;
}
/****************************************************************************
 * Header
 ****************************************************************************/
.ui-datepicker .ui-datepicker-header{
    background-color: #fff; color: #acacac;
    border: none; border-radius: 0;
    text-transform: uppercase;
}
.ui-datepicker .ui-datepicker-header select{
    padding: .25rem .5rem;
}
.ui-datepicker .ui-datepicker-prev{
    left: 0 !important; top: 2px !important;
    right: auto !important; bottom: auto !important;
}
.ui-datepicker .ui-datepicker-next{
    right: 0 !important; top: 2px !important;
    left: auto !important; bottom: auto !important;
}
.ui-datepicker .ui-datepicker-prev span,
.ui-datepicker .ui-datepicker-next span{
    background: transparent;
    background-image: none;
    text-indent: 0;
    font-size: 0;
    top: 0; left: 0;
    width: 100%; height: 100%;
    line-height: 1.8;
    text-align: center;
    margin: 0;
    color: #acacac;
    font-weight: 400 !important;
}
.ui-datepicker .ui-datepicker-prev span:after,
.ui-datepicker .ui-datepicker-next span:after{
    border: .125rem solid rgba(255,255,255,0); display: block;
    position: absolute; left: 50%; top: 50%;
    width: .75rem; height: .75rem; content: '';
    -webkit-transform: translateY(-50%) translateX(-50%) rotate(45deg);
    -moz-transform: translateY(-50%) translateX(-50%) rotate(45deg);
    -ms-transform: translateY(-50%) translateX(-50%) rotate(45deg);
    -o-transform: translateY(-50%) translateX(-50%) rotate(45deg);
    transform: translateY(-50%) translateX(-50%) rotate(45deg);
}

.ui-datepicker .ui-datepicker-prev span:after{ border-left-color: currentColor; border-bottom-color: currentColor; }
.ui-datepicker .ui-datepicker-next span:after{ border-right-color: currentColor; border-top-color: currentColor; }

.ui-datepicker .ui-datepicker-prev.ui-state-hover,
.ui-datepicker .ui-datepicker-next.ui-state-hover{
    border: none; background: none; color: #E7E7E7;
}

/****************************************************************************
 * Trigger
 ****************************************************************************/
.ui-datepicker-trigger{
    width: 2.25rem; height: 2.25rem; position: absolute;
    right: .625rem; top: 0; z-index: 10;
    background-image: url("../img/icon-calendar.png");
    background-color: transparent; 
    background-position: center center;
    background-repeat: no-repeat;
    background-size: contain;
    font-size: 0;
}

/****************************************************************************
 * Calendar
 ****************************************************************************/
.ui-datepicker table tbody,
.ui-datepicker table tfoot,
.ui-datepicker table thead{
    border: none;
}
.ui-datepicker table.ui-datepicker-calendar{
    table-layout: fixed; margin: 0; text-align: center;
    background: #fff;
}
.ui-datepicker table.ui-datepicker-calendar thead{
    background-color: transparent; 
}
.ui-datepicker table.ui-datepicker-calendar thead th{
    position: relative;
}
.ui-datepicker table.ui-datepicker-calendar thead th:after{
    content: ''; position: absolute; left: 0; right: 0;
    bottom: 0; top: 0; z-index: 0; background: #E7E7E7;
}
.ui-datepicker table.ui-datepicker-calendar thead th:first-child:after{
    left: -1rem;
}
.ui-datepicker table.ui-datepicker-calendar thead th:last-child:after{
    right: -1rem;
}

.ui-datepicker table.ui-datepicker-calendar tbody,
.ui-datepicker table.ui-datepicker-calendar tbody tr:nth-child(even){
    background-color: transparent;
}
.ui-datepicker table.ui-datepicker-calendar th{ padding: 0; background: transparent; text-align: center; color: #0A0A0A;}
.ui-datepicker table.ui-datepicker-calendar td{ padding: 0; background: transparent; text-align: right;  color: #acacac;}
.ui-datepicker table.ui-datepicker-calendar th span,
.ui-datepicker table.ui-datepicker-calendar td span,
.ui-datepicker table.ui-datepicker-calendar td a,
.ui-datepicker table.ui-datepicker-calendar td a:visited{
    text-align: inherit; display: block; border: none;
    padding: 0 .25rem; background: transparent;
    position: relative; z-index: 10; color: inherit;;
}

.ui-datepicker table.ui-datepicker-calendar td:first-child > *,
.ui-datepicker table.ui-datepicker-calendar th:first-child > *{
    color: #2199e8!important;
}


@media screen and (min-width:40em){
    /****************************************************************************
     * Trigger
     ****************************************************************************/
    .ui-datepicker-trigger{
        right: .9375rem;
    }
}
