/*
  Theme Name: Horsepitality
  Description: Theme created by The Web Orchard.
  Author: The Web Orchard
  Author URI: https://www.theweborchard.com
  Text Domain: two
  Version: 0.0.1
*/

:root {
  --primary: #ae9a5e;
  --tertiary: #130A4D;
  --secondary: #d10a12;
  --site-width: 1200px;

  --product-page-width: 800px;

  --hover-opacity-amount: 0.5;
  --hover-scale-amount: 1.05;
  --hover-time: 0.5s;
}

* {
  box-sizing: border-box;
}

html {
  font-family: "Open Sans", san-serif;
  color: black;
  font-size: 16px;
}

img {
  height: auto !important;
  max-width: 100%;
  display: block;
}

a {
  transition: opacity var(--hover-time);
  text-decoration: none;
  color: inherit;
  opacity: 1;
}

a:hover {
  opacity: var(--hover-opacity-amount);
}

h1, h2, h3, h4, p {
  margin: 0;
}

:is(h1, h2, h3, h4, p, form) + :is(h1, h2, h3, h4, p, form) {
  margin-top: 1rem;
}

h1 {
  font-size: 1.5rem;
}

h2 {
  font-size: 1.25rem;
}

h3, h4 {
  font-size: 1.125rem;
}

body {
  flex-direction: column;
  min-height: 100vh;
  display: flex;
  margin: 0;
}

body.admin-bar {
  min-height: calc(100vh - 32px);
}

body > footer {
  margin-top: auto;
}

body > :is(header, main, footer) > div {
  max-width: var(--site-width);
  margin: auto;
}

@media (max-width: 800px) {
  body > :is(header, main, footer) > div {
    margin: 0 1rem;
  }
}

body > header > div {
  grid-template-columns: 400px 1fr;
  align-items: center;
  padding: 1rem;
  display: grid;
  gap: 1rem;
}

@media (max-width: 800px) {
  body > header > div {
    grid-template-columns: 1fr;
  }
}

#menu-main, #menu-main li {
  list-style: none;
  padding: 0;
  margin: 0;
}

#menu-main {
  justify-content: flex-end;
  font-size: 1.333rem;
  list-style: none;
  display: flex;
  padding: 0;
  margin: 0;
  gap: 1rem;
}

body > footer > div {
  flex-direction: column;
  align-items: center;
  padding: 1rem;
  display: flex;
  gap: 1rem;
}

#media_image-2 {
  max-width: 200px;
}

#text-2 {
  text-align: center;
}

input, select, textarea {
  background-color: white;
  border: 1px solid;
  border-radius: 0;
  padding: 0.5rem;
  cursor: pointer;
  line-height: 1;
  color: inherit;
  font: inherit;
  /*width: 100%; NOTE(suzu): this seems to cause problems so turn if off for now*/

  font-size: 1.25rem;
}

input:disabled {
  opacity: 0.25;
}

[type="radio"]:disabled + label {
  transform: scale(1) !important;
  cursor: not-allowed !important;
  opacity: 0.2 !important;
}

.input-select > select {
  width: 100%;
}

button, .button, input[type="submit"] {
  transition: opacity var(--hover-time), transform var(--hover-time);
  background-color: var(--tertiary);
  transform: scale(1);
  padding: 1rem 2rem;
  border: 1px solid;
  font-size: 1.25em;
  border-radius: 0;
  cursor: pointer;
  color: white;
  opacity: 1;
}

:is(button, .button):hover {
  transform: scale(var(--hover-scale-amount));
  opacity: var(--hover-opacity-amount);
  z-index: 10;
}

a.button {
  display: inline-block;
}

.button a {
  display: block;
}

.ticket-variations-form [type="radio"] {
  clip: rect(0,0,0,0);
  position: absolute;
}

.ticket-variations-form [type="radio"] + label {
  transition: opacity var(--hover-time), transform var(--hover-time);
  background-color: white;
  display: inline-block;
  transform: scale(1);
  font-size: 1.25rem;
  border: 1px solid;
  cursor: pointer;
  padding: 1rem;
  opacity: 1;
}

.ticket-variations-form [type="radio"] + label:hover {
  transform: scale(var(--hover-scale-amount));
  opacity: var(--hover-opacity-amount);
  z-index: 10;
}

.ticket-variations-form [type="radio"]:checked + label {
  background-color: var(--secondary);
  border-color: var(--secondary);
  color: white;
}

.ticket-variations-form button {
  align-self: end;
}

.post-type-product {
  max-width: var(--product-page-width);
  padding: 1rem;
  margin: auto;
}

.upsells {
  grid-template-columns: 1fr;
  display: grid;
  gap: 2rem;
}

.upsells > li {
  grid-template-columns: 2fr 3fr 3fr;
  display: grid;
  gap: 1rem;
}

.upsells img {
  grid-row: 1 / span 4;
}

.upsells :is(h3, div) {
  grid-column: span 2;
}

.upsells h3 {
  margin: 0;
}

.upsells .amount {
  align-self: center;
  font-size: 1.5rem;
}

.post-type-page {
  padding: 1rem;
}

.woocommerce-form-row--wide {
  align-items: center;
  display: flex;
  gap: 1rem;
}

.woocommerce-form-row--wide label {
  flex: 1;
}

.woocommerce-form-row--wide :is(input, span) {
  flex: 3;
}

.woocommerce-form-row--wide input {
  width: 100%;
}

.woocommerce-form button {
  margin-left: auto;
  display: block;
}

.u-columns > div + div {
  margin-top: 1rem;
}

.lost_password {
  text-decoration: underline;
  color: var(--tertiary);
  text-align: right;
  font-size: 1.2rem;
}

.variations {
  grid-template-columns: repeat(auto-fill, minmax(calc(var(--product-page-width)/2 - 2rem), 1fr));
  display: grid;
  gap: 1rem;
}

.variations .variation.variation label {
  flex-direction: column;
  display: flex;
  gap: 1rem;
}

.woocommerce-checkout .form-row {
  grid-template-columns: 1fr 2fr;
  align-items: center;
  display: grid;
  gap: 1rem;
}

.woocommerce-checkout :is(input, select, textarea) {
  width: 100%;
}

.woocommerce-checkout span {
  grid-column-start: 2;
}

#customer_details {
  grid-template-columns: 1fr 1fr;
  display: grid;
  gap: 1rem;
}

.select2-container--default .select2-selection--single {
  border-color: inherit;
  font-size: 1.25rem;
  border-radius: 0;
  height: auto;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
  padding: 0.5rem;
  line-height: 1;
}

.shop_table {
  margin: 1rem 0;
  width: 100%;
}

.shop_table th {
  text-align: left;
}

.shop_table tfoot th {
  padding-right: 1rem;
  text-align: right;
}

.shop_table tbody tr:nth-child(odd) {
  background-color: #f7f7f7;
}

dl.variation {
  grid-template-columns: auto 1fr;
  gap: 0.5rem 1rem;
  display: grid;
}

.variation dd {
  margin: 0;
}

#order_comments_field {
  flex-direction: column;
  align-items: stretch;
  display: flex;
}

.woocommerce-checkout h3 {
  margin: 1rem 0;
}

.woocommerce-checkout-payment :is(ul, li) {
  list-style: none;
  padding: 0;
  margin: 0;
}

.payment_methods {
  display: grid;
  gap: 1rem;
}

.payment_methods.payment_methods input {
  display: inline-block !important;
  width: auto;
}

.payment_methods p {
  margin: 1rem 0;
}

.woocommerce-checkout-payment .form-row {
  grid-template-columns: 1fr;
}

.woocommerce-invalid {
  color: var(--tertiary);
  font-weight: bold;
}

/* region BOXEN */
.boxen {
  position: relative;
  border: 1px solid;
  display: none;
}

.boxen.selected {
  display: block;
}

.boxen-left, .boxen-right {
  background-color: #312b67;
  position: absolute;
  font-size: 1.4rem;
  padding: 0.2em;
  display: flex;
  gap: 0.2em;

}

.boxen-left {
  flex-direction: column;

  top: 166px;
  left: 42px;
}

.boxen-right {
  position: absolute;

  bottom: 36px;
  left: 316px;
}

.boxen [type="radio"] + label {
  background-color: #655e8a;
  justify-content: center;
  align-content: center;
  line-height: 1;
  display: grid;
  border: none;
  padding: 0;
  color: white;

  height: 37px;
  width: 38px;
}

.boxen :disabled + label {
  background: none;
}

#box-1     + label { height: 55px; }
#box-2     + label { height: 52px; }
#box-Royal + label { height: 64px; }
#box-3     + label { height: 34px; }
#box-4     + label { height: 34px; }
#box-5     + label { height: 35px; }
#box-6     + label { width: 45px;  }
#box-7     + label { width: 41px;  }
#box-8     + label { width: 40px;  }
#box-9     + label { width: 41px;  }
#box-10    + label { width: 41px;  }
#box-11    + label { width: 42px;  }
#box-12    + label { width: 40px;  }
#box-14    + label { width: 38px;  }
#box-15    + label { width: 41px;  }
#box-16    + label { width: 42px;  }
#box-17    + label { width: 40px;  }
#box-18    + label { width: 41px;  }
#box-19    + label { width: 40px;  }
#box-20    + label { width: 42px;  }

#box-12 + label {
  margin-left: 20px;
}

#box-Royal + label span {
  transform: rotateZ(-90deg);
}

/* region responsive boxen */
@media (max-width: 1200px) {
  .boxen-left, .boxen-right {
    font-size: 1.86666667vw;
  }

  .boxen-left {
    top: 13.83333333vw;
    left: 3.5vw;
  }

  .boxen-right {
    bottom: 3vw;
    left: 26vw;
  }

  .boxen [type="radio"] + label {
    height: 3.08333333vw;
    width: 3.16666667vw;
  }

  #box-1     + label { height: 4.58333333vw; }
  #box-2     + label { height: 4.33333333vw; }
  #box-Royal + label { height: 5.33333333vw; }
  #box-3     + label { height: 2.83333333vw; }
  #box-4     + label { height: 2.83333333vw; }
  #box-5     + label { height: 2.91666667vw; }
  #box-6     + label { width:  3.75vw;       }
  #box-7     + label { width:  3.41666667vw; }
  #box-8     + label { width:  3.33333333vw; }
  #box-9     + label { width:  3.41666667vw; }
  #box-10    + label { width:  3.41666667vw; }
  #box-11    + label { width:  3.5vw;        }
  #box-12    + label { width:  3.33333333vw; }
  #box-14    + label { width:  3.16666667vw; }
  #box-15    + label { width:  3.41666667vw; }
  #box-16    + label { width:  3.5vw;        }
  #box-17    + label { width:  3.33333333vw; }
  #box-18    + label { width:  3.41666667vw; }
  #box-19    + label { width:  3.33333333vw; }
  #box-20    + label { width:  3.5vw;        }

  #box-12 + label {
    margin-left: 20px;
  }
}

@media (max-width: 800px) {
  .arena {
    display: none;
  }

  .boxen-left, .boxen-right {
    position: static;
    flex-direction: row;
    font-size: 2rem !important;
    flex-wrap: wrap;
  }
  :is(.boxen-left, .boxen-right) > div label {
    width: 2em !important;
    height: 2em !important;
  }

  #box-Royal + label {
    width: auto !important;;
  }
  #box-Royal + label span {
    transform: none;
  }
}
/* endregion */

/* endregion */

.when {
  grid-template-columns: 1fr 1fr;
  font-size: 1.3rem;
  display: grid;
  gap: 1rem;
}

.when > div {
  flex-direction: column;
  display: flex;
  gap: 1rem;
}

.when [type="radio"] + label {
  flex-direction: column;
  display: flex;
  gap: 1rem;
  height: 100%;
}

.when h3 {
  justify-content: space-between;
  font-weight: normal;
  display: flex;
  gap: 1rem;
}


.menus nav {
  background-color: white;
  position: sticky;
  padding: 1rem 0;
  display: flex;
  z-index: 10;
  gap: 1rem;
  top: 0;
}

.menus nav button {
  flex: 1;
}

.menus nav button:not(.active) {
  background-color: white;
  color: var(--tertiary);
}

.menus > form {
  flex-direction: column;
  display: flex;
  gap: 1rem;
}

.menus > form button {
  align-self: end;
}

.menus > form > div {
  scroll-snap-type: x mandatory;
  overflow-y: hidden;
  overflow-x: scroll;
  display: flex;
  gap: 1rem;
}

.menus .menu {
  border: 1px solid var(--tertiary);
  transition: max-height 0.5s;
  scroll-snap-align: start;
  max-height: 100%;
  flex: 0 0 100%;
  padding: 1rem;
}

.menus .menu:not(.active) {
  max-height: 0;
}

.menus .menu .items {
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  margin: 1rem 0;
  display: grid;
  gap: 1rem;
}

.menus .menu :is(h3, .choice) {
  grid-column: -1 / 1;
}

.menus .menu .menu-submitted {
  justify-self: center;
  grid-column: 1 / -1;
  text-align: center;
  border: 1px dashed;
  padding: 0.5rem;
  order: -1;
}

.menus .menu .key {
  justify-self: center;
  grid-column: 1 / -1;
  text-align: center;
}

.menus .menu[data-menu-type="group"] h3 {
  text-align: center;
}

.menus .menu .choice {
  border: 1px dashed var(--tertiary);
  flex-direction: column;
  margin: 1rem auto;
  font-weight: bold;
  display: flex;
  padding: 1rem;
  gap: 1rem;
}

.menus .menu-item-name + .menu-item-input {
  grid-column: span 2;
}

.menus .menu-item-name.grouped {
  grid-column: -1 / 1;
}

.menus input[disabled] {
  display: none;
}

.menus input {
  width: 100%;
}

.menus :is(.grouped, .choice) {
  text-align: center;
}

.menus .choice input {
  display: none;
}

.menus .choice label {
  cursor: pointer;
}

.menus .choice {
  color: lightgrey;
}

.menus .choice :checked + label, .menus .choice [data-qty="1"] {
  color: var(--tertiary);
}

.woocommerce-MyAccount-navigation > ul {
  align-items: stretch;
  margin: 1rem 0;
  display: flex;
  gap: 1rem;
}

.woocommerce-MyAccount-navigation :where(ul, li) {
  list-style: none;
  padding: 0;
  margin: 0;
}

.woocommerce-MyAccount-navigation li {
  flex: 1;
}

.woocommerce-MyAccount-navigation a {
  border: 1px solid;
  text-align: center;
  font-size: 1.2rem;
  padding: 0.5rem;
  display: block;
  height: 100%;
}

.woocommerce-MyAccount-navigation .is-active a {
  background-color: black;
  border-color: black;
  color: white;
}

.ticket {
  grid-template-columns: 1fr 1fr;
  background-color: #f7f7f7;
  margin: 1rem 0;
  padding: 1rem;
  display: grid;
  gap: 1rem;
}

.ticket h2 {
  grid-column: 1 / -1;
}

.ticket dl {
  grid-template-columns: auto 1fr;
  display: grid;
  gap: 0.5rem;
  margin: 0;
}

.ticket dt {
  font-weight: bold;
}

.ticket dd {
  margin: 0;
}

.ticket .button {
  grid-column: 1 / -1;
  justify-self: end;
}

.guest-pass {
  flex-direction: column;
  display: flex;
  gap: 1rem;
}

.guest-pass > div {
  grid-template-columns: auto 1fr;
  align-items: center;
  display: grid;
  gap: 0.5rem;
}

.guest-pass button {
  margin-right: auto;
}

.busy {
  opacity: 0.5;
}

.plus-minus {
  align-items: center;
  display: flex;
  margin: auto;
  gap: 0.5rem;
}

.plus-minus input {
  width: auto;
}

.give-me-margins {
  margin: 2rem;
}

[data-performance="Afternoon"] .performance {
  color: var(--primary);
}

[data-performance="Evening"] .performance {
  color: var(--tertiary);
}

.when .price {
  text-align: right;
  align-self: end;
}

.when .price em {
  font-size: 1rem;
}

.ticket ~ section h2, .ticket ~ h2 {
  margin: 2rem 0;
}

.blurb {
  grid-template-columns: 1fr 1fr;
  display: grid;
  gap: 1rem;
}

.blurb p {
  display: inline-block;
}

.menu-download {
  flex-direction: column;
  display: flex;
  gap: 1rem;
}

.post-id-1287 img {
  margin: auto;
}

.wpcf7-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.wpcf7-form p {
  margin: 0;
}

.wpcf7-radio {
  display: flex;
  gap: 1rem;
}

.wpcf7-radio input {
  display: none;
}

.wpcf7-radio .wpcf7-list-item {
  margin: 0;
}

.wpcf7-radio input + span {
  color: var(--tertiary);
  padding: 0.5rem 1rem;
  border: 1px solid;
  display: block;
}

.wpcf7-radio input:checked + span {
  background-color: var(--tertiary);
  color: white;
}

.woocommerce-message, .woocommerce-error {
  display: block;
  padding: 1rem;
  color: var(--tertiary);
  border: 1px solid;
  margin: 1rem;
}

[data-opt-change] {
  align-items: center;
  line-height: 1;
  display: flex;
  gap: 0.5rem;
}

[data-opt-change] button {
  background: none;
  cursor: pointer;
  color: inherit;
  font: inherit;
  border: none;
  padding: 0;
}

[data-opt-change].changing button  {
  font-size: 0;
}

[data-opt-change].changing button::after {
  font-size: 1rem;
  content: "save";
}

[data-opt-change="wheelchair"] input {
  display: none;
}

[data-opt-change="wheelchair"] label {
  border: 1px solid;
  padding: 0.25rem;
  color: lightgrey;
  display: none;
}

[data-opt-change="wheelchair"] input:checked + label {
  display: block;
  color: inherit;
}

[data-opt-change="wheelchair"].changing label {
  cursor: pointer;
  display: block;
}

[data-opt-change="parking"] input {
  font-size: inherit;
  background: none;
  border: none;
}

[data-opt-change="parking"].changing input {
  border: 1px solid;
  background: white;
}

.woocommerce-orders-table .button.view:first-child::after {
  content: " Paid Order";
}

.woocommerce-button.wp-element-button.button.view:first-child {
  background-color: green;
}

.menu-item-name .description {
  font-style: italic;
  font-size: 0.8rem;
}

.variation-TicketProductId {
  display: none;
}

.box-full {
  font-size: 1.2rem;
  text-align: center;
  padding-top: 1em;
}

[data-opt-change="meal"] {
  margin-top: 2rem;
  flex-direction: column;
  gap: 1rem;
  align-items: start;

  select {
    width: 100%;
  }

  button {
    border: 1px solid;
    padding: 1rem;
  }

  &.busy {
    opacity: 0.25;

    button, select {
      cursor: not-allowed;
    }
  }
}


.options {
  ul {
    margin: 1rem 0;
    margin-left: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    li {
      list-style: disc;
    }

  }
}

.product-type-simple {
  .woocommerce-product-gallery {
    float: left;
    max-width: 50vw;

    & ~ * {
      margin-left: calc(50vw + 1rem);
    }
  }

  &::after {
    content: '';
    display: table;
    clear: both;
  }

  .wc-tabs {
    display: none;
  }
}