/* ===== RECIPE → SHOPPING V1 ===== */

.recipe-shopping-button {
  min-height: 56px;

  border: 0;
  border-radius: 18px;

  padding: 0 20px;

  background: var(--surface);
  color: var(--accent-dark);

  box-shadow: var(--shadow);

  font-size: 16px;
  font-weight: 900;

  cursor: pointer;

  transition:
    transform .12s ease,
    opacity .12s ease;
}

.recipe-shopping-button:hover {
  background: var(--surface-soft);
}

.recipe-shopping-button:active {
  transform: scale(.98);
}

.recipe-shopping-button:disabled {
  opacity: .55;
  cursor: wait;
}


/* successtatus */

.recipe-shopping-button.is-success {
  background: var(--green);
  color: white;
}


/* fout / login modal */

.recipe-shopping-overlay {
  position: fixed;
  z-index: 50000;

  inset: 0;

  display: grid;
  place-items: center;

  padding: 22px;

  background: rgba(35, 28, 23, .34);

  backdrop-filter: blur(3px);
}

.recipe-shopping-dialog {
  width: min(100%, 520px);

  padding: 28px;

  border-radius: 26px;

  background: var(--surface);

  box-shadow:
    0 22px 70px rgba(0, 0, 0, .20);
}

.recipe-shopping-dialog-icon {
  font-size: 45px;
}

.recipe-shopping-dialog h2 {
  margin: 14px 0 7px;

  font-size: 27px;
}

.recipe-shopping-dialog p {
  margin: 0;

  color: var(--muted);

  font-size: 16px;
  line-height: 1.5;
}

.recipe-shopping-dialog-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;

  gap: 10px;

  margin-top: 24px;
}

.recipe-shopping-dialog-primary,
.recipe-shopping-dialog-secondary {
  min-height: 54px;

  border: 0;
  border-radius: 17px;

  padding: 0 16px;

  font-weight: 900;
}

.recipe-shopping-dialog-primary {
  background: var(--accent);
  color: white;
}

.recipe-shopping-dialog-secondary {
  background: var(--surface-soft);
  color: var(--text);
}


/* mobiel */

@media (max-width: 650px) {
  .recipe-shopping-button {
    width: 100%;
  }

  .recipe-shopping-dialog-actions {
    grid-template-columns: 1fr;
  }
}

/* ===== PORTIES LAYOUT FIX V1 ===== */

/* Tekst mag nooit onder de min-knop schuiven */
.family-servings-title {
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  min-width: max-content !important;
}

/* Knoppen + aantal blijven één vast blok */
.family-servings-control {
  flex-shrink: 0 !important;
  white-space: nowrap !important;
  margin-left: 18px !important;
}

/* Zorg voor echte ruimte tussen tekst en bediening */
.family-servings-box {
  column-gap: 18px !important;
}


/* ===== PORTIES LAYOUT FIX V1 ===== */

/* Tekst mag nooit onder de min-knop schuiven */
.family-servings-title {
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  min-width: max-content !important;
}

/* Knoppen + aantal blijven één vast blok */
.family-servings-control {
  flex-shrink: 0 !important;
  white-space: nowrap !important;
  margin-left: 18px !important;
}

/* Zorg voor echte ruimte tussen tekst en bediening */
.family-servings-box {
  column-gap: 18px !important;
}

