* {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html {
  height: 100%;
}

body {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  font-family: "Montserrat", sans-serif;
  color: #505050;
  height: 100%;
}

select:focus,
input:focus {
  outline: 0;
}

a {
  text-decoration: none;
}

.m-header {
  border-bottom: 1px solid #f5f5f5;
  padding: 16px 0;
}

.m-logo {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 9px;
  font-size: 16px;
  line-height: 1;
  font-weight: 700;
  text-transform: uppercase;
  color: #336666;
}
.m-logo:visited {
  color: #336666;
}
.m-logo:hover {
  color: #336666;
}
.m-logo:active {
  color: #336666;
}
.m-logo span {
  font-family: "Lucida Handwriting Std", serif;
  font-size: 32px;
}

.m-main {
  height: 100%;
}

.m-btn {
  border: 0;
  background-color: transparent;
  padding: 0;
}
.m-btn--primary {
  display: block;
  width: 100%;
  font-size: 14px;
  line-height: 1;
  letter-spacing: 1px;
  text-align: center;
  text-transform: uppercase;
  color: #fff;
  background-color: #4CAF50;
  border-radius: 8px;
  padding: 16px 8px;
}
.m-btn--primary:visited {
  color: #fff;
}
.m-btn--primary:hover {
  color: #fff;
}
.m-btn--primary:active {
  color: #fff;
}
.m-btn--ghost {
  display: block;
  width: 100%;
  font-size: 14px;
  line-height: 1;
  font-weight: 500;
  text-align: center;
  text-transform: uppercase;
  color: #4CAF50;
  background-color: #fff;
  border: 1px solid #4CAF50;
  border-radius: 8px;
  padding: 8px;
}
.m-btn--ghost:visited {
  color: #4CAF50;
}
.m-btn--ghost:hover {
  color: #4CAF50;
}
.m-btn--ghost:active {
  color: #4CAF50;
}
.m-btn--ghost.danger {
  color: red;
  border: 1px solid red;
  pointer-events: none;
}
.m-btn--ghost.danger:visited {
  color: red;
}
.m-btn--ghost.danger:hover {
  color: red;
}
.m-btn--ghost.danger:active {
  color: red;
}
.m-btn--ghost:hover {
  color: #fff;
  background-color: #4CAF50;
}
.m-btn--ghost:hover:visited {
  color: #fff;
}
.m-btn--ghost:hover:hover {
  color: #fff;
}
.m-btn--ghost:hover:active {
  color: #fff;
}
.m-btn--delete {
  font-size: 16px;
  line-height: 1;
  color: #505050;
}
.m-btn--delete:visited {
  color: #505050;
}
.m-btn--delete:hover {
  color: #505050;
}
.m-btn--delete:active {
  color: #505050;
}

.m-nav {
  padding: 16px 0;
}
.m-nav__inner {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: space-between;
}
.m-nav__inner p {
  margin: 0;
}
.m-nav__actions {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  gap: 16px;
}
.m-nav__actions a {
  display: block;
  color: #505050;
}
.m-nav__actions a:visited {
  color: #505050;
}
.m-nav__actions a:hover {
  color: #505050;
}
.m-nav__actions a:active {
  color: #505050;
}

.m-section {
  padding: 40px 0;
}
.m-section strong {
  font-weight: 600;
}
.m-section__inner {
  height: 100%;
  padding: 0 12px;
}
.m-section__title {
  color: #336666;
  margin-bottom: 20px;
}
.m-section__title.event {
  margin-bottom: 4px;
}
.m-section__info {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  gap: 16px;
  margin-bottom: 40px;
}
.m-section__info span {
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: baseline;
  -ms-flex-align: baseline;
  align-items: baseline;
  gap: 4px;
}
.m-section__info span i {
  width: 20px;
  text-align: center;
}
.m-section__info span br {
  display: none;
}
.m-section__back {
  color: #505050;
  text-decoration: underline;
}
.m-section__back:visited {
  color: #505050;
}
.m-section__back:hover {
  color: #505050;
}
.m-section__back:active {
  color: #505050;
}
.m-section--map {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
}
@media screen and (max-width: 767px) {
  .m-section {
    padding: 20px 0;
  }
  .m-section__title.event {
    margin-bottom: 20px;
  }
  .m-section__info {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-align: start;
    -ms-flex-align: start;
    align-items: start;
    gap: 4px 16px;
    margin-bottom: 20px;
  }
  .m-section__info span {
    gap: 8px;
  }
  .m-section__info span br {
    display: block;
  }
}

.m-map {
  --cellWidth: 32px;
  --cellHeight: 24px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  gap: 1px;
  border: 1px solid #ccc;
  border-radius: 8px;
  background-color: #fff;
  padding: 16px 0 32px;
}
.m-map__stage {
  width: calc(var(--cellWidth) * 19);
  font-size: 20px;
  line-height: 1;
  text-transform: uppercase;
  text-align: center;
  margin: 0 auto 16px auto;
  padding: 16px;
}
.m-map__row {
  position: relative;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  gap: 1px;
}
.m-map__row span {
  position: absolute;
  left: var(--cellWidth);
  display: block;
  width: var(--cellWidth);
  font-size: 12px;
  line-height: 1;
  font-weight: 600;
  text-align: center;
  color: red;
}
.m-map__row span:last-of-type {
  left: unset;
  right: var(--cellWidth);
}
.m-map__seat {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  width: var(--cellWidth);
  height: var(--cellHeight);
  font-size: 12px;
  line-height: 1;
  border: 1px solid #505050;
  cursor: pointer;
}
.m-map__seat.empty {
  border: 0;
  cursor: default;
}
.m-map__seat.active {
  color: #fff;
  background-color: #4CAF50;
  pointer-events: none;
}
.m-map__seat.ordered {
  color: #fff;
  background-color: red;
  pointer-events: none;
}
.m-map__checkbox {
  position: relative;
  width: var(--cellWidth);
  height: var(--cellHeight);
  border: 1px solid #ccc;
}
.m-map__checkbox label {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  font-size: 12px;
  line-height: 1;
  font-weight: 500;
  cursor: pointer;
}
.m-map__checkbox input {
  display: none;
}
.m-map__checkbox input:checked + label {
  color: #fff;
  background-color: #4CAF50;
  pointer-events: none;
}
.m-map__checkbox input.notavailable + label {
  background-color: red;
  color: #fff;
  pointer-events: none;
}
.m-map__checkbox input.blocked + label {
  background-color: #4CAF50;
  color: #fff;
  pointer-events: none;
}
.m-map__checkbox input:disabled + label {
  cursor: default;
}
.m-map--edit {
  margin-bottom: 40px;
}
@media screen and (max-width: 767px) {
  .m-map {
    --cellWidth: 12px;
    --cellHeight: 12px;
    gap: 2px;
    margin-bottom: 20px;
  }
  .m-map__row {
    gap: 2px;
  }
  .m-map__row span {
    font-size: 8px;
  }
  .m-map__checkbox {
    border-radius: 50%;
    overflow: hidden;
  }
  .m-map__checkbox label {
    font-size: 0;
    line-height: 0;
  }
}

.m-aside {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  border: 1px solid #ccc;
  background-color: #f5f5f5;
  border-radius: 8px;
  padding: 16px;
}
.m-aside__title {
  font-size: 16px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-bottom: 1px solid #ccc;
  margin: 0;
  padding: 0 0 8px 0;
}
.m-aside__tickets {
  -webkit-box-flex: 1;
  -ms-flex: 1;
  flex: 1;
  overflow-y: scroll;
  padding-bottom: 8px;
}
.m-aside__message span {
  display: block;
  color: red;
}
.m-aside__footer {
  border-top: 1px solid #ccc;
  margin-top: auto;
  padding-top: 8px;
}

.m-ticket {
  position: relative;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  gap: 12px 0;
  background-color: #fff;
  border-radius: 8px;
  margin-bottom: 8px;
  padding: 16px;
}
.m-ticket h3 {
  font-size: 14px;
  line-height: 1;
  font-weight: 600;
  margin: 0;
}
.m-ticket p {
  font-size: 14px;
  line-height: 1;
  margin: 0;
}
.m-ticket select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  width: auto;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 14px;
  color: #505050;
  background: transparent;
  background-image: url("../icons/arrow-down-solid.svg");
  background-repeat: no-repeat;
  background-position: calc(100% - 8px) center;
  background-size: 11px;
  padding: 4px 8px;
  cursor: pointer;
}
.m-ticket .m-btn {
  position: absolute;
  top: 16px;
  right: 16px;
}
.m-ticket:last-of-type {
  margin: 0;
}
.m-ticket--checkout {
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
  -ms-flex-direction: row;
  flex-direction: row;
  gap: 12px;
  border: 1px solid #ccc;
}
@media screen and (max-width: 767px) {
  .m-ticket--checkout:last-of-type {
    margin-bottom: 20px;
  }
}

.m-form__fieldset {
  margin-bottom: 32px;
}
.m-form__fieldset label {
  display: block;
  font-size: 12px;
  line-height: 1;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
}
.m-form__fieldset input[type=text],
.m-form__fieldset input[type=email] {
  width: 100%;
  font-size: 14px;
  line-height: 1;
  color: #505050;
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 8px;
  margin-bottom: 16px;
}
.m-form__fieldset:last-of-type {
  margin: 0;
}
.m-form__recap {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 32px;
}
.m-form__recap .m-form__fieldset {
  -webkit-box-flex: 1;
  -ms-flex: 1;
  flex: 1;
}
.m-form__title {
  font-size: 24px;
  line-height: 1;
  margin-bottom: 16px;
}

.m-table {
  width: 100%;
}
.m-table tr {
  border-bottom: 1px solid #ccc;
}
.m-table tr th,
.m-table tr td {
  padding: 16px;
}
.m-table tr th {
  font-size: 14px;
  line-height: 1;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #336666;
}
.m-table tr td {
  font-size: 16px;
  line-height: 1.5;
}
.m-table tr:nth-child(even) {
  background-color: #f5f5f5;
}

.m-search {
  margin-bottom: 32px;
}
.m-search input {
  width: 100%;
  font-size: 14px;
  line-height: 1;
  color: #505050;
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 8px;
}

.m-list {
  padding: 0;
  margin: 0;
  list-style-type: none;
}
.m-list li {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: space-between;
  gap: 16px 32px;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  border-width: 1px 0 1px 0;
  border-style: solid;
  border-color: #ccc;
  padding: 16px 16px 16px 0;
}
.m-list li div {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  gap: 32px;
}
@media screen and (max-width: 767px) {
  .m-list li {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-align: start;
    -ms-flex-align: start;
    align-items: start;
  }
  .m-list li div {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-align: start;
    -ms-flex-align: start;
    align-items: start;
    gap: 8px;
  }
  .m-list li div .m-list__map {
    display: none;
  }
}