label.has-mobile-date-picker { position: relative; }
label.has-mobile-date-picker > input[type="date"] { display: none; }

  .mobile-date-picker__trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 46px;
    padding: 10px 13px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    color: var(--ink);
    font: inherit;
    text-align: left;
  }

  .mobile-date-picker__trigger::after {
    content: "▾";
    color: #756d65;
    font-size: 18px;
  }

  .mobile-date-picker {
    position: absolute;
    z-index: 30;
    top: calc(100% + 6px);
    left: 0;
    width: min(320px, calc(100vw - 42px));
    padding: 12px;
    border: 1px solid #ded9d2;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 14px 30px rgba(35, 35, 35, .16);
  }

  .mobile-date-picker__head {
    display: grid;
    grid-template-columns: 36px 1fr 36px;
    align-items: center;
    margin-bottom: 10px;
    text-align: center;
  }

  .mobile-date-picker__month {
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: var(--ink);
    font-size: 26px;
    line-height: 1;
  }

  .mobile-date-picker__week,
  .mobile-date-picker__days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 3px;
    text-align: center;
  }

  .mobile-date-picker__week { margin-bottom: 4px; }
  .mobile-date-picker__week span { color: #887f75; font-size: 11px; }

  .mobile-date-picker__day {
    width: 100%;
    aspect-ratio: 1;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: var(--ink);
    font: inherit;
    font-size: 13px;
  }

  .mobile-date-picker__day.is-selected {
    background: var(--accent);
    color: #fff;
  }

  .mobile-date-picker__day:active { background: #f1ece5; }
  .mobile-date-picker__day.is-selected:active { background: var(--accent); }

  /* Do not inherit the dark primary-button appearance from admin forms. */
  .mobile-date-picker__trigger {
    min-height: 46px !important;
    padding: 10px 13px !important;
    border-color: #c8d5e8 !important;
    border-radius: 8px !important;
    background: #fff !important;
    color: #233b5d !important;
    font-weight: 600 !important;
  }

  .mobile-date-picker {
    border-color: #d7e1ef;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(39, 72, 113, .14);
  }

  .mobile-date-picker__head b { color: #233b5d; }

  .mobile-date-picker__month {
    min-height: 32px !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 7px !important;
    background: #f2f6fc !important;
    color: #3567ad !important;
    font-weight: 600 !important;
  }

  .mobile-date-picker__week span { color: #73839a; }

  .mobile-date-picker__day {
    min-height: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 7px !important;
    background: #fff !important;
    color: #2d405c !important;
    font-weight: 500 !important;
  }

  .mobile-date-picker__day:hover,
  .mobile-date-picker__day:active {
    background: #edf4ff !important;
  }

.mobile-date-picker__day.is-selected,
.mobile-date-picker__day.is-selected:active {
  background: #4c70b8 !important;
  color: #fff !important;
}
