/* Välkomstrutan i Kostomat, delad av index.html och vikt.html. */

.welcome {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(17, 24, 39, 0.55);
}

.welcome[hidden] { display: none; }

.welcome-box {
  background: #fff;
  border-radius: 14px;
  padding: 22px;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 24px 60px rgba(16, 24, 40, 0.28);
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.welcome-box h2 { margin: 0 0 6px; font-size: 18px; }

.welcome-text { margin: 0 0 16px; font-size: 14px; line-height: 1.5; color: #4b5563; }

.welcome-actions { display: flex; flex-wrap: wrap; gap: 8px; }

.welcome-actions button {
  padding: 10px 16px;
  font-size: 14px;
  font-family: inherit;
  border: 1px solid #d0d7e2;
  border-radius: 8px;
  background: white;
  cursor: pointer;
}

.welcome-actions button:hover { background: #f2f5f9; }

.welcome-actions button.primary { background: #2563eb; border-color: #2563eb; color: white; }

.welcome-actions button.primary:hover { background: #1d4ed8; }

.welcome-actions button:disabled { opacity: 0.5; cursor: not-allowed; }

.welcome .msg { font-size: 13px; margin-top: 12px; min-height: 18px; }
.welcome .msg.ok { color: #0f766e; }
.welcome .msg.err { color: #b91c1c; }
.welcome .msg.warn { color: #b45309; }

/* Rutan med matförslag. Bygger på samma mönster som välkomstrutan ovan. */
.tips-box { max-width: 480px; }

.tips-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tips-list li {
  border: 1px solid #e6eaf0;
  border-radius: 10px;
  padding: 10px 12px;
}

.tips-add {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  background: transparent;
  border: none;
  padding: 0;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
  width: 100%;
}

.tips-add:hover .tips-name { text-decoration: underline; }

.tips-name { font-size: 14px; font-weight: 600; }

.tips-amount { font-size: 13px; color: #6b7280; font-variant-numeric: tabular-nums; flex: none; margin-left: 10px; }

.tips-add-note { font-size: 12px; color: #b45309; margin-top: 2px; }

.tips-foot { font-size: 12px; color: #8b95a5; margin: 14px 0 16px; }
