/* ── tmly-modal: modal con estilo Teamly ──────────────────────────────── */

/* Backdrop y modal por encima de todo */
.modal-backdrop { z-index: 1040 !important; }
.tmly-modal     { z-index: 1050 !important; }

/* Modal XL más ancho */
@media (min-width: 992px) {
  .tmly-modal .modal-xl { max-width: 92vw; }
}

/* Evita herencias raras de padding/overflow del contenedor padre */
.tmly-modal { overflow-x: hidden; overflow-y: auto; }

/* Contenido */
.tmly-modal__content {
  border: none;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(213,22,91,.13), 0 2px 12px rgba(0,0,0,.08);
}

/* Header */
.tmly-modal__header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 22px 14px;
  background: #fff;
}

.tmly-modal__header-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #fdf4f7;
  flex-shrink: 0;
}

.tmly-modal__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: #1a1a1a;
  flex: 1;
}

.tmly-modal__close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: none;
  border-radius: 50%;
  background: #f5f5f5;
  color: #666;
  cursor: pointer;
  transition: background .15s, color .15s;
  padding: 0;
  flex-shrink: 0;
}
.tmly-modal__close:hover {
  background: #fdf4f7;
  color: #d5165b;
}

/* Divider */
.tmly-modal__divider {
  height: 2px;
  background: linear-gradient(90deg, #d5165b 0%, #f5c2d3 60%, transparent 100%);
  margin: 0;
}

/* Body */
.tmly-modal__body {
  padding: 22px;
  background: #fff;
  font-size: .93rem;
  color: #333;
  word-break: break-word;
  overflow-wrap: anywhere;
}

/* Footer */
.tmly-modal__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 22px 18px;
  background: #fdf4f7;
  border-top: 1px solid #f5c2d3;
  gap: 8px;
}

.tmly-modal__footer-left  { display: flex; gap: 8px; align-items: center; }
.tmly-modal__footer-right { display: flex; gap: 8px; align-items: center; margin-left: auto; }

/* Botones */
.tmly-modal__btn {
  border-radius: 20px;
  padding: 6px 20px;
  font-size: .88rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background .15s, color .15s, border-color .15s, box-shadow .15s;
  white-space: nowrap;
  min-width: 90px;
}

.tmly-modal__btn--cancel {
  background: #fff;
  color: #6c757d;
  border-color: #dee2e6;
}
.tmly-modal__btn--cancel:hover {
  background: #f5f5f5;
  border-color: #ccc;
}

.tmly-modal__btn--accept {
  background: #d5165b;
  color: #fff;
  border-color: #d5165b;
}
.tmly-modal__btn--accept:hover {
  background: #b01249;
  border-color: #b01249;
  box-shadow: 0 2px 8px rgba(213,22,91,.25);
}
