:root {
  --mdtp-blue-600: #2563eb;
  --mdtp-blue-700: #1d4ed8;
  --mdtp-violet-600: #7c3aed;
  --mdtp-teal-600: #0f8f81;
  --mdtp-coral-600: #d83f55;
  --mdtp-ink-900: #172033;
  --mdtp-ink-600: #596579;
  --mdtp-line: #d8e0ec;
  --mdtp-mist: #f4f7fb;
  --mdtp-white: #fff;
  --mdtp-focus: rgba(37, 99, 235, .28);
  --mdtp-radius: 14px;
  --mdtp-ease: cubic-bezier(.25, 1, .5, 1);
  --mdtp-font: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.wpcf7-form-control-wrap:has(> .mdtpcf7-input) { display: inline-block; position: relative; width: 100%; }
.mdtpcf7-input { padding-inline-end: 2.75rem !important; cursor: pointer; }
.mdtpcf7-icon { position: absolute; inset-inline-end: .85rem; top: 50%; width: 1.15rem; height: 1.15rem; translate: 0 -50%; pointer-events: none; color: var(--mdtp-ink-600); border: 1.8px solid currentColor; border-radius: 3px; }
.mdtpcf7-icon::before { content: ""; position: absolute; inset: -.28rem .18rem auto; height: .35rem; border-inline: 1.8px solid currentColor; }
.mdtpcf7-icon::after { content: ""; position: absolute; inset: .28rem 0 auto; border-top: 1.8px solid currentColor; }

html.mdtpcf7-open { overflow: hidden; }

.mdtpcf7-picker {
  position: fixed;
  inset: var(--picker-top, 50%) auto auto var(--picker-left, 50%);
  width: var(--picker-width, min(390px, calc(100vw - 24px)));
  max-width: none;
  max-height: min(760px, calc(100dvh - 24px));
  margin: 0;
  padding: 0;
  overflow: visible;
  border: 1px solid var(--mdtp-line);
  border-radius: var(--mdtp-radius);
  background: transparent;
  color: var(--mdtp-ink-900);
  box-shadow: 0 22px 55px rgba(23, 32, 51, .18), 0 4px 14px rgba(23, 32, 51, .08);
  font-family: var(--mdtp-font);
  font-size: 16px;
  line-height: 1.4;
  opacity: 0;
  transform: translateY(-5px) scale(.985);
  transition: opacity 180ms var(--mdtp-ease), transform 180ms var(--mdtp-ease);
  z-index: 2147483647;
}
.mdtpcf7-picker[open] { display: block; }
.mdtpcf7-picker.is-visible { opacity: 1; transform: translateY(0) scale(1); }
.mdtpcf7-picker::backdrop { background: transparent; transition: background-color 180ms var(--mdtp-ease); }
.mdtpcf7-picker--mobile::backdrop { background: rgba(14, 22, 36, .62); }
.mdtpcf7-picker * { box-sizing: border-box; }
.mdtpcf7-picker button, .mdtpcf7-picker select { font: inherit; }
.mdtpcf7-sheet { max-height: inherit; overflow: auto; overscroll-behavior: contain; border-radius: inherit; background: var(--mdtp-white); }
.mdtpcf7-handle { display: none; width: 42px; height: 5px; margin: 10px auto 2px; border-radius: 999px; background: #d4d9e2; }
.mdtpcf7-heading { display: flex; align-items: center; justify-content: space-between; min-height: 50px; padding: 10px 14px 4px; }
.mdtpcf7-heading h2 { margin: 0; color: var(--mdtp-ink-900); font-size: 1.05rem; font-weight: 700; line-height: 1.3; }
.mdtpcf7-close { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 10px; background: transparent; color: var(--mdtp-ink-600); font-size: 1.65rem !important; cursor: pointer; }

.mdtpcf7-calendar { padding: 4px 14px 14px; }
.mdtpcf7-selectors { display: grid; grid-template-columns: auto minmax(0, 1fr) 100px; gap: 8px; align-items: center; }
.mdtpcf7-selectors label { min-width: 0; }
.mdtpcf7-selectors select, .mdtpcf7-time select { width: 100%; min-width: 0; height: 44px; margin: 0; padding: 0 32px 0 11px; overflow: visible; border: 1px solid var(--mdtp-line); border-radius: 10px; background-color: var(--mdtp-white); color: var(--mdtp-ink-900); text-overflow: clip; cursor: pointer; }
.mdtpcf7-today { min-width: 60px; height: 44px; padding: 0 12px; border: 1px solid #c9d9fb; border-radius: 10px; background: #eef4ff; color: var(--mdtp-blue-700); font-weight: 700; cursor: pointer; }
.mdtpcf7-navigation { display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; gap: 8px; align-items: center; margin: 8px 0 2px; }
.mdtpcf7-navigation button { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid var(--mdtp-line); border-radius: 10px; background: var(--mdtp-white); color: var(--mdtp-ink-900); font-size: 1.8rem; line-height: 1; cursor: pointer; }
.mdtpcf7-current { margin: 0; overflow: hidden; color: var(--mdtp-ink-600); font-size: .82rem; font-weight: 650; text-align: center; text-overflow: ellipsis; white-space: nowrap; }
.mdtpcf7-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px; }
.mdtpcf7-weekday { display: grid; place-items: center; min-width: 0; height: 38px; overflow: hidden; color: var(--mdtp-ink-600); font-size: .75rem; font-weight: 700; text-transform: capitalize; }
.mdtpcf7-grid button { position: relative; display: grid; place-content: center; width: 100%; min-width: 0; aspect-ratio: 1; max-height: 48px; padding: 0; border: 1px solid transparent; border-radius: 10px; background: transparent; color: var(--mdtp-ink-900); font-size: .88rem; cursor: pointer; transition: background-color 120ms ease, color 120ms ease, border-color 120ms ease, transform 100ms ease; }
.mdtpcf7-grid button.is-outside { color: #aab4c3; }
.mdtpcf7-grid button[disabled] { color: #c6ced9; cursor: not-allowed; text-decoration: line-through; }
.mdtpcf7-grid button[aria-selected="true"] { background: var(--mdtp-blue-600); color: var(--mdtp-white); font-weight: 750; }
.mdtpcf7-grid button.is-today:not([aria-selected="true"]) { border-color: var(--mdtp-blue-600); color: var(--mdtp-blue-700); font-weight: 700; }
.mdtpcf7-grid button small { position: absolute; inset: auto 0 1px; overflow: hidden; font-size: .49rem; font-weight: 700; line-height: 1; text-align: center; text-overflow: clip; }

.mdtpcf7-time { margin: 0; padding: 14px; border: 0; border-block-start: 1px solid var(--mdtp-line); }
.mdtpcf7-time legend { float: inline-start; width: 100%; margin: 0 0 8px; padding: 0; color: var(--mdtp-ink-900); font-size: .82rem; font-weight: 700; }
.mdtpcf7-time-controls { clear: both; display: flex; gap: 8px; align-items: center; }
.mdtpcf7-time-controls label { min-width: 0; }
.mdtpcf7-time-controls label { flex: 1 1 80px; }
.mdtpcf7-actions { display: grid; grid-template-columns: 1fr 1.25fr; gap: 8px; padding: 14px; border-block-start: 1px solid var(--mdtp-line); }
.mdtpcf7-button { min-height: 46px; padding: 10px 15px; border-radius: 10px; font-weight: 750 !important; cursor: pointer; }
.mdtpcf7-button--secondary { border: 1px solid var(--mdtp-line); background: var(--mdtp-white); color: var(--mdtp-blue-700); }
.mdtpcf7-button--primary { border: 1px solid var(--mdtp-blue-600); background: var(--mdtp-blue-600); color: var(--mdtp-white); }
.mdtpcf7-status { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); }
.screen-reader-text { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }

.mdtpcf7-picker button:hover:not(:disabled), .mdtpcf7-picker select:hover { border-color: #a9b8ce; }
.mdtpcf7-grid button:hover:not(:disabled):not([aria-selected="true"]) { background: var(--mdtp-mist); }
.mdtpcf7-button--primary:hover { background: var(--mdtp-blue-700) !important; }
.mdtpcf7-picker button:active:not(:disabled) { transform: scale(.97); }
.mdtpcf7-picker button:focus, .mdtpcf7-picker select:focus { outline: none; }
.mdtpcf7-picker button:focus-visible, .mdtpcf7-picker select:focus-visible { outline: 3px solid var(--mdtp-focus); outline-offset: 2px; border-color: var(--mdtp-blue-600); }

@media (max-width: 640px) {
  .mdtpcf7-picker--mobile { inset: auto 0 0; width: 100%; max-height: min(92dvh, 760px); border-width: 1px 0 0; border-radius: 18px 18px 0 0; transform: translateY(24px); }
  .mdtpcf7-picker--mobile.is-visible { transform: translateY(0); }
  .mdtpcf7-picker--mobile .mdtpcf7-sheet { padding-bottom: max(6px, env(safe-area-inset-bottom)); }
  .mdtpcf7-picker--mobile .mdtpcf7-handle { display: block; }
  .mdtpcf7-picker--mobile .mdtpcf7-heading { padding-inline: 16px; }
  .mdtpcf7-picker--mobile .mdtpcf7-heading h2 { font-size: 1.28rem; }
  .mdtpcf7-picker--mobile .mdtpcf7-calendar { padding-inline: 10px; }
  .mdtpcf7-picker--mobile .mdtpcf7-selectors { grid-template-columns: 64px minmax(116px, 1fr) 96px; }
  .mdtpcf7-picker--mobile .mdtpcf7-weekday { font-size: .7rem; }
  .mdtpcf7-picker--mobile .mdtpcf7-grid { gap: 1px; }
  .mdtpcf7-picker--mobile .mdtpcf7-grid button { min-height: 42px; max-height: 46px; }
  .mdtpcf7-picker--mobile .mdtpcf7-actions { grid-template-columns: 1fr; }
  .mdtpcf7-picker--mobile .mdtpcf7-button--primary { grid-row: 1; }
}

@media (max-width: 359px) {
  .mdtpcf7-picker--mobile .mdtpcf7-selectors { grid-template-columns: 60px minmax(105px, 1fr) 90px; gap: 5px; }
  .mdtpcf7-picker--mobile .mdtpcf7-selectors select { padding-inline: 8px 22px; font-size: .88rem; }
  .mdtpcf7-picker--mobile .mdtpcf7-grid button { min-height: 38px; font-size: .82rem; }
}

@media (prefers-reduced-motion: reduce) {
  .mdtpcf7-picker, .mdtpcf7-picker::backdrop, .mdtpcf7-picker * { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

@media (forced-colors: active) {
  .mdtpcf7-grid button[aria-selected="true"], .mdtpcf7-button--primary { border: 2px solid ButtonText; }
}
