/* ============================================================
   CorfuDiscovery  -  the date picker (cdf-datepicker.js)
   A button that shows the chosen date, and a calendar in the site's own look instead of the browser's plain one.
   ============================================================ */

.cdf-dp { display: block; position: relative; width: 100%; }

.cdf-dp__native {
  background: transparent !important; border: 0 !important; bottom: 0; box-shadow: none !important; height: 1px !important; left: 0; margin: 0 !important; opacity: 0;
  padding: 0 !important; pointer-events: none; position: absolute !important; width: 100% !important;
}

.cdf-dp__btn {
  align-items: center; background: var(--paper, #fff); border: 1.5px solid var(--line-strong, #dbcfbc); border-radius: var(--r, 14px); color: var(--ink, #1a242e); cursor: pointer;
  display: flex; font: inherit; font-size: 15px; font-weight: 600; gap: 10px; justify-content: flex-start; min-height: 46px; padding: 9px 14px; text-align: left; width: 100%;
  transition: border-color .15s, box-shadow .15s;
}
.cdf-dp__btn svg { color: var(--coral, #e5503a); flex: none; }
.cdf-dp__btn span.is-empty { color: var(--muted, #768591); font-weight: 500; }
.cdf-dp__btn:hover { border-color: var(--coral, #e5503a); }
.cdf-dp__btn:focus-visible, .cdf-dp__btn[aria-expanded="true"] { border-color: var(--coral, #e5503a); box-shadow: 0 0 0 4px var(--coral-soft, #fcebe5); outline: 0; }
.cdf-dp.is-invalid .cdf-dp__btn { border-color: var(--tc-datepicker-c53f2b,#c53f2b); box-shadow: 0 0 0 4px var(--tc-datepicker-c53f2b1f,rgba(197, 63, 43, .12)); }

/* in the booking widget and the dashboard forms the button takes the place of the input: same look as the neighbouring fields */
.cdf-booknow .cdf-dp__btn, .dash-field .cdf-dp__btn { min-height: 44px; }

/* ----------------------------------------------------------------- the calendar */

.cdf-dp__pop {
  background: var(--paper, #fff); border: 1px solid var(--line, #e8dfd2); border-radius: 18px; box-shadow: 0 24px 60px var(--tc-datepicker-0f2a3b38,rgba(15, 42, 59, .22)), 0 4px 14px var(--tc-datepicker-0f2a3b14,rgba(15, 42, 59, .08));
  padding: 14px 14px 10px; position: absolute; width: 320px; z-index: 100000;
}
.cdf-dp__pop[hidden], .cdf-dp__backdrop[hidden] { display: none; }
.cdf-dp__head { align-items: center; display: flex; justify-content: space-between; margin-bottom: 8px; }
.cdf-dp__title { color: var(--navy, #0f2a3b); font-family: var(--serif, Georgia, serif); font-size: 18px; text-transform: capitalize; }
.cdf-dp__nav { background: var(--sand, #faf6f0); border: 1px solid var(--line, #e8dfd2); border-radius: 50%; color: var(--ink, #1a242e); cursor: pointer; font-size: 20px; height: 34px; line-height: 1; padding: 0 0 3px; width: 34px; }
.cdf-dp__nav:hover { background: var(--coral-soft, #fcebe5); border-color: var(--coral, #e5503a); color: var(--coral-deep, #c53f2b); }

.cdf-dp__grid { display: grid; gap: 2px; grid-template-columns: repeat(7, 1fr); }
.cdf-dp__dow { color: var(--muted, #768591); font-size: 11px; font-weight: 700; letter-spacing: .04em; padding: 6px 0 4px; text-align: center; text-transform: uppercase; }
.cdf-dp__day {
  aspect-ratio: 1; background: none; border: 0; border-radius: 10px; color: var(--ink, #1a242e); cursor: pointer; font: inherit; font-size: 14px; font-weight: 600;
  padding: 0; position: relative; text-align: center; transition: background-color .1s, color .1s;
}
.cdf-dp__day:hover:not(:disabled) { background: var(--coral-soft, #fcebe5); color: var(--coral-deep, #c53f2b); }
.cdf-dp__day:focus-visible { outline: 2px solid var(--navy, #0f2a3b); outline-offset: -2px; }
.cdf-dp__day.is-out { color: var(--tc-datepicker-b8b0a3,#b8b0a3); font-weight: 500; }
.cdf-dp__day.is-today { box-shadow: inset 0 0 0 1.5px var(--coral, #e5503a); }
.cdf-dp__day.is-picked, .cdf-dp__day.is-picked:hover:not(:disabled) { background: var(--coral, #e5503a); box-shadow: none; color: var(--tc-datepicker-ffffff,#fff); }
.cdf-dp__day.is-between { background: var(--coral-soft, #fcebe5); border-radius: 0; }
.cdf-dp__day.is-range-start { border-radius: 10px 0 0 10px; }
.cdf-dp__day.is-range-end { border-radius: 0 10px 10px 0; }
.cdf-dp__day.is-range-start.is-range-end { border-radius: 10px; }
.cdf-dp__day:disabled { color: var(--tc-datepicker-c9c2b6,#c9c2b6); cursor: not-allowed; }
.cdf-dp__day.is-taken { background: repeating-linear-gradient(135deg, var(--tc-datepicker-f3ece2,#f3ece2), var(--tc-datepicker-f3ece2,#f3ece2) 4px, var(--tc-datepicker-ece2d4,#ece2d4) 4px, var(--tc-datepicker-ece2d4,#ece2d4) 8px); color: var(--tc-datepicker-a89d8b,#a89d8b); text-decoration: line-through; }

.cdf-dp__foot { align-items: center; display: flex; justify-content: space-between; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line, #e8dfd2); }
.cdf-dp__link { background: none; border: 0; color: var(--coral-deep, #c53f2b); cursor: pointer; font: inherit; font-size: 13.5px; font-weight: 700; padding: 4px 6px; }
.cdf-dp__link:hover:not(:disabled) { text-decoration: underline; }
.cdf-dp__link:disabled { color: var(--tc-datepicker-b8b0a3,#b8b0a3); cursor: default; }
.cdf-dp__link--sheet { display: none; }

/* ----------------------------------------------------------------- on a phone: a sheet from the bottom */

.cdf-dp__backdrop { background: var(--tc-datepicker-0a1e2b80,rgba(10, 30, 43, .5)); inset: 0; position: fixed; z-index: 99999; }
.cdf-dp__pop.is-sheet {
  border-radius: 22px 22px 0 0; bottom: 0; left: 0; max-width: none; padding: 18px 16px calc(14px + env(safe-area-inset-bottom)); position: fixed; right: 0; top: auto; width: auto;
}
.cdf-dp__pop.is-sheet .cdf-dp__day { font-size: 16px; }
.cdf-dp__pop.is-sheet .cdf-dp__link--sheet { display: inline-block; }
html.cdf-dp-open { overflow: hidden; }
@media (max-width: 560px) { .cdf-dp__backdrop { display: block; } }
