/* ==========================================
   RECIPE QUICK ADD V1
   ========================================== */

.recipe-card-shell {
  position: relative;

  min-width: 0;
  height: 100%;
}

.recipe-card-shell
.recipe-card {
  width: 100%;
  height: 100%;
}


.recipe-quick-add {
  position: absolute;
  z-index: 10;

  top: 12px;
  right: 12px;

  width: 46px;
  height: 46px;

  display: grid;
  place-items: center;

  border: 0;
  border-radius: 999px;

  background: rgba(255, 255, 255, .94);
  color: var(--accent-dark);

  box-shadow:
    0 5px 18px
    rgba(50, 35, 25, .18);

  font-size: 28px;
  font-weight: 800;
  line-height: 1;

  cursor: pointer;

  backdrop-filter:
    blur(8px);

  transition:
    transform .12s ease;
}

.recipe-quick-add:hover {
  transform: scale(1.06);
}

.recipe-quick-add:active {
  transform: scale(.95);
}


/* modal */

.recipe-quick-overlay {
  position: fixed;
  z-index: 60000;

  inset: 0;

  display: grid;
  place-items: center;

  padding: 20px;

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

  backdrop-filter:
    blur(4px);
}

.recipe-quick-dialog {
  position: relative;

  width:
    min(
      100%,
      480px
    );

  padding: 28px;

  border-radius: 27px;

  background: var(--surface);
  color: var(--text);

  box-shadow:
    0 25px 80px
    rgba(0, 0, 0, .22);

  text-align: center;
}

.recipe-quick-close {
  position: absolute;

  top: 12px;
  right: 12px;

  width: 42px;
  height: 42px;

  border: 0;
  border-radius: 999px;

  background: var(--surface-soft);
  color: var(--muted);

  font-size: 25px;

  cursor: pointer;
}

.recipe-quick-icon {
  font-size: 43px;
}

.recipe-quick-dialog h2 {
  margin:
    12px
    30px
    8px;

  font-size: 25px;
  line-height: 1.2;
}

.recipe-quick-dialog p {
  margin:
    0
    auto;

  max-width: 380px;

  color: var(--muted);

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


/* porties */

.recipe-quick-servings {
  display: grid;

  grid-template-columns:
    54px
    minmax(70px, 100px)
    54px;

  justify-content: center;

  gap: 9px;

  margin-top: 22px;
}

.recipe-quick-servings button,
.recipe-quick-servings input {
  height: 52px;

  border:
    1px solid
    rgba(80, 60, 45, .12);

  border-radius: 16px;

  background: var(--surface-soft);
  color: var(--text);
}

.recipe-quick-servings button {
  font-size: 26px;
  font-weight: 900;

  cursor: pointer;
}

.recipe-quick-servings input {
  width: 100%;

  text-align: center;

  font-size: 19px;
  font-weight: 900;
}


/* actions */

.recipe-quick-actions {
  display: grid;

  grid-template-columns:
    1fr
    1fr;

  gap: 10px;

  margin-top: 25px;
}

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

  border: 0;
  border-radius: 17px;

  padding: 0 16px;

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

  cursor: pointer;
}

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

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

.recipe-quick-primary.is-success {
  background: #56844e;
}

.recipe-quick-message {
  min-height: 20px;

  margin-top: 12px;

  color: var(--muted);

  font-size: 14px;
  font-weight: 700;
}


/* mobiel */

@media (max-width: 650px) {
  .recipe-quick-add {
    top: 9px;
    right: 9px;

    width: 42px;
    height: 42px;

    font-size: 25px;
  }

  .recipe-quick-overlay {
    align-items: end;

    padding:
      12px;
  }

  .recipe-quick-dialog {
    width: 100%;

    padding:
      25px
      19px
      calc(
        22px
        + env(safe-area-inset-bottom)
      );

    border-radius:
      25px
      25px
      20px
      20px;
  }

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

  .recipe-quick-primary {
    order: -1;
  }
}
