.mba-root {
  --mba-blue: #0d47a1;
  --mba-blue-dark: #082f6f;
  --mba-orange: #f36d21;
  --mba-border: #d8e3f2;
  color: #102650;
  font-family: Arial, Helvetica, sans-serif;
}

.mba-desktop-actions {
  align-items: center;
  background: #fff;
  border: 1px solid var(--mba-border);
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(20, 55, 105, .1);
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin: 22px auto;
  max-width: 1180px;
  padding: 14px 16px;
}

.mba-desktop-actions > div { margin-right: auto; }
.mba-desktop-actions strong { display: block; font-size: 17px; }
.mba-desktop-actions span { color: #5c6d86; display: block; font-size: 13px; margin-top: 3px; }

.mba-button,
.mba-channel {
  align-items: center;
  border: 0;
  border-radius: 9px;
  cursor: pointer;
  display: inline-flex;
  font: 700 14px/1 Arial, Helvetica, sans-serif;
  justify-content: center;
  min-height: 42px;
  padding: 0 17px;
  text-decoration: none;
}

.mba-button-primary { background: var(--mba-blue); color: #fff; }
.mba-button-support { background: #fff2eb; color: #b53d00; }
.mba-mobile-actions { display: none; }

.mba-overlay {
  background: rgba(4, 17, 40, .55);
  inset: 0;
  position: fixed;
  z-index: 2140;
}

.mba-sheet {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 24px 70px rgba(0, 25, 65, .28);
  left: 50%;
  max-height: calc(100vh - 48px);
  max-width: 520px;
  overflow: auto;
  padding: 25px;
  position: fixed;
  top: 50%;
  transform: translate(-50%, -50%);
  width: calc(100% - 36px);
  z-index: 2150;
}

.mba-sheet-handle { display: none; }
.mba-close {
  background: #eef3fa;
  border: 0;
  border-radius: 50%;
  color: #173866;
  cursor: pointer;
  font-size: 24px;
  height: 36px;
  line-height: 32px;
  position: absolute;
  right: 16px;
  top: 16px;
  width: 36px;
}

.mba-sheet-heading { align-items: center; display: flex; gap: 13px; padding-right: 38px; }
.mba-bell { align-items: center; background: #fff1e7; border-radius: 13px; display: flex; font-size: 24px; height: 48px; justify-content: center; width: 48px; }
.mba-sheet h2 { color: #102650; font-size: 22px; margin: 0; }
.mba-sheet-heading p { color: #63718a; font-size: 13px; margin: 5px 0 0; }
.mba-form { margin-top: 20px; }
.mba-form > label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 7px; }
.mba-input-row { display: grid; grid-template-columns: auto 1fr auto; }
.mba-country-code { align-items: center; background: #f2f5fa; border: 1px solid #bdcce0; border-radius: 8px 0 0 8px; display: flex; font-size: 14px; padding: 0 10px; }
.mba-mobile-input { border: solid #bdcce0; border-width: 1px 0; font-size: 16px; min-width: 0; outline: none; padding: 12px 10px; }
.mba-mobile-input:focus { box-shadow: inset 0 0 0 2px rgba(13, 71, 161, .22); }
.mba-submit { background: var(--mba-blue); border: 0; border-radius: 0 8px 8px 0; color: #fff; cursor: pointer; font-weight: 700; padding: 0 18px; }
.mba-consent { display: block; margin-top: 14px; }
.mba-consent input { height: 18px; margin: 1px 8px 0 0; vertical-align: top; width: 18px; }
.mba-consent label { color: #37475f; display: inline; font-size: 12px; line-height: 1.45; }
.mba-message { border-radius: 8px; font-size: 14px; font-weight: 700; margin-top: 16px; padding: 12px; }
.mba-message.is-success { background: #e8f7ee; color: #17683a; }
.mba-message.is-error { background: #fff0f0; color: #a12828; }
.mba-channels { border-top: 1px solid var(--mba-border); margin-top: 15px; padding-top: 14px; }
.mba-channels p, .mba-consent-note { color: #63718a; font-size: 11px; line-height: 1.45; margin: 0 0 10px; }
.mba-channels > div { display: flex; flex-wrap: wrap; gap: 8px; }
.mba-telegram { background: #e7f5fc; color: #086a9b; }
.mba-whatsapp { background: #e8f9ee; color: #087735; }
.mba-consent-note { margin: 15px 0 0; }

@media (max-width: 767px) {
  body.mba-active { padding-bottom: calc(70px + env(safe-area-inset-bottom)); }
  body.mba-dialog-open { overflow: hidden; }
  .mba-desktop-actions { display: none; }
  .mba-mobile-actions {
    align-items: stretch;
    background: #fff;
    border-top: 1px solid #d6e0ef;
    bottom: 0;
    box-shadow: 0 -7px 24px rgba(17, 45, 88, .14);
    display: flex;
    left: 0;
    padding: 7px max(8px, env(safe-area-inset-left)) calc(7px + env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-right));
    position: fixed;
    right: 0;
    z-index: 2100;
  }
  .mba-mobile-action {
    align-items: center;
    background: transparent;
    border: 0;
    color: #243a5b;
    display: flex;
    flex: 1 1 0;
    flex-direction: column;
    font: 700 11px/1.2 Arial, Helvetica, sans-serif;
    gap: 4px;
    justify-content: center;
    min-height: 50px;
    padding: 3px 5px;
    text-align: center;
    text-decoration: none;
  }
  .mba-mobile-action[hidden] { display: none; }
  .mba-mobile-action span { font-size: 18px; line-height: 1; }
  .mba-mobile-primary { background: var(--mba-blue); border-radius: 9px; color: #fff; }
  .mba-sheet {
    border-radius: 18px 18px 0 0;
    bottom: 0;
    left: 0;
    max-height: min(86vh, 680px);
    max-width: none;
    padding: 15px 18px calc(18px + env(safe-area-inset-bottom));
    top: auto;
    transform: none;
    width: 100%;
  }
  .mba-sheet-handle { background: #c7d1de; border-radius: 3px; display: block; height: 4px; margin: 0 auto 14px; width: 44px; }
  .mba-close { right: 13px; top: 13px; }
  .mba-sheet h2 { font-size: 19px; }
  .mba-input-row { grid-template-columns: auto 1fr; }
  .mba-submit { border-radius: 8px; grid-column: 1 / -1; margin-top: 9px; min-height: 44px; }
  .mba-mobile-input { border-radius: 0 8px 8px 0; border-width: 1px; }
}

@media (prefers-reduced-motion: reduce) {
  .mba-root * { scroll-behavior: auto !important; transition: none !important; }
}
