@import url("../../../shared/css/base.css");
@import url("../../../shared/css/toidud-base.css");
@import url("../../../shared/css/backgrounds.css");

html {
  font-size: max(var(--base), 8px) !important;
}

body { 
  background-size: 300%;
}

/* Plus Kohvikud: larger menu – reduce padding for more content space */
.wrap {
  padding: 1rem 1rem 0.4rem;
}

/* Slightly larger typography for better readability */
.name {
  font-size: 3.2rem;
}
.section h2 {
  font-size: 1.8rem;
}
.title-text {
  font-size: 2.5rem;
}
.title-en {
  font-size: 2.3rem;
}
.price-big {
  font-size: 3rem;
}
.price-small {
  font-size: 2.8rem;
}
.diet-legend-item {
  font-size: 1.8rem;
}

@media (max-height: 2200px) {
  .name {
    font-size: 3.4rem;
  }
  .section h2 {
    font-size: 2.2rem;
  }
  .title-text {
    font-size: 2.9rem;
  }
  .title-en {
    font-size: 2.7rem;
  }
  .price-big {
    font-size: 2.7rem;
  }
  .price-small {
    font-size: 2.5rem;
  }
}

/* Loader text size for toidud */
#loader .loader-text {
  font-size: 1rem;
}

/* Spinner size for toidud */
#loader .spinner {
  width: 32px;
  height: 32px;
}

/* Info margin for toidud */
.info {
  margin: 0.8rem auto 0;
}

body {
  cursor: auto !important;
  overflow-y: auto;
}

body.empty-state .brand img {
  height: 4rem;
}

/* If this page is embedded in an iframe, contain scrolling inside iframe content. */
html.embedded-frame,
body.embedded-frame {
  height: 100%;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
}

body.embedded-frame {
  min-height: 100%;
}

.iframe-activate-overlay {
  position: fixed;
  left: 50%;
  bottom: 1.2rem;
  transform: translateX(-50%);
  z-index: 12000;
  border: 0;
  border-radius: 999px;
  padding: 0.9rem 1.4rem;
  font: inherit;
  font-size: 2.2rem;
  font-weight: 700;
  color: #0b0d10;
  background: rgba(242, 194, 0, 0.95);
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.45);
  cursor: pointer;
  max-width: calc(100vw - 2rem);
  white-space: nowrap;
  transition: opacity 0.18s ease;
}

.iframe-activate-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

/* Week menu tabs (date selector) – fixed scale, not affected by root --base; sticky like a header */
.week-tabs {
  position: sticky;
  top: 0;
  z-index: 10;
  font-size: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 0 0 0 4px;
  list-style: none;
  border-bottom: 2px solid var(--border, #ddd);
  background: var(--bg, #fff);
  box-shadow: 0 1px 0 var(--border, #ddd);
}

.week-tab {
  font-size: 1em;
  padding: 6px 6px;
  margin: 0;
  border: none;
  border-bottom: 3px solid transparent;
  background: transparent;
  color: var(--text, #333);
  cursor: pointer;
  border-radius: 2px 2px 0 0;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.week-tab:hover {
  background: rgba(0, 0, 0, 0.05);
}

.week-tab.active {
  font-weight: 600;
  border-bottom-color: var(--accent, #0066cc);
  background: rgba(0, 102, 204, 0.08);
}