/* Event list */
.eventfilter h2 {
    font-size: 20px;
    display: inline;
}
select.rt-em-filter {
    margin: 0px 10px 10px 10px;
    padding: 5px;
}
a#rt-event-prev {
    float: left;
}
a#rt-event-next {
    float: right;
}
.css-events-list h2 {
    font-size: medium;
    line-height: 1;
    margin: 15px 0px 0px 5px;
}
ul.rt-event li.eventregister {
    background-image: url(/wp-content/themes/astra-child/plugins/events-manager/register.png);
    background-repeat: no-repeat;
    background-position: center top;
    background-color: #ffffff55;
    padding-top: 32px;
    background-blend-mode: overlay;
    font-size: smaller;
    grid-area: register;
    place-self: center;
}

/* Event details */
div.rt-em-grid {
  display: grid;
  grid-template-columns: 2fr minmax(400px,1fr);
  grid-template-rows: auto minmax(0,auto) 2em 2em auto auto auto;
  grid-template-areas:
    "menubar  menubar"
    "title    map"
    "when     map"
    "where    map"
    "details  map"
    "details  info"
    "bookings bookings"
    "attendees attendees";
  gap:10px;
}
div.rt-em-menubar {
    grid-area: menubar;
    width: 100%;
    background-color: #eee;
    border: 1px solid lightgrey;
    display:flex;
    justify-content: space-between;
}
@media(max-width: 1200px) {
  div.rt-em-grid {
    margin-top: 2em;
  }
}
@media(max-width: 992px) {
  div.rt-em-menubar {
    top:4em;
  }
}
@media(max-width: 768px) {
  div.rt-em-grid {
    grid-template-columns: 2fr minmax(200px,1fr);
    grid-template-areas:
      "menubar  menubar"
      "title    title"
      "when     when"
      "where    where"
      "map      map"
      "details  info"
      "bookings bookings"
      "attendees attendees";
  }
  div.rt-em-grid {
    margin-top: 3.5em;
  }
  div.rt-em-menubar {
    top:1.5em;
  }
}
@media(max-width: 544px) {
  div.rt-em-grid {
    grid-template-columns: 100%;
    grid-template-areas:
      "menubar"
      "title"
      "when"
      "where"
      "map"
      "details"
      "info"
      "bookings"
      "attendees";
    margin-top:0;
  }
  div.rt-em-menubar {
    height: 30px;
  }
  .em-booking-form {
    width: 100%;
  }
  .em-booking-form-details input.input, .em-booking-form-details textarea {
    width: 100%;
    max-width: 300px;
  }
  .em-booking-form-details .em-booking-submit {
    width: 100%;
    padding-left: 0;
    padding-right: 0;
  }
}
  
ul.event-categories {
    list-style:none;
    display:flex;
    /*flex: 1 1 auto;*/
    justify-content: flex-start;
    margin: 0 10px;
    align-self: center;
}
ul.event-categories li {
    border: 2px solid #f17c0d;
    border-radius: 5px;
    padding: 0 5px;
    margin: 2px;
    font-size: smaller;
    font-weight: bold;
    list-style: none;
}
ul.event-categories li a {
    color: inherit;
    text-decoration: none;
}

header.rt-em-title,
div.rt-em-title {
    grid-area: title;
    display: flex;
    align-items: center;
    margin-bottom: 0!important;
}
div.rt-em-title span.eventimage {
    width: 90px;
    height: 72px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: left;
    filter: blur(0.6px) opacity(0.3);
}

div.rt-em-location,
div.rt-em-map {
    grid-area: map;
}
div.rt-em-map {
    padding-top: 70px;
}
div.em-osm-map {
    max-width: 600px;
    width:100% !important;
}
div.rt-em-categories {
    grid-area: title;
    margin-top: -40px;
}
p.rt-em-when,
div.rt-em-when {
    grid-area: when;
}
p.rt-em-where {
    grid-area: where;
}
div.rt-em-description {
    grid-area: details;
}
div.rt-em-bookings {
    grid-area: bookings;
}
div.rt-em-attendees {
    grid-area: attendees;
}

ul.event-attendees {
    list-style: none;
    margin-left: inherit;
}
.event-attendees li {
    display: inline-grid;
    grid-template-columns: 50px minmax(150px, auto);
    grid-template-rows: 30px 20px;
    gap: 0 5px;
    margin: 5px;
}
.event-attendees span.avatar {
    grid-column: 1 / span 1;
    grid-row: 1 / span 2;
}
.event-attendees span.name {
    font-weight: bold;
    grid-column: 2 / span 1;
    grid-row: 1 / span 1;
}
.event-attendees span.tickets {
    font-size: smaller;
    grid-column: 2 / span 1;
    grid-row: 2 / span 1;
}

/* Covid-19 */
.rt-em-covid-19 {
    grid-area: info;
    border: 2px solid #aa0000;
    padding: 5px;
    border-radius: 5px;
    background-color: #aa000033;
}
.rt-em-covid-19 h4 {
    background-image: url(/wp-content/themes/astra-child/plugins/events-manager/corona.svg);
    background-size: 50px;
    background-repeat: no-repeat;
    padding-left: 55px;
    height: 55px;
    padding-top: 10px;
}

/* Event edit */
div.rt-em-edit-grid {
  display: grid;
  grid-template-columns: minmax(0,2fr) minmax(400px,1fr);
  /*grid-template-columns: auto;*/
  grid-template-rows: auto;
  grid-template-areas:
    "title    title"
    "when     when"
    "tags     tags"
    "where    map"
    "details  details"
    "bookings bookings"
    "attendees attendees";
  gap:10px;
}
@media(max-width: 768px) {
div.rt-em-edit-grid {
  grid-template-columns: auto;
  grid-template-areas:
    "title"
    "when"
    "tags"
    "where"
    "map"
    "details"
    "details"
    "info"
    "bookings"
    "attendees";
  }
}
div.rt-em-edit-grid div.rt-em-tags {
    grid-area: tags;
}
div.rt-em-edit-grid div.rt-em-location {
    grid-area: where;
}
.osm-location-data input {
    width: 100% !important;
}
div.rt-em-edit-grid input,
div.rt-em-edit-grid select {
    border: none;
    border-bottom: 1px solid #ddd;
    font: inherit;
    padding: 2px 3px !important;
}
div.rt-em-edit-grid input:focus {
  outline: none;
  background-color: #fafafa;
  border-bottom: 2px solid #f17c0d;
}
div.time-picker li {
  padding:2px 3px;
  height: inherit;
}
.em-date-start, .em-date-end {
  width: 6em;
}
#start-time, #end-time {
  width: 4em;
}
.em-recurring-text p {
    margin: 0;
    margin-top: 0 !important;
}
.rt-em-tags span.subtitle {
    grid-column: 1;
    font-weight: bolder;
}
.rt-em-tags .category {
    display: grid;
    grid-template-columns: min-content auto;
    gap: 5px 10px;
}
.rt-em-tags .event-categories {
    display: contents;
}
.rt-em-tags .taggroup {
    grid-column: 2;
    display: flex;
}
.rt-em-tags label {
    flex: 1;
}
.ticket-price,  /* TODO: Correctly handle ticket price */
.ticket-limit,
.ticket-time,
.show-advanced,
.ticket-options,
.em-ticket-form-advanced {
  display:none !important;
}

/* Bookings */
ul.em-tickets {
    padding-left: 0;
    margin: 0
}
li.em-ticket {
    display:block;
    clear: both;
}
span.em-bookings-ticket-type {
    float: left;
    padding: 0px 15px 0px 30px;
    margin: 5px 10px 5px 0px;
    white-space: nowrap;
}
span.ticket-desc {
    display: block;
}
span.em-bookings-ticket-type:after {
    font-size: xx-large;
    vertical-align: middle;
    content: "\2713";
    color: #66666644;
    font-weight: bold;
    padding-left: 15px;
}
span.em-bookings-ticket-type.checked:after {
    color: mediumspringgreen;
}
div.em-booking-form-details {
    clear: both;
    width: inherit;
}

/* Calendar */

div.em-calendar.fullcalendar {
    display: grid;
    grid-template-columns: repeat(7, minmax(0,1fr));
    grid-template-rows: auto;
    grid-template-areas:
        "nav-prev month month month month month nav-next"
        "mon tue wed thu fri sat sun";
}
.em-calendar.fullcalendar .em-calnav-prev {
    grid-area: nav-prev;
}
.em-calendar.fullcalendar .month_name {
    grid-area: month;
    justify-self: center;

}
.em-calendar.fullcalendar .em-calnav-next {
    grid-area: nav-next;
    justify-self: right;
}
.em-calendar.fullcalendar div.days-names,
.em-calendar.fullcalendar div.week {
    display:contents;
}
.em-calendar.fullcalendar .days-names span {
    border-top: 1px solid #d6d6d6;
    border-left: 1px solid #d6d6d6;
    border-bottom: 1px solid #d6d6d6;
    padding: 2px 5px;
}
.em-calendar.fullcalendar .day {
    border-bottom: 1px solid  #d6d6d6;
    border-left: 1px solid  #d6d6d6;
    height:100px;
    text-align:center;
    padding-top: 2px
}
.em-calendar.fullcalendar .day span {
    border-radius: 32px;
    padding: 4px;
    font-size:smaller;
    font-weight:bold;
}
.em-calendar.fullcalendar .day.today span {
    background-color: #f17c0d;
    color:black;
}
.em-calendar.fullcalendar .day span a {
    color:inherit;
}
.em-calendar.fullcalendar .days-names span:nth-child(7n) {
    border-right:1px solid #d6d6d6;
}
.em-calendar.fullcalendar .week .day:nth-child(7n) {
    border-right:1px solid #d6d6d6;
}
.em-calendar.fullcalendar .day li {
    border-radius: 4px;
    overflow: hidden;
    white-space: nowrap;
    width: 100%;
    text-overflow: ellipsis;
    display: flex;
    margin-bottom: 1px;
}
.em-calendar.fullcalendar .day li:hover {
    background-color:#ddd;
}
.em-calendar.fullcalendar .day li .dot {
    border: 4px solid;
    border-radius: 8px;
    width: 0;
    height: 0;
    margin: 3px;
    place-self: center;
}
.em-calendar.fullcalendar .day li a {
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}
a.em-button {
    margin: 5px;
    background: #eee;
    border: 1px solid #ccc;
    display: inline-block;
}
.em-button.add-new-event {
    text-align: center;
    padding: 0;
    border-radius: 25px;
    height: 50px;
    width: 50px;
    line-height: 1;
    font-size: 50px;
    box-shadow: rgba(100, 100, 111, 0.5) 0px 7px 29px 0px;
    grid-column: 7;
    justify-self: right;
    display: block;
    margin-bottom: 10px;
}
