/* Quattro Mori — custom date picker, time picker and select dropdowns (see js/ui-controls.js). */
.uc {
  --uc-navy: #010c1b;
  --uc-gold: #e5ae4f;
  --uc-red: #c8141b;
  --uc-muted: #5e6780;
  --uc-line: rgba(1, 12, 27, .16);
  --uc-soft: #f8f4ec;
  position: relative;
  display: block;
  min-width: 0;
}
.uc__native { position: absolute !important; inset: 0; width: 100% !important; height: 100% !important; opacity: 0; pointer-events: none; }

.uc__trigger {
  display: flex; align-items: center; gap: .6rem; width: 100%; height: 48px; margin: 0; padding: 0 .9rem;
  border: 1px solid var(--uc-line); border-radius: 12px; background: #fff; color: var(--uc-navy);
  font: inherit; font-weight: 600; text-align: left; cursor: pointer;
  transition: border-color .15s, box-shadow .15s;
}
.uc__trigger:hover { border-color: var(--uc-gold); }
.uc__trigger:focus-visible, .uc.is-open .uc__trigger { outline: none; border-color: var(--uc-gold); box-shadow: 0 0 0 3px rgba(229, 174, 79, .25); }
.uc__value { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.uc.is-empty .uc__value { color: #9198aa; font-weight: 500; }
.uc__icon { flex: none; width: 18px; height: 18px; fill: none; stroke: var(--uc-red); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.uc__chev { flex: none; width: 12px; height: 8px; fill: none; stroke: var(--uc-navy); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }
.uc.is-open .uc__chev { transform: rotate(180deg); }

.uc__pop {
  position: absolute; z-index: 80; top: calc(100% + 6px); left: 0;
  background: #fff; border: 1px solid rgba(1, 12, 27, .1); border-radius: 16px;
  box-shadow: 0 22px 48px -18px rgba(1, 12, 27, .45);
  animation: uc-in .16s ease-out;
}
.uc__pop[hidden] { display: none; }
.uc--up .uc__pop { top: auto; bottom: calc(100% + 6px); }
.uc--right .uc__pop { left: auto; right: 0; }
@keyframes uc-in { from { opacity: 0; transform: translateY(-4px); } }
@media (prefers-reduced-motion: reduce) { .uc__pop { animation: none; } }

/* list (select + time) */
.uc__list { min-width: 100%; max-height: 264px; overflow-y: auto; margin: 0; padding: .35rem; list-style: none; outline: none; scrollbar-width: thin; }
.uc__opt { display: flex; align-items: center; justify-content: space-between; gap: .8rem; padding: .6rem .75rem; border-radius: 10px; font-weight: 600; color: var(--uc-navy); white-space: nowrap; cursor: pointer; }
.uc__opt.is-active { background: var(--uc-soft); }
.uc__opt[aria-selected="true"] { color: var(--uc-red); font-weight: 800; }
.uc__opt[aria-selected="true"]::after { content: ''; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--uc-red); }
.uc__opt[aria-disabled="true"] { opacity: .4; cursor: default; }
.uc--time .uc__list { min-width: 140px; }

/* calendar */
.dp { width: 308px; max-width: calc(100vw - 2rem); padding: .9rem; }
.dp__head { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-bottom: .55rem; }
.dp__title { margin: 0; font-weight: 800; font-size: 1rem; color: var(--uc-navy); }
.dp__nav { display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 1px solid var(--uc-line); border-radius: 50%; background: #fff; color: var(--uc-navy); cursor: pointer; transition: border-color .15s, background-color .15s; }
.dp__nav:hover:not(:disabled) { border-color: var(--uc-gold); background: var(--uc-soft); }
.dp__nav:disabled { opacity: .3; cursor: default; }
.dp__nav svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.dp__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.dp__wd { padding: .3rem 0; text-align: center; font-size: .68rem; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; color: var(--uc-muted); }
.dp__day { aspect-ratio: 1; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--uc-navy); font: inherit; font-weight: 700; font-size: .88rem; cursor: pointer; transition: background-color .12s; }
.dp__day:hover:not(:disabled) { background: var(--uc-soft); }
.dp__day.is-today { box-shadow: inset 0 0 0 1.5px var(--uc-gold); }
.dp__day.is-selected { background: var(--uc-navy); color: var(--uc-gold); box-shadow: none; }
.dp__day:disabled { color: #c3c7d1; cursor: default; }
.dp__day:focus-visible { outline: 2px solid var(--uc-red); outline-offset: 1px; }
.dp__foot { display: flex; justify-content: space-between; margin-top: .6rem; padding-top: .55rem; border-top: 1px solid rgba(1, 12, 27, .08); }
.dp__link { padding: .35rem .55rem; border: 0; border-radius: 8px; background: none; color: var(--uc-red); font: inherit; font-weight: 800; font-size: .85rem; cursor: pointer; }
.dp__link:hover { background: var(--uc-soft); }
.dp__link--muted { color: var(--uc-muted); }
