/*
  The employer's Create an event drawer for the pilot company (class.create_event_drawer.php,
  create_event_drawer.js) — what is its own on top of the process drawer (process_drawer.css):
  the new-type box, the dates line over the month grid, the recap rows, the done mark.

  NOTE: no rem units in here. lib/bootstrap_old sets html { font-size: 10px }, so a rem is 10px
  on this site. px throughout.

  Everything is scoped under .create_event_drawer_container, the mchat frame inside the drawer.
*/

/* ---- the choose step: Create New / Clone Previous as two picture buttons (the site's
   btn-default + table shape), one over the other at every width, the icon larger on a wide
   screen ---- */

.ced_choices
{
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 4px;
}
.ced_choices .ced_choice
{
  margin: 0;
  padding: 20px;
  white-space: normal;
  background: #ffffff;
  border: 1.5px solid var(--pd_line);
  border-radius: var(--pd_radius);
  color: var(--pd_ink);
  box-shadow: none;
  outline: none;
  -webkit-tap-highlight-color: transparent;
  transition: border-color 0.12s, background 0.12s, box-shadow 0.12s;
}
.ced_choices .ced_choice:hover, .ced_choices .ced_choice:focus { border-color: var(--pd_brand_edge); background: #ffffff; color: var(--pd_ink); }
.ced_choices .ced_choice:active { background: #f4fafa; }
.ced_choices .ced_choice.pd_on
{
  border-color: var(--pd_brand);
  background: var(--pd_brand_wash);
  box-shadow: 0 0 0 1px var(--pd_brand) inset;
}
.ced_choice_art { vertical-align: middle; }
.ced_choice_art img { width: 125px; max-width: 30vw; height: auto; }
.ced_choice_text { vertical-align: middle; }
.ced_choice_name { font-size: 1.2em; }
.ced_choice_sub { margin-top: 4px; color: var(--pd_muted); font-size: 14px; line-height: 1.4; }
.ced_choices .ced_choice.pd_on .ced_choice_sub { color: var(--pd_ink); }
@media (min-width: 768px)
{
  .ced_choices .ced_choice { padding: 24px 28px; }
  .ced_choice_art img { width: 170px; }
  .ced_choice_text { padding-left: 28px !important; }
  .ced_choice_name { font-size: 1.4em; }
  .ced_choice_sub { font-size: 15px; }
}

/* ---- the name step: the two stacked fields, the type tiles ---- */

.ced_fields { margin-bottom: 14px; }
.ced_fields .fixed_floating_input
{
  padding-top: 22px;
  padding-bottom: 22px;
  font-size: 16px;   /* 16px stops ios zooming the page on focus */
  height: auto;
  box-shadow: none;
  color: var(--pd_ink);
}
.ced_fields .fixed_floating_input:focus { border-color: var(--pd_brand); box-shadow: none; }

.ced_type_tiles
{
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
  gap: 8px;
}
.ced_type_tile
{
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 92px;
  padding: 12px 8px 10px;
  background: #ffffff;
  border: 1.5px solid var(--pd_line);
  border-radius: var(--pd_radius);
  color: var(--pd_ink);
  font: inherit;
  cursor: pointer;
  outline: none;
  -webkit-tap-highlight-color: transparent;
  transition: border-color 0.12s, background 0.12s, box-shadow 0.12s;
}
.ced_type_tile:hover { border-color: var(--pd_brand_edge); }
.ced_type_tile:active { background: #f4fafa; }
.ced_type_tile.pd_on
{
  border-color: var(--pd_brand);
  background: var(--pd_brand_wash);
  box-shadow: 0 0 0 1px var(--pd_brand) inset;
}
.ced_tile_icon
{
  font-size: 30px;
  line-height: 1;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.ced_tile_icon img { width: 34px; height: 34px; object-fit: contain; }
.ced_tile_name
{
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.ced_tile_tag
{
  position: absolute;
  top: 6px;
  right: 6px;
  padding: 1px 6px;
  border-radius: 8px;
  background: var(--pd_brand_wash);
  color: var(--pd_brand_deep);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.ced_types_empty { grid-column: 1 / -1; }

/* ---- the dates step: the grid in a white card, the line under it ---- */

.ced_dates_line
{
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 12px 2px 0;
  min-height: 24px;
}
.ced_dates_text
{
  flex: 1;
  min-width: 0;
  font-size: 15px;
  font-weight: 700;
}
.ced_dates_line .pd_link { margin: 0; padding: 2px 0; }

.ced_cal
{
  background: #ffffff;
  border: 1.5px solid var(--pd_line);
  border-radius: var(--pd_radius);
  padding: 12px 12px 10px;
  margin-top: 0;
}
.ced_cal .meetup_cal_nav { top: 8px; right: 12px; }
.ced_cal .meetup_cal_title { font-size: 15px; font-weight: 800; line-height: 30px; margin-bottom: 8px; padding-right: 70px; }
.ced_cal .meetup_cal_day { padding: 10px 0; font-size: 15px; }
.ced_cal .meetup_cal_day.is_selected { background: var(--pd_brand); }
.ced_cal .meetup_cal_day.is_today:not(.is_selected) { box-shadow: 0 0 0 1.5px var(--pd_brand_edge) inset; }

/* ---- the dates step's footer: the confirm row over the buttons, the pink Create Event ---- */

.ced_confirm_row
{
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin: 0 0 10px;
  padding: 6px 2px;
  border: none;
  background: transparent;
  color: var(--pd_ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}
.ced_confirm_box
{
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 6px;
  border: 2px solid #9aa9ae;
  background: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: transparent;
  font-size: 16px;
  transition: border-color 0.12s, background 0.12s, color 0.12s;
}
.ced_confirm_box.pd_on
{
  border-color: var(--ced_pink);
  background: var(--ced_pink);
  color: #ffffff;
}
.ced_confirm_text { font-size: 15px; font-weight: 700; }

.create_event_drawer_container { --ced_pink: #bb3487; --ced_pink_deep: #a02b74; }
.pd_foot .pd_next_pink { background: var(--ced_pink); border-color: var(--ced_pink); }
.pd_foot .pd_next_pink:hover, .pd_foot .pd_next_pink:focus { background: var(--ced_pink_deep); border-color: var(--ced_pink_deep); }

/* ---- done ---- */

.ced_done { text-align: center; padding: 28px 8px 8px; }
.ced_done .pd_question { margin-bottom: 8px; }
.ced_done_mark
{
  width: 72px;
  height: 72px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: var(--pd_brand_wash);
  color: var(--pd_brand);
  font-size: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
