/* Loading Style */
.inline-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.inline-loading .spinner {
  width: 20px;
  height: 20px;
  border: 3px solid #ddd;
  border-top: 3px solid #3498db;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
/* END Loading Style */


/* Custom Styles */
.line-clamp-1 {
  display: -webkit-box;
  -webkit-line-clamp: 1; /* Number of lines to show */
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2; /* Number of lines to show */
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3; /* Number of lines to show */
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-4 {
  display: -webkit-box;
  -webkit-line-clamp: 4; /* Number of lines to show */
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Global Page */

.select2-container {
  width: 100% !important;
  margin-bottom: -1px;
}

.select2-container--default .select2-selection--single {
  background-color: transparent;
  text-align: center;
  height: 40px;
}

.select2-results__option--selectable {
  background-color: #121212;
}

.select2-container--default .select2-results__option--selected {
  background-color: #5897fb;
  opacity: .75;
}

.select2-container--focus {
  border-radius: 4px;
  box-shadow: 0 0 0 2px #fff;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
  color: #f7fafc;
  line-height: 38px;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
  display: none !important;
}

a,
a:link,
a:visited,
a:active,
a:hover,
a:active,
a:focus {
  border: none !important;
  outline: 0 !important;
}

.modal {
  position: fixed;
  z-index: 50;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: rgba(0, 0, 0, 0.7);
}

/* Styles for the modal content */
.modal-content {
  background-color: #121212;
  color: #f7fafc;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0px 0px 20px 5px #737373;
  overflow: hidden;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.modal-medium {
  /* margin: auto; */
  width: 80%;
  max-height: 75%;
}

.modal-large {
  /* margin: auto; */
  width: 90%;
  max-height: 90%;
}

.section-container {
  height: calc(100vh - 40px);
}

/* #qrcode-3 > img {
  background-color: rgb(255, 255, 255);
  border-radius: 0.25rem;
  padding: 2.5px;
} */

/* Media query for responsiveness */
.tester {
  color: #fff;
}

/* sm */
@media screen and (min-width: 640px) {
  .tester {
    color: red;
  }
}

/* landscape smartphone */
@media screen and (min-width: 768px) and (max-height: 480px) {
  .tester {
    color: green;
  }

  header nav {
    padding: 0.25rem !important;
  }

  .navbar-logo {
    max-height: 2.25rem;
  }

  .padding-wh {
    padding-top: 0;
  }

  .padding-g {
    padding-top: 0;
    padding-right: 3rem;
    margin-top: 2rem;
  }

  .text-xs {
    font-size: 0.6em;
  }

  .text-xxs {
    font-size: 0.5em;
  }

  .main-logo {
    height: 6rem;
  }
  
  .logo-width {
    width: 30%;
  }
  
  .greeting-width {
    width: 70%;
  }

  #greeting-certificates img {
    width: 5rem;
  }

  .information-head {
    display: flex;
    flex-direction: row-reverse;
  }

  .information-head > .flex {
    width: auto;
  }

  .information-head > .flex .h-24 {
    height: 4rem;
  }

  .information-head > .flex .h-20 {
    height: 4rem;
  }

  .icon-wifi {
    width: 1.25rem !important;
    height: 1.25rem !important;
  }

  .content-qr .text-qr{
    padding-right: 2rem !important;
  }

  canvas {
    width: 50px;
    height: 50px;
  }

  #list-menu {
    overflow-x: auto !important;
  }
}

/* md */
@media screen and (min-width: 768px) {
  .tester {
    color: blue;
  }
}

/* lg */
@media screen and (min-width: 1024px) {
  .tester {
    color: yellow;
  }

  .modal-medium {
    /* margin: auto; */
    width: 70%;
    max-height: 90%;
  }

  .modal-large {
    /* margin: auto; */
    width: 90%;
    max-height: 90%;
  }
}

/* xl */
@media screen and (min-width: 1280px) {
  .tester {
    color: purple;
  }

  .modal-medium {
    /* margin: auto; */
    width: 70%;
    max-height: 90%;
  }

  .modal-large {
    /* margin: auto; */
    width: 85%;
    max-height: 80%;
  }

  .section-container {
    height: calc(100vh - 48px);
  }
}

/* 2xl */
@media screen and (min-width: 1536px) {
  .tester {
    color:cyan;
  }
}

.selected-header-button {
  box-shadow: 0 0 0 2px #fff;
  background-color: #121212 !important;
}

.go-to-home-page.active {
  box-shadow: 0 0 0 2px #fff;
  background-color: #ffffff !important;
  color: #000000 !important;
  font-size: 75%;
}

.selected-modal-my-cart {
  box-shadow: 0 0 0 3px #fff;
}

.selected-modal-confirm-clear-cart {
  box-shadow: 0 0 0 3px #fff;
}

.selected-modal-confirm-checkout-order {
  box-shadow: 0 0 0 3px #fff;
}

.selected-modal-checkout-message {
  box-shadow: 0 0 0 3px #fff;
}

.has-selected-modal-my-inbox {
  box-shadow: 0 0 0 3px #fff;
}

.selected-modal-my-inbox:not(.has-selected-modal-my-inbox > button) {
  box-shadow: 0 0 0 3px #fff;
}

/* li:has(> .selected-modal-my-inbox) {
  box-shadow: 0 0 0 3px #fff;
}

.selected-modal-my-inbox:not(li > button) {
  box-shadow: 0 0 0 3px #fff;
} */

/* Directory Page */

.selected-directory {
  font-weight: bold;
}

.selected-directory > a {
  background-color: rgb(23 23 23 / 0.8);
  color: #fff;
}

.aside-container {
  opacity: 0.5;
}

.aside-container.active {
  opacity: 1;
}

.content-container {
  opacity: 0.5;
}

.content-container.active {
  opacity: 1;
}

#goToHomePage.active {
  background-color: rgb(10 10 10 / 0.8);
  box-shadow: 0 0 0 2px #fff;
  color: #fff;
  /* padding: 4px 16px 4px 8px; */
}



.goToHomePageNew.active {
  padding: 4px 16px 4px 8px;
}

/* Home Page */

.selected-menu {
  border-width: 4px;
  border-color: white;
  color: white;
  background-color: rgb(23 23 23 / 0.8);
}

.selected-modal-wake-up-call {
  box-shadow: 0 0 0 3px #fff;
}

.selected-modal-message-wake-up-call {
  box-shadow: 0 0 0 3px #fff;
}

/* Menu Page */

.selected-food-category > div {
  background-color: rgb(10 10 10);
  box-shadow: 0 0 0 3px #fff;
  color: #fff;
}

.selected-food {
  background-color: rgb(10 10 10);
  box-shadow: 0 0 0 3px #fff;
  color: #fff;
}

.selected-modal-food-detail {
  box-shadow: 0 0 0 3px #fff;
}

.selected-modal-error-multiple-currency {
  box-shadow: 0 0 0 3px #fff;
}

#food-categories {
  opacity: 0.5;
}

#food-categories.active {
  opacity: 1;
}

#foods {
  opacity: 0.5;
}

#foods.active {
  opacity: 1;
}

#goToHomePage.active {
  background-color: rgb(10 10 10);
  box-shadow: 0 0 0 2px #fff;
  color: #fff;
  /* padding: 4px 16px 4px 8px; */
}

.goToHomePageNew.active {
  padding: 4px 16px 4px 8px;
}

/* Offer Page */

.swiper {
  border-radius: 10px;
}

#goToHomePage.active {
  background-color: rgb(10 10 10);
  box-shadow: 0 0 0 2px #fff;
  color: #fff;
  /* padding: 4px 16px 4px 8px; */
}

.goToHomePageNew.active {
  padding: 4px 16px 4px 8px;
}