* {
  box-sizing: border-box;
}

.clearfix:after {
  content: '';
  display: block;
  clear: both;
}

.form {
  position: absolute;
  z-index: 150;
  padding: 15px 20px 15px 20px;
}

.overlap {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 99;
  width: 100%;
  height: 110%;
}

.calendar-form {
  min-width: 285px;
  padding: 0 5px;
  position: relative;
  z-index: 1;
  max-width: 1400px;
  margin: 0 auto;
}

.year_hidden,
.month_hidden {
  display: none;
}

.calendar-table {
  min-width: 275px;
  border-collapse: collapse;
  margin: 0 auto 40px;
  width: 100%;
  clear: both;
}

.calendar-table tr {
  display: flex;
  flex-direction: column;
}

.calendar-table__weekday {
  display: none;
}

.calendar-table__emptyday {
  display: none;
}

.calendar-table__usualday {
  position: relative;
  margin-bottom: -1px;
  display: block;
  vertical-align: top;
}

.calendar-table__usualday:before {
  content: '';
  position: absolute;
  display: block;
  height: 100%;
  width: 1px;
  top: 0;
  left: 50px;
}

.calendar-table__usualday:after {
  content: '';
  display: block;
  clear: both;
}

.calendar-table__usualday .clearfix {
  display: none;
}

.calendar-day__day-number {
  position: absolute;
  width: 50px;
  float: left;
}

.calendar-day__day-name {
  min-height: 60px;
  height: 100%;
  width: 50px;
  float: left;
}

.calendar-day__event-list {
  flex-grow: 1;
  position: relative;
  z-index: 10;
  margin-left: 50px;
}

.one-event {
  position: relative;
  cursor: pointer;
}

.one-event .event_props {
  display: none;
}

.one-event__header {
  display: flex;
  justify-content: space-between;
}

.one-event__name {
  margin-right: 5px;
}

.one-event__free-info {
  clear: both;
}

.edit-event-form {
  width: 100%;
  left: 0;
  min-width: 272px;
  display: none;
  position: fixed;
  height: 100%;
  overflow-y: auto;
}

.edit-event-form .form_content .form_page {
  display: none;
}

.edit-event-form .form_content .form_page_active {
  display: block;
}

.edit-event-form__event-header {
  padding: 15px 25px 15px;
  margin-left: -20px;
  margin-right: -20px;
  margin-bottom: 10px;
}

.edit-event-form__open-about {
  cursor: pointer;
}

.edit-event-form__event-descr {
  display: none;
  clear: both;
}

.edit-event-form__past-alert {
  display: none;
}

.edit-event-form__user-alert {
  float: left;
  width: 100%;
}

.edit-event-form__row:after {
  content: '';
  clear: both;
  display: block;
}

.edit-event-form__input-holder {
  text-align: center;
  position: relative;
}

.edit-event-form__input-holder:after {
  content: '';
  clear: both;
  display: block;
}

.edit-event-form__input {
  width: 100%;
  margin-bottom: 10px;
}

.edit-event-form__input-alert {
  display: none;
  position: absolute;
}

.edit-event-form__policy-checkbox {
  vertical-align: top;
  display: table-cell;
  padding: 0 10px 0px 0px;
}

.edit-event-form__policy-checkbox input[type="checkbox"] {
  margin-left: 0;
}

.edit-event-form__policy-text {
  vertical-align: middle;
  display: table-cell;
}

.edit-event-form__policy-block {
  display: table;
  margin-top: 15px;
  margin-bottom: 30px;
}

.edit-event-form__policy-missed {
  color: #af4c4c;
}

.edit-event-form__policy-block_required {
  content: "*";
  color: #af4c4c;
}

.success_message {
  top: 30%;
  left: 50%;
  margin-left: -100px;
  position: fixed;
  width: 215px;
  padding-right: 40px;
}

.success_message .close_form {
  position: absolute;
  right: 8px;
  top: 5px;
  cursor: pointer;
}

@media (min-width: 480px) {
  .calendar-form {
    padding: 0 15px;
  }

  .calendar-table__usualday:after {
    content: '';
    position: absolute;
    display: block;
    height: 100%;
    width: 1px;
    top: 0;
    left: 100px;
  }

  .calendar-day__day-number {
    position: static;
    padding-top: 19px;
  }

  .calendar-day__day-name {
    padding-top: 19px;
  }

  .calendar-day__event-list {
    margin-left: 100px;
  }
}

@media (min-width: 600px) {
  .form {
    padding: 20px 25px 25px 25px;
  }

  .edit-event-form {
    max-width: 640px;
    height: auto;
  }

  .edit-event-form__event-header {
    padding: 20px 25px 25px;
    margin-bottom: 20px;
    margin-left: -25px;
    margin-right: -25px;
  }

  .edit-event-form__input-name {
    float: left;
    width: auto;
  }

  .edit-event-form__user-alert {
    width: auto;
    max-width: 200px;
    display: inline-block;
    position: relative;
    top: 13px;
  }

  .edit-event-form__input-holder {
    text-align: right;
  }

  .edit-event-form__input {
    width: 289px;
    margin-bottom: 20px;
  }
}

@media (min-width: 900px) {
  .calendar-form {
    padding: 0 30px;
  }

  .calendar-table tr {
    display: table-row;
  }

  .calendar-table__weekday {
    display: table-cell;
  }

  .calendar-table__emptyday {
    display: table-cell;
  }

  .calendar-table__usualday .clearfix {
    display: block;
  }

  .calendar-table__usualday {
    display: table-cell;
    width: 14.28%;
    margin-bottom: 0;
    height: 60px;
  }

  .calendar-table__usualday:before,
  .calendar-table__usualday:after {
    display: none;
  }

  .calendar-day__day-number {
    margin: 1px 3px 0 0;
    float: right;
    padding-top: 0;
    text-align: right;
  }

  .calendar-day__day-name {
    display: none;
  }

  .calendar-day__event-list {
    margin-left: 0;
  }

  .edit-event-form {
    left: 50%;
    margin-left: -320px;
    position: absolute;
    top: 0;
  }
}

@media (max-width: 900px) {
  .edit-event-form {
    top: 0 !important;
  }
}

@media (max-width: 480px) {
  .keyboard-open .form {
    top: -160px !important;
    box-shadow: none;
  }

  .keyboard-open .overlap {
    background: #fff;
  }

  .keyboard-open .edit-event-form__btn-cancel {
    display: none;
  }

  .keyboard-open .edit-event-form__btn-save {
    display: none;
  }
}