/* Last-minute rental alert (TDP) and Host heads up (Rental Record). Figma Section 10.
   480 dialog on desktop, bottom sheet on phones (same pattern as the Ask Toby questions modal). */

.lm-modal .modal-dialog { max-width: 480px; }
.lm-modal .modal-content {
  position: relative; overflow: hidden; border: 0; border-radius: 20px;
  box-shadow: 0 12px 40px rgba(43, 50, 82, .25); color: var(--blue);
}
.lm-modal__close {
  display: flex; align-items: center; justify-content: center; width: 24px; height: 24px; padding: 0;
  border: 0; background: none; flex: 0 0 24px;
}
.lm-modal__close img { display: block; width: 24px; height: 24px; }
.lm-modal p { margin: 0; }
.lm-modal__body-text { font-size: 15px; font-weight: 500; line-height: 1.35; }

/* Alert: amber header band */
.lm-alert__band {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 16px 24px 16px 32px; background: var(--warning, #f0a202);
}
.lm-alert__title { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 18px; font-weight: 800; line-height: 1.35; }
.lm-alert__title img { width: 24px; height: 24px; }
.lm-alert__content { display: flex; flex-direction: column; gap: 20px; padding: 20px 32px 32px; }
.lm-alert__tip {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 12px;
  background: rgba(55, 114, 255, .08);
}
.lm-alert__tip-disc {
  display: flex; align-items: center; justify-content: center; flex: 0 0 36px; width: 36px; height: 36px;
  border-radius: 20px; background: #3772ff;
}
.lm-alert__tip-disc img { width: 20px; height: 20px; }
.lm-alert__tip-label { margin-bottom: 4px !important; font-size: 10px; font-weight: 800; line-height: 1.35; color: #3772ff; }
.lm-alert__divider { height: 1px; background: rgba(43, 50, 82, .15); }
.lm-alert__question { font-size: 15px; font-weight: 800; line-height: 1.35; }

.lm-modal__actions { display: flex; flex-direction: column; gap: 12px; }
.lm-btn {
  display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; height: 40px; padding: 0 12px;
  border: 0; border-radius: 8px; font-size: 15px; font-weight: 700; line-height: 1.35;
}
.lm-btn img { width: 24px; height: 24px; }
.lm-btn--primary { background: var(--red); color: #fff; }
.lm-btn--primary:hover { background: #e03e40; color: #fff; }
.lm-btn--primary:disabled { background: rgba(43, 50, 82, .25); color: rgba(43, 50, 82, .65); }
.lm-btn--secondary { border: 1px solid rgba(43, 50, 82, .25); background: #fff; color: var(--blue); }
.lm-btn--secondary:hover { background: #f4f5f6; }
.lm-btn--sent, .lm-btn--sent:disabled { background: #28a745; color: #fff; }

/* Heads up */
.lm-headsup__content { display: flex; flex-direction: column; gap: 18px; padding: 36px 32px 32px; }
.lm-headsup__header { display: flex; align-items: flex-start; gap: 8px; }
.lm-headsup__heading { flex: 1; }
.lm-headsup__title { margin: 0 0 8px; font-size: 18px; font-weight: 700; line-height: 1.35; }
.lm-headsup__field { position: relative; }
.lm-headsup__message {
  display: block; width: 100%; min-height: 101px; padding: 14px 40px 14px 14px; resize: none;
  border: 1px solid rgba(43, 50, 82, .25); border-radius: 8px; background: #fff;
  font-size: 15px; font-weight: 500; line-height: 1.35; color: var(--blue);
}
.lm-headsup__message:focus { outline: none; border-color: #3772ff; }
.lm-headsup__message:disabled { background: #fff; color: rgba(43, 50, 82, .5); }
.lm-headsup__edit { position: absolute; top: 15px; right: 12px; width: 16px; height: 16px; pointer-events: none; }
.lm-headsup__error { font-size: 13px; color: var(--red); }

/* Phones: bottom sheet instead of the 480 dialog */
@media (max-width: 767.98px) {
  .lm-modal .modal-dialog.modal-dialog-centered {
    position: fixed; left: 0; right: 0; bottom: 0; top: auto; display: block; margin: 0; padding: 0; width: auto; max-width: none;
    min-height: 0; transform: translateY(100%); transition: transform .25s ease-out;
  }
  .lm-modal.show .modal-dialog.modal-dialog-centered { transform: none; }
  .lm-modal .modal-content { border-radius: 12px 12px 0 0; padding-bottom: env(safe-area-inset-bottom); }
  .lm-alert__band { padding: 16px 16px 16px 20px; }
  .lm-alert__content { padding: 20px 20px 28px; }
  .lm-headsup__content { padding: 20px 20px 28px; }
}
