/* Sleek Deal Analyser UI (v2.3) */

.brr-app {
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px;
  padding-bottom: 60px; /* white break before next section */
}

.brr-header {
  display: flex;
  gap: 16px;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 16px;
}

.brr-title {
  margin: 0;
  font-size: 28px;
  letter-spacing: -0.02em;
}

.brr-subtitle {
  margin: 6px 0 0;
  color: #666;
  font-size: 14px;
}

.brr-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* Buttons: keep your sizing/shape, but DON'T force colours
   (so the theme can style most buttons as intended) */
.brr-btn {
  appearance: none;
  border-radius: 10px;
  padding: 10px 14px;
  font-weight: 600;
  cursor: pointer;
  transition: transform .05s ease, box-shadow .2s ease, background .2s ease;

  /* allow theme colours */
  background: unset;
  color: inherit;
  border: 1px solid currentColor;
}

.brr-btn:hover { box-shadow: 0 8px 20px rgba(0,0,0,.08); }
.brr-btn:active { transform: translateY(1px); }

.brr-btn[disabled] {
  opacity: .5;
  cursor: not-allowed;
  box-shadow: none;
}

/* WhatsApp button base (will be enforced below too) */
.brr-btn-whatsapp {
  border-color: #25D366;
  color: #fff;
  background-color: #25D366;
}

.brr-btn-whatsapp:hover {
  box-shadow: 0 10px 22px rgba(37,211,102,.22);
}

.brr-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 16px;
  align-items: start;
}

.brr-form,
.brr-results {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.brr-card {
  background: #fff;
  border: 1px solid rgba(0,0,0,.10);
  border-radius: 14px;
  padding: 14px;
  box-shadow: 0 8px 22px rgba(0,0,0,.05);
}

.brr-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.brr-card h3 { margin: 0; font-size: 16px; }

.brr-chip {
  font-size: 12px;
  color: #222;
  background: rgba(0,0,0,.06);
  padding: 6px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

.brr-chip-dark { background: #111; color: #fff; }

.brr-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.brr-field label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 12px;
  margin: 0 0 6px;
  color: #222;
}

.brr-label-row{
  display:flex;
  justify-content: space-between;
  align-items:center;
  width:100%;
}

.brr-toggle{
  display:flex;
  align-items:center;
  gap:8px;
  font-weight:700;
  font-size:12px;
  color:#333;
}

.brr-toggle input[type="checkbox"]{
  width: 16px;
  height: 16px;
}

.brr-field .req { color: #b00020; font-weight: 800; }
.brr-field .hint { font-weight: 600; color: #777; }

.brr-field input,
.brr-field select {
  width: 100%;
  border: 1px solid rgba(0,0,0,.18);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 14px;
  background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.brr-field input[readonly] { background: rgba(0,0,0,.04); }

.brr-field input:focus,
.brr-field select:focus {
  outline: none;
  border-color: rgba(0,0,0,.55);
  box-shadow: 0 0 0 4px rgba(0,0,0,.08);
}

.brr-note {
  margin: 10px 0 0;
  font-size: 12px;
  color: #666;
  line-height: 1.4;
}

.brr-alert {
  border-radius: 12px;
  padding: 12px 12px;
  border: 1px solid rgba(0,0,0,.12);
  font-size: 13px;
  line-height: 1.45;
}

.brr-alert ul { margin: 8px 0 0 18px; }

.brr-alert-error {
  border-color: rgba(176, 0, 32, .35);
  background: rgba(176, 0, 32, .06);
  color: #5c0011;
}

.brr-alert-ok {
  border-color: rgba(0, 120, 70, .35);
  background: rgba(0, 120, 70, .06);
  color: #044d2e;
}

.brr-metrics {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 10px 12px;
  align-items: baseline;
}

.brr-k { font-size: 13px; color: #333; font-weight: 650; }
.brr-v { font-size: 13px; text-align: right; color: #111; font-weight: 800; }

/* Info tooltip */
.brr-info {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.25);
  background: rgba(0,0,0,.04);
  color: #111;
  font-size: 12px;
  font-weight: 800;
  cursor: help;
  user-select: none;
  position: relative;
}

.brr-info:focus { outline: none; box-shadow: 0 0 0 4px rgba(0,0,0,.10); }

.brr-info::after {
  content: attr(data-tip);
  position: absolute;
  left: 50%;
  bottom: 130%;
  transform: translateX(-50%);
  width: min(280px, 72vw);
  background: #111;
  color: #fff;
  padding: 10px 10px;
  border-radius: 10px;
  font-size: 12px;
  line-height: 1.35;
  box-shadow: 0 14px 30px rgba(0,0,0,.18);
  opacity: 0;
  pointer-events: none;
  transition: opacity .15s ease, transform .15s ease;
}

.brr-info::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 118%;
  transform: translateX(-50%);
  width: 0; height: 0;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-top: 8px solid #111;
  opacity: 0;
  transition: opacity .15s ease;
}

.brr-info:hover::after,
.brr-info:hover::before,
.brr-info:focus::after,
.brr-info:focus::before {
  opacity: 1;
  transform: translateX(-50%) translateY(-2px);
}

@media (max-width: 980px) {
  .brr-layout { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .brr-grid { grid-template-columns: 1fr; }
  .brr-metrics { grid-template-columns: 1fr; }
  .brr-v { text-align: left; }
  .brr-header { flex-direction: column; align-items: flex-start; }
}

/* HARD override: only the WhatsApp button (beats theme pink rules) */
.brr-app #brr-whatsapp-btn.brr-btn-whatsapp,
.brr-app button#brr-whatsapp-btn.brr-btn-whatsapp,
.brr-app a#brr-whatsapp-btn.brr-btn-whatsapp {
  background: #25D366 !important;
  background-color: #25D366 !important;
  border: 1px solid #25D366 !important;
  border-color: #25D366 !important;
  color: #ffffff !important;
  background-image: none !important;
}

/* Hover/focus */
.brr-app #brr-whatsapp-btn.brr-btn-whatsapp:hover,
.brr-app #brr-whatsapp-btn.brr-btn-whatsapp:focus {
  background: #1ebe5d !important;
  background-color: #1ebe5d !important;
  border-color: #1ebe5d !important;
  color: #ffffff !important;
}