/**
 * Install guide button (card footer) + full-screen image modal.
 */

.tpl-footer-actions-stack {
  width: 100%;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.45rem;
  margin: 0 0 0.85rem;
  box-sizing: border-box;
}

.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 {
  margin: 0 !important;
  width: 100%;
  max-width: 100%;
  display: block;
  box-sizing: border-box;
}

.tpl-install-guide-wrap {
  width: 100%;
  max-width: 100%;
  display: block;
  box-sizing: border-box;
}

body.pub-card-page .pub-hosted-slot .tpl-footer-actions-stack {
  margin-bottom: 0.65rem;
}

body.pub-card-page .pub-hosted-slot .tpl-install-guide-wrap {
  justify-content: center;
}

/* Modal */
.bc-install-guide-modal {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(0.75rem, 3vw, 1.25rem);
  box-sizing: border-box;
}

.bc-install-guide-modal[hidden] {
  display: none !important;
}

.bc-install-guide-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.bc-install-guide-modal__panel {
  position: relative;
  z-index: 1;
  width: min(920px, 100%);
  max-height: min(92vh, 900px);
  overflow: auto;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.35);
  padding: 0.35rem;
  box-sizing: border-box;
}

.bc-install-guide-modal__close {
  position: absolute;
  top: 0.35rem;
  right: 0.35rem;
  z-index: 2;
  width: 2.25rem;
  height: 2.25rem;
  border: 0;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.75);
  color: #ffffff;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.bc-install-guide-modal__close:hover {
  background: rgba(15, 23, 42, 0.9);
}

.bc-install-guide-modal__img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
}

html.bc-install-guide-open {
  overflow: hidden;
}
