/**
 * All of the CSS for your public-facing functionality should be
 * included in this file.
 */

.awo-section .is-layout-flex {
      gap: 0;
}

.awo-order-item {
      display: flex;
      flex-direction: row;
      flex-wrap: wrap;
      justify-content: space-between;
      align-items: flex-start;
      padding: 20px;
      border: 1px solid #ccc;
      border-radius: 5px;
      margin-bottom: 10px;
      width: calc(100% - 40px)
}

.awo-order-item .awo-order-item-name {
      font-size: 20px;
      font-weight: bold;
      width: 40%;
}

.awo-order-item .awo-order-item-price {
      font-size: 20px;
      width: 50px;
}

.awo-order-item .awo-order-item-total {
      font-size: 20px;
      font-weight: bold;
      width: 50px;
}

.awo-order-item .awo-order-item-quantity {
      display: flex;
      justify-content: space-between;
      align-items: center;
      font-size: 20px;
}

.awo-order-item-minus {
      display: flex;
      justify-content: center;
      align-items: center;
      width: 30px;
      height: 30px;
      border-radius: 50%;
      background-color: #ccc;
      color: #fff;
      font-size: 20px;
      cursor: pointer;
}

.awo-order-item-plus {
      display: flex;
      justify-content: center;
      align-items: center;
      width: 30px;
      height: 30px;
      border-radius: 50%;
      background-color: #ccc;
      color: #fff;
      font-size: 20px;
      cursor: pointer;
}

.awo-order-item-modifiers {
      display: flex;
      flex-direction: column;
      justify-content: flex-start;
      align-items: flex-start;
      width: 100%;
      margin-top: 20px;
}

.awo-order-item-modifiers .awo-order-item-modifier {
      display: flex;
      flex-direction: row;
      justify-content: space-between;
      align-items: center;
      width: 100%;
      margin-bottom: 10px;
}

/* under 380px .awo-order-item children are flex-direction: column */
@media (max-width: 480px) {
      .awo-order-item {
            flex-direction: row;
            flex-wrap: wrap;
      }

      .awo-order-item .awo-order-item-name {
            width: 70%;
            order: 1;
      }

      .awo-order-item .awo-order-item-total {
            order: 2;
            width: 25%;
            margin-left: 5%;
            text-align: right;
      }

      .awo-order-item .awo-order-item-price {
            margin-top: 20px;
            order: 3;
            width: 20%;
      }

      .awo-order-item .awo-order-item-quantity {
            margin-top: 20px;
            order: 4;
      }

      .awo-order-item .awo-order-item-minus {
            margin-top: 20px;
            order: 5;
      }

      .awo-order-item .awo-order-item-plus {
            margin-top: 20px;
            order: 6;
      }

      .awo-order-item-modifiers {
            margin-top: 20px;
            order: 7;
      }
}

@media (max-width: 280px) {


      .awo-order-item .awo-order-item-name {
            width: 70%;
            order: 1;
      }

      .awo-order-item .awo-order-item-total {
            order: 2;
            margin-left: 5%;
            width: 25%;
            text-align: right;
      }
}


.awo-order-total {
      display: inline-block;
      padding: 20px;
      border: 1px solid #ccc;
      border-radius: 5px;
      margin-left: 20px;
}

.awo-order-comments {
      width: calc(100% - 40px);
      border: 1px solid #ccc;
      border-radius: 5px;
      margin-bottom: 10px;
      height: 100px;
      font-size: 15px;
      padding: 20px;
}

/* .awo-menu-selector is a nav bar on a row that is scrollable that contains the menu links as .awo-menu-selector-item
      .awo-menu-selector-item should stay at the top of the page when scrolling down
*/

.awo-menu-selector {
      display: flex;
      flex-direction: row;
      overflow-x: scroll;
      overflow-y: hidden;
      white-space: nowrap;
      -webkit-overflow-scrolling: touch;
      -ms-overflow-style: -ms-autohiding-scrollbar;
      scrollbar-width: none;
      position: relative;
      padding-left: 30px;
      padding-right: 30px;
      height: 100%;
}

.awo-menu-selector::-webkit-scrollbar {
      display: none;
}


.awo-menu-selector-item {
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      padding: 10px;
      margin-right: 20px;
      border: 1px solid #ccc;
      border-radius: 5px;
      cursor: pointer;
      width: 150px;
      height: calc(100% - 22px);
}

.awo-menu-selector-item:last-child {
      margin-right: 0;
}

.awo-menu-selector-item img {
      margin-bottom: 10px;
}

.awo-menu-selector-item:hover {
      background-color: #ccc;
}

.awo-menu-selector-item.active {
      background-color: #ccc;
}

.awo-menu-selector-item.active:hover {
      background-color: #ccc;
}

.awo-menu-selector-title {
      height: 50px;
      word-wrap: break-word;
      width: 130px;
      white-space: pre-wrap;
      text-align: center;
      line-height: 1.1;
      font-weight: bold;
}

.awo-menu-selector-container {
      display: flex;
      flex-direction: row;
      position: relative;
      width: 100%;
      height: 125px;
      margin-bottom: 20px;
      background-color: white;
}

.awo-menu-selector-main-container,
.awo-menu-selector-double-container {
      width: 100%;
      background-color: white;
}

.awo-menu-selector-left-bg {
      position: absolute;
      left: 0;
      top: 0;
      height: 100%;
      width: 30px;
      z-index: 1;
      background: linear-gradient(to left, rgba(0, 0, 0, 0), rgb(183 183 183));
}

.awo-menu-selector-right-bg {
      position: absolute;
      right: 0;
      top: 0;
      height: 100%;
      width: 30px;
      background: linear-gradient(to right, rgba(0, 0, 0, 0), rgb(183 183 183));
      z-index: 1;
}

.awo-menu-selector-left-arrow {
      position: absolute;
      left: 5px;
      top: 18px;
      height: 100%;
      z-index: 1;
}

.awo-menu-selector-right-arrow {
      position: absolute;
      right: 5px;
      top: 18px;
      height: 100%;
      z-index: 1;
}

/* .awo-existing-orders-items is a container for all the orders, .awo-existing-orders-item is container for single order and it contains .awo-existing-orders-item-timestamp, .awo-existing-orders-item-status and .awo-existing-orders-item-total */
.awo-existing-orders-items {
      display: flex;
      flex-direction: column;
      justify-content: flex-start;
      align-items: flex-start;
      width: 100%;
}

.awo-existing-orders-item {
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      align-items: center;
      width: calc(100% - 40px);
      padding: 20px;
      border: 1px solid #ccc;
      border-radius: 5px;
      margin-bottom: 10px;
      cursor: pointer;
}

.awo-existing-orders-item-timestamp {
      font-size: 15px;
      font-weight: bold;
}

.awo-existing-orders-item-status {
      font-size: 20px;
      font-weight: bold;
}

.awo-existing-orders-item-total {
      font-size: 20px;
      font-weight: bold;
}

.awo-existing-orders-item-details {
      font-size: 14px;
      font-style: italic;
}

.awo-order-details-modal {
      display: none;
      flex-direction: column;
      justify-content: flex-start;
      align-items: center;
      width: 100%;
      height: 100%;
      position: fixed;
      top: 0;
      left: 0;
      background-color: rgba(0, 0, 0, 0.5);
      z-index: 100;
      cursor: pointer;
}

.awo-order-details {
      display: flex;
      flex-direction: column;
      justify-content: flex-start;
      align-items: center;
      width: 80%;
      background-color: #fff;
      border-radius: 5px;
      padding: 20px;
      margin-top: 20px;
      overflow-y: scroll;
      -webkit-overflow-scrolling: touch;
      -ms-overflow-style: -ms-autohiding-scrollbar;
      scrollbar-width: none;
}

.awo-order-details-item {
      display: flex;
      flex-direction: row;
      flex-wrap: wrap;
      justify-content: space-between;
      align-items: center;
      width: 100%;
      margin-bottom: 10px;
}

.awo-order-details-item-label {
      font-size: 16px;
      margin-right: 20px;
}

.awo-order-details-item-value {
      font-size: 20px;
      font-weight: bold;
      text-align: right;
}

.awo-order-details-items-table {
      width: 100%;
      border-collapse: collapse;
}

.awo-order-details-items-table tr {
      border-bottom: 1px solid #ccc;
}

.awo-order-details-items-table td {
      font-size: 20px;
      font-weight: bold;
}

.awo-order-details-items-table th {
      font-weight: normal;
      text-align: left;
}

.awo-order-details-items-table td,
.awo-order-details-items-table th {
      padding: 10px;
}

.awo-order-details-close {
      font-size: 14px;
      font-style: italic;
      margin-top: 40px;
}

.awo-modal {
      display: none;
      flex-direction: column;
      justify-content: flex-start;
      align-items: center;
      width: 100%;
      height: 100%;
      position: fixed;
      top: 0;
      left: 0;
      background-color: rgba(0, 0, 0, 0.5);
      z-index: 101;
      cursor: pointer;
}

.awo-modal-content {
      display: flex;
      flex-direction: column;
      justify-content: flex-start;
      align-items: center;
      width: 80%;
      height: calc(100% - 100px);
      background-color: #fff;
      border-radius: 5px;
      padding: 20px;
      margin-top: auto;
      margin-bottom: auto;
      overflow-y: scroll;
      -webkit-overflow-scrolling: touch;
      -ms-overflow-style: -ms-autohiding-scrollbar;
      scrollbar-width: none;
}

.awo-modal-body {
      display: flex;
      flex-direction: column;
      justify-content: flex-start;
      align-items: center;
      width: 100%;
}

.awo-modal-body-modifier-categories {
      display: flex;
      flex-direction: column;
      flex-wrap: wrap;
      justify-content: flex-start;
      align-items: center;
      width: 100%;
}

.awo-modal-body-modifier-category {
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      border: 1px solid #ccc;
      border-radius: 5px;
      cursor: pointer;
      width: 100%;
      margin-bottom: 10px;
}

.awo-modal-close {
      font-size: 30px;
      font-style: italic;
      width: 100%;
      text-align: right;
      line-height: 0.5;
}

.awo-modal h2 {
      margin: 0;
      margin-bottom: 40px;
      margin-top: 30px;
}

.awo-modal-body-modifier-category h4 {
      margin: 0;
      margin-top: 15px;
}

.awo-modal-body-modifier-category-divider {
      width: 100%;
      height: 1px;
      background-color: #ccc;
      margin-top: 10px;
      margin-bottom: 10px;
}

.awo-modal-body-modifier-category-modifiers {
      display: flex;
      flex-direction: column;
      justify-content: flex-start;
      align-items: flex-start;
      width: 100%;
}

.awo-modal-body-modifier-category-modifier {
      display: flex;
      flex-direction: row;
      justify-content: space-between;
      align-items: center;
      width: calc(100% - 80px);
      padding-left: 40px;
      padding-right: 40px;
      margin-bottom: 10px;
}

.awo-modal-body-modifier-category-modifier-name {
      font-size: 16px;
      font-weight: bold;
      width: 60%;
}

.awo-modal-body-modifier-category-modifier-price {
      font-size: 16px;
      font-weight: bold;
}

.awo-modal-body-button-container {
      display: flex;
      flex-direction: row;
      justify-content: center;
      align-items: center;
      width: 100%;
      margin-top: 50px;
}

.awo-modal-body-button {
      display: flex;
      flex-direction: row;
      justify-content: center;
      align-items: center;
      width: 40%;
      height: 40px;
      border-radius: 5px;
      background-color: #ccc;
      cursor: pointer;
}

.awo-bottom-bar {
      display: flex;
      flex-direction: row;
      justify-content: space-between;
      align-items: center;
      width: 100%;
      height: 60px;
      background-color: #fff;
      border-top: 1px solid #ccc;
      border-bottom: 1px solid #ccc;
      position: fixed;
      bottom: 0;
      left: 0;
      z-index: 100;
}

.awo-bottom-bar-total {
      display: flex;
      flex-direction: row;
      justify-content: flex-start;
      align-items: center;
      width: 50%;
      height: 100%;
      padding-left: 20px;
}

.awo-bottom-bar-go-to-order-button {
      display: flex;
      flex-direction: row;
      justify-content: flex-end;
      align-items: center;
      width: 50%;
      height: 100%;
      padding-right: 20px;
      border-radius: 5px;
      background-color: #ccc;
      cursor: pointer;
      font-weight: bold;
}

.awo-warning {
      display: flex;
      flex-direction: row;
      justify-content: center;
      align-items: center;
      width: 100%;
      background-color: #fff;
      border-top: 1px solid #ccc;
      border-bottom: 1px solid #ccc;
      z-index: 100;
      padding-top: 10px;
      padding-bottom: 10px;
      font-size: 20px;
      font-style: italic;
}
