.screenings-calendar {
  display: inline-block;
  width: calc(100% + 10px);
  margin-left: -5px;
  margin: 30px 0 30px -5px;
  border-radius: 3px;
  overflow: hidden;
  float: left;
}

.schedule-sorter {
  display: none;
}

.screenings-dates-container {
  display: inline-flex;
  flex-flow: row wrap;
  width: 100%;
  overflow: hidden;
  float: left;
  -webkit-transition: all 0.8s cubic-bezier(.25,.8,.25,1);
	transition: all 0.8s cubic-bezier(.25,.8,.25,1);
  padding-bottom: 10px;
}

.old-schedule {
  opacity: 0.5;
}

.old-schedule .schedule-time-and-duration {
  bottom: 50px;
}

.old-schedule-container {
  padding-bottom: 50px;
}

.old-schedule-container .schedule-time-and-duration {
  padding-bottom: 50px;
}

.schedule-changes-not-affected {
  text-align: center;
  width: calc(100% - 50px);
  position: relative;
  position: absolute;
  top: 100px;
}

.screening-date {
  flex: 1;
  flex-basis: calc(100% / 7 - 14px);
  max-width: calc(100% / 7 - 14px);
  min-height: 40px;
  height: calc(750px / 7 - 12px);
  border: 1px solid rgba(0,0,0,0.4);
  border-radius: 3px;
  margin: 5px;
  position: relative;
  color: white;
  text-shadow: 1px 1px 1px rgba(0,0,0,0.7);
  cursor: pointer;
  -webkit-transition: all 0.3s cubic-bezier(.25,.8,.25,1);
	transition: all 0.3s cubic-bezier(.25,.8,.25,1);
}

.screening-date-day {
  height: 40px !important;
  background-color: #333944;
  color: white;
  cursor: default;
}

.screening-date:hover {
  background-color: #24272d;
  color: #F39133;
}

.screening-date-day:hover {
  color: white;
  background-color: #333944;
  box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24) !important;
}


.screening-date-disabled {
  background-color: silver;
  cursor: default;
}

.screening-date-disabled:hover {
  background-color: silver;
  color: white;
  box-shadow: inherit !important;
}

.screening-date-active {
  background-color: #24272d;
  color: #F39133;
}

.screening-date > div {
  position: absolute;
  width: 100%;
  top: 50%;
  text-align: center;
  transform: translate(0, -50%);
  font-weight: bold;
}

.screening-date-day-s {
  display: none;
}

.screening-calendar-toggler {
  height: 40px;
  width: 100%;
  cursor: pointer;
  float: left;
  background-color: #333944;
}

.screenings-container {
  float: left;
  width: 100%;
	min-height: 50vh;
}

.schedule-selected-date {
  float: left;
  display: block;
  text-align: center;
  width: 100%;
  margin: 20px 0;
  font-weight: bold;
}

.schedule-page .confirm-omakava-buying, .myschedule-page .confirm-omakava-buying, .schedule-page .x-close-button, .myschedule-page .x-close-button {
  display: none;
}

.omakava-buy-popup {
  padding-bottom: 50px;
}

.omakava-buy-popup .one-schedule {
  width: calc(100% - 150px);
}

.omakava-buy-popup .omakava-buying-selection, .omakava-buy-popup .confirm-omakava-buying, .omakava-buy-popup .x-close-button {
  display: block;
}

.omakava-buying-selection {
  width: 50px;
  height: 50px;
  float: right;
  display: none;
}

.omakava-buy-popup .x-close-button {
  position: relative;
  float: right;
  margin-right: -10px;
  margin-top: -10px;
  top: auto;
  right: auto;
}

.confirm-omakava-buying:first-of-type {
  clear: left;
}

.confirm-omakava-buying:last-of-type {
  float: right;
	margin-top: 20px;
}

.omakava-buying-selection-box {
  position: absolute;
  height: 24px;
  width: 50px;
  top: calc(50% - 12px);
  background-image: url('/img/omakava_checkbox_active.svg');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center right;
  cursor: pointer;
  -webkit-transition: all 0.3s cubic-bezier(.25,.8,.25,1);
	transition: all 0.3s cubic-bezier(.25,.8,.25,1);
}

.omakava-buying-selection-box-unchecked {
  background-image: url('/img/omakava_checkbox.svg');
}



/* ALL FROM .omakava-buy-popup */

.omakava-buy-popup .one-schedule {
	min-height: 100px;
}
.omakava-buy-popup .schedule-photo {
	top: 5px;
	bottom: auto;
}
.omakava-buy-popup .schedule-first-col {
	width: 50%;
}
.omakava-buy-popup .schedule-title {
	margin: -3px 0;
}
.omakava-buy-popup .schedule-second-col {
	width: calc(50% - 10px);
}



@media (max-width: 1000px) {
  .screening-date {
    height: calc((100vw - 302px) / 7);
  }
}

@media (max-width: 949px) {
  .omakava-buy-popup-container {
    max-height: 100vh !important;
    max-width: 100vw !important;
  }
}

@media (max-width: 789px) {
	.schedule-changes-not-affected {
		width: calc(100% - 20px);
	}
}

@media (max-width: 699px) {

  .schedule-sorter {
		padding-top: 0px;
		margin-left: -2px;
	}

  .screenings-calendar {
    margin-bottom: 0;
  }

  .screening-year {
    display: none;
  }

  .screening-date-day-s {
    display: block;
  }

  .screening-date-day-l {
    display: none;
  }
}

/* ALL FROM .omakava-buy-popup */

@media (max-width: 693px) {
	.omakava-buy-popup .schedule-venue-name, .schedule-venue-hall {
		display: none;
	}
	.omakava-buy-popup .schedule-venue-name-and-hall {
		display: inline-block !important;
	}
}

@media (max-width: 600px) {
	.omakava-buy-popup .schedule-container {
		margin-bottom: -40px;
	}
	.omakava-buy-popup .schedule-time-and-duration {
		height: auto;
		width: 185px;
		position: inherit;
		text-align: left;
	}
	.omakava-buy-popup .schedule-time {
		width: auto;
		float: left;
	}
	.omakava-buy-popup .schedule-duration {
		width: auto;
		margin-top: 10px;
		margin-left: 10px;
		float: left;
	}
	.omakava-buy-popup .schedule-ending-time {
		width:auto;
		margin-top: 10px;
		margin-left: 10px;
	}

	.omakava-buy-popup .one-schedule {
		width: calc(100% - 20px);
		margin-left: 0;
	}
	.omakava-buy-popup .schedule-photo {
		height: 100px;
		width: calc(100px * 16 / 9);
	}

	.omakava-buy-popup .schedule-info-container {
		width: calc(100% - 180px);
	}

	.omakava-buy-popup .schedule-second-col {
		margin-left: 10px;
	}

	.omakava-buy-popup .schedule-third-col {
	    margin: 0;
	}

	.omakava-buying-selection-box {
		top: 10px;
	}
}

@media (max-width: 507px) {
	.omakava-buy-popup .schedule-first-col {
		width: 100%;
	}

	.omakava-buy-popup .schedule-second-col {
		width: 100%;
		margin-left: 0;
	}

	.omakava-buy-popup .schedule-programs {
		display: none;
	}
	.omakava-buy-popup .schedule-program-flex-colors {
    display: inline-block;
	}

	.omakava-buy-popup .schedule-third-col {
			width: 100%;
	}

	.schedule-changes-not-affected {
	  top: 10px;
	}
}

@media (max-width: 410px) {
	.omakava-buy-popup .schedule-photo {
		left: 5px;
	}

	.omakava-buy-popup .schedule-info-container {
		width: 100%;
		margin-top: 100px;
		padding-bottom: 0 !important;
		text-align: center;
	}
}

@media(max-width: 399px) {

  .screening-date {
    margin: 2px;
    flex-basis: calc(100% / 7 - 6px);
    max-width: calc(100% / 7 - 6px);
    font-size: 10px;
  }
}

@media (max-width: 300px) {
	.omakava-buy-popup .schedule-photo {
		top: 0;
		left: 0;
		width: calc(100%);
	}
}
