/* =========================================================================
   Static-site fixes — layered OVER the original Elementor CSS.
   Goal: keep the look identical, fix the audit issues, WITHOUT touching
   original stylesheets. Loaded last in <head> on every page.
   NOTE: #2 (top contact bar) is intentionally left untouched by request.
   ========================================================================= */

/* #11 — reveal fade-in elements immediately so nothing stays blank if the
   scroll-animation JS doesn't fire (static site, no reliance on runtime JS).
   Elementor's base rule is `.elementor-invisible{visibility:hidden}`, so opacity
   alone isn't enough — must also restore visibility, otherwise widgets that rely
   on it (e.g. the elementskit icon-box service cards on /lending/) render as an
   empty void even though they're laid out. .elementor-invisible is only applied
   to elements with entrance animations, so forcing them visible is always safe. */
.elementor-invisible { opacity: 1 !important; visibility: visible !important; }

/* #3 — footer legal links (Public Disclosure / Privacy / Terms / Complaints):
   original inline layout wraps to an ugly 3-up-1-down, left-shifted, overlapping.
   Center the row and let it wrap evenly. (Shared footer widget id.) */
.elementor-element-4934068 .elementor-icon-list-items {
  justify-content: center !important;
  gap: 6px 30px;
}
.elementor-element-4934068 .elementor-icon-list-item { margin: 0 !important; }

/* #15 — long email in icon-box descriptions was clipped (GET IN TOUCH / footer).
   Allow wrapping so info@mortgageallied.co.nz never gets cut off. */
.elementor-icon-box-description {
  white-space: normal !important;
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* #4 — footer GET IN TOUCH three cards (Phone / Email / Location, container
   95a5220): Location wraps to 3 lines so its inline-start icon centered lower
   than the other two (parallax) and the cards were unequal height.
   SCOPED to that container only — must NOT touch the #2 top contact bar.
   Top-align the whole row, top-align each icon to its text, equal-height cards. */
.elementor-element-95a5220 { align-items: flex-start !important; }
.elementor-element-95a5220 > .elementor-widget-icon-box { align-self: stretch; }
.elementor-element-95a5220 .elementor-icon-box-wrapper {
  align-items: flex-start !important;
  height: 100%;
}

/* #1 — ghost whitespace (about-us "OUR PHILOSOPHY" dark section, bb41fc1):
   its bottom padding was 15em (~240px) on desktop to reserve room for an
   overlap image (7506643) that is hidden on ALL devices → a big empty dark
   void below the bullet list. Match the 7em top padding. Desktop only;
   tablet/mobile already override to 2–3em. Scoped to that section. */
.elementor-73 .elementor-element.elementor-element-bb41fc1 {
  --padding-bottom: 7em;
}

/* #5 — service sub-pages (home-loan, construction-loan, …) right "Our Services"
   sidebar (nav-menu widget d7a3aba): raw dark-blue link list with no dividers
   or hover feedback. Add subtle separators + a gold hover/indent so it reads as
   a real menu. Scoped to that widget; the active item keeps its own styling. */
.elementor-element-d7a3aba .elementor-nav-menu > li { border-bottom: 1px solid rgba(255,255,255,0.12); }
.elementor-element-d7a3aba .elementor-nav-menu > li:last-child { border-bottom: none; }
.elementor-element-d7a3aba .elementor-item {
  transition: color 0.2s ease, padding-left 0.2s ease;
}
.elementor-element-d7a3aba .elementor-item:hover {
  color: var(--e-global-color-3b18848) !important;
  padding-left: 8px;
}

/* Header nav dropdowns (Lending / Wealth / About Us submenus).
   The desktop menu (.elementor-nav-menu--main) uses Elementor Pro + SmartMenus:
   the sub-menu is fully styled and positioned (position:absolute; top:100%; dark
   panel) but starts at display:none and relies on SmartMenus JS to toggle it on
   hover. On the static export that JS never initialises (the <ul> gets no
   data-smartmenus-id), so dropdowns never opened. Drive them with pure CSS hover
   instead — reliable, no JS. Scoped to .elementor-nav-menu--main, the desktop
   menu only (mobile swaps to a separate toggle widget), so no media query is
   needed; a tap on touch-at-desktop-width simply reveals the submenu. */
.elementor-nav-menu--main .menu-item-has-children:hover > .sub-menu,
.elementor-nav-menu--main .menu-item-has-children:focus-within > .sub-menu {
  display: block !important;
}

/* Header nav dropdown width:
   Elementor keeps the submenu panel narrow, so the longest Lending item
   ("Commercial property finance") overflows its own link box. Give desktop
   dropdown panels enough intrinsic width while keeping normal one-line labels. */
.elementor-nav-menu--main .menu-item-has-children > .sub-menu {
  min-width: 230px !important;
  max-width: calc(100vw - 24px);
}

.elementor-nav-menu--main .sub-menu .elementor-sub-item {
  box-sizing: border-box;
  white-space: nowrap;
}

/* Desktop dropdown state distinction:
   Keep only the current page as the white highlighted row. Hover/focus should
   not look like another active page; use a darker row with gold text instead. */
.elementor-nav-menu--main .sub-menu .elementor-sub-item:hover,
.elementor-nav-menu--main .sub-menu .elementor-sub-item:focus,
.elementor-nav-menu--main .sub-menu .elementor-sub-item.highlighted {
  background-color: rgba(255, 255, 255, 0.08) !important;
  color: var(--e-global-color-3b18848) !important;
}

.elementor-nav-menu--main .sub-menu .elementor-sub-item.elementor-item-active {
  background-color: var(--e-global-color-secondary) !important;
  color: var(--e-global-color-3b18848) !important;
}

/* Header nav stability:
   SmartMenus adds submenu arrows at runtime. Keep the link box stable and make
   the arrow absolutely positioned so it cannot change the nav width after init. */
.elementor-nav-menu--main .elementor-nav-menu a,
.elementor-nav-menu--main .elementor-item::before,
.elementor-nav-menu--main .elementor-item::after {
  transition: none !important;
}

.elementor-nav-menu--main .elementor-item.has-submenu {
  position: relative;
  padding-right: 18px !important;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 320 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='%23E1932B' d='M31.3 192h257.3c17.8 0 26.7 21.5 14.1 34.1L174.1 354.8c-7.8 7.8-20.5 7.8-28.3 0L17.2 226.1C4.6 213.5 13.5 192 31.3 192z'/%3E%3C/svg%3E");
  background-position: right 4px center;
  background-repeat: no-repeat;
  background-size: 0.75em 0.75em;
}

.elementor-nav-menu--main .sub-arrow {
  position: absolute;
  right: 4px;
  top: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1em;
  height: 1em;
  margin: 0;
  line-height: 1;
  pointer-events: none;
  transform: translateY(-50%);
  display: none !important;
}

.elementor-nav-menu--main .sub-arrow svg {
  width: 1em;
  height: 1em;
  fill: currentColor;
}

/* Header nav spacing:
   The new Rates item adds one top-level link. Keep the original rhythm but
   tighten the desktop gap enough that the full Elementor header stays on one
   line at common laptop widths. */
@media (min-width: 1025px) {
  .elementor-49 .elementor-element.elementor-element-9c879e3 {
    --e-nav-menu-horizontal-menu-item-margin: calc(34px / 2);
  }
}

/* Contact page — three middle contact cards:
   Elementor vertically centers each icon against its text block, so the cards
   with two-line email/address text push their icons lower than the phone card.
   Top-align the icon row and tighten the large description type so the email
   stays on one line at desktop/tablet card widths. Scoped to this section only. */
.elementor-element-1871ba83 .elementor-widget-icon-box .elementor-icon-box-wrapper {
  align-items: flex-start !important;
}

.elementor-element-1871ba83 .elementor-widget-icon-box .elementor-icon-box-icon {
  flex: 0 0 auto;
  margin-top: 0 !important;
}

.elementor-element-1871ba83 .elementor-icon-box-description {
  font-size: 18px !important;
  line-height: 1.45 !important;
}

.elementor-element-1871ba83 .elementor-element-45b1e5b9 .elementor-icon-box-description,
.elementor-element-1871ba83 .elementor-element-45b1e5b9 .elementor-icon-box-description a {
  white-space: nowrap !important;
  overflow-wrap: normal;
  word-break: normal;
}

/* Home/About — Our Philosophy image frame:
   The gold outline is decorative and was built from a separate spacer behind
   the photo. Because the source photo is portrait, the offset border reads as
   a stray yellow strip on the right. Hide the spacer and any replacement frame. */
@media (min-width: 1025px) {
  .elementor-73 .elementor-element.elementor-element-bb41fc1 {
    --padding-bottom: calc(7em + 14px);
  }

  .elementor-73 .elementor-element.elementor-element-4d093ba > .elementor-widget-container::before {
    content: none !important;
  }

  .elementor-73 .elementor-element.elementor-element-4d093ba > .elementor-widget-container {
    margin-bottom: 0 !important;
  }

  .elementor-73 .elementor-element.elementor-element-c47b2c9 {
    display: none !important;
  }

  .elementor-10 .elementor-element.elementor-element-4b3ef419 {
    --padding-bottom: calc(7em + 14px);
  }

  .elementor-10 .elementor-element.elementor-element-5f48d4f6 > .elementor-widget-container::before {
    content: none !important;
  }

  .elementor-10 .elementor-element.elementor-element-5f48d4f6 > .elementor-widget-container {
    margin-bottom: 0 !important;
  }

}

/* Interest Rates page — Mortgage Alliance rates widget.
   Built inside the existing Elementor page shell so the page keeps the same
   blue/gold financial advisory look instead of importing another site's UI. */
.ma-rates-intro .elementor-widget-container {
  max-width: 980px;
}

.ma-rates-intro p {
  margin: 0;
  color: var(--e-global-color-9eb562e);
  font-size: 20px;
  line-height: 1.55;
}

.elementor-element-ma-rates-widget {
  --padding-top: 0em;
  --padding-bottom: 7em;
}

.elementor-element-ma-rates-widget > .e-con-inner {
  display: block !important;
  width: 100%;
  max-width: 1200px !important;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

.elementor-element-ma-rates-copy .elementor-heading-title {
  color: var(--e-global-color-9eb562e);
}

.ma-rates-widget {
  width: 100%;
  color: var(--e-global-color-9eb562e);
  font-family: "Titillium Web", Arial, sans-serif;
}

.ma-rates-widget * {
  box-sizing: border-box;
}

.ma-rates-best {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.ma-rates-card {
  display: grid;
  min-height: 116px;
  align-content: space-between;
  gap: 7px;
  padding: 18px 20px;
  border-radius: 6px;
  background: var(--e-global-color-primary);
  box-shadow: 0 18px 45px rgba(15, 25, 48, 0.08);
}

.ma-rates-card span,
.ma-rates-card small {
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
  line-height: 1.35;
}

.ma-rates-card span {
  color: var(--e-global-color-3b18848);
  font-weight: 700;
  text-transform: uppercase;
}

.ma-rates-card strong {
  color: var(--e-global-color-secondary);
  font-family: "Archivo", Arial, sans-serif;
  font-size: 40px;
  line-height: 1;
}

.ma-rates-card strong small {
  font-family: "Titillium Web", Arial, sans-serif;
  font-size: 16px;
  font-weight: 600;
}

.ma-rates-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 190px;
  gap: 12px;
  align-items: center;
  margin-bottom: 18px;
  padding: 12px 16px;
  border: 1px solid rgba(25, 38, 74, 0.12);
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 16px 40px rgba(15, 25, 48, 0.06);
}

.ma-rates-terms {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  min-width: 0;
}

.ma-rates-term,
.ma-rates-select {
  min-height: 40px;
  border: 1px solid rgba(25, 38, 74, 0.18) !important;
  border-radius: 6px !important;
  background: #fff !important;
  color: var(--e-global-color-9eb562e) !important;
  font-family: "Titillium Web", Arial, sans-serif;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  box-shadow: none !important;
}

.ma-rates-term {
  flex: 0 1 auto;
  min-width: 50px;
  padding: 0 14px !important;
  cursor: pointer;
  white-space: nowrap;
  text-align: center;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.ma-rates-term:hover {
  border-color: var(--e-global-color-3b18848) !important;
  background: rgba(225, 151, 32, 0.12) !important;
  color: var(--e-global-color-primary) !important;
}

.ma-rates-term[aria-pressed="true"] {
  border-color: var(--e-global-color-primary) !important;
  background: var(--e-global-color-primary) !important;
  color: var(--e-global-color-secondary) !important;
}

.ma-rates-select {
  width: 100%;
  padding: 0 12px !important;
}

.ma-rates-term:focus-visible,
.ma-rates-select:focus-visible {
  outline: 2px solid var(--e-global-color-3b18848);
  outline-offset: 2px;
}

.ma-rates-table-wrap {
  overflow-x: auto;
  border: 1px solid rgba(25, 38, 74, 0.12);
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 18px 45px rgba(15, 25, 48, 0.08);
}

.ma-rates-lender-disclosure {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin: -6px 0 14px;
  padding: 12px 16px;
  border: 1px solid rgba(25, 38, 74, 0.1);
  border-radius: 6px;
  background: rgba(25, 63, 119, 0.03);
  color: rgba(25, 38, 74, 0.7);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
}

.ma-rates-lender-disclosure button {
  flex: 0 0 auto;
  min-height: 36px;
  padding: 0 14px !important;
  border: 1px solid rgba(25, 38, 74, 0.18) !important;
  border-radius: 6px !important;
  background: #fff !important;
  color: var(--e-global-color-primary) !important;
  font-family: "Titillium Web", Arial, sans-serif !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  cursor: pointer;
  box-shadow: none !important;
}

.ma-rates-lender-disclosure button:hover,
.ma-rates-lender-disclosure button:focus-visible {
  border-color: var(--e-global-color-3b18848) !important;
  background: rgba(225, 151, 32, 0.12) !important;
}

.ma-rates-lender-disclosure button:focus-visible {
  outline: 2px solid var(--e-global-color-3b18848);
  outline-offset: 2px;
}

.ma-rates-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

.ma-rates-table th,
.ma-rates-table td {
  padding: 13px 18px;
  border-bottom: 1px solid rgba(25, 38, 74, 0.1);
  text-align: left;
  vertical-align: middle;
}

.ma-rates-table th {
  background: rgba(25, 38, 74, 0.05);
  color: var(--e-global-color-9eb562e);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.ma-rates-sort {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  width: 100%;
  min-height: 0;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: var(--e-global-color-9eb562e) !important;
  font-family: "Titillium Web", Arial, sans-serif !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
  letter-spacing: 0 !important;
  text-align: left;
  text-transform: uppercase !important;
  cursor: pointer;
  box-shadow: none !important;
}

.ma-rates-sort span {
  font: inherit !important;
  letter-spacing: inherit !important;
  line-height: inherit !important;
}

.ma-rates-sort--static {
  cursor: default;
  pointer-events: none;
}

.ma-rates-sort:hover,
.ma-rates-sort:focus-visible {
  background: transparent !important;
  color: var(--e-global-color-primary) !important;
}

.ma-rates-sort:focus-visible {
  outline: 2px solid var(--e-global-color-3b18848);
  outline-offset: 3px;
}

.ma-rates-sort-icon {
  color: var(--e-global-color-3b18848);
  font-size: 14px;
  line-height: 1;
}

.ma-rates-sort-icon--static {
  visibility: hidden;
}

.ma-rates-table tbody tr:last-child td {
  border-bottom: 0;
}

.ma-rates-table td[data-label="Updated"] {
  color: var(--e-global-color-9eb562e);
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
}

.ma-rates-rate {
  color: var(--e-global-color-primary);
  font-family: "Archivo", Arial, sans-serif;
  font-size: 26px;
  line-height: 1;
}

.ma-rates-disclaimer,
.ma-rates-empty,
.ma-rates-loading,
.ma-rates-error {
  margin: 18px 0 0;
  color: rgba(25, 38, 74, 0.72);
  font-size: 15px;
  line-height: 1.55;
}

.ma-rates-disclaimer a {
  color: var(--e-global-color-primary);
}

.ma-rates-loading,
.ma-rates-empty,
.ma-rates-error {
  padding: 20px;
  border: 1px solid rgba(25, 38, 74, 0.12);
  border-radius: 6px;
  background: #fff;
}

.ma-rates-error {
  display: grid;
  gap: 6px;
}

@media (max-width: 1024px) {
  .ma-rates-intro p {
    font-size: 18px;
  }

  .ma-rates-best {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ma-rates-toolbar {
    grid-template-columns: 1fr;
  }

  .ma-rates-lender-disclosure {
    align-items: stretch;
    flex-direction: column;
  }

  .ma-rates-lender-disclosure button {
    width: 100%;
  }

  .ma-rates-terms {
    flex-wrap: wrap;
  }
}

@media (max-width: 767px) {
  .elementor-element-ma-rates-widget {
    --padding-bottom: 3em;
  }

  .ma-rates-best {
    grid-template-columns: 1fr;
  }

  .ma-rates-card strong {
    font-size: 38px;
  }

  .ma-rates-table {
    min-width: 0;
  }

  .ma-rates-table thead {
    display: none;
  }

  .ma-rates-table tr {
    display: grid;
    gap: 9px;
    padding: 16px;
    border-bottom: 1px solid rgba(25, 38, 74, 0.1);
  }

  .ma-rates-table td {
    display: grid;
    grid-template-columns: 86px minmax(0, 1fr);
    gap: 12px;
    padding: 0;
    border: 0;
  }

  .ma-rates-table td::before {
    content: attr(data-label);
    color: rgba(25, 38, 74, 0.66);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
  }
}

/* Mortgage Calculator page — lightweight local repayment estimator. */
.elementor-element-ma-calculator-widget {
  --padding-top: 0em;
  --padding-bottom: 7em;
}

.elementor-element-ma-calculator-widget > .e-con-inner {
  display: block !important;
  width: 100%;
  max-width: 1180px !important;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

.ma-calculator-widget {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(290px, 0.42fr);
  gap: 22px;
  width: 100%;
  color: var(--e-global-color-9eb562e);
  font-family: "Titillium Web", Arial, sans-serif;
}

.ma-calculator-widget * {
  box-sizing: border-box;
}

.ma-calculator-stepper,
.ma-calculator-panel,
.ma-calculator-aside,
.ma-calculator-form,
.ma-calculator-results,
.ma-calculator-table-wrap,
.ma-calculator-lead {
  border: 1px solid rgba(25, 38, 74, 0.12);
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 18px 45px rgba(15, 25, 48, 0.08);
}

.ma-calculator-stepper {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  overflow: hidden;
}

.ma-calculator-step {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 4px 10px;
  align-items: center;
  min-height: 72px;
  padding: 14px 16px !important;
  border: 0 !important;
  border-right: 1px solid rgba(25, 38, 74, 0.1) !important;
  border-radius: 0 !important;
  background: #fff !important;
  color: var(--e-global-color-9eb562e) !important;
  text-align: left;
  box-shadow: none !important;
}

.ma-calculator-step:last-child {
  border-right: 0 !important;
}

.ma-calculator-step[aria-current="true"] {
  background: rgba(25, 63, 119, 0.05) !important;
}

.ma-calculator-step span {
  grid-row: 1 / span 2;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: var(--e-global-color-primary);
  color: var(--e-global-color-secondary);
  font-weight: 800;
}

.ma-calculator-step strong {
  font-size: 15px;
  font-weight: 800;
}

.ma-calculator-step small {
  color: rgba(25, 38, 74, 0.58);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.ma-calculator-panel {
  padding: 22px;
}

.ma-calculator-section h4 {
  margin: 0 0 8px;
  color: var(--e-global-color-primary);
  font-family: "Archivo", Arial, sans-serif;
  font-size: 28px;
}

.ma-calculator-section p {
  margin: 0 0 18px;
  color: rgba(25, 38, 74, 0.72);
  font-size: 16px;
  line-height: 1.5;
}

.ma-calculator-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 0;
  border: 0;
  box-shadow: none;
}

.ma-calculator-form--applicants {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ma-calculator-applicant {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(25, 38, 74, 0.12);
  border-radius: 6px;
  background: rgba(25, 63, 119, 0.03);
}

.ma-calculator-applicant h5 {
  margin: 0;
  color: var(--e-global-color-primary);
  font-size: 18px;
  font-weight: 800;
}

.ma-calculator-field {
  display: grid;
  gap: 8px;
  margin: 0;
}

.ma-calculator-field span {
  color: var(--e-global-color-9eb562e);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.ma-calculator-input-wrap {
  position: relative;
}

.ma-calculator-input {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid rgba(25, 38, 74, 0.18);
  border-radius: 6px;
  background: #fff;
  color: var(--e-global-color-9eb562e);
  font-family: "Titillium Web", Arial, sans-serif;
  font-size: 17px;
  font-weight: 700;
  transition: background-color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.ma-calculator-input.is-ai-filled {
  border-color: #2f9e44;
  background-color: rgba(47, 158, 68, 0.13);
  box-shadow: 0 0 0 3px rgba(47, 158, 68, 0.22);
}

.ma-calculator-field.is-ai-filled {
  margin: -4px;
  padding: 4px;
  border-radius: 8px;
  background: rgba(47, 158, 68, 0.07);
}

.ma-calculator-input:is(select) {
  padding-right: 42px;
  appearance: none;
  -webkit-appearance: none;
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='%23000000' d='M5.25 7.5 10 12.25 14.75 7.5z'/%3E%3C/svg%3E");
  background-position: right 17px center;
  background-repeat: no-repeat;
  background-size: 14px 14px;
}

.ma-calculator-input:is(select).is-ai-filled {
  background-color: rgba(47, 158, 68, 0.13);
}

.ma-calculator-input-wrap .ma-calculator-input {
  padding-right: 56px;
}

.ma-calculator-input-wrap--number .ma-calculator-input {
  padding-right: 56px;
}

.ma-calculator-input-wrap--number.ma-calculator-input-wrap--long-unit .ma-calculator-input {
  padding-right: 92px;
}

.ma-calculator-input-wrap em {
  position: absolute;
  top: 50%;
  right: 14px;
  color: rgba(25, 38, 74, 0.58);
  font-size: 13px;
  font-style: normal;
  font-weight: 700;
  transform: translateY(-50%);
}

.ma-calculator-input:focus-visible {
  outline: 2px solid var(--e-global-color-3b18848);
  outline-offset: 2px;
}

.ma-calculator-check.is-ai-filled {
  border-color: rgba(47, 158, 68, 0.45);
  background: rgba(47, 158, 68, 0.13);
  box-shadow: 0 0 0 3px rgba(47, 158, 68, 0.2);
}

.ma-calculator-assumptions {
  display: grid;
  gap: 14px;
  margin-top: 18px;
  padding: 18px;
  border: 1px solid rgba(25, 38, 74, 0.12);
  border-radius: 6px;
  background: rgba(25, 63, 119, 0.03);
}

.ma-calculator-assumptions h5,
.ma-calculator-assumptions p {
  margin: 0;
}

.ma-calculator-assumptions h5 {
  color: var(--e-global-color-primary);
  font-size: 18px;
  font-weight: 800;
}

.ma-calculator-assumptions p {
  color: rgba(25, 38, 74, 0.68);
  font-size: 14px;
  line-height: 1.5;
}

.ma-calculator-rate-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(96px, 1fr));
  gap: 12px;
}

.ma-calculator-rate-grid .ma-calculator-field span {
  font-size: 12px;
}

.ma-calculator-rate-grid .ma-calculator-input-wrap .ma-calculator-input {
  padding-right: 54px;
}

.ma-calculator-rate-grid .ma-calculator-input-wrap em {
  right: 10px;
  font-size: 12px;
}

.ma-calculator-assumption-note {
  padding: 10px 12px;
  border-radius: 4px;
  background: rgba(25, 38, 74, 0.05);
  font-weight: 700;
}

.ma-calculator-assumption-note--error {
  background: rgba(178, 53, 53, 0.08);
  color: #8a1f1f !important;
}

.ma-calculator-check,
.ma-calculator-consent {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 0;
  color: rgba(25, 38, 74, 0.78);
  font-size: 14px;
  font-weight: 700;
}

.ma-calculator-check input,
.ma-calculator-consent input {
  width: 17px;
  height: 17px;
  accent-color: var(--e-global-color-primary);
}

.ma-calculator-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 22px;
}

.ma-calculator-prefill {
  grid-column: 1 / -1;
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border: 1px solid rgba(215, 165, 40, 0.4);
  border-left: 4px solid #d7a528;
  border-radius: 6px;
  background: rgba(215, 165, 40, 0.1);
}

.ma-calculator-prefill strong {
  color: var(--e-global-color-primary);
  font-size: 15px;
  font-weight: 900;
}

.ma-calculator-prefill p {
  margin: 0;
  color: rgba(25, 38, 74, 0.72);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
}

.ma-calculator-primary,
.ma-calculator-secondary {
  min-height: 42px;
  padding: 0 18px !important;
  border-radius: 4px !important;
  font-family: "Titillium Web", Arial, sans-serif;
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  box-shadow: none !important;
}

.ma-calculator-primary {
  border: 1px solid var(--e-global-color-3b18848) !important;
  background: var(--e-global-color-3b18848) !important;
  color: var(--e-global-color-primary) !important;
}

.ma-calculator-secondary {
  border: 1px solid rgba(25, 38, 74, 0.18) !important;
  background: #fff !important;
  color: var(--e-global-color-primary) !important;
}

.ma-calculator-error,
.ma-calculator-loading,
.ma-calculator-empty {
  padding: 16px;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 700;
}

.ma-calculator-error {
  margin-top: 18px;
  border: 1px solid rgba(178, 53, 53, 0.25);
  background: rgba(178, 53, 53, 0.08);
  color: #8a1f1f;
}

.ma-calculator-loading,
.ma-calculator-empty {
  border: 1px solid rgba(25, 38, 74, 0.12);
  background: rgba(25, 63, 119, 0.03);
  color: rgba(25, 38, 74, 0.72);
}

.ma-calculator-aside {
  align-self: start;
  display: grid;
  gap: 9px;
  padding: 22px;
}

.ma-calculator-aside > span,
.ma-calculator-aside small {
  color: rgba(25, 38, 74, 0.68);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.ma-calculator-aside > strong {
  color: var(--e-global-color-primary);
  font-family: "Archivo", Arial, sans-serif;
  font-size: 38px;
  line-height: 1;
}

.ma-calculator-aside dl {
  display: grid;
  gap: 10px;
  margin: 14px 0 0;
}

.ma-calculator-aside dl div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding-top: 10px;
  border-top: 1px solid rgba(25, 38, 74, 0.1);
}

.ma-calculator-aside dt,
.ma-calculator-aside dd {
  margin: 0;
  font-size: 14px;
}

.ma-calculator-aside dt {
  color: rgba(25, 38, 74, 0.62);
  font-weight: 700;
}

.ma-calculator-aside dd {
  color: var(--e-global-color-9eb562e);
  font-weight: 800;
  text-align: right;
}

.ma-calculator-result-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.ma-calculator-result-summary article {
  display: grid;
  gap: 8px;
  padding: 18px;
  border: 1px solid rgba(25, 38, 74, 0.12);
  border-radius: 6px;
  background: #fff;
}

.ma-calculator-result-summary span,
.ma-calculator-result-summary small {
  color: rgba(25, 38, 74, 0.68);
  font-size: 13px;
  font-weight: 700;
}

.ma-calculator-result-summary strong {
  color: var(--e-global-color-primary);
  font-family: "Archivo", Arial, sans-serif;
  font-size: 24px;
  line-height: 1.08;
}

.ma-calculator-signal--good {
  background: rgba(13, 122, 95, 0.08) !important;
}

.ma-calculator-signal--watch {
  background: rgba(225, 151, 32, 0.12) !important;
}

.ma-calculator-result-explain {
  display: grid;
  gap: 6px;
  margin: 0 0 18px;
  padding: 14px 16px;
  border: 1px solid rgba(25, 38, 74, 0.12);
  border-left: 4px solid var(--e-global-color-3b18848);
  border-radius: 6px;
  background: rgba(25, 63, 119, 0.03);
}

.ma-calculator-result-explain strong {
  color: var(--e-global-color-primary);
  font-size: 15px;
  font-weight: 800;
}

.ma-calculator-result-explain p {
  margin: 0;
  color: rgba(25, 38, 74, 0.72);
  font-size: 14px;
  line-height: 1.5;
}

.ma-calculator-table-wrap {
  overflow-x: auto;
}

.ma-calculator-bank-groups {
  display: grid;
  gap: 18px;
}

.ma-calculator-bank-group {
  display: grid;
  gap: 10px;
}

.ma-calculator-bank-group h5,
.ma-calculator-bank-group p {
  margin: 0;
}

.ma-calculator-bank-group h5 {
  color: var(--e-global-color-primary);
  font-family: "Archivo", Arial, sans-serif;
  font-size: 20px;
  line-height: 1.2;
}

.ma-calculator-bank-group p {
  max-width: 820px;
  color: rgba(25, 38, 74, 0.68);
  font-size: 14px;
  line-height: 1.45;
}

.ma-calculator-table {
  width: 100%;
  min-width: 860px;
  border-collapse: collapse;
}

.ma-calculator-table th,
.ma-calculator-table td {
  padding: 13px 15px;
  border-bottom: 1px solid rgba(25, 38, 74, 0.1);
  text-align: left;
  vertical-align: top;
  font-size: 14px;
}

.ma-calculator-table th {
  background: rgba(25, 38, 74, 0.05);
  color: var(--e-global-color-9eb562e);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.ma-calculator-table td small {
  display: block;
  margin-top: 3px;
  color: rgba(25, 38, 74, 0.58);
  font-size: 12px;
  font-weight: 700;
}

.ma-calculator-status {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.ma-calculator-status--pass {
  background: rgba(13, 122, 95, 0.12);
  color: #0d6f57;
}

.ma-calculator-status--review {
  background: rgba(225, 151, 32, 0.16);
  color: #8a5200;
}

.ma-calculator-lead {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  align-items: end;
  margin-top: 18px;
  padding: 18px;
}

.ma-calculator-lead > div {
  grid-column: 1 / -1;
  display: grid;
  gap: 4px;
}

.ma-calculator-lead strong {
  color: var(--e-global-color-primary);
  font-size: 18px;
  font-weight: 800;
}

.ma-calculator-lead span,
.ma-calculator-lead label span {
  color: rgba(25, 38, 74, 0.7);
  font-size: 13px;
  font-weight: 700;
}

.ma-calculator-lead label:not(.ma-calculator-consent) {
  display: grid;
  grid-column: span 2;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 7px;
  align-items: center;
  margin: 0;
}

.ma-calculator-lead label:not(.ma-calculator-consent) > span {
  white-space: nowrap;
}

.ma-calculator-lead .ma-calculator-consent {
  grid-column: 1 / -2;
}

.ma-calculator-lead label.ma-calculator-consent {
  display: flex;
  gap: 10px;
  align-items: center;
}

.ma-calculator-lead label.ma-calculator-consent span {
  line-height: 1.35;
}

.ma-calculator-lead .ma-calculator-primary {
  justify-self: end;
  min-width: 192px;
  width: max-content;
  white-space: nowrap;
}

.ma-calculator-lead--success {
  grid-template-columns: 1fr;
  align-items: start;
  border-color: rgba(13, 122, 95, 0.2);
  background: rgba(13, 122, 95, 0.07);
}

.ma-calculator-results {
  display: grid;
  gap: 0;
  overflow: hidden;
}

.ma-calculator-results article {
  display: grid;
  gap: 8px;
  padding: 22px;
  border-bottom: 1px solid rgba(25, 38, 74, 0.1);
}

.ma-calculator-results article:first-child {
  background: var(--e-global-color-primary);
}

.ma-calculator-results article:last-child {
  border-bottom: 0;
}

.ma-calculator-results span,
.ma-calculator-results small {
  color: rgba(25, 38, 74, 0.72);
  font-size: 13px;
  font-weight: 700;
}

.ma-calculator-results article:first-child span,
.ma-calculator-results article:first-child small {
  color: rgba(255, 255, 255, 0.78);
}

.ma-calculator-results strong {
  color: var(--e-global-color-primary);
  font-family: "Archivo", Arial, sans-serif;
  font-size: 34px;
  line-height: 1;
}

.ma-calculator-results article:first-child strong {
  color: var(--e-global-color-secondary);
  font-size: 42px;
}

.ma-calculator-note {
  grid-column: 1 / -1;
  margin: 0;
  color: rgba(25, 38, 74, 0.72);
  font-size: 15px;
  line-height: 1.55;
}

@media (max-width: 1024px) {
  .ma-calculator-widget {
    grid-template-columns: 1fr;
  }

  .ma-calculator-result-summary,
  .ma-calculator-form--applicants,
  .ma-calculator-rate-grid {
    grid-template-columns: 1fr;
  }

  .ma-calculator-lead {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .ma-calculator-lead > div {
    grid-column: 1 / -1;
  }
}

@media (max-width: 767px) {
  .elementor-element-ma-calculator-widget {
    --padding-bottom: 3em;
  }

  .ma-calculator-stepper {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ma-calculator-lead {
    grid-template-columns: 1fr;
  }

  .ma-calculator-lead label:not(.ma-calculator-consent),
  .ma-calculator-lead .ma-calculator-consent,
  .ma-calculator-lead .ma-calculator-primary {
    grid-column: 1 / -1;
  }

  .ma-calculator-lead .ma-calculator-primary {
    justify-self: stretch;
    width: 100%;
  }

  .ma-calculator-step {
    min-height: 64px;
    padding: 12px !important;
  }

  .ma-calculator-form {
    grid-template-columns: 1fr;
    padding: 18px;
  }

  .ma-calculator-results strong,
  .ma-calculator-results article:first-child strong {
    font-size: 32px;
  }

  .ma-calculator-panel,
  .ma-calculator-aside {
    padding: 18px;
  }

  .ma-calculator-table {
    min-width: 0;
  }

  .ma-calculator-table thead {
    display: none;
  }

  .ma-calculator-table tr {
    display: grid;
    gap: 8px;
    padding: 14px;
    border-bottom: 1px solid rgba(25, 38, 74, 0.1);
  }

  .ma-calculator-table td {
    display: grid;
    grid-template-columns: 86px minmax(0, 1fr);
    gap: 12px;
    padding: 0;
    border: 0;
  }

  .ma-calculator-table td::before {
    content: attr(data-label);
    color: rgba(25, 38, 74, 0.66);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
  }
}

.elementor-element-ma-insights {
  --padding-top: 0;
  --padding-bottom: 4.5em;
  padding-bottom: 72px;
}

.elementor-element-ma-insights > .e-con-inner {
  display: block !important;
  width: 100%;
  max-width: 1200px !important;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

.elementor-element-ma-insights + .elementor-element-2f8080c {
  margin-top: 72px;
}

.ma-insights-page {
  display: grid;
  gap: 26px;
  width: 100%;
}

.ma-insights-feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: end;
  padding: 28px;
  border: 1px solid rgba(25, 38, 74, 0.12);
  border-radius: 8px;
  background: var(--e-global-color-primary);
  box-shadow: 0 18px 45px rgba(25, 38, 74, 0.12);
}

.ma-insights-eyebrow {
  display: inline-flex;
  margin-bottom: 12px;
  color: var(--e-global-color-secondary);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.ma-insights-feature h3,
.ma-insights-feature p {
  margin: 0;
}

.ma-insights-feature h3 {
  color: #fff;
  font-family: "Archivo", Arial, sans-serif;
  font-size: 36px;
  line-height: 1.12;
}

.ma-insights-feature p {
  max-width: 760px;
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 16px;
  line-height: 1.65;
}

.ma-insights-button,
.ma-insight-card a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 4px;
  background: var(--e-global-color-secondary);
  color: var(--e-global-color-primary);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none !important;
  text-transform: uppercase;
  white-space: nowrap;
}

.ma-insights-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 24px;
  align-items: start;
}

.ma-insights-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.ma-insight-card,
.ma-insights-sidebar {
  border: 1px solid rgba(25, 38, 74, 0.12);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(25, 38, 74, 0.07);
}

.ma-insight-card {
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 12px;
  padding: 22px;
}

.ma-insight-card span {
  color: rgba(25, 38, 74, 0.58);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.ma-insight-card strong {
  color: var(--e-global-color-primary);
  font-family: "Archivo", Arial, sans-serif;
  font-size: 21px;
  line-height: 1.25;
}

.ma-insight-card p {
  margin: 0;
  color: rgba(25, 38, 74, 0.72);
  font-size: 15px;
  line-height: 1.6;
}

.ma-insight-card a {
  justify-self: start;
  align-self: end;
  min-height: 38px;
  margin-top: 4px;
  background: rgba(225, 151, 32, 0.14);
  color: var(--e-global-color-primary);
}

.ma-insights-sidebar {
  position: sticky;
  top: 20px;
  display: grid;
  gap: 18px;
  padding: 24px;
}

.ma-insights-sidebar h4,
.ma-insights-sidebar p,
.ma-insights-sidebar ul {
  margin: 0;
}

.ma-insights-sidebar h4 {
  color: var(--e-global-color-primary);
  font-family: "Archivo", Arial, sans-serif;
  font-size: 22px;
}

.ma-insights-sidebar ul {
  display: grid;
  gap: 10px;
  padding: 0;
  list-style: none;
}

.ma-insights-sidebar li {
  margin: 0;
}

.ma-insights-topic {
  display: block;
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  border: 0;
  border-left: 3px solid var(--e-global-color-secondary);
  border-radius: 0;
  background: rgba(25, 38, 74, 0.04);
  color: var(--e-global-color-primary);
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.25;
  text-align: left;
  cursor: pointer;
}

.ma-insights-topic:hover,
.ma-insights-topic:focus-visible {
  background: rgba(225, 151, 32, 0.14);
  outline: none;
}

.ma-insights-topic[aria-pressed="true"] {
  border-left-color: var(--e-global-color-primary);
  background: var(--e-global-color-primary);
  color: #fff;
}

.ma-insights-sidebar p {
  color: rgba(25, 38, 74, 0.68);
  font-size: 14px;
  line-height: 1.6;
}

.ma-insights-page[aria-busy="true"] {
  opacity: 0.68;
  transition: opacity 160ms ease;
}

@media (max-width: 1024px) {
  .ma-insights-feature,
  .ma-insights-layout {
    grid-template-columns: 1fr;
  }

  .ma-insights-sidebar {
    position: static;
  }
}

@media (max-width: 767px) {
  .elementor-element-ma-insights {
    --padding-bottom: 3em;
    padding-bottom: 48px;
  }

  .elementor-element-ma-insights + .elementor-element-2f8080c {
    margin-top: 48px;
  }

  .ma-insights-feature {
    padding: 22px;
  }

  .ma-insights-feature h3 {
    font-size: 29px;
  }

  .ma-insights-grid {
    grid-template-columns: 1fr;
  }

  .ma-insights-button,
  .ma-insight-card a {
    width: 100%;
    white-space: normal;
  }
}

.ma-admin-page {
  margin: 0;
  background: #f5f7fb;
  color: #19264a;
  font-family: "Titillium Web", Arial, sans-serif;
}

.ma-admin-shell {
  display: grid;
  gap: 18px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 48px;
}

.ma-admin-header,
.ma-admin-auth,
.ma-admin-toolbar,
.ma-admin-table-panel {
  border: 1px solid rgba(25, 38, 74, 0.12);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(25, 38, 74, 0.06);
}

.ma-admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 22px;
}

.ma-admin-header span,
.ma-admin-token-form span,
.ma-admin-toolbar span {
  color: rgba(25, 38, 74, 0.62);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.ma-admin-header h1,
.ma-admin-auth h2 {
  margin: 0;
  color: #193f77;
  font-family: "Archivo", Arial, sans-serif;
  line-height: 1.1;
}

.ma-admin-header h1 {
  font-size: 34px;
}

.ma-admin-header a {
  color: #193f77;
  font-weight: 800;
  text-decoration: none;
}

.ma-admin-auth {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 22px;
  align-items: end;
  padding: 22px;
}

.ma-admin-auth p {
  margin: 8px 0 0;
  color: rgba(25, 38, 74, 0.7);
  line-height: 1.5;
}

.ma-admin-token-form,
.ma-admin-toolbar {
  display: grid;
  gap: 12px;
}

.ma-admin-token-form label,
.ma-admin-toolbar label {
  display: grid;
  gap: 6px;
}

.ma-admin-token-form input,
.ma-admin-toolbar input,
.ma-admin-toolbar select {
  min-height: 42px;
  border: 1px solid rgba(25, 38, 74, 0.18);
  border-radius: 6px;
  padding: 0 12px;
  background: #fff;
  color: #19264a;
  font: inherit;
  font-weight: 700;
}

.ma-admin-token-form button,
.ma-admin-actions button {
  min-height: 42px;
  border: 1px solid #d7a528;
  border-radius: 4px;
  padding: 0 14px;
  background: #d7a528;
  color: #193f77;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.ma-admin-toolbar {
  grid-template-columns: minmax(220px, 1fr) 110px auto;
  align-items: end;
  padding: 16px;
}

.ma-admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.ma-admin-actions button:last-child {
  border-color: rgba(25, 38, 74, 0.18);
  background: #fff;
}

.ma-admin-status {
  min-height: 20px;
  color: rgba(25, 38, 74, 0.7);
  font-size: 14px;
  font-weight: 700;
}

.ma-admin-status[data-status="error"] {
  color: #8a1f1f;
}

.ma-admin-table-panel {
  overflow: hidden;
}

.ma-admin-table-wrap {
  overflow-x: auto;
  overscroll-behavior-x: contain;
}

.ma-admin-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  table-layout: fixed;
}

.ma-admin-table th:nth-child(1),
.ma-admin-table td:nth-child(1) {
  width: 150px;
}

.ma-admin-table th:nth-child(2),
.ma-admin-table td:nth-child(2) {
  width: 150px;
}

.ma-admin-table th:nth-child(4),
.ma-admin-table td:nth-child(4),
.ma-admin-table th:nth-child(5),
.ma-admin-table td:nth-child(5) {
  width: 120px;
}

.ma-admin-table th:nth-child(6),
.ma-admin-table td:nth-child(6) {
  width: 86px;
}

.ma-admin-table th,
.ma-admin-table td {
  padding: 13px 14px;
  border-bottom: 1px solid rgba(25, 38, 74, 0.1);
  text-align: left;
  vertical-align: top;
  font-size: 14px;
  overflow-wrap: anywhere;
}

.ma-admin-table th {
  background: rgba(25, 38, 74, 0.05);
  color: #19264a;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.ma-admin-table a {
  color: #193f77;
  font-weight: 800;
  text-decoration: none;
}

.ma-admin-contact-list {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.ma-admin-contact-list div {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 8px;
  align-items: baseline;
}

.ma-admin-contact-list span,
.ma-admin-muted {
  color: rgba(25, 38, 74, 0.58);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.ma-admin-status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  background: rgba(13, 122, 95, 0.09);
  color: #0d6d55;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  white-space: nowrap;
}

.ma-admin-detail-toggle {
  min-height: 30px;
  border: 1px solid rgba(25, 38, 74, 0.18);
  border-radius: 4px;
  padding: 0 10px;
  background: #fff;
  color: #193f77;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.ma-admin-detail-row td {
  background: rgba(25, 63, 119, 0.03);
  padding: 16px;
}

.ma-admin-detail-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.ma-admin-detail-card {
  border: 1px solid rgba(25, 38, 74, 0.1);
  border-radius: 6px;
  padding: 14px;
  background: #fff;
}

.ma-admin-detail-card h3 {
  margin: 0 0 10px;
  color: #193f77;
  font-size: 15px;
}

.ma-admin-detail-card dl {
  display: grid;
  gap: 8px;
  margin: 0;
}

.ma-admin-detail-card dl div {
  display: grid;
  gap: 2px;
}

.ma-admin-detail-card dt,
.ma-admin-detail-card dd {
  margin: 0;
  font-size: 13px;
}

.ma-admin-detail-card dt {
  color: rgba(25, 38, 74, 0.58);
  font-weight: 800;
  text-transform: uppercase;
}

.ma-admin-detail-card dd {
  color: #19264a;
  font-weight: 800;
}

@media (max-width: 860px) {
  .ma-admin-header,
  .ma-admin-auth,
  .ma-admin-toolbar {
    grid-template-columns: 1fr;
  }

  .ma-admin-header {
    display: grid;
  }

  .ma-admin-actions {
    justify-content: stretch;
  }

  .ma-admin-actions button {
    flex: 1 1 auto;
  }

  .ma-admin-detail-grid {
    grid-template-columns: 1fr;
  }
}

.ma-ai-chat {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 9999;
  color: #19264a;
  font-family: "Titillium Web", Arial, sans-serif;
}

.ma-ai-chat-launcher {
  position: relative;
  display: grid;
  place-items: center;
  width: 58px !important;
  height: 58px !important;
  min-height: 0 !important;
  padding: 0 !important;
  border: 2px solid #d7a528 !important;
  border-radius: 999px !important;
  background: transparent !important;
  color: #193f77 !important;
  cursor: pointer;
  font: inherit;
  font-weight: 900;
  overflow: hidden;
  box-shadow: 0 18px 38px rgba(25, 38, 74, 0.22) !important;
}

.ma-ai-chat-launcher:hover,
.ma-ai-chat-launcher:focus,
.ma-ai-chat-launcher:focus-visible {
  background: transparent !important;
  color: #193f77 !important;
  outline: none !important;
}

.ma-ai-chat-launcher img {
  display: block;
  width: 54px !important;
  height: 54px !important;
  max-width: none !important;
  border-radius: 999px !important;
  object-fit: cover;
}

.ma-ai-chat-panel {
  position: absolute;
  right: 0;
  bottom: 76px;
  display: grid;
  grid-template-rows: auto minmax(180px, 1fr) auto auto;
  width: min(360px, calc(100vw - 32px));
  max-height: min(620px, calc(100vh - 120px));
  border: 1px solid rgba(25, 38, 74, 0.14);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 22px 60px rgba(25, 38, 74, 0.22);
}

.ma-ai-chat-panel[hidden] {
  display: none !important;
}

.ma-ai-chat-panel header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: #193f77;
  color: #fff;
}

.ma-ai-chat-avatar {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border: 2px solid rgba(255, 255, 255, 0.42);
  border-radius: 999px;
  object-fit: cover;
}

.ma-ai-chat-panel header div {
  min-width: 0;
  flex: 1 1 auto;
}

.ma-ai-chat-panel header span {
  display: block;
  color: rgba(255, 255, 255, 0.7);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.ma-ai-chat-panel header strong {
  font-family: "Archivo", Arial, sans-serif;
  font-size: 18px;
}

.ma-ai-chat-panel header button {
  width: 30px !important;
  height: 30px !important;
  min-height: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: transparent !important;
  color: #fff !important;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
  text-align: center;
}

.ma-ai-chat-panel header button:hover,
.ma-ai-chat-panel header button:focus,
.ma-ai-chat-panel header button:focus-visible {
  background: transparent !important;
  color: #fff !important;
  outline: none !important;
}

.ma-ai-chat-log {
  display: grid;
  gap: 10px;
  align-content: start;
  padding: 14px;
  overflow-y: auto;
  background: #f5f7fb;
}

.ma-ai-chat-message {
  position: relative;
  max-width: 88%;
  padding: 10px 12px;
  border-radius: 7px;
  font-size: 14px;
  line-height: 1.45;
}

.ma-ai-chat-message--assistant {
  justify-self: start;
  background: #fff;
  color: #19264a;
}

.ma-ai-chat-message--transient {
  color: rgba(25, 38, 74, 0.68);
  font-style: italic;
}

.ma-ai-chat-message--user {
  justify-self: end;
  background: #193f77;
  color: #fff;
}

.ma-ai-chat-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 10px;
}

.ma-ai-chat-actions button {
  min-height: 32px !important;
  padding: 0 10px !important;
  border: 1px solid #d7a528 !important;
  border-radius: 4px !important;
  background: #d7a528 !important;
  color: #193f77 !important;
  cursor: pointer;
  font: inherit;
  font-size: 12px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  text-transform: uppercase;
}

.ma-ai-chat-actions button:hover,
.ma-ai-chat-actions button:focus,
.ma-ai-chat-actions button:focus-visible {
  background: #d7a528 !important;
  color: #193f77 !important;
  outline: 2px solid rgba(25, 63, 119, 0.18) !important;
  outline-offset: 2px;
}

.ma-ai-chat-form {
  display: grid;
  gap: 10px;
  padding: 12px;
  border-top: 1px solid rgba(25, 38, 74, 0.1);
}

.ma-ai-chat-form textarea {
  width: 100%;
  min-height: 62px;
  resize: vertical;
  border: 1px solid rgba(25, 38, 74, 0.16);
  border-radius: 6px;
  padding: 10px;
  color: #19264a;
  font: inherit;
  font-size: 14px;
}

.ma-ai-chat-controls {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.ma-ai-chat-controls select {
  min-height: 36px;
  border: 1px solid rgba(25, 38, 74, 0.18);
  border-radius: 4px;
  padding: 0 28px 0 10px;
  background: #fff;
  color: #193f77;
  font: inherit;
  font-size: 13px;
  font-weight: 900;
}

.ma-ai-chat-controls button {
  min-height: 36px;
  border: 1px solid rgba(25, 38, 74, 0.18);
  border-radius: 4px;
  padding: 0 12px;
  background: #fff;
  color: #193f77;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.ma-ai-chat-controls button[type="submit"] {
  border-color: #d7a528;
  background: #d7a528;
}

.ma-ai-chat-mic.is-listening {
  border-color: #8a1f1f;
  background: rgba(178, 53, 53, 0.1);
  color: #8a1f1f;
}

.ma-ai-chat-note {
  min-height: 18px;
  margin: 0;
  padding: 0 12px 12px;
  color: rgba(25, 38, 74, 0.64);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}

@media (max-width: 767px) {
  .ma-ai-chat {
    right: 14px;
    bottom: 14px;
  }

  .ma-ai-chat-launcher {
    width: 56px !important;
    height: 56px !important;
  }

  .ma-ai-chat-launcher img {
    width: 52px !important;
    height: 52px !important;
  }

  .ma-ai-chat-panel {
    bottom: 68px;
  }
}
