/* Typography */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: #FFF8E7;
  color: #333;
  line-height: 1.6;
  min-height: 100vh;
}

/* Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  padding: 12px 1rem;
  background-color: #FFFFFF;
  border-bottom: 1px solid #E8E8E8;
  margin-bottom: 0;
}

.navbar__link {
  text-decoration: none;
  color: #333;
  padding: 6px 0;
  font-size: 1rem;
  font-weight: 400;
  transition: color 0.2s ease;
  position: relative;
}

.navbar__link:hover {
  color: #7BA272;
}

.navbar__link.active {
  font-weight: 600;
  color: #7BA272;
  border-bottom: 2px solid #7BA272;
}

/* Headings */
h1 {
  color: #7A5E47;
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

/* Centered h1 and reduced spacing for pantry items page when followed by onboarding card */
h1 + .onboarding-card {
  margin-top: 0.5rem;
}

/* Center and reduce spacing for h1 when followed by onboarding card */
/* Using adjacent sibling selector to target h1 before onboarding card */
h1:has(+ .onboarding-card) {
  text-align: center;
  margin-bottom: 0.75rem;
}

/* Fallback for browsers that don't support :has() */
@supports not selector(:has(*)) {
  .container > h1:first-child {
    text-align: center;
    margin-bottom: 0.75rem;
  }
}

h2 {
  color: #7A5E47;
  font-size: 1.5rem;
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

/* Forms */
.field {
  margin-bottom: 1.5rem;
}

.field-row {
  display: flex;
  gap: 1rem;
  margin-bottom: 0;
}

.field-half {
  flex: 1;
  margin-bottom: 0;
}

.field-third {
  flex: 1;
  margin-bottom: 0;
}

.field-quantity {
  flex: 1;
  margin-bottom: 0;
}

.field-fraction {
  flex: 0 0 auto;
  width: 100px;
  margin-bottom: 0;
}

.field-unit {
  flex: 1;
  margin-bottom: 0;
}

.field label {
  display: block;
  margin-bottom: 0.5rem;
  color: #333;
  font-weight: 500;
}

.field input[type="text"],
.field input[type="number"],
.field select {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 1rem;
  font-family: inherit;
  background-color: white;
  color: #333;
}

.field input[type="text"]::placeholder,
.field input[type="number"]::placeholder {
  color: #999;
  opacity: 1;
}

.field input[type="text"]:focus,
.field input[type="number"]:focus,
.field select:focus {
  outline: none;
  border-color: #98B694;
  box-shadow: 0 0 0 3px rgba(152, 182, 148, 0.1);
}

.field-help {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: #666;
  font-style: italic;
}

/* Recipes filters form */
.recipes-filters {
  background-color: white;
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.recipes-filters__fields {
  display: flex;
  gap: 1rem;
  align-items: flex-end;
  flex-wrap: wrap;
}

.recipes-filters__fields .field {
  flex: 1;
  min-width: 150px;
  margin-bottom: 0;
}

.recipes-filters__fields .field:last-child {
  flex: 0 0 auto;
  display: flex;
  gap: 0.5rem;
  align-items: flex-end;
}

.recipes-filters__fields .field:last-child .btn {
  margin: 0;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background-color: #98B694;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.2s ease;
  font-family: inherit;
}

.btn:hover {
  background-color: #7fa37b;
}

.btn:active {
  transform: translateY(1px);
}

.btn-danger {
  background-color: #d32f2f;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
}

.btn-danger:hover {
  background-color: #b71c1c;
}

/* Cards */
.card {
  background-color: white;
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
  background-color: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  margin-top: 1rem;
}

table thead {
  background-color: #98B694;
  color: white;
}

table th {
  padding: 1rem;
  text-align: left;
  font-weight: 600;
}

table td {
  padding: 1rem;
  border-top: 1px solid #eee;
}

table tbody tr:hover {
  background-color: #f9f9f9;
}

/* Inline forms in table */
table form {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

table form input[type="number"],
table form input[type="text"],
table form select {
  padding: 0.5rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 0.9rem;
  width: auto;
  min-width: 80px;
}

table form .btn {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  margin: 0;
}

/* Error messages */
#error_explanation {
  background-color: #fee;
  border: 1px solid #fcc;
  border-radius: 6px;
  padding: 1rem;
  margin-bottom: 1.5rem;
  color: #c33;
}

#error_explanation h2 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: #c33;
}

#error_explanation ul {
  list-style-position: inside;
  margin-left: 0;
}

/* Notices */
.notice {
  background-color: #d4edda;
  border: 1px solid #c3e6cb;
  border-radius: 6px;
  padding: 1rem;
  margin-bottom: 1.5rem;
  color: #155724;
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: #666;
}

/* Actions header */
.actions-header {
  margin-bottom: 1.5rem;
  display: flex;
  gap: 1rem;
  align-items: center;
}

/* Primary button (green) */
.btn-primary {
  background-color: #98B694;
}

.btn-primary:hover {
  background-color: #7fa37b;
}

/* Disabled button */
.btn:disabled,
.btn-disabled {
  background-color: #ccc;
  color: #666;
  cursor: not-allowed;
  opacity: 0.6;
}

.btn:disabled:hover,
.btn-disabled:hover {
  background-color: #ccc;
  transform: none;
}

/* Pantry header (when pantry has items) */
.pantry-header {
  margin-bottom: 1.5rem;
}

.pantry-header-text {
  font-size: 1.1rem;
  color: #333;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.pantry-header-text strong {
  font-weight: 600;
  color: #7A5E47;
}

.pantry-header-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
}

/* Onboarding card */
.onboarding-card {
  max-width: 600px;
  margin: 0 auto;
  background-color: white;
  border-radius: 10px;
  padding: 2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.onboarding-emoji {
  font-size: 32px;
  margin-bottom: 1rem;
  text-align: center;
}

.onboarding-title {
  color: #7A5E47;
  font-size: 1.75rem;
  font-weight: 600;
  margin-bottom: 2rem;
}

.onboarding-steps {
  text-align: left;
  margin: 0 auto 2rem;
  max-width: 500px;
  padding-left: 1.5rem;
  color: #444;
  line-height: 2;
  list-style: decimal;
}

.onboarding-steps li {
  margin-bottom: 1rem;
  font-size: 1rem;
  color: #444;
}

.onboarding-steps li:last-child {
  margin-bottom: 0;
}

.onboarding-actions {
  margin-bottom: 2rem;
}

.onboarding-actions-hint {
  color: #999;
  font-size: 0.9rem;
  margin-top: 1rem;
  margin-bottom: 0;
}

.onboarding-examples {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid #eee;
}

.onboarding-examples-title {
  color: #666;
  font-size: 0.95rem;
  margin-bottom: 1rem;
  font-weight: 500;
}

.onboarding-examples-hint {
  color: #999;
  font-size: 0.85rem;
  margin-top: 1rem;
  margin-bottom: 0;
}

.ingredient-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.ingredient-chip {
  background-color: #f5f5f5;
  border: 1px solid #ddd;
  border-radius: 20px;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  color: #333;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.ingredient-chip:hover {
  background-color: #98B694;
  color: white;
  border-color: #98B694;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.ingredient-chip:active {
  transform: translateY(0);
}

/* Hidden class */
.hidden {
  display: none;
}

/* Secondary button */
.btn-secondary {
  background-color: #7A5E47;
  margin-left: 0.5rem;
}

.btn-secondary:hover {
  background-color: #5d4635;
}

/* Actions right aligned */
.actions-right {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
}

/* Link button (discrete) */
.btn-link {
  background: none;
  border: none;
  color: #666;
  font-size: 1rem;
  cursor: pointer;
  text-decoration: underline;
  padding: 0.5rem 1rem;
  transition: color 0.2s ease;
  font-family: inherit;
}

.btn-link:hover {
  color: #333;
}

/* Autocomplete suggestions */
.suggestions {
  position: absolute;
  background-color: white;
  border: 1px solid #ddd;
  border-radius: 6px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  max-height: 200px;
  overflow-y: auto;
  z-index: 1003;
  margin-top: 0.25rem;
  width: 100%;
}

.suggestion-item {
  padding: 0.75rem;
  cursor: pointer;
  border-bottom: 1px solid #eee;
}

.suggestion-item:last-child {
  border-bottom: none;
}

.suggestion-item:hover,
.suggestion-item.selected {
  background-color: #f0f0f0;
}

.field {
  position: relative;
}

/* Modal */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal.hidden {
  display: none;
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1001;
}

.modal-content {
  position: relative;
  background-color: white;
  border-radius: 8px;
  padding: 2rem;
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
  z-index: 1002;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #eee;
}

.modal-header h2 {
  margin: 0;
  font-size: 1.5rem;
}

.modal-close {
  background: none;
  border: none;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  color: #666;
  padding: 0;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: background-color 0.2s ease;
}

.modal-close:hover {
  background-color: #f0f0f0;
}

/* Pantry Grid */
.pantry-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.pantry-card {
  background-color: white;
  border-radius: 10px;
  padding: 1.5rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
  min-height: 120px;
}

.pantry-card:hover {
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.pantry-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.pantry-card-title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: #7A5E47;
  flex: 1;
}

.pantry-card-delete {
  background: none;
  border: none;
  color: #999;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  transition: all 0.2s ease;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pantry-card-delete:hover {
  background-color: #fee;
  color: #d32f2f;
}

.pantry-card-quantity-section {
  margin-bottom: 1rem;
  flex: 1;
}

.pantry-card-quantity-display {
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
  flex-wrap: wrap;
}

.quantity-value-large,
.fraction-value-large,
.unit-value-large {
  color: #333;
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.4;
}

.quantity-value-large {
  font-weight: 600;
}

.unit-value-large {
  color: #666;
  font-size: 1.1rem;
}

.pantry-staple-text {
  color: #999;
  font-style: italic;
  font-size: 0.9rem;
  margin: 0;
  line-height: 1.5;
}

.pantry-card-actions-bottom {
  display: flex;
  gap: 0.25rem;
  justify-content: flex-end;
  align-items: center;
  margin-top: auto;
}

.quantity-btn {
  background-color: #98B694;
  color: white;
  border: none;
  border-radius: 6px;
  width: 2.5rem;
  height: 2.5rem;
  font-size: 1.25rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease;
  padding: 0;
}

.quantity-btn:hover {
  background-color: #7fa37b;
}

.quantity-btn-decrement {
  background-color: #7A5E47;
}

.quantity-btn-decrement:hover {
  background-color: #5d4635;
}

/* Recipes Header */
.recipes-header {
  max-width: 900px;
  margin: 0 auto 2rem;
  padding: 0 1rem;
}

.recipes-header__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.recipes-header__title {
  margin: 0;
  color: #7A5E47;
  font-size: 2rem;
  font-weight: 600;
}

.recipes-header__back {
  margin: 0;
}

.recipes-header__description {
  color: #666;
  font-size: 1rem;
  margin: 0;
  line-height: 1.5;
}

/* Recipes Container */
.recipes-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Recipe Card */
.recipe-card {
  display: block;
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

.recipe-card:hover {
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
}

.recipe-card__image-wrapper {
  width: 100%;
  height: 140px;
  overflow: hidden;
  background-color: #FFF8E7;
}

.recipe-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px 10px 0 0;
}

.recipe-card__image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #FFF8E7;
  color: #7A5E47;
  font-size: 0.9rem;
  font-style: italic;
}

.recipe-card__content {
  padding: 16px;
}

.recipe-card__title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
  gap: 1rem;
}

.recipe-card__title {
  color: #7A5E47;
  font-size: 20px;
  font-weight: bold;
  margin: 0;
  line-height: 1.3;
  flex: 1;
  min-width: 0; /* Allow title to shrink if needed */
}

.recipe-card__rating {
  font-size: 1rem;
  color: #7A5E47;
  font-weight: 500;
  white-space: nowrap;
  flex-shrink: 0;
}

.recipe-card__score {
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

.recipe-card__progress {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.recipe-card__progress-bar {
  flex: 1;
  height: 8px;
  background-color: #f0f0f0;
  border-radius: 4px;
  overflow: hidden;
}

.recipe-card__progress-fill {
  height: 100%;
  background-color: #98B694;
  border-radius: 4px;
  transition: width 0.3s ease;
}

.recipe-card__status {
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 500;
  white-space: nowrap;
}

.recipe-card__status--ready {
  background-color: #d4edda;
  color: #155724;
}

.recipe-card__status--almost {
  background-color: #fff3cd;
  color: #856404;
}

.recipe-card__status--shopping {
  background-color: #e2e3e5;
  color: #383d41;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
  padding: 0 1rem;
}

/* Responsive */
@media (max-width: 768px) {
  .container {
    padding: 1rem;
  }

  h1 {
    font-size: 1.5rem;
  }

  h2 {
    font-size: 1.25rem;
  }

  table {
    font-size: 0.9rem;
  }

  table th,
  table td {
    padding: 0.75rem 0.5rem;
  }

  table form {
    flex-direction: column;
    align-items: stretch;
  }

  table form input,
  table form select {
    width: 100%;
  }

  .modal-content {
    width: 95%;
    padding: 1.5rem;
  }

  .pantry-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .field-row {
    flex-direction: column;
    gap: 0;
  }

  .field-half,
  .field-third,
  .field-quantity,
  .field-fraction,
  .field-unit {
    margin-bottom: 1rem;
    width: 100%;
  }

  .actions-right {
    flex-direction: column-reverse;
    align-items: stretch;
  }

  .btn-link {
    text-align: center;
  }

  .recipes-container {
    padding: 0 0.5rem;
  }

  .recipe-card__progress {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
  }

  .recipe-card__status {
    align-self: flex-start;
  }

  .recipe-show-container {
    padding: 1rem;
  }

  .recipe-show-card {
    padding: 1rem;
  }

  .recipe-show-ingredients-grid {
    grid-template-columns: 1fr;
  }
}

/* Recipe Show Page Styles */
.recipe-show-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.recipe-show-back-link {
  display: inline-block;
  margin-bottom: 1.5rem;
  color: #7A5E47;
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.recipe-show-back-link:hover {
  color: #5d4635;
  text-decoration: underline;
}

.recipe-show-card {
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.recipe-show-header {
  width: 100%;
}

.recipe-show-image {
  width: 100%;
  height: 220px;
  overflow: hidden;
  background-color: #FFF8E7;
}

.recipe-show-image__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.recipe-show-image-placeholder {
  width: 100%;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #FFF8E7;
  color: #7A5E47;
  font-size: 1rem;
  border-radius: 10px 10px 0 0;
}

.recipe-show-title-section {
  padding: 1.5rem 2rem;
}

.recipe-show-title {
  margin: 0 0 1rem 0;
  font-size: 1.75rem;
  font-weight: 700;
  color: #7A5E47;
  line-height: 1.3;
}

.recipe-show-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  font-size: 0.95rem;
  color: #666;
}

.recipe-show-meta__item {
  display: flex;
  align-items: center;
}

.recipe-show-meta__separator {
  margin: 0 0.5rem;
  color: #999;
}

.recipe-show-availability {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.recipe-show-availability__text {
  font-size: 0.95rem;
  color: #666;
}

.recipe-show-availability__badge {
  display: inline-block;
  padding: 0.4rem 0.9rem;
  border-radius: 16px;
  font-size: 0.85rem;
  font-weight: 600;
}

.recipe-show-availability__badge.recipe-status--ready {
  background-color: #98B694;
  color: white;
}

.recipe-show-availability__badge.recipe-status--almost {
  background-color: #ffa500;
  color: white;
}

.recipe-show-availability__badge.recipe-status--shopping {
  background-color: #e2e3e5;
  color: #383d41;
}

.recipe-show-ingredients {
  padding: 0 2rem 2rem 2rem;
}

.recipe-show-section-title {
  margin: 0 0 1.5rem 0;
  font-size: 1.5rem;
  font-weight: 600;
  color: #7A5E47;
  border-bottom: 2px solid #98B694;
  padding-bottom: 0.5rem;
}

.recipe-show-ingredients-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 1.5rem;
}

.recipe-show-ingredients-column {
  background-color: #f9f9f9;
  border-radius: 8px;
  padding: 1.5rem;
}

.recipe-show-ingredients-column__title {
  margin: 0 0 1rem 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: #7A5E47;
}

.recipe-show-ingredients-column__title--missing {
  color: #d32f2f;
}

.recipe-show-ingredients-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* Shopping list styles are applied via .recipe-show-ingredients-list--missing modifier */

.recipe-show-ingredient-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid #eee;
}

.recipe-show-ingredient-item:last-child {
  border-bottom: none;
}

.recipe-show-ingredient-item--available {
  color: #2e7d32;
}

.recipe-show-ingredient-item--available .recipe-show-ingredient-item__name {
  color: #333;
}

.recipe-show-ingredient-item--missing {
  color: #666;
}

.recipe-show-ingredient-item--empty {
  color: #999;
  font-style: italic;
  padding: 1rem 0;
  text-align: center;
}

.recipe-show-ingredient-item__icon {
  flex-shrink: 0;
  font-size: 1.1rem;
  margin-top: 0.1rem;
}

.recipe-show-ingredient-item__checkbox {
  flex-shrink: 0;
  margin-top: 0.2rem;
  width: 1.2rem;
  height: 1.2rem;
  cursor: pointer;
}

.recipe-show-ingredient-item__label {
  flex: 1;
  cursor: pointer;
  line-height: 1.5;
}

.recipe-show-ingredient-item__text {
  flex: 1;
  line-height: 1.5;
}

.recipe-show-ingredient-item__content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.recipe-show-ingredient-item__name {
  font-weight: 600;
  color: #333;
}

.recipe-show-ingredient-item__details {
  font-size: 0.85rem;
  color: #666;
  line-height: 1.4;
}

.recipe-show-ingredient-item__separator {
  margin: 0 0.5rem;
  color: #999;
}

.recipe-show-ingredient-item__missing-text {
  color: #c62828;
  font-weight: 500;
}

.recipe-show-ingredient-item__missing-info {
  color: #d32f2f;
  font-size: 0.9em;
  font-weight: normal;
}

.recipe-show-actions {
  padding: 2rem;
  border-top: 1px solid #eee;
  background-color: #f9f9f9;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 1rem;
}

.recipe-show-actions__primary {
  text-align: center;
  flex: 1;
}

.recipe-show-actions__secondary {
  text-align: left;
}

.recipe-show-pantry-button {
  display: inline-block;
  text-decoration: none;
}

.recipe-show-cook-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.recipe-show-cook-button {
  background-color: #98B694;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 0.875rem 2rem;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.1s ease;
  font-family: inherit;
}

.recipe-show-cook-button:hover {
  background-color: #7a9a76;
  transform: translateY(-1px);
}

.recipe-show-cook-button:active {
  transform: translateY(0);
}

.recipe-show-cook-hint {
  margin: 0;
  font-size: 0.85rem;
  color: #666;
  font-style: italic;
}

