.premium-date-native {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.premium-date-native ~ i[class*="ph-calendar"] { display: none !important; }

.premium-date-trigger {
  min-width: 0;
  width: 100%;
  min-height: 2.45rem;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .5rem .75rem;
  border: 1px solid #dbe3ef;
  border-radius: .75rem;
  background: linear-gradient(180deg, #fff, #f8fafc);
  color: #1e293b;
  font-size: .8rem;
  font-weight: 800;
  box-shadow: 0 2px 8px rgba(15,23,42,.04), inset 0 1px 0 #fff;
  transition: border-color .2s, box-shadow .2s, transform .2s;
  box-sizing: border-box;
}
.premium-date-trigger:hover { border-color: #67e8f9; box-shadow: 0 4px 14px rgba(8,145,178,.12); }
.premium-date-trigger:disabled { opacity: .58; cursor: not-allowed; box-shadow: none; transform: none; }
.premium-date-trigger > i:first-child { color: #0891b2; font-size: 1rem; flex-shrink: 0; }
.premium-date-trigger__value { flex: 1; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: .78rem; }
.premium-date-trigger__caret { color: #94a3b8; font-size: .7rem; flex-shrink: 0; }
.premium-date-trigger.is-empty .premium-date-trigger__value { color: #94a3b8; font-weight: 700; }
.premium-date-trigger--full { width: 100%; }

/* Date and time pairs used by bulletin forms. The date itself keeps the shared
   premium calendar while the time remains quick to adjust in the same field. */
.premium-datetime-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 9.5rem;
  gap: .5rem;
  align-items: stretch;
}
.premium-datetime-field .premium-date-trigger {
  width: 100%;
  min-width: 0;
  min-height: 3rem;
}
.premium-time-control {
  display: flex;
  min-height: 3rem;
  align-items: center;
  gap: .45rem;
  padding: 0 .7rem;
  border: 1px solid #dbe3ef;
  border-radius: .75rem;
  background: linear-gradient(180deg, #fff, #f8fafc);
  color: #0891b2;
  box-shadow: 0 4px 12px rgba(15,23,42,.06), inset 0 1px 0 #fff;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.premium-time-control:focus-within,
.premium-time-control:hover {
  border-color: #67e8f9;
  box-shadow: 0 7px 18px rgba(8,145,178,.14);
}
.premium-time-control > i { font-size: 1rem; }
.premium-time-control input {
  width: 100%;
  min-width: 0;
  border: 0;
  background: transparent;
  color: #1e293b;
  font-size: .82rem;
  font-weight: 800;
  outline: 0;
}

.premium-calendar {
  position: fixed !important;
  z-index: 12000 !important;
  padding: .9rem;
  border: 1px solid rgba(203,213,225,.85);
  border-radius: 1.15rem;
  background: rgba(255,255,255,.99);
  color: #1e293b;
  box-shadow: 0 24px 70px rgba(15,23,42,.22), 0 7px 20px rgba(15,23,42,.08);
  backdrop-filter: blur(18px);
  box-sizing: border-box;
}
.premium-calendar[hidden] { display: none !important; }
.premium-calendar__topbar { display: flex; align-items: center; gap: .55rem; margin-bottom: .9rem; }
.premium-calendar__selectors { display: grid; grid-template-columns: 1.35fr .9fr; gap: .45rem; flex: 1; }
.premium-calendar__month, .premium-calendar__year { height: 2.45rem; border: 1px solid #e2e8f0; border-radius: .7rem; background: #f8fafc; padding: 0 .65rem; color: #0f172a; font-size: .8rem; font-weight: 800; cursor: pointer; }
.premium-calendar__nav { width: 2.45rem; height: 2.45rem; display: inline-flex; align-items: center; justify-content: center; border: 1px solid #e2e8f0; border-radius: .7rem; background: #fff; color: #475569; transition: all .18s; }
.premium-calendar__nav:hover { color: #0e7490; border-color: #67e8f9; background: #ecfeff; }
.premium-calendar__weekdays, .premium-calendar__days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: .28rem; }
.premium-calendar__weekdays { margin-bottom: .35rem; }
.premium-calendar__weekdays span { padding: .25rem 0; text-align: center; color: #94a3b8; font-size: .64rem; font-weight: 900; text-transform: uppercase; }
.premium-calendar__day { aspect-ratio: 1; display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: .62rem; background: transparent; color: #334155; font-size: .78rem; font-weight: 750; transition: all .15s; cursor: pointer; }
.premium-calendar__day:not(:disabled):hover { background: #ecfeff; color: #0e7490; transform: translateY(-1px); }
.premium-calendar__day.is-today { color: #0891b2; box-shadow: inset 0 0 0 1px #67e8f9; }
.premium-calendar__day.is-selected { color: #fff !important; background: linear-gradient(135deg,#2563eb,#06b6d4) !important; box-shadow: 0 5px 12px rgba(8,145,178,.3); }
.premium-calendar__day.is-empty { visibility: hidden; }
.premium-calendar__day.is-disabled { color: #cbd5e1; cursor: not-allowed; }
.premium-calendar__footer { display: flex; align-items: center; justify-content: space-between; margin-top: .8rem; padding-top: .75rem; border-top: 1px solid #eef2f7; }
.premium-calendar__clear { padding: .5rem .65rem; border: 0; background: transparent; color: #64748b; font-size: .75rem; font-weight: 800; }
.premium-calendar__clear:hover { color: #e11d48; }
.premium-calendar__today { display: inline-flex; align-items: center; gap: .4rem; padding: .55rem .8rem; border: 0; border-radius: .65rem; background: #ecfeff; color: #0e7490; font-size: .75rem; font-weight: 900; }
.premium-calendar__today:hover { background: #cffafe; }

@media (max-width: 480px) {
  .premium-calendar { padding: .7rem; max-height: calc(100dvh - 1rem); overflow-y: auto; }
  .premium-date-trigger { width: 100%; min-width: 0; max-width: 100%; }
  .premium-calendar__topbar { gap: .3rem; }
  .premium-calendar__selectors { grid-template-columns: minmax(0, 1.2fr) minmax(4.5rem, .8fr); gap: .3rem; }
  .premium-calendar__nav { width: 2.75rem; height: 2.75rem; flex: 0 0 2.75rem; }
  .premium-calendar__day { min-height: 2.35rem; }
  .premium-datetime-field { grid-template-columns: 1fr; }
}
