/* STEP388: theme the actual custom calendar UI, not only the native data input. */
@media screen {
  html body .ld-date-wrap > input.ld-date-native[data-ld-calendar] {
    clip-path: inset(50%) !important;
    overflow: hidden !important;
    border: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    pointer-events: none !important;
  }
  html body :is(#main-app,#modal-root,#lotdesk-reminder-widget) .ld-date-wrap > input.ld-date-native[data-ld-calendar] {
    position: absolute !important;
    width: 1px !important;
    min-width: 0 !important;
    height: 1px !important;
    min-height: 0 !important;
    clip-path: inset(50%) !important;
    opacity: 0 !important;
  }
  html[data-ld227-theme="day"] body .ld-date-wrap > button.ld-date-btn,
  html[data-ld227-theme="day"] body :is(#main-app,#modal-root,#lotdesk-reminder-widget) .ld-date-wrap > button.ld-date-btn {
    background: #f2f7fb !important;
    background-image: none !important;
    color: #102e46 !important;
    border: 1px solid #adc9db !important;
    box-shadow: none !important;
    color-scheme: light !important;
    text-shadow: none !important;
    opacity: 1 !important;
  }
  html[data-ld227-theme="day"] body .ld-date-wrap > button.ld-date-btn > span {color: inherit !important; opacity: 1 !important;}
  html[data-ld227-theme="day"] body .ld-date-pop {
    background: #fff !important; color: #102e46 !important;
    border-color: #adc9db !important; color-scheme: light !important;
    box-shadow: 0 10px 32px #173f6426 !important;
  }
  html[data-ld227-theme="day"] body .ld-date-pop :is(button,select) {
    background: #f2f7fb !important; color: #102e46 !important; border-color: #adc9db !important; color-scheme: light !important;
  }
  html[data-ld227-theme="day"] body .ld-date-pop select option {background:#fff !important;color:#102e46 !important;}
  html[data-ld227-theme="day"] body .ld-date-pop .ld-dayname {color: #345771 !important;}
  html[data-ld227-theme="day"] body .ld-date-pop .ld-date-grid button {background: transparent !important;}
  html[data-ld227-theme="day"] body .ld-date-pop .ld-date-grid button:hover {background: #e2f1fb !important;}
  html[data-ld227-theme="day"] body .ld-date-pop .ld-date-grid button.ld-picked,
  html[data-ld227-theme="day"] body .ld-date-pop .ld-date-actions button:last-child {background:#0878c4 !important;color:#fff !important;}
  html[data-ld227-theme="day"] body .ld-date-pop .ld-date-grid button.ld-today {outline-color:#0878c4 !important;}
  html[data-ld227-theme="day"] body .ld-date-pop .ld-date-grid button:disabled {opacity:.4 !important;}
  html[data-ld227-theme="night"] body .ld-date-wrap > button.ld-date-btn,
  html[data-ld227-theme="night"] body :is(#main-app,#modal-root,#lotdesk-reminder-widget) .ld-date-wrap > button.ld-date-btn {
    background:#0b2944 !important;color:#eaf5ff !important;border:1px solid #32678a !important;color-scheme:dark !important;
  }
  html[data-ld227-theme="night"] body .ld-date-wrap > button.ld-date-btn > span {color:inherit !important;}
  html body .ld-date-wrap > button.ld-date-btn:focus-visible {outline:2px solid #009fe3 !important;outline-offset:2px;}
}
