/* ── WT Date Picker — Well Travel landing style ── */

input[type="date"]:not([data-wt-date-native]) {
  position: relative;
  cursor: pointer;
  color-scheme: light;
  background-image:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.96)),
    var(--gradient-amber-surface);
  background-origin: border-box;
  border: 1px solid rgba(31, 42, 68, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

input[type="date"]:not([data-wt-date-native]):hover {
  border-color: rgba(255, 170, 45, 0.36);
  box-shadow: 0 10px 22px rgba(255, 170, 45, 0.14);
}

input[type="date"]:not([data-wt-date-native]):focus {
  border-color: rgba(255, 170, 45, 0.42);
  box-shadow:
    0 0 0 3px rgba(255, 170, 45, 0.16),
    0 16px 34px rgba(255, 170, 45, 0.14);
}

input[type="date"]:not([data-wt-date-native])::-webkit-calendar-picker-indicator {
  opacity: 0;
  display: none;
}

input[type="date"]:not([data-wt-date-native])::-webkit-inner-spin-button,
input[type="date"]:not([data-wt-date-native])::-webkit-clear-button {
  display: none;
}

.wt-dp-popover {
  position: fixed;
  z-index: 10000;
  min-width: 308px;
  user-select: none;
  animation: wtDpFadeIn 0.18s ease-out;
}

.wt-dp-popover[hidden] {
  display: none !important;
}

.wt-dp-surface {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid rgba(31, 42, 68, 0.12);
  background:
    radial-gradient(circle at top left, rgba(255, 170, 45, 0.2), transparent 30%),
    radial-gradient(circle at top right, rgba(124, 131, 255, 0.12), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 250, 244, 0.98) 100%);
  box-shadow:
    0 30px 60px rgba(17, 17, 17, 0.14),
    0 10px 24px rgba(255, 170, 45, 0.12);
  padding: 18px 18px 16px;
  font-family: 'Nunito', 'Segoe UI', sans-serif;
  color: var(--text-primary, #25282f);
  backdrop-filter: blur(18px);
}

@keyframes wtDpFadeIn {
  from { opacity: 0; transform: translateY(-8px) scale(0.985); }
  to   { opacity: 1; transform: translateY(0); }
}

.wt-dp-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.wt-dp-nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(31, 42, 68, 0.1);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--text-navy, #1f2a44);
  cursor: pointer;
  font-size: 1.15rem;
  line-height: 1;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.wt-dp-nav-btn:hover,
.wt-dp-nav-btn:focus-visible {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(255, 170, 45, 0.24);
  box-shadow: 0 10px 22px rgba(255, 170, 45, 0.12);
  transform: translateY(-1px);
  outline: none;
}

.wt-dp-title {
  flex: 1 1 auto;
  text-align: center;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary, #25282f);
  text-transform: capitalize;
}

.wt-dp-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  margin-bottom: 8px;
}

.wt-dp-weekdays span {
  text-align: center;
  font-size: 0.71rem;
  font-weight: 800;
  color: var(--icon-muted, #7a8394);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 2px 0 4px;
}

.wt-dp-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}

.wt-dp-day {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid transparent;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.62);
  color: var(--text-primary, #25282f);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.12s ease, color 0.12s ease, border-color 0.12s ease, box-shadow 0.12s ease;
}

.wt-dp-day:hover,
.wt-dp-day:focus-visible {
  background: rgba(255, 170, 45, 0.16);
  border-color: rgba(255, 170, 45, 0.18);
  transform: translateY(-1px);
  outline: none;
}

.wt-dp-day--outside {
  color: var(--icon-muted, #7a8394);
  opacity: 0.5;
}

.wt-dp-day--today {
  border-color: rgba(255, 170, 45, 0.42);
  background: rgba(255, 170, 45, 0.1);
  color: var(--text-navy, #1f2a44);
}

.wt-dp-day--selected {
  background: var(--gradient-amber-cta, #ffaa2d);
  color: var(--text-on-accent, #25282f);
  border-color: rgba(255, 170, 45, 0.2);
  box-shadow: 0 12px 24px rgba(255, 170, 45, 0.28);
}

.wt-dp-day--selected:hover {
  background: var(--gradient-amber-cta, #ffaa2d);
  color: var(--text-on-accent, #25282f);
}

.wt-dp-day--disabled,
.wt-dp-day:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  transform: none;
  background: rgba(255, 255, 255, 0.35);
  box-shadow: none;
}

.wt-dp-footer {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(31, 42, 68, 0.08);
}

.wt-dp-footer-btn {
  flex: 1 1 0;
  min-height: 40px;
  padding: 8px 14px;
  border: 1px solid rgba(31, 42, 68, 0.1);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.78);
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--text-secondary, #394150);
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease, background 0.12s ease;
}

.wt-dp-footer-btn:hover,
.wt-dp-footer-btn:focus-visible {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(255, 170, 45, 0.24);
  box-shadow: 0 10px 22px rgba(255, 170, 45, 0.12);
  transform: translateY(-1px);
  outline: none;
}

.wt-dp-footer-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

body.wt-dp-open {
  overscroll-behavior: contain;
}

@media (max-width: 640px) {
  .wt-dp-popover {
    min-width: min(308px, calc(100vw - 24px));
  }

  .wt-dp-surface {
    width: min(308px, calc(100vw - 24px));
    border-radius: 24px;
    padding: 16px 14px 14px;
  }

  .wt-dp-day {
    width: 100%;
  }
}
