/**
 * Host-page wrapper for the inline AirGain Resources library.
 */
.airgain-resources-embed {
  width: 100%;
  max-width: 100%;
  margin: 0;
  overflow-x: clip;
}

body.airgain-resources-active {
  overflow-x: hidden;
}

.elementor-section:has(.airgain-resources-embed),
.elementor-section .elementor-container:has(.airgain-resources-embed) {
  max-width: 100% !important;
  overflow-x: clip;
}

.elementor-widget-airgain-resources-library,
.elementor-widget-airgain-resources-library .elementor-widget-container {
  max-width: 100%;
  width: 100%;
}

.airgain-resources-library {
  width: 100%;
}

.airgain-gated-download {
  appearance: none;
  align-items: center;
  background-color: #053AA6;
  border: 1px solid #053AA6;
  border-radius: 9999px;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  font-family: "Manrope", Sans-serif;
  font-size: 13px;
  font-weight: 600;
  gap: 10px;
  justify-content: center;
  line-height: 1;
  min-height: 46px;
  overflow: hidden;
  padding: 0 26px;
  pointer-events: auto;
  position: relative;
  text-decoration: none;
  text-align: center;
  text-transform: none;
  transition: all .3s ease-out;
  z-index: 1;
}

.airgain-gated-download::after {
  background-color: currentColor;
  content: "";
  display: inline-block;
  height: 18px;
  margin-top: 1px;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='m12 5 7 7-7 7'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='m12 5 7 7-7 7'/%3E%3C/svg%3E") center / contain no-repeat;
  position: relative;
  width: 18px;
  z-index: 1;
}

.airgain-gated-download:hover,
.airgain-gated-download:focus-visible {
  background-color: #053AA6;
  border-color: #053AA6;
  box-shadow: none;
  color: #fff;
  transform: translateY(-2px);
}

.airgain-gated-download:disabled {
  cursor: not-allowed;
  opacity: .55;
  transform: none;
}

.airgain-resources-modal {
  width: min(600px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  padding: 0;
  border: 0;
  border-radius: 20px;
  background: #fff;
  color: #07122f;
  box-shadow: 0 28px 90px rgba(7, 18, 47, 0.28);
  overflow: hidden;
}

.airgain-resources-modal::backdrop {
  background: rgba(7, 18, 47, 0.62);
  backdrop-filter: blur(8px);
}

.airgain-resources-modal__panel {
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 32px);
}

.airgain-resources-modal__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 28px 14px;
  border-bottom: 1px solid #edf0f6;
  background:
    radial-gradient(circle at 92% -20%, rgba(5, 66, 189, 0.14), transparent 34%),
    linear-gradient(180deg, #ffffff 0%, #f8faff 100%);
}

.airgain-resources-modal__eyebrow {
  margin: 0 0 5px;
  color: #0542bd;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.4px;
  line-height: 1.2;
  text-transform: uppercase;
}

.airgain-resources-modal__header h2 {
  margin: 0;
  color: #07122f;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.airgain-resources-modal__close {
  appearance: none;
  align-items: center;
  background: #f3f6fb;
  border: 1px solid #e1e7f2;
  border-radius: 999px;
  color: #536078;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 24px;
  height: 36px;
  justify-content: center;
  transition: background .15s, border-color .15s, color .15s, transform .15s;
  width: 36px;
}

.airgain-resources-modal__close:hover {
  background: #eaf0fb;
  border-color: #cad5e8;
  color: #07122f;
  transform: translateY(-1px);
}

.airgain-resources-modal__body {
  overflow: auto;
  padding: 18px 28px 24px;
  position: relative;
  background: linear-gradient(180deg, #f8faff 0%, #ffffff 100%);
}

/* Popup only: the moved Pardot form shell often carries its own surface color.
   Reset wrapper backgrounds so the form blends into the modal — inline forms
   outside .airgain-resources-modal are intentionally untouched. */
.airgain-resources-modal [data-airgain-shared-form-mount] .airgain-inline-pardot,
.airgain-resources-modal [data-airgain-shared-form-mount] .airgain-form-shell,
.airgain-resources-modal form[data-airgain-resources-modal] {
  background: transparent;
  box-shadow: none;
  border: 0;
  border-radius: 0;
}

.signup-form[data-airgain-inline-form] {
  background: transparent;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  border: 0;
}

/* The inline signup form is deliberately untouched. The modal reuses that same
   live form node so site-wide Pardot CSS and jQuery validation stay intact. */
