/**
 * Shared card footer — referral CTA + “Created & hosted by” + logo (Templates 1–4).
 * Matches Template 2 (biznizdesign1b) layout at bottom of the card.
 */

.tpl-footer,
footer.tpl-footer.tpl-footer--ember,
footer.tpl-footer.tpl-footer--suite {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  margin-top: 0.75rem;
  padding: 1rem 1rem 1.15rem;
  background: #f1f5f9;
  border-top: 1px solid rgba(15, 23, 42, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0;
}

/* Template 1: full-width footer (surface has side padding) */
.pub-card--template-01 .tpl-surface:has(> .tpl-footer),
.bc-card.bc-t-template-01 .tpl-surface:has(> .tpl-footer) {
  padding-bottom: 0;
}

.pub-card--template-01 .tpl-surface > .tpl-footer,
.bc-card.bc-t-template-01 .tpl-surface > .tpl-footer {
  margin-left: calc(-1 * clamp(1.35rem, 4vw, 2.25rem));
  margin-right: calc(-1 * clamp(1.35rem, 4vw, 2.25rem));
  width: calc(100% + 2 * clamp(1.35rem, 4vw, 2.25rem));
  max-width: none;
}

/* Templates 3 & 4 — pin footer to bottom of profile card */
.bc-t3-profile-card,
.bc-t4-profile-card {
  display: flex;
  flex-direction: column;
}

.bc-t3-profile-card > .tpl-footer,
.bc-t4-profile-card > .tpl-footer {
  margin-top: auto;
}

/* Referral + install guide — stacked above hosting line */
.tpl-footer > .tpl-footer-actions-stack {
  width: 100%;
  max-width: 100%;
  margin: 0 0 0.85rem !important;
  padding: 0 !important;
  box-sizing: border-box;
}

.tpl-footer > .tpl-referral-cta-wrap:not(.tpl-footer-actions-stack .tpl-referral-cta-wrap) {
  width: 100%;
  max-width: 100%;
  margin: 0 0 0.85rem !important;
  padding: 0 !important;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  box-sizing: border-box;
}

.tpl-footer .tpl-referral-cta,
.tpl-footer .tpl-referral-cta.tpl-cta--primary,
.tpl-footer a.tpl-referral-cta {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.7rem 1.5rem !important;
  border-radius: 10px !important;
  border: 0 !important;
  background: #0066ff !important;
  background-image: none !important;
  color: #ffffff !important;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.2;
  text-decoration: none !important;
  text-transform: uppercase;
  box-shadow: 0 4px 14px rgba(0, 102, 255, 0.35);
  width: auto;
  max-width: min(100%, 22rem);
  box-sizing: border-box;
  cursor: pointer;
}

.tpl-footer .tpl-referral-cta:hover {
  filter: brightness(1.06);
  opacity: 1;
}

.tpl-footer-actions-stack .tpl-referral-cta-wrap,
.tpl-footer-actions-stack .tpl-sales-team-cta-wrap,
.tpl-footer-actions-stack .tpl-install-guide-wrap {
  width: 100%;
  max-width: 100%;
  display: block;
  margin: 0 !important;
  box-sizing: border-box;
}

/* Uniform full-width primary CTAs in footer stack (match meeting row width) */
.tpl-footer-actions-stack .tpl-referral-cta,
.tpl-footer-actions-stack .tpl-sales-team-cta,
.tpl-footer-actions-stack .tpl-install-guide-btn {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box;
}

.tpl-footer .tpl-sales-team-cta,
.tpl-footer .tpl-sales-team-cta.tpl-cta--primary,
.tpl-footer a.tpl-sales-team-cta {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.7rem 1.5rem !important;
  border-radius: 10px !important;
  border: 0 !important;
  background: #0066ff !important;
  background-image: none !important;
  color: #ffffff !important;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.2;
  text-decoration: none !important;
  text-transform: uppercase;
  box-shadow: 0 4px 14px rgba(0, 102, 255, 0.35);
  width: auto;
  max-width: min(100%, 22rem);
  box-sizing: border-box;
  cursor: pointer;
}

.tpl-footer .tpl-sales-team-cta:hover {
  filter: brightness(1.06);
  opacity: 1;
}

.tpl-footer .tpl-install-guide-btn,
.tpl-footer .tpl-install-guide-btn.tpl-cta--primary,
.tpl-footer button.tpl-install-guide-btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.7rem 1.5rem !important;
  border-radius: 10px !important;
  border: 0 !important;
  background: #0066ff !important;
  background-image: none !important;
  color: #ffffff !important;
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.2;
  text-decoration: none !important;
  text-transform: uppercase;
  box-shadow: 0 4px 14px rgba(0, 102, 255, 0.35);
  width: auto;
  max-width: min(100%, 22rem);
  box-sizing: border-box;
  cursor: pointer;
}

.tpl-footer .tpl-install-guide-btn:hover {
  filter: brightness(1.06);
  opacity: 1;
}

.tpl-footer .tpl-footer-brand__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border-radius: 6px;
  transition: opacity 0.2s ease;
}

.tpl-footer .tpl-footer-brand__link:hover {
  opacity: 0.88;
}

.tpl-footer .tpl-footer-brand__link:focus-visible {
  outline: 2px solid #4f46e5;
  outline-offset: 3px;
}

/* Hosting credit */
.tpl-footer .tpl-footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
}

.tpl-footer .tpl-footer-brand__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  text-align: center;
  box-sizing: border-box;
}

.tpl-footer .tpl-footer-brand__tagline {
  margin: 0 0 0.45rem;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: none;
  color: #111827;
  text-align: center;
  line-height: 1.35;
}

.tpl-footer .tpl-footer-brand__mark {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.tpl-footer .tpl-footer__logo {
  display: block;
  height: 28px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  flex-shrink: 0;
  margin: 0 auto;
}

.tpl-footer .tpl-footer-brand__site {
  margin: 0.45rem 0 0;
  padding: 0;
  width: 100%;
  max-width: 22rem;
  box-sizing: border-box;
  font-size: 0.8125rem;
  line-height: 1.35;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #475569;
  text-align: center;
}

.tpl-footer .tpl-footer-brand__site a {
  color: #2563eb;
  text-decoration: none;
}

.tpl-footer .tpl-footer-brand__site a:hover {
  text-decoration: underline;
}

/* Public card page: footer moved to aside slot */
body.pub-card-page .pub-hosted-slot .tpl-footer {
  background: transparent;
  border-top: 0;
  margin-top: 0;
  padding: 0;
}

body.pub-card-page .pub-hosted-slot .tpl-footer > .tpl-footer-actions-stack {
  margin-bottom: 0.65rem !important;
}

body.pub-card-page .pub-hosted-slot .tpl-footer > .tpl-referral-cta-wrap {
  margin-bottom: 0.85rem !important;
}

/* Public card aside: centered stack — no staggered CTAs */
body.pub-card-page .pub-hosted-slot .tpl-footer-actions-stack {
  align-items: stretch;
  gap: 0.5rem;
}

body.pub-card-page .pub-hosted-slot .tpl-footer-actions-stack .tpl-referral-cta,
body.pub-card-page .pub-hosted-slot .tpl-footer-actions-stack .tpl-sales-team-cta,
body.pub-card-page .pub-hosted-slot .tpl-footer-actions-stack .tpl-install-guide-btn {
  width: 100% !important;
  max-width: 100% !important;
  margin-left: 0;
  margin-right: 0;
}

body.pub-card-page .pub-hosted-slot .tpl-install-guide-wrap {
  justify-content: center !important;
}

body.pub-card-page .pub-hosted-slot .tpl-footer-brand__site {
  max-width: min(100%, 22rem);
}

.tpl-meetings-loan-addon {
  margin-top: 0.65rem;
  width: 100%;
}
.tpl-meetings-loan-addon .tpl-module__title--loan,
.tpl-t02-section-title--loan,
.tpl-t03-card-title--loan,
.bc-t4-stack-title--loan {
  margin: 0.5rem 0 0.35rem;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.tpl-cta-wrap--loan-calc-under-meetings {
  margin-top: 0;
}

.tpl-loan-calculator-section {
  width: 100%;
  box-sizing: border-box;
}

.tpl-loan-calculator-section .tpl-module__title--loan,
.tpl-loan-calculator-section .tpl-t02-section-title--loan {
  margin: 1rem 0 0.5rem;
  text-align: center;
  text-transform: uppercase;
}

.tpl-cta-wrap--loan-calc-after-video {
  margin-top: 0;
  padding: 0 1rem 0.75rem;
  box-sizing: border-box;
}
