.mbb-button-group {
  display: flex;
}

.mbb-button-group .btn {
  align-items: center;
  display: inline-flex;
  justify-content: center;
  min-height: 44px;
  white-space: normal;
}

.mbb-form-actions {
  align-items: center;
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
}

.mbb-ingredient-main,
.mbb-ingredient-actions {
  overflow-wrap: anywhere;
  word-break: normal;
}

.mbb-ingredient-actions a {
  display: inline-flex;
  justify-content: center;
  min-height: 36px;
  min-width: 32px;
  vertical-align: middle;
}

@media (max-width: 575.98px) {
  .mbb-button-group {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .mbb-button-group.btn-group > .btn,
  .mbb-button-group.btn-group > .btn-group {
    border-radius: 0.25rem;
    flex: 1 1 calc(50% - 0.5rem);
  }

  .mbb-category-buttons .btn {
    flex-basis: 100%;
  }

  .mbb-scroll-pane {
    float: none !important;
    height: auto !important;
    max-height: none;
    overflow-y: visible !important;
  }

  #recipe_container {
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100% !important;
  }

  #recipe_container .card-body {
    padding-left: 0.85rem;
    padding-right: 0.85rem;
  }

  .mbb-ingredient-grid {
    padding-left: 0;
    padding-right: 0;
  }

  .mbb-ingredient-grid .card {
    height: auto !important;
  }

  .mbb-ingredient-actions {
    margin-top: 0.25rem;
    text-align: left !important;
  }

  .mbb-form-actions {
    clear: both;
    float: none !important;
    flex-direction: column-reverse;
    width: 100%;
  }

  .mbb-form-actions .btn {
    width: 100%;
  }

  .modal-dialog {
    margin-left: 0.75rem;
    margin-right: 0.75rem;
  }
}

.recipe a {
  display: inline-flex;
  justify-content: center;
  min-height: 36px;
  min-width: 32px;
}

.recipe .text-success {
  line-height: 1.45;
}

@media (max-width: 575.98px) {
  .recipe {
    padding-bottom: 0.75rem;
    padding-top: 0.75rem;
  }
}

.disabled-section {
  pointer-events: auto !important;
  position: relative;
}

.disabled-section::before {
  content: none !important;
  display: none !important;
}

.mbb-login-overlay {
  background: rgba(0, 0, 0, 0.92);
  border-radius: 5px;
  color: #fff;
  font-weight: 700;
  left: 50%;
  min-width: min(18rem, calc(100% - 2rem));
  padding: 0.8rem 1rem;
  position: absolute;
  text-align: center;
  text-decoration: none;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
}

.mbb-login-overlay:hover,
.mbb-login-overlay:focus {
  color: #fff;
  text-decoration: underline;
}
