/*!
 * jQuery FlightDates 1.0 - styles
 */

/* original fields kept in the form (submitted and validated) but not shown */
.fd-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    -webkit-clip-path: inset(50%) !important;
    clip-path: inset(50%) !important;
    white-space: nowrap !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* ---------- box ---------- */
.fd-box {
    display: block;
    position: relative;
    width: 100%;
    height: 50px;
    margin: 0;
    padding: 0 0 0 38px;
    border: 1px solid transparent;
    border-radius: 3px;
    background: #fff;
    -webkit-box-shadow: 0 1px 2px rgba(0,0,0,0.08);
    box-shadow: 0 1px 2px rgba(0,0,0,0.08);
    font-family: 'Open Sans Condensed', sans-serif;
    color: #444;
    text-align: left;
    cursor: pointer;
    overflow: hidden;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}
.fd-box:focus {outline: none; border-color: #111;}
.fd-box::-moz-focus-inner {border: 0; padding: 0;}
.fd-box[aria-expanded="true"] {border-color: #111;}
.fd-box .fd-in {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    height: 100%;
}
.fd-box .fd-part {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-flex: 1;
    -ms-flex: 1 1 0%;
    flex: 1 1 0%;
    min-width: 0;
    padding: 0 10px 0 0;
    line-height: 1.15;
}
.fd-box .fd-sep {
    -ms-flex: 0 0 1px;
    flex: 0 0 1px;
    width: 1px;
    margin: 10px 0;
    background: #e5e5e5;
}
.fd-box .fd-date,
.fd-box .fd-ph {
    display: block;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: 15px;
    font-weight: 700;
}
.fd-box .fd-date {color: #444;}
.fd-box .fd-ph {color: #aaa;}
.fd-box .fd-time {
    display: block;
    margin-top: 2px;
    font-size: 12px;
    font-weight: 700;
    color: #999;
}
.fd-box .fd-alert {background: #FFEBEB;}
.fd-box .fd-alert .fd-ph,
.fd-box .fd-alert .fd-time {color: #e74747;}
.fd-box .fd-ico {
    position: absolute;
    top: 50%;
    left: 14px;
    width: 18px;
    height: 18px;
    margin-top: -9px;
    fill: #bbb;
}

/* ---------- panel ---------- */
.fd-panel {
    position: absolute;
    z-index: 10050;
    margin: 0;
    padding: 0;
    background: #fff;
    border-radius: 6px;
    -webkit-box-shadow: 0 12px 40px rgba(0,0,0,0.25);
    box-shadow: 0 12px 40px rgba(0,0,0,0.25);
    font-family: 'Open Sans Condensed', sans-serif;
    color: #222;
    text-align: left;
    outline: none;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}
.fd-panel *,
.fd-panel *:before,
.fd-panel *:after {
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}
.fd-panel button {
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    font-family: inherit;
    color: inherit;
    cursor: pointer;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}
.fd-panel button::-moz-focus-inner {border: 0; padding: 0;}
.fd-panel button:focus {outline: none;}
.fd-panel button:focus-visible {outline: 2px solid #d4b66d; outline-offset: 1px;}
.fd-panel svg {display: block;}

.fd-top {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    padding: 12px 12px 0 16px;
}
.fd-title {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}
.fd-panel .fd-close {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
}
.fd-panel .fd-close svg,
.fd-panel .fd-nav svg {width: 20px; height: 20px; fill: #222;}
.fd-panel .fd-close:hover,
.fd-panel .fd-nav:hover {background: #f2f2f2;}

.fd-wd {display: none;}
.fd-main {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: stretch;
    -ms-flex-align: stretch;
    align-items: stretch;
}
.fd-cal {
    position: relative;
    padding: 0 16px 16px 16px;
}
.fd-panel .fd-nav {
    position: absolute;
    top: 5px;
    z-index: 1;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
}
.fd-panel .fd-prev {left: 12px;}
.fd-panel .fd-next {right: 12px;}
.fd-panel .fd-nav[disabled] {opacity: 0.25; cursor: default; background: none;}

.fd-months {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
}
.fd-month {width: 266px;}
.fd-month + .fd-month {margin-left: 24px;}
.fd-mtitle {
    height: 44px;
    line-height: 44px;
    text-align: center;
    font-size: 15px;
    font-weight: 700;
}
.fd-grid,
.fd-wd {
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
}
.fd-grid {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
}
.fd-wdc,
.fd-blank,
.fd-panel .fd-day {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    width: 14.2857%;
    height: 38px;
}
.fd-wdc {
    height: 30px;
    font-size: 12px;
    font-weight: 700;
    color: #999;
    text-transform: uppercase;
}
.fd-panel .fd-day {
    border-radius: 3px;
    font-size: 14px;
    font-weight: 700;
    color: #222;
    -ms-touch-action: manipulation;
    touch-action: manipulation;
}
.fd-panel .fd-day:hover {background: #f3ead3;}
.fd-panel .fd-day.is-today {-webkit-box-shadow: inset 0 0 0 1px #d4b66d; box-shadow: inset 0 0 0 1px #d4b66d;}
.fd-panel .fd-day.is-in {background: #f6efdc; border-radius: 0;}
.fd-panel .fd-day.is-start,
.fd-panel .fd-day.is-end {background: #111; color: #d4b66d;}
.fd-panel .fd-day.is-preview {background: #444; color: #fff;}
.fd-panel .fd-day.is-disabled,
.fd-panel .fd-day[disabled] {
    background: none;
    -webkit-box-shadow: none;
    box-shadow: none;
    color: #ccc;
    cursor: default;
}

.fd-side {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -ms-flex-direction: column;
    flex-direction: column;
    width: 220px;
    padding: 16px;
    border-left: 1px solid #eee;
}
.fd-sum {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    margin: 0 0 14px 0;
}
.fd-panel .fd-chip {
    display: block;
    -webkit-box-flex: 1;
    -ms-flex: 1 1 0%;
    flex: 1 1 0%;
    min-width: 0;
    padding: 6px 8px;
    border: 1px solid #e5e5e5;
    border-radius: 3px;
    text-align: left;
}
.fd-panel .fd-chip + .fd-chip {margin-left: 6px;}
.fd-panel .fd-chip.is-active {border-color: #111;}
.fd-chip-l,
.fd-tl-l {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.3px;
    color: #999;
    text-transform: uppercase;
}
.fd-chip-v {
    display: block;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: 15px;
    font-weight: 700;
    color: #222;
}
.fd-panel label.fd-tl {
    display: block;
    margin: 0 0 12px 0;
    opacity: 1;
    color: inherit;
    font-size: inherit;
    text-transform: none;
}
.fd-tl-l {margin: 0 0 4px 0;}
.fd-panel select.fd-select {
    display: block;
    width: 100%;
    height: 44px;
    margin: 0;
    padding: 0 10px;
    border: 1px solid #ddd;
    border-radius: 3px;
    background-color: #fff;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    color: #222;
}
.fd-panel select.fd-select:focus {outline: none; border-color: #111;}
.fd-panel .fd-ok {
    display: block;
    width: 100%;
    height: 46px;
    margin-top: auto;
    border-radius: 3px;
    background: #111;
    color: #d4b66d;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 1px;
    text-align: center;
    text-transform: uppercase;
}
.fd-panel .fd-ok:hover {background: #333;}

/* ---------- full screen (phones) ---------- */
html.fd-lock,
html.fd-lock body {overflow: hidden !important;}
.fd-panel.fd-mobile {
    position: fixed;
    top: 0 !important;
    right: 0;
    bottom: 0;
    left: 0 !important;
    width: auto;
    height: 100%;
    border-radius: 0;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -ms-flex-direction: column;
    flex-direction: column;
}
.fd-mobile .fd-top {
    -ms-flex: 0 0 auto;
    flex: 0 0 auto;
    padding: 8px 8px 8px 16px;
    border-bottom: 1px solid #eee;
}
.fd-mobile .fd-wd {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex: 0 0 auto;
    flex: 0 0 auto;
    padding: 0 12px;
    border-bottom: 1px solid #eee;
}
.fd-mobile .fd-main {
    -webkit-box-flex: 1;
    -ms-flex: 1 1 auto;
    flex: 1 1 auto;
    min-height: 0;
    -webkit-box-orient: vertical;
    -ms-flex-direction: column;
    flex-direction: column;
}
.fd-mobile .fd-cal {
    -webkit-box-flex: 1;
    -ms-flex: 1 1 auto;
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0 12px 12px 12px;
}
.fd-mobile .fd-nav {display: none !important;}
.fd-mobile .fd-months {display: block;}
.fd-mobile .fd-month {width: auto;}
.fd-mobile .fd-month + .fd-month {margin-left: 0;}
.fd-mobile .fd-mtitle {padding-left: 4px; text-align: left;}
.fd-mobile .fd-grid .fd-wdc {display: none;}
.fd-mobile .fd-blank,
.fd-panel.fd-mobile .fd-day {height: 44px; font-size: 15px;}
.fd-mobile .fd-side {
    -ms-flex: 0 0 auto;
    flex: 0 0 auto;
    width: auto;
    padding: 12px 16px 12px 16px;
    padding-bottom: calc(12px + env(safe-area-inset-bottom));
    border-left: 0;
    border-top: 1px solid #eee;
    -webkit-box-shadow: 0 -4px 12px rgba(0,0,0,0.06);
    box-shadow: 0 -4px 12px rgba(0,0,0,0.06);
}
.fd-mobile .fd-sum {margin-bottom: 10px;}
.fd-mobile .fd-times {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
}
.fd-mobile label.fd-tl {
    -webkit-box-flex: 1;
    -ms-flex: 1 1 0%;
    flex: 1 1 0%;
    min-width: 0;
    margin-bottom: 10px;
}
.fd-mobile label.fd-tl + label.fd-tl {margin-left: 8px;}
.fd-panel.fd-mobile select.fd-select {font-size: 16px;}
/* second half of the round-trip box */
.fd-box .fd-sep + .fd-part {padding-left: 12px;}
/* round trip: separator in the middle of the box, the icon area (38px) belongs to the first half */
.fd-box .fd-go:not(:last-child) {
    -webkit-box-flex: 0;
    -ms-flex: 0 0 calc(50% - 19.5px);
    flex: 0 0 calc(50% - 19.5px);
}

/* ---------- full screen in landscape: calendar on the left, summary and confirm on the right ---------- */
.fd-mobile.fd-landscape .fd-main {
    -webkit-box-orient: horizontal;
    -ms-flex-direction: row;
    flex-direction: row;
}
.fd-mobile.fd-landscape .fd-side {
    width: 300px;
    -ms-flex: 0 0 300px;
    flex: 0 0 300px;
    overflow-y: auto;
    border-top: 0;
    border-left: 1px solid #eee;
    -webkit-box-shadow: none;
    box-shadow: none;
    padding-bottom: 12px;
    padding-bottom: calc(12px + env(safe-area-inset-bottom));
}
.fd-mobile.fd-landscape .fd-ok {margin-top: 4px;}
/* weekday names inside each month, aligned with the calendar columns */
.fd-mobile.fd-landscape .fd-wd {display: none;}
.fd-mobile.fd-landscape .fd-grid .fd-wdc {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
}
