:root {
  --redh-background-image: none;
}

.redh__login .inner {
  width:75%;
  text-align:left;
  font-size:1.25em;
  .line {
    width:90px;
    background-color:#B96E2B;
    background-color:var(--redh-secondary-orange);
  }
  .title {
    font-size:1.25em;
    font-weight:bold;
    padding-top:5px;
  }
}

.redh__login .inner .banner {
  text-align:center;
  .huge {
      font-size:3em;
  }
}

.redh__login .inner .form-btn-row {
  a, input {
    text-align: left;
  }
  select {
    display: block;
    width: auto;
    text-align: left;
    text-decoration: none;
    font: var(--redh-typography-font-s-bold-bolder);
    color: var(--redh-primary-soft-black);
    background: var(--redh-primary-white);
    border: 1px solid var(--redh-stroke-gray);
    border: 1px solid #1f1f1f1f;
    border-radius: 28px;
    transition: all 0.2s;
    padding: 10px 23px;
    &:hover {
      @media (min-width: 768.5px) {
        background: var(--redh-header-gradient-left);
        border-color: var(--redh-header-gradient-right);
        color: var(--redh-primary-soft-black);
      }
    }
  }
  .submit-btn {
    padding-top:30px;
    padding-left:calc(75%/2 + 23px);
    input {
      width:25%;
      text-align: center;
    }
  }
}

.event-container {
  margin: 0;
  padding: 0 0 4em 0;
  overflow: hidden;
  display: flex;
  align-items: start;
  flex-direction: column;
  @media (min-width: 768.5px) {
    flex-direction: row;
    padding-bottom: 2em;
  }
  width: 100%;
  .event-left {
    min-width: 400px;
    min-height: 300px;
  }
  .event-right {
    padding-left: 10px;
    width: auto;
  }
}

.event-card {
  box-shadow: 0 rpx 8px 0 rgba(0, 0, 0, 0.2);
  max-height: 400px;
  width: 100%;
  height: 300px;
  margin: 0;
  padding: 0;
  text-align: left;
  font-family: arial;
  display: flex;
}

.event-container .event-left img {
  width: 400px;
  height: 300px;
  vertical-align: center;
  object-fit: contain;
}

.event-container .event-right .event-title {
  font-size: 2em;
  font-weight: bold;
  width: auto;
}

.event-container .event-right .event-description {
  padding: 10px 0 0 0;
  width: auto;
}

.hide-div {
  display: none;
}

.show-div {
}

.event-container .event-right button {
  border: none; /* Remove default border */
  outline: 0; /* Remove default outline */
  margin: 15px 0 0 25px;
  padding: 12px;
  color: white;
  background-color: #000;
  text-align: center;
  cursor: pointer; /* Change cursor on hover */
  xwidth: 100%; /* Make the button fill the width */
  font-size: 18px;
}

.event-container .event-right .event-sold-out {
  border: none; /* Remove default border */
  outline: 0; /* Remove default outline */
  margin: 15px 0 0 25px;
  padding: 12px;
  color: white;
  background-color: #000;
  text-align: center;
  font-size: 18px;
  width: 125px;
}

.product-card {
  box-shadow: 0 rpx 8px 0 rgba(0, 0, 0, 0.2);
  max-width: 300px;
  margin: auto;
  text-align: center;
  font-family: arial;
}

.product-card .image {
}

.product-card .image img {
  width: 280px;
  height: 200px;
  object-fit: contain;
}

.product-card .name {
  h3 {
    padding: 12px 0 0 0;
    margin: 0;
  }
  p {
    padding: 0;
    margin: 0;
    font-size: .75em;
  }
}

.product-card .description {
  height: 4em;
  vertical-align: top;
  margin: 0;
  padding: 3px;
  overflow: hidden;
}

.product-card .price {
  color: grey;
  font-size: 22px;
  margin: 0;
  padding: 0;
}

.product-card button {
  border: none; /* Remove default border */
  outline: 0; /* Remove default outline */
  padding: 12px;
  color: white;
  background-color: #000;
  text-align: center;
  cursor: pointer; /* Change cursor on hover */
  width: 100%; /* Make the button fill the width */
  font-size: 18px;
}

.product-card button:hover {
  opacity: 0.7; /* Reduce opacity on hover */
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 10px));
  @media (max-width: 768.5px) {
    grid-template-columns: 100%;
  }
  grid-gap: 1rem; /* Add space between items */
}

.product-card:hover {
  border: 1px solid #fff; /* Example: Change border on hover */
  box-shadow: 0 5px 40px rgba(0,0,0,.3); /* Example: Add a shadow on hover */
}

.xpage-container {
  margin: 0;
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  xwidth: auto;
  max-width: 875px;
  .xpage-tiles {
    xflex-grow: 1;
    xmin-height: var(--redh-min-content-height);
    xmin-height: 0;
    flex: 1;
    padding-bottom: 20px;
  }
  .xpage-order-summary {
    flex: 1;
    xwidth: auto;
    xmax-width: 870px;
    height: auto;
    border: 2px solid var(--redh-header-gradient-right);
    background-color: var(--redh-primary-white);
    color: var(--redh-header-gradient-right);
  }
}

.order {
  font-size: 18px;
  padding: 5px;
  display: flex;
  flex-direction: column;
  height: calc(100% - 10px);
}

.order .order-upper {
  flex-grow 1;
}

.order .order-lower {
  margin: 0;
  padding: 10px 0 0 0;
  display: flex;
  flex-direction: column;
  height: 100%;
  .bottom-menu-spacer {
    flex-grow: 1;
    height: auto;
    text-align: center;
    button {
      border: none; /* Remove default border */
      outline: 0; /* Remove default outline */
      padding: 12px;
      color: white;
      background-color: #000;
      text-align: center;
      cursor: pointer; /* Change cursor on hover */
      width: 100%; /* Make the button fill the width */
      font-size: 18px;
    }
  }
  .bottom-menu-items {
    text-align: center;
    height: auto;
    font-size: .8em;
  }
}

.order .line-item {
  padding: 5px 0;
  .name
  {
    padding-bottom: 3px;
    flex-grow: 1;
    width: auto;
    display: inline-block;
  }
  .price
  {
    float: right;
    text-align: right;
    width: 80px;
    display: inline-block;
  }
  .data
  {
    font-size: .8em;
    padding-left: 20px;
  }
}

.order .title {
  font-size: 30px;
  text-align: center;
}

.product-card .quantity-selector {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 10px 0;
  gap: 5px;
  font-family: arial;
}

.product-card .quantity-selector .qty-btn {
  width: 32px;
  height: 32px;
  font-size: 20px;
  background-color: #f0f0f0;
  border: 1px solid #ccc;
  cursor: pointer;
  color: #333;
  transition: background-color 0.2s ease;
  margin: 0;
  padding: 0;
}

.product-card .quantity-selector .qty-btn:hover {
  background-color: #ddd;
}

.product-card .quantity-selector .qty-input {
  width: 50px;
  height: 30px;
  text-align: center;
  font-size: 16px;
  border: 1px solid #ccc;
  padding: 0;
  margin: 0;
}

.subtotal {
  .subtotal-left {
    padding-bottom: 3px;
    width: auto;
    display: inline-block;
  }
  .subtotal-right {
    float: right;
    text-align: right;
    width: 80px;
    display: inline-block;
  }
  .subtotal-small {
    font-size:.8em;
  }
}

hr.dashed {
  border: 0px;
  border-top: 2px dashed;
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    /* display: none; <- Crashes Chrome on hover */
    -webkit-appearance: none;
    margin: 0; /* <-- Apparently some margin are still there even though it's hidden */
}

input[type=number] {
    -moz-appearance:textfield; /* Firefox */
}

/*** REWRITE ***/

.page-container {
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  max-width: 875px;
  @media (max-width: 920px)
  {
    max-width: 400px;
  }
}

.page-tiles,
.page-order-summary {
  flex: 1;
  position: relative;
}

.tiles-grid {
  margin: auto;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 10px));
  max-width: 875px;
  @media (max-width: 920px)
  {
    grid-template-columns: 100%;
    width: 280px;
  }
  grid-gap: 1rem;
}

.tiles-grid .tiles-card {
  box-shadow: 0 rpx 8px 0 rgba(0, 0, 0, 0.2);
  max-width: 300px;
  height: 100%;
  xmargin: auto;
  align-self: flex-start;
  text-align: center;
  font-family: arial;
}

/* Testing bigger card */
/*
.tiles-grid {
  max-width: 100%;
}
*/

.tiles-grid .tiles-card:hover {
  border: 1px solid #fff; /* Example: Change border on hover */
  box-shadow: 0 5px 40px rgba(0,0,0,.3); /* Example: Add a shadow on hover */
}

.tiles-grid .tiles-card .image img {
  width: 100%;
  height: 200px;
  object-fit: contain;
}

.tiles-grid .tiles-card .name {
  h3 {
    padding: 12px 0 0 0;
    margin: 0;
  }
  p {
    padding: 0;
    margin: 0;
    font-size: .75em;
  }
}

.tiles-grid .tiles-card .description {
  height: 8em;
  font-size: .8em;
  vertical-align: top;
  margin: 0;
  padding: 3px;
  overflow: auto;
  text-align: left;
}

.tiles-grid .tiles-card .price {
  color: grey;
  font-size: 22px;
  margin: 0;
  padding: 0;
}

.tiles-grid .tiles-card button {
  border: none;
  outline: 0;
  padding: 12px;
  color: white;
  background-color: #000;
  text-align: center;
  cursor: pointer;
  width: 100%;
  font-size: 18px;
}

.tiles-grid .tiles-card button:hover {
  opacity: 0.7; /* Reduce opacity on hover */
}

.tiles-grid .tiles-card .quantity-selector {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 10px 0;
  gap: 5px;
  font-family: arial;
}

.tiles-grid .tiles-card .quantity-selector .qty-btn {
  width: 32px;
  height: 32px;
  font-size: 20px;
  background-color: #f0f0f0;
  border: 1px solid #ccc;
  cursor: pointer;
  color: #333;
  transition: background-color 0.2s ease;
  margin: 0;
  padding: 0;
}

.tiles-grid .tiles-card .quantity-selector .qty-btn:hover {
  background-color: #ddd;
}

.tiles-grid .tiles-card .quantity-selector .qty-input {
  width: 50px;
  height: 30px;
  text-align: center;
  font-size: 16px;
  border: 1px solid #ccc;
  padding: 0;
  margin: 0;
}

.page-order-summary {
  padding: 5px;
  display: flex;
  flex-direction: column;
}

.page-order-summary .order-summary {
  margin: 0;
  padding: 50px 0 0 0;
  display: flex;
  flex-direction: column;
  height: 100%;
  hr {
    width: 100%;
  }
}

.page-order-summary .order-summary .order-summary-title {
  font-size: 30px;
  text-align: center;
}

.page-order-summary .order-summary .order-summary-row {
  padding: 5px 0;
  .name
  {
    padding-bottom: 3px;
    flex-grow: 1;
    width: auto;
    display: inline-block;
  }
  .amount
  {
    float: right;
    text-align: right;
    width: 80px;
    display: inline-block;
  }
  .data
  {
    font-size: .8em;
    padding-left: 20px;
  }
}

.page-order-summary .order-summary .checkout-button {
  padding: 10px 0;
  flex-grow: 1;
  height: auto;
  text-align: center;
}

.page-order-summary .order-summary .checkout-button button {
  border: none;
  outline: 0;
  padding: 12px;
  color: white;
  background-color: #000;
  text-align: center;
  cursor: pointer;
  width: 100%;
  width: 280px;
  font-size: 18px;
}

.page-order-summary .order-summary .bottom-menu {
  text-align: center;
  height: auto;
  font-size: .8em;
}
