/* Bibuaran · Fase 1.2 · Modales de la tienda/perfil: "Enviar mail" al vendedor (#myModal) y reseña (#wk_review_model) · v1.0.0
   Archivo NUEVO, solo CSS. Se carga desde contact-seller-form.tpl y seller-review-form.tpl (una vez por página).
   Todos los selectores empiezan por .bb-modal#id para ganar a las reglas globales del tema y de mp_custom_style.css
   (que fuerzan texto blanco en .wk_btn_cancel y texto gris en .form-control: por eso "Cancelar" no se veía). */

.bb-modal { --bm-p: #61BDC8; --bm-pd: #1D7A87; --bm-ps: #E8F6F8; --bm-ink: #102A36; --bm-mut: #5B7280; --bm-line: #E3EAED; --bm-field: #C9D6DB; --bm-bad: #B3392F; }

.bb-modal .modal-dialog { max-width: 520px; margin: 24px auto; }
.bb-modal .modal-content { border: 0; border-radius: 16px; background: #fff; color: var(--bm-ink); box-shadow: 0 24px 48px rgba(16, 42, 54, .22); overflow: hidden; text-align: left; }

/* Cabecera: título a la izquierda, cierre a la derecha */
.bb-modal .modal-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 24px; border-bottom: 1px solid var(--bm-line); background: #fff; }
.bb-modal .modal-header .modal-title { margin: 0; padding: 0; color: var(--bm-ink); font-size: 18px; font-weight: 700; line-height: 1.3; text-transform: none !important; letter-spacing: 0 !important; }
.bb-modal .modal-header .close { float: none; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; width: 36px; height: 36px; margin: 0; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--bm-mut); font-size: 24px; line-height: 1; opacity: 1; text-shadow: none; transition: background-color .15s, color .15s; }
.bb-modal .modal-header .close:hover, .bb-modal .modal-header .close:focus { background: var(--bm-ps); color: var(--bm-pd); }
.bb-modal .modal-header .close:focus-visible { outline: 0; box-shadow: 0 0 0 3px rgba(97, 189, 200, .45); }

/* Cuerpo */
.bb-modal .modal-body { padding: 20px 24px 8px; }
.bb-modal .bb-modal__intro { margin: 0 0 18px; padding: 12px 14px; border-radius: 10px; background: var(--bm-ps); color: var(--bm-ink); font-size: 14px; line-height: 1.5; }
.bb-modal .form-group { margin: 0 0 16px; }

/* Etiquetas: a la izquierda, sin mayúsculas forzadas; el asterisco de obligatorio va detrás */
.bb-modal label.control-label, .bb-modal .form-group > label { display: block; float: none; width: auto; margin: 0 0 6px; padding: 0; color: var(--bm-ink); font-size: 14px; font-weight: 600; line-height: 1.4; text-align: left !important; text-transform: none !important; letter-spacing: 0 !important; }
.bb-modal label.control-label.required::before { content: none; }
.bb-modal label.control-label.required::after { content: " *"; color: var(--bm-bad); }

/* Campos (se anula el gris/borde forzado por mp_custom_style.css) */
.bb-modal .form-control { display: block; width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid var(--bm-field) !important; border-radius: 10px; background: #fff !important; color: var(--bm-ink) !important; font-size: 14px !important; line-height: 1.5; box-shadow: none; transition: border-color .15s, box-shadow .15s; }
.bb-modal textarea.form-control { height: auto !important; min-height: 130px; resize: vertical; }
.bb-modal .form-control:focus { border-color: var(--bm-p) !important; box-shadow: 0 0 0 3px rgba(97, 189, 200, .35); outline: 0; }

/* Estrellas de valoración */
.bb-modal .bb-modal__stars { min-height: 32px; line-height: 1; }
.bb-modal .bb-modal__stars img { width: 26px; height: 26px; margin: 0 2px 0 0; cursor: pointer; }
.bb-modal .rating_error { margin-top: 6px; font-size: 13px; }

/* Aviso de campos obligatorios: discreto, sin cursiva ni mayúsculas */
.bb-modal .wk_formfield_required_notify { display: block; margin: 4px 0 0; padding: 0; color: var(--bm-mut); font-size: 12.5px; font-style: normal !important; font-weight: 400 !important; line-height: 1.4; text-align: left; text-transform: none !important; letter-spacing: 0 !important; }
.bb-modal .wk_formfield_required_notify .required { color: var(--bm-bad); }
.bb-modal .contact_seller_message:empty { display: none; }

/* Pie: dos botones alineados a la derecha */
.bb-modal .modal-footer { display: flex; align-items: center; justify-content: flex-end; gap: 10px; padding: 16px 24px 20px; border-top: 0; background: #fff; }
.bb-modal .modal-footer > [class*="col-"] { float: none; width: auto; padding: 0; }
.bb-modal .modal-footer .bb-modal__btn { display: inline-flex; align-items: center; justify-content: center; width: auto; min-width: 110px; min-height: 44px; margin: 0; padding: 0 22px; border-radius: 10px; font-size: 14px; font-weight: 700; line-height: 1.2; text-decoration: none; text-transform: none; letter-spacing: 0; box-shadow: none; cursor: pointer; transition: background-color .15s, border-color .15s, color .15s; }
.bb-modal .modal-footer .bb-modal__btn:focus-visible { outline: 0; box-shadow: 0 0 0 3px rgba(97, 189, 200, .45); }
/* !important en color/fondo: mp_custom_style.css fuerza .modal-content .wk_btn_cancel { color:#fff !important } */
.bb-modal .modal-footer .bb-modal__btn--ghost { border: 1px solid var(--bm-field) !important; background: #fff !important; color: var(--bm-ink) !important; }
.bb-modal .modal-footer .bb-modal__btn--ghost:hover, .bb-modal .modal-footer .bb-modal__btn--ghost:focus { border-color: var(--bm-p) !important; background: var(--bm-ps) !important; color: var(--bm-pd) !important; }
.bb-modal .modal-footer .bb-modal__btn--primary { border: 1px solid var(--bm-p) !important; background: var(--bm-p) !important; color: var(--bm-ink) !important; }
.bb-modal .modal-footer .bb-modal__btn--primary:hover, .bb-modal .modal-footer .bb-modal__btn--primary:focus { border-color: #52AAB6 !important; background: #52AAB6 !important; color: var(--bm-ink) !important; }

@media (max-width: 575.98px) {
  .bb-modal .modal-dialog { margin: 12px; }
  .bb-modal .modal-header, .bb-modal .modal-body, .bb-modal .modal-footer { padding-left: 16px; padding-right: 16px; }
  .bb-modal .modal-footer { flex-direction: column-reverse; align-items: stretch; }
  .bb-modal .modal-footer .bb-modal__btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .bb-modal * { transition: none !important; } }
