/* ==========================================================================
   Compatibility layer
   --------------------------------------------------------------------------
   The backend still injects HTML fragments written for Bootstrap 3
   (/scripts.../friends/_modal_photo.cfm, _popup_marketing.cfm, voice
   recorder, video chat, Freshdesk, ...). Those files are outside this folder
   and must keep working untouched, so the class names they rely on are
   mapped here onto the design tokens of app.css.
   New pages must NOT use these classes: use the "rv-" components instead.
   ========================================================================== */

/* Modal (driven by the $.fn.modal shim in app.js) */
.modal {
  position: fixed;
  top: 0; right: 0; bottom: 0; left: 0;
  z-index: 1050;
  display: none;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: rgba(40, 16, 46, .5);
  outline: 0;
}
.modal.in { display: block; }
.modal-dialog { position: relative; width: auto; max-width: 520px; margin: 0 auto; padding: 16px; padding-top: calc(16px + var(--rv-safe-top)); min-height: 100%; display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center; }
.modal-content { position: relative; width: 100%; background: var(--rv-bg); border-radius: 22px; box-shadow: 0 16px 48px rgba(40, 16, 46, .3); overflow: hidden; }
.modal-header { position: relative; padding: 18px 56px 10px 20px; }
.modal-title { margin: 0; font-size: 1.15rem; color: var(--rv-ink); }
.modal-body { padding: 8px 20px 16px; }
.modal-footer { padding: 12px 20px 18px; text-align: right; }
.modal-footer .btn + .btn { margin-left: 8px; }
.modal-backdrop { display: none !important; }
.close, button.close {
  position: absolute;
  top: 8px; right: 8px;
  width: 44px; height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--rv-muted);
  font-size: 28px;
  line-height: 44px;
  text-align: center;
  -webkit-appearance: none;
  appearance: none;
}

/* Buttons */
.btn {
  display: inline-block;
  min-height: 44px;
  padding: 10px 18px;
  border: 2px solid var(--rv-line);
  border-radius: 14px;
  background: #fff;
  color: var(--rv-ink);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  vertical-align: middle;
  -webkit-appearance: none;
  appearance: none;
}
.btn-primary, .btn-success { background: var(--rv-primary); border-color: var(--rv-primary); color: #fff; }
.btn-warning { background: var(--rv-orange); border-color: var(--rv-orange); color: #3a2400; }
.btn-danger { background: #fff; border-color: var(--rv-danger); color: var(--rv-danger); }
.btn-link { border-color: transparent; background: transparent; color: var(--rv-accent); }
.btn-lg { min-height: 54px; font-size: 1.08rem; }
.btn-sm, .btn-xs { min-height: 36px; padding: 6px 12px; font-size: .9rem; }
.btn-block { display: block; width: 100%; }
.btn-block + .btn-block { margin-top: 8px; }
.btn[disabled], .btn.disabled { opacity: .5; pointer-events: none; }

/* Forms */
.form-group { margin-bottom: 16px; }
.form-group > label, .control-label { display: block; margin-bottom: 6px; font-size: .92rem; font-weight: 700; color: var(--rv-ink); }
.form-control {
  display: block;
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 2px solid var(--rv-line);
  border-radius: 14px;
  background: #fff;
  color: var(--rv-ink);
  font-size: 1rem;
  line-height: 1.3;
  -webkit-appearance: none;
  appearance: none;
}
.form-control:focus { outline: 0; border-color: var(--rv-primary); }
textarea.form-control { min-height: 110px; }
.help-block { display: block; margin-top: 6px; font-size: .88rem; color: var(--rv-muted); }
.has-error .form-control { border-color: var(--rv-danger); }
.has-error .help-block, .text-danger { color: var(--rv-danger); }
.input-group { display: -webkit-flex; display: flex; }
.input-group .form-control { -webkit-flex: 1 1 auto; flex: 1 1 auto; }
.input-group-btn, .input-group-addon { -webkit-flex: 0 0 auto; flex: 0 0 auto; margin-left: 8px; display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center; }

/* Alerts, panels, misc */
.alert { margin: 0 0 16px; padding: 12px 14px; border: 1px solid var(--rv-sand-strong); border-radius: 14px; background: var(--rv-sand); color: #6b4310; }
.alert-success { background: var(--rv-primary-soft); border-color: #c5e0d0; color: var(--rv-primary-dark); }
.alert-danger { background: var(--rv-danger-soft); border-color: #f1c4c0; color: #8f241c; }
.alert-info { background: #eef0fa; border-color: #d5daf0; color: #33407a; }
.panel { margin-bottom: 16px; background: #fff; border: 1px solid var(--rv-line); border-radius: 16px; overflow: hidden; }
.panel-heading { padding: 14px 16px; border-bottom: 1px solid var(--rv-line-soft); font-weight: 700; color: var(--rv-ink); }
.panel-heading h1, .panel-heading h2, .panel-heading h3, .panel-title { margin: 0; font-size: 1.1rem; }
.panel-body { padding: 16px; }
.panel-footer { padding: 12px 16px; border-top: 1px solid var(--rv-line-soft); }
.well { padding: 16px; margin-bottom: 16px; background: var(--rv-sand); border-radius: 16px; }
.badge { display: inline-block; min-width: 20px; padding: 0 6px; border-radius: 10px; background: var(--rv-danger); color: #fff; font-size: .72rem; font-weight: 700; line-height: 20px; text-align: center; }
.label { display: inline-block; padding: 2px 9px; border-radius: 999px; background: var(--rv-sand-strong); color: #7a4a12; font-size: .76rem; font-weight: 700; }
.label-success { background: var(--rv-primary); color: #fff; }
.label-danger { background: var(--rv-danger); color: #fff; }
.list-group { list-style: none; margin: 0 0 16px; padding: 0; }
.list-group-item { display: block; padding: 12px 16px; border-top: 1px solid var(--rv-line-soft); color: inherit; }
.table { width: 100%; border-collapse: collapse; margin-bottom: 16px; }
.table td, .table th { padding: 8px; border-top: 1px solid var(--rv-line-soft); text-align: left; vertical-align: top; }
.img-responsive { display: block; max-width: 100%; height: auto; }
.img-circle { border-radius: 50%; }
.center-block { display: block; margin-left: auto; margin-right: auto; }
.pull-right { float: right !important; }
.pull-left { float: left !important; }
.clearfix:after { content: ""; display: table; clear: both; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }
.text-muted { color: var(--rv-muted); }
.hidden, .hide { display: none !important; }
.show { display: block !important; }
.collapse { display: none; }
.collapse.in { display: block; }
.fade { opacity: 1; }
.container, .container-fluid { max-width: 720px; margin: 0 auto; padding: 0 16px; }
.row { margin: 0 -8px; }
.row:after { content: ""; display: table; clear: both; }
[class*="col-xs-"], [class*="col-sm-"], [class*="col-md-"] { float: left; width: 100%; min-height: 1px; padding: 0 8px; }
.col-xs-3 { width: 25%; } .col-xs-4 { width: 33.333%; } .col-xs-6 { width: 50%; } .col-xs-8 { width: 66.666%; } .col-xs-9 { width: 75%; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
/* Legacy glyphicon spans without the icon font: keep them from breaking layouts */
.glyphicon, .glyphicons { display: inline-block; min-width: 1em; font-style: normal; }

/* Emitted by the R2_SendErr_mobile custom tag */
.panelBox { margin: 16px; padding: 16px; background: #fff; border: 1px solid var(--rv-line); border-radius: 16px; }
.errorMessage { color: #8f241c; font-weight: 600; }
.center { text-align: center; }
.clearFix:after { content: ""; display: table; clear: both; }
