#bootstrap-theme ul.pagination > li a,
#bootstrap-theme #event-listing h4 > a {
  text-decoration:none;
}
#bootstrap-theme .crm-search-display-grid-container > div {
  margin-bottom: 2em;
  border-bottom: 0;
  background-color: var(--ast-global-color-4);
  box-shadow: 0px 6px 15px -2px rgba(16,24,40,0.05);
/*  padding: 2rem;*/
}
#bootstrap-theme #event-listing div.crm-search-display-pager div.text-center {
  text-align:center;
}
#bootstrap-theme #event-listing div.crm-search-display-pager ul {
  list-style:none;
}
#bootstrap-theme ul.pagination > li {
  display:inline;
  padding:0.5rem;
}
#crm-container.crm-public form > a.button {
  padding:0.75rem 1rem;
  font-size:0.75rem;
  line-height:0.75rem;
  margin-bottom:1rem;
  display:block;
  width:max-content;
}
#crm-container.crm-public .event-info a.button,
#bootstrap-theme.crm-container button:not(.btn-small),
#crm-container.crm-public button {
  font-size: 1.25rem;
  line-height: 1.25rem;
  padding: 1.25rem 1.5rem;
}
#bootstrap-theme .crm-search-display-grid-container a.btn-default,
#bootstrap-theme.crm-container button:not(.btn-primary) {
  background:var(--ast-global-color-2);
  color: #fff;
  font-size:1rem;
  font-weight:700;
  line-height:1rem;
  padding:0.75rem 1rem;
  border-radius:60em;
}
#bootstrap-theme .crm-search-display-grid-container {
  align-items:flex-start;
}
#bootstrap-theme .crm-search-display-grid-container a.btn-default,
#bootstrap-theme button {
  margin-top:1rem;
}
#bootstrap-theme .crm-search-display-grid-container a.btn-default {
  display:block;
  text-decoration:none;
  width:max-content;
  text-transform:uppercase;
  font-size:1.15rem;
  line-height:2rem;
}
#crm-container.crm-public .event-info > div:not(.event_description-section),
#bootstrap-theme.crm-container .af-container.af-layout-cols,
#crm-container.crm-public fieldset {
  padding:0;
  border:none;
}
#crm-container.crm-public .event-info > div:not(.event_description-section),
#bootstrap-theme.crm-container .af-container.af-layout-cols,
#crm-container.crm-public fieldset:not(#priceset) {
  display:flex;
  flex-flow:row wrap;
}
#crm-container.crm-public .event-info > div:not(.event_description-section):not(.crm-socialnetwork),
#bootstrap-theme.crm-container .af-container.af-layout-cols,
#crm-container.crm-public fieldset:not(#priceset) {
  grid-gap:0.75rem;
}
#bootstrap-theme.crm-container .af-container.af-layout-cols,
#crm-container.crm-public fieldset {
  justify-content:space-between;
  grid-gap:0.75rem;
}
#bootstrap-theme.crm-container h4,
#crm-container.crm-public h4,
#crm-container.crm-public legend {
  font-size:1.5rem;
  padding:1.25rem 0 1rem;
  border-bottom:1px solid #0e5828;
}
#crm-container.crm-public .messages {
  font-size:1.25rem;
  font-weight:700;
}
#crm-container.crm-public .messages.alert a,
#crm-container.crm-public .messages.alert {
  color:red;
}
#bootstrap-theme.crm-container .af-container.af-layout-cols > *:not(:empty),
#crm-container.crm-public fieldset:not(#priceset) > *:not(legend):not(h4) {
  width:calc(50% - 0.75rem);
  flex:0 1 auto;
}
#crm-container.crm-public #editrow-custom_40,
#crm-container.crm-public #editrow-custom_29,
#crm-container.crm-public #editrow-custom_30,
#crm-container.crm-public #editrow-custom_31,
#crm-container.crm-public #editrow-custom_32,
#crm-container.crm-public #editrow-custom_34,
#crm-container.crm-public #editrow-custom_35,
#crm-container.crm-public #editrow-custom_36,
#crm-container.crm-public #editrow-custom_37,
#crm-container.crm-public #editrow-custom_38,
#crm-container.crm-public h4,
#crm-container.crm-public #editrow-street_address-Primary,
#crm-container.crm-public #editrow-custom_35,
#crm-container.crm-public legend,
#crm-container.crm-public #helprow-custom_15,
#crm-container.crm-public #editrow-custom_15,
#crm-container.crm-public #helprow-current_employer,
#crm-container.crm-public #editrow-current_employer {
  width:100%!important;
}
#crm-container.crm-container .select2-container,
#bootstrap-theme.crm-container .select2-container {
  width:100%!important;
}
/*
#crm-container.crm-public .event-info .label {
  width:15%;  
}
*/
#crm-container.crm-public .event-info .content {
  margin:0.5rem 0;
  width:85%;
}
#crm-container.crm-public .label,
#bootstrap-theme.crm-container label,
#crm-container.crm-public label {
  font-size:1.05rem;
  margin:0.5rem 0;
}
#bootstrap-theme.crm-container label,
#crm-container.crm-public label {
  display:block;
}
#crm-container.crm-public .label {
  font-weight:700;
}
body.lang-fr .title-en,
body.lang-en .title-fr,
#crm-container.crm-public .event-info > div.crm-actionlinks-top,
#crm-container.crm-public .event-info > div.event_fees-section,
body.lang-fr .crm-search-display-grid-container > div > .crm-search-col-type-buttons:not(:last-child),
body.lang-en .crm-search-display-grid-container > div > .crm-search-col-type-buttons:last-child,
#bootstrap-theme.crm-container .hide-copy .af-repeat-copy-btn,
#crm-container.crm-public .helprow-current_employer-section.helprow-pre,
#crm-container.crm-public .event_summary-section,
#crm-container.crm-public .crm-actionlinks-top {
  display:none!important;
}
#crm-container.crm-public .crm-socialnetwork,
#crm-container.crm-public .crm-actionlinks-bottom,
#crm-container.crm-public .crm-submit-buttons {
  margin-top:1.5rem;
}
#crm-container.crm-public .price-set-option-content,
#crm-container.crm-public .crm-option-label-pair {
  display:flex;
}
#crm-container.crm-public .crm-form-radio,
#crm-container.crm-public .crm-form-checkbox {
  margin:0.5rem 1rem 0.5rem 0;
}
#bootstrap-theme.crm-container .select2-choice,
#crm-container.crm-public .select2-choice {
  height:40px;
}
#crm-container.crm-public .crm-section table,
#crm-container.crm-public .crm-section th,
#crm-container.crm-public .crm-section td {
  border:none;
  padding:0;
}
#bootstrap-theme.crm-container .select2-choice > span,
#crm-container.crm-public .select2-choice > span {
  line-height:40px;
}
#bootstrap-theme .crm-search-display-grid-container a.btn > i.crm-i {
  margin-right:0.5rem;
}
/* Styles for Actions Ribbon */
#crm-container .crm-actions-ribbon {
  margin: 0 0 8px 0;
}

#crm-container .crm-actions-ribbon ul {
  margin: 0;
  padding: 0;
  display:flex;
  flex-flow:column wrap;
}

#crm-container .crm-actions-ribbon li {
  margin: 0 8px 0 0;
  padding: 0;
  list-style: none;
  flex:1 1 auto;
  width:100%;
}
#crm-container .crm-actions-ribbon #crm-participant-list,
#crm-container .crm-actions-ribbon #crm-event-links-list {
  margin-left:1rem!important;
  display:none;
}

#crm-container .crm-actions-ribbon li.crm-previous-action,
#crm-container .crm-actions-ribbon li.crm-next-action {
  float: right;
  margin: 0 0 0 8px;
}

/** Event Listings **/
.event-card-listing {
  & .event-content,
  & .date-content,
  & .event-header {
    display:flex;
  }
  & .event-date {
    flex:0 0 35%;
    background-color:var(--wp--preset--color--ast-global-color-5);
  }
  & .event-location {
    flex:0 0 65%;
  }
  & .event-content,
  & .event-location,
  & .event-date {
    position:relative;
    padding:1.25rem;
  }
  & .event-content,
  & .date-content {
    flex-direction:column;
  }
  & .month {
    font-size:1.5rem;
    font-weight:lighter;
  }
  & .days {
    font-size:2rem;
    font-weight:bold;
  }
  & .days,
  & .month {
    color:#0e5828;
  }
  & .event-location a,
  & .calendar-icon {
    position: absolute;
    bottom: 10px;
    right: 10px;
    font-size: 0.9rem;
    color:#334155;
  }
  & .event-category {
    margin-bottom:10px;
    letter-spacing:0.5px;
  }
  & .event-view {
    margin-top:auto;
    align-self:flex-end;
  }
  & .location-content > * {
    display:block;
  }
}
body.lang-fr .event-card-listing .date-content .month {
  order:2;
}

/** Media **/
@media (max-width:991px) {
  .crm-search-display-grid-layout-3 {
    grid-template-columns:repeat(2, 1fr)!important;
  }
}

@media (max-width: 810px) {
  #bootstrap-theme.crm-container .af-container.af-layout-cols > *:not(:empty),
  #crm-container.crm-public fieldset:not(#priceset) > *:not(legend):not(h4) {
    width:100%!important;
  }
  .crm-search-display-grid-layout-3 {
    grid-template-columns: repeat(1, 1fr);
  }

}

@media (max-width:760px) {
  .crm-search-display-grid-layout-3 {
    grid-template-columns:repeat(1, 1fr)!important;
  }
}
