.alert-modal-drawer {
  overflow: hidden;
  background-color: var(--orange-light);
  background-repeat: no-repeat;
  background-position: top center;
  background-size: cover;
}

/*
 * BottomDrawer renders a grab handle at the top with the utility class
 * "bg-[var(--gray-300)]". The alert modal has a warm gradient background,
 * so we override the handle color via scoped CSS. Kept in one place to
 * avoid reaching into the shared component's internal DOM from JS.
 */
.alert-modal-drawer .cursor-grab > div {
  background-color: var(--gray-white);
}

.alert-modal-card {
  --alert-modal-tip-shadow: color-mix(in srgb, var(--red-light) 86%, var(--red));
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 8px 20px calc(14px + env(safe-area-inset-bottom, 0px));
  border-top-left-radius: 15px;
  border-top-right-radius: 15px;
  overflow: hidden;
  background: transparent;
  color: var(--blue-500);
}

.alert-modal-drawer .drawer-title {
  position: relative;
  z-index: 3;
  align-items: flex-start;
  margin-top: 0;
  padding: 46px 20px 0;
}

.alert-modal-drawer .drawer-title h2 {
  max-width: 310px;
  color: var(--blue-500);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 25px;
}

.alert-modal-drawer .drawer-title #drawer-title-actions {
  align-items: flex-start;
}

.alert-modal-drawer .close-drawer {
  display: flex;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--gray-white);
  color: var(--gray-600);
  font-size: 20px;
  line-height: 1;
  padding: 0;
}

.alert-modal-card__header {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-right: 44px;
}

.alert-modal-card__media {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: 218px;
  place-items: center;
}

.alert-modal-card__ellipsis {
  grid-column: 1;
  grid-row: 1;
  width: 190px;
  height: 190px;
  object-fit: contain;
}

.alert-modal-card__mascot {
  grid-column: 1;
  grid-row: 1;
  position: relative;
  z-index: 1;
  max-width: 235px;
  max-height: 268px;
  object-fit: contain;
}

.alert-modal-card__tip {
  position: relative;
  z-index: 2;
  overflow: hidden;
  border-radius: 8px;
  background: var(--gray-white);
  box-shadow: 4px 5px 0 var(--alert-modal-tip-shadow);
}

.alert-modal-card__tip-label {
  display: flex;
  height: 32px;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  background: var(--blue-medium);
  color: var(--blue-400);
  font-family: var(--secondary-font);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 19px;
}

.alert-modal-card__tip-label i {
  color: var(--gray-500);
  font-size: 16px;
  line-height: 1;
}

.alert-modal-card__description {
  color: var(--blue-400);
  padding: 16px;
  font-size: 17px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 19px;
}

.alert-modal-card__highlight {
  max-width: 349px;
  color: var(--blue-500);
  font-size: 18px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 19px;
}

.alert-modal-card__actions {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 6px;
}

.alert-modal-card__primary-button {
  min-height: 48px;
  width: 100%;
  border-radius: 999px;
  background: var(--blue-400);
  color: var(--gray-white);
  font-family: var(--secondary-font);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 20px;
  transition: transform 0.15s ease;
}

.alert-modal-card__primary-button:active {
  transform: scale(0.98);
}

.alert-modal-card__secondary-button {
  min-height: 36px;
  color: var(--gray-white);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 20px;
  text-align: center;
}

@media (max-height: 700px) {
  .alert-modal-card {
    gap: 12px;
    padding-top: 8px;
  }

  .alert-modal-drawer .drawer-title {
    padding-top: 42px;
  }

  .alert-modal-card__media {
    min-height: 188px;
  }

  .alert-modal-card__mascot {
    max-height: 230px;
  }
}

@media (max-width: 360px) {
  .alert-modal-card {
    padding-inline: 18px;
  }

  .alert-modal-drawer .drawer-title {
    padding-inline: 18px;
  }

  .alert-modal-drawer .drawer-title h2 {
    font-size: 21px;
    line-height: 24px;
  }

  .alert-modal-card__description,
  .alert-modal-card__highlight {
    font-size: 16px;
    line-height: 19px;
  }
}
