/* Add inside SimplyBook > Custom Features > Custom CSS > Widget CSS.
   This styles the emeri iframe, not the surrounding WordPress page. */

/* Collapse the unused widget header only while account/cart controls are empty. */
#header.widget:has(#sb_cart:empty):has(#sb_client_info:empty):not(:has(button)):not(:has(.ada-compliance__trigger)) {
  display: none !important;
}
#sb-main-container { padding-bottom: 0 !important; }
#sb-timeline { padding-bottom: 1.25rem !important; }
#steps-nav { margin-bottom: 1rem !important; }
#steps-content { padding: 1rem 1rem 0 !important; }
#footer { padding-top: .5rem !important; padding-bottom: .5rem !important; box-shadow: none !important; }

/* Calendar on the left and available times on the right. */
#sb_datetime_step_container {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
  gap: 1.5rem;
}
#sb_datetime_step_container > .col-sm-12 {
  width: auto !important;
  float: none !important;
  min-width: 0;
  padding: 0 !important;
}
#sb_datetime_step_container::before,
#sb_datetime_step_container::after { display: none !important; }
#sb_dateview_container { margin: 0 !important; }
#sb_dateview_container .section-pd { padding: 1rem !important; }
#sb_dateview_container .weeks-name > div,
#sb_dateview_container .weeks-date > div {
  width: 100% !important;
  float: none !important;
}
#sb_dateview_container .weeks-name > div:not(:first-child) { display: none !important; }
#sb_dateview_container .weeks-date .inner { min-width: 0; }
#sb_dateview_container .top-date-select .header { padding-bottom: .75rem !important; }
#sb_dateview_container .top-date-select .header .txt { display: none !important; }
#sb_dateview_container .date > a,
#sb_dateview_container .date > span { min-height: 2.75rem; }

/* Separate time choices rather than one continuous table row. */
#sb_time_slots_container {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .625rem;
}
#sb_time_slots_container::before,
#sb_time_slots_container::after { display: none !important; }
#sb_time_slots_container .slot { width: auto !important; float: none !important; padding: 0 !important; margin: 0 !important; }
#sb_time_slots_container .sb-cell {
  display: flex !important;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  width: 100% !important;
  margin: 0 !important;
  padding: .75rem .5rem !important;
  border-radius: .375rem;
}
@media (max-width: 48rem) {
  #sb_datetime_step_container { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
  #steps-content { padding: .75rem .5rem 0 !important; }
  #sb_time_slots_container { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
