/* Shared help footer (QR + contact) — included on all manager pages.
   Default width matches homepage Gallery `.content` (1180px + 24px gutters).
   Pages with a different content rail can override `.site-help-footer-wrap`. */
body.with-site-help-footer {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  min-height: 100vh;
}
body.with-site-help-footer #root {
  flex: 1 0 auto;
  align-self: stretch;
  width: 100%;
  min-height: auto;
}

/* align-self:center is required: under a column flex + stretch, max-width alone
   leaves the rail stuck on the left instead of matching the centered content. */
.site-help-footer-wrap {
  align-self: center;
  width: min(100%, 1180px);
  max-width: 1180px;
  margin: 0;
  box-sizing: border-box;
  padding: 8px 24px 40px;
}

body.hide-site-help-footer .site-help-footer-wrap {
  display: none;
}

.site-help-footer {
  width: 100%;
  box-sizing: border-box;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 14px 32px rgba(25, 28, 65, 0.07);
  padding: 22px 28px;
  display: flex;
  align-items: center;
  gap: 22px;
}

.site-help-footer-qr {
  flex: 0 0 auto;
  width: 112px;
  height: 112px;
  border: 1px solid #e8ebf3;
  border-radius: 10px;
  padding: 6px;
  box-sizing: border-box;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.site-help-footer-qr img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.site-help-footer-text {
  flex: 1 1 auto;
  min-width: 0;
}

.site-help-footer-title {
  font-size: 22px;
  font-weight: 800;
  color: #3b6fff;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
  line-height: 1.3;
}

.site-help-footer-desc {
  margin: 0;
  color: #3a4256;
  font-size: 14px;
  line-height: 1.7;
}

.site-help-footer-desc a {
  color: #3a4256;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.site-help-footer-desc a:hover {
  color: #3b6fff;
}

@media (max-width: 640px) {
  .site-help-footer-wrap {
    padding: 8px 16px 28px;
  }
  .site-help-footer {
    flex-direction: column;
    align-items: flex-start;
    padding: 18px 18px;
    gap: 14px;
  }
  .site-help-footer-qr {
    width: 96px;
    height: 96px;
  }
  .site-help-footer-title {
    font-size: 20px;
  }
}
