/* Self-contained homepage footer, safe to include in storefront, admin and payment pages. */
@font-face { font-family: MPFooter; src: url('../Fonts/Vazirmatn-FD-NL-Regular.woff2') format('woff2'); font-display: swap; }
body #mpSiteFooter {
  box-sizing: border-box;
  flex: 0 0 auto;
  width: 100%;
  margin: auto 0 0;
  padding: 44px 0 calc(32px + env(safe-area-inset-bottom));
  border: 0;
  background: #102c50;
  color: #d9eaff;
  direction: rtl;
  text-align: right;
  font: 400 14px/2 MPFooter, Tahoma, sans-serif;
}
body #mpSiteFooter * { box-sizing: border-box; font-family: inherit; }
body #mpSiteFooter > .container { width: min(1240px, calc(100% - 40px)); max-width: none; margin: 0 auto; padding: 0; }
body #mpSiteFooter .footer-top { display: grid; grid-template-columns: 1.1fr .9fr; gap: 28px; padding: 0; border: 0; }
body #mpSiteFooter .footer-title { color: #fff; font-size: 1rem; font-weight: 700; margin: 0 0 14px; }
body #mpSiteFooter .footer-text { color: #bfd5ed; font-size: .82rem; line-height: 2; font-weight: 400; margin: 0; opacity: 1; text-align: justify; }
body #mpSiteFooter .footer-contact { display: flex; flex-direction: column; gap: 12px; }
body #mpSiteFooter .contact-item { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 9px; color: #d9eaff; font-size: .82rem; font-weight: 400; margin: 0; overflow-wrap: anywhere; }
body #mpSiteFooter a { text-decoration: none; }
body #mpSiteFooter a:is(:hover, :focus-visible) { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
body #mpSiteFooter a:focus-visible { outline: 2px solid #8cd3ff; outline-offset: 4px; border-radius: 3px; }
body #mpSiteFooter .enamad-wrap { margin-top: 16px; }
body #mpSiteFooter .enamad-wrap img { display: block; width: 90px; height: auto; max-width: 100%; }
body #mpSiteFooter .copyright { color: #a9c6e6; border-top: 1px solid #315174; padding: 18px 0 0; margin: 22px 0 0; font-size: .72rem; font-weight: 400; opacity: 1; }
body #mpSiteFooter small { font-size: inherit; }
body.mp-home #mpSiteFooter { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
body.mp-page, body.mp-footer-document { min-height: 100dvh; display: flex; flex-direction: column; }
body.mp-page > .wrap { flex: 1 0 auto; }
body.mp-footer-document > .app { width: 100%; box-sizing: border-box; }
body.mp-footer-centered { height: auto; align-items: stretch; justify-content: flex-start; }
body.mp-footer-centered > .auth-shell { margin: 48px auto; }
body.mp-footer-centered > .card { margin: 48px auto; box-sizing: border-box; }
body.mp-footer-error { align-items: stretch; padding: 0; }
body.mp-footer-error > main { flex: 1; display: grid; place-content: center; padding: 32px 20px; }
/* Scroll to the footer outside the chat; retain a viewport-height conversation and keyboard space. */
html.mp-chat-document { height: auto; overflow-y: auto; overscroll-behavior-y: auto; }
body.mp-chat.mp-footer-document { position: static; height: auto; min-height: 100dvh; overflow-x: hidden; overflow-y: auto; align-items: center; justify-content: flex-start; }
body.mp-chat.mp-footer-document > .app-container { flex: 0 0 auto; margin: 24px auto; width: min(1200px, calc(100% - 32px)); }
@media (max-width: 768px) {
  body #mpSiteFooter { padding-top: 32px; }
  body #mpSiteFooter > .container { width: calc(100% - 32px); }
  body #mpSiteFooter .footer-top { grid-template-columns: 1fr; gap: 26px; }
  body.mp-footer-centered > .auth-shell, body.mp-footer-centered > .card { margin-block: 28px; }
  body.mp-chat.mp-footer-document > .app-container { width: 100%; margin: 0; height: var(--vv-height, 100dvh); }
  html.mp-chat-document:has(.app-container :is(input, textarea):focus) { height: 100%; overflow: hidden; }
  body.mp-chat.mp-footer-document:has(.app-container :is(input, textarea):focus) { position: fixed; top: var(--vv-offset-top, 0px); left: 0; right: 0; height: var(--vv-height, 100dvh); min-height: 0; overflow: hidden; }
}
