/* Variables for the Jamix menu block */
.jamix-menu-screen {
  --blue-dark: #284B63;
  --gray: #EFEFEF;
  --white: #ffffff;
  --spacing: 2rem;
  --heading-line-height: 1.2;
  padding: var(--spacing);
  width: 100%;
  line-height: var(--heading-line-height) !important;
  font-size: 1rem;
}

/* Table styles */
.jamix-menu-screen .jamix-screen-table {
  width: 100%;
  border-collapse: collapse;
}

.jamix-menu-screen .jamix-screen-table thead {
  background: transparent;
  color: var(--blue-dark);
}

.jamix-menu-screen .jamix-screen-table th {
  padding: 1rem;
  font-size: 1.75rem !important;
}

.jamix-menu-screen .jamix-screen-date {
  font-size: 1.5rem !important;
  text-align: center;
  color: var(--blue-dark);
  margin-bottom: 2rem;
}

.jamix-menu-screen .jamix-screen-restaurant-title {
  font-size: 1.5rem !important;
  color: var(--blue-dark);
  margin-bottom: 2rem;
}

.jamix-menu-screen .jamix-screen-restaurant-logo {
  text-align: center;
  margin-bottom: 2rem;
}

.jamix-menu-screen .jamix-screen-restaurant-logo a {
  display: inline-block;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.jamix-menu-screen .jamix-screen-restaurant-logo a:hover {
  opacity: 0.8;
}

.jamix-menu-screen .jamix-screen-restaurant-logo img {
  max-width: 100%;
  height: auto;
  max-height: 10rem !important;
}

.jamix-menu-screen .jamix-screen-restaurant-row {
  background: transparent;
}

.jamix-menu-screen .jamix-screen-table tbody {
  background: transparent;
}

.jamix-menu-screen .jamix-screen-table td {
  padding: 0.5rem;
  border: none;
  vertical-align: top;
  background: transparent;
}

.jamix-menu-screen .jamix-screen-meal-title-row {
  font-weight: bold;
}

.jamix-menu-screen .jamix-screen-meal-title-row td {
  padding-top: 1.5rem !important;
}

.jamix-menu-screen .jamix-screen-meal-title-cell {
  font-size: 1.3rem !important;
  line-height: var(--heading-line-height) !important;
}

.jamix-menu-screen .jamix-screen-menu-item-row.is-last td {
  border-bottom: 1px solid var(--blue-dark);
  padding-bottom: 1.5rem;
}

.jamix-menu-screen .jamix-screen-menu-item-row.is-last:last-child td {
  border-bottom: none !important;
  padding-bottom: 0 !important;
}

.jamix-menu-screen .jamix-screen-menu-item-cell {
  padding: 0.75rem 1rem;
}

.jamix-menu-screen .jamix-screen-menu-item-name {
  display: inline;
}

.jamix-menu-screen .jamix-screen-menu-item-diets {
  margin-left: 0.5rem;
  font-size: 80%;
  opacity: 0.8;
}

.jamix-menu-screen .jamix-no-menu {
  text-align: center;
  margin-top: 2rem;
}

.jamix-menu-screen .jamix-loading-overlay {
  position: relative;
  min-height: 200px;
}

.jamix-menu-screen .jamix-loading-overlay::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: transparent;
  z-index: 5;
  display: none;
}

.jamix-menu-screen .jamix-loading-overlay.loading::before {
  display: block;
}

.jamix-menu-screen .jamix-loading-spinner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 15;
  text-align: center;
  display: none;
}

.jamix-menu-screen .jamix-loading-overlay.loading .jamix-loading-spinner {
  display: block !important;
}

.jamix-menu-screen .jamix-spinner {
  width: 2rem;
  height: 2rem;
  border: 4px solid var(--gray);
  border-top: 4px solid var(--blue-dark);
  border-radius: 50%;
  animation: jamix-spin 1s linear infinite;
  margin: 0 auto;
  display: block;
}

@keyframes jamix-spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/*
* Hide stuff from production site
*/
.jamix-screen #CookiebotWidget,
.jamix-screen iframe {
  display: none !important;
}