body.recipe-list-picker-open {
  overflow: hidden;
}

.recipe-list-picker-backdrop {
  position: fixed;
  inset: 0;
  z-index: 99999;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 20px;

  background: rgba(25, 34, 27, .46);
  backdrop-filter: blur(3px);
}

.recipe-list-picker-dialog {
  width: min(100%, 480px);
  max-height: min(720px, calc(100vh - 40px));

  overflow: auto;

  padding: 22px;

  background: #fffdf9;
  border-radius: 22px;

  box-shadow:
    0 22px 70px
    rgba(24, 34, 26, .22);
}

.recipe-list-picker-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.recipe-list-picker-head h3 {
  margin: 0;

  color: #293129;

  font-size: 1.15rem;
  line-height: 1.25;
}

.recipe-list-picker-head p {
  margin: 7px 0 0;

  color: #737d74;

  font-size: .88rem;
  line-height: 1.45;
}

.recipe-list-picker-close {
  flex: 0 0 auto;

  width: 38px;
  height: 38px;

  border: 0;
  border-radius: 50%;

  background: #faf7f0;
  color: #536056;

  font-size: 1.5rem;
  line-height: 1;

  cursor: pointer;
}

.recipe-list-picker-options {
  display: grid;
  gap: 9px;

  margin-top: 20px;
}

.recipe-list-picker-option {
  position: relative;

  display: flex;
  align-items: center;
  gap: 13px;

  min-height: 64px;

  padding: 11px 14px;

  border:
    1px solid
    rgba(49, 84, 58, .14);

  border-radius: 14px;

  background: white;

  cursor: pointer;
}

.recipe-list-picker-option:has(
  input:checked
) {
  border-color:
    rgba(79, 124, 88, .55);

  background:
    rgba(79, 124, 88, .06);
}

.recipe-list-picker-option input {
  position: absolute;

  opacity: 0;
  pointer-events: none;
}

.recipe-list-picker-radio {
  position: relative;

  flex: 0 0 auto;

  width: 21px;
  height: 21px;

  border:
    2px solid
    #a9b1aa;

  border-radius: 50%;
}

.recipe-list-picker-option
input:checked
+ .recipe-list-picker-radio {
  border-color: #4f7c58;
}

.recipe-list-picker-option
input:checked
+ .recipe-list-picker-radio::after {
  content: "";

  position: absolute;

  inset: 4px;

  border-radius: 50%;

  background: #4f7c58;
}

.recipe-list-picker-option-text {
  display: flex;
  flex-direction: column;
  gap: 3px;

  min-width: 0;
}

.recipe-list-picker-option-text strong {
  overflow: hidden;

  color: #293129;

  font-size: .95rem;

  text-overflow: ellipsis;
  white-space: nowrap;
}

.recipe-list-picker-option-text small {
  color: #7a837b;

  font-size: .78rem;
}

.recipe-list-picker-actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;

  margin-top: 22px;
}

.recipe-list-picker-actions button {
  min-height: 44px;

  padding: 0 17px;

  border-radius: 12px;

  font: inherit;
  font-weight: 700;

  cursor: pointer;
}

.recipe-list-picker-cancel {
  border:
    1px solid
    rgba(49, 84, 58, .18);

  background: transparent;
  color: #405146;
}

.recipe-list-picker-confirm {
  border: 0;

  background: #4f7c58;
  color: white;
}

@media (max-width: 620px) {
  .recipe-list-picker-backdrop {
    align-items: flex-end;

    padding: 0;
  }

  .recipe-list-picker-dialog {
    width: 100%;

    max-height: 82vh;

    padding:
      22px 18px
      calc(
        20px
        + env(safe-area-inset-bottom)
      );

    border-radius:
      22px 22px 0 0;
  }

  .recipe-list-picker-actions {
    position: sticky;
    bottom: 0;

    padding-top: 12px;

    background: #fffdf9;
  }

  .recipe-list-picker-actions button {
    flex: 1;
  }
}


/* =========================================================
   QUICK ADD — INLINE SHOPPING LIST
   ========================================================= */

.recipe-quick-list-field {
  width: 100%;
  margin: 20px 0 2px;
  text-align: left;
}

.recipe-quick-list-field label {
  display: block;

  margin: 0 0 7px;

  color: #293129;

  font-size: .82rem;
  font-weight: 700;
}

.recipe-quick-list-field select {
  width: 100%;
  min-height: 48px;

  padding: 0 42px 0 14px;

  border:
    1px solid
    rgba(49, 84, 58, .20);

  border-radius: 12px;

  background: #fffdf9;
  color: #293129;

  font: inherit;
  font-weight: 600;

  cursor: pointer;
}

.recipe-quick-list-field select:focus {
  outline: 2px solid
    rgba(79, 124, 88, .18);

  border-color: #4f7c58;
}

.recipe-quick-list-field small {
  display: block;

  margin-top: 6px;

  color: #7a837b;

  font-size: .75rem;
}
