.options-modal {
  margin: 0;
  font-family: system-ui, sans-serif;
  min-height: 200vh;
  background: #f5f5f5;
  padding: 2rem;
}

body.modal-open {
  overflow: hidden;
  touch-action: none;
}

/* Overlay - mobile first */
.custom-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1050;

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

  background: rgba(0, 0, 0, 0.35);

  opacity: 0;
  pointer-events: none;

  transition: opacity 180ms ease;
}

.custom-modal-overlay.show {
  opacity: 1;
  pointer-events: auto;
}

/* Modal - mobile first */
.custom-modal {
  position: relative;
  width: 100%;
  max-height: 98dvh;

  display: flex;
  flex-direction: column;

  background: white;
  border-radius: 15px 15px 0 0;
  overflow: hidden;

  transform: translateY(100%);
  transition: transform 400ms ease;

  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.25),
    0 4px 12px rgba(0, 0, 0, 0.08);
}

.custom-modal-overlay.show .custom-modal {
  transform: translateY(0);
}

/* Header */
.custom-modal-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;

  padding-inline: 1rem;
  padding-block: 0.75rem;

  border-bottom: 1px solid #eee;
}

/* .custom-modal-header::before {
  content: '';
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);

  width: 48px;
  height: 5px;

  border-radius: 999px;
  background: #d7d7d7;
} */

.custom-modal-close {
  width: 30px;
  height: 40px;
  border: none;

  font-size: 1.75rem;
  cursor: pointer;
  color: black;

  transition: 0.15s ease;
}

/* Body */
.custom-modal-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  background-color: #ffffff;
  padding-bottom: 85px;
  box-shadow: black;
}

.custom-modal-footer {
  position: absolute;
  right: 25px;
  bottom: 1.5rem;
  z-index: 1000;
  border: none;
}

.my-modal-content {
  width: 100%;
  border-radius: 16px;
}

.my-modal-img {
  width: 100%;
  aspect-ratio: 1.25 / 1;
  background-position: center bottom;
  background-size: cover;
  background-repeat: no-repeat;
  overflow: hidden;
}

/* Toast */

.cart-toast {
  position: fixed;
  left: 50%;
  bottom: 2rem;
  transform: translate(-50%, 20px);

  padding: .85rem 1.5rem;

  background: #212529;
  color: white;

  border-radius: 999px;

  font-size: .95rem;
  font-weight: 500;

  opacity: 0;
  pointer-events: none;

  transition:
    opacity .2s ease,
    transform .2s ease;

  z-index: 2000;
}

.cart-toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* Desktop */
@media (min-width: 577px) {
  .custom-modal-overlay {
    align-items: center;
    padding: 1rem;
  }

  .custom-modal {
    width: min(100%, 500px);
    max-height: min(90vh, 100%);

    border-radius: 24px;

    transform: scale(0.96) translateY(10px);
  }

  .custom-modal-overlay.show .custom-modal {
    transform: scale(1) translateY(0);
  }

  .custom-modal-header {
    padding: 1rem;
  }

  .custom-modal-header::before {
    display: none;
  }
}