/* ---------------------------------------------------------------------------
   Template store.

   Additions only. Everything structural comes from the agency stylesheet, so a
   rebrand of socialpointsmedia.com carries through by re-copying site.css.
   --------------------------------------------------------------------------- */

.sticky-col {
  position: sticky;
  top: 5.5rem;
}

@media (max-width: 991.98px) {
  .sticky-col { position: static; }
}

/* ------------------------------------------------------------- screenshots */

.shot {
  margin: 0 0 2rem;
}

.shot a {
  display: block;
  border-radius: var(--spm-radius);
  overflow: hidden;
  border: 1px solid var(--spm-line);
  box-shadow: var(--spm-shadow);
  transition: transform .18s ease, box-shadow .18s ease;
}

.shot a:hover {
  transform: translateY(-3px);
  box-shadow: var(--spm-shadow-lg);
}

.shot img {
  display: block;
  width: 100%;
  height: auto;
}

.shot figcaption {
  margin-top: .6rem;
  font-size: .86rem;
  color: var(--spm-muted);
}

.shot figcaption a {
  color: var(--spm-blue);
  font-weight: 600;
  text-decoration: none;
}

.shot figcaption a:hover { color: var(--spm-orange-600); }

/* ---------------------------------------------------------------- buy box */

.buy-box {
  background: #fff;
  border: 1px solid var(--spm-line);
  border-radius: var(--spm-radius);
  box-shadow: var(--spm-shadow);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.buy-total {
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: var(--spm-blue);
  line-height: 1;
}

.buy-options {
  display: grid;
  gap: .5rem;
  margin: 1rem 0 1.25rem;
}

.buy-option {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  padding: .85rem .95rem;
  border: 1px solid var(--spm-line);
  border-radius: 10px;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}

.buy-option:hover { background: var(--spm-blue-50); }

.buy-option input { margin-top: .25rem; flex: 0 0 auto; accent-color: var(--spm-blue); }

.buy-option:has(input:checked) {
  border-color: var(--spm-blue);
  background: var(--spm-blue-50);
}

.buy-option:has(input:focus-visible) {
  outline: 2px solid var(--spm-orange);
  outline-offset: 2px;
}

.buy-option__body { flex: 1 1 auto; min-width: 0; }

.buy-option__label {
  display: block;
  font-weight: 700;
  color: var(--spm-ink);
  font-size: .95rem;
}

.buy-option__blurb {
  display: block;
  font-size: .82rem;
  color: var(--spm-muted);
  line-height: 1.4;
  margin-top: .15rem;
}

.buy-option__price {
  flex: 0 0 auto;
  font-weight: 800;
  color: var(--spm-blue);
  font-size: 1.05rem;
}

.buy-included {
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem;
  display: grid;
  gap: .45rem;
  font-size: .88rem;
}

.buy-included li {
  display: flex;
  gap: .5rem;
  align-items: flex-start;
  color: var(--spm-muted);
}

.buy-included i { color: #1a9d63; flex: 0 0 auto; margin-top: .1rem; }

.buy-addon {
  display: flex;
  align-items: flex-start;
  gap: .7rem;
  padding: .85rem .95rem;
  border: 1px dashed var(--spm-line);
  border-radius: 10px;
  cursor: pointer;
  font-size: .9rem;
  transition: border-color .15s ease, background .15s ease;
}

.buy-addon:hover { background: var(--spm-orange-50); border-color: var(--spm-orange); }
.buy-addon:has(input:checked) { border-style: solid; border-color: var(--spm-orange); background: var(--spm-orange-50); }
.buy-addon input { margin-top: .2rem; accent-color: var(--spm-orange); }
.buy-addon span { flex: 1 1 auto; }
.buy-addon__price { flex: 0 0 auto; font-weight: 700; color: var(--spm-orange-600); }

/* ------------------------------------------------------------ spec panel */

.spec-panel {
  background: #fff;
  border: 1px solid var(--spm-line);
  border-radius: var(--spm-radius);
  padding: 1.25rem 1.5rem 1.5rem;
}

.spec-panel__title {
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--spm-muted);
  margin: 0 0 .75rem;
}

.spec-table {
  width: 100%;
  font-size: .87rem;
  border-collapse: collapse;
}

.spec-table th,
.spec-table td {
  padding: .6rem 0;
  vertical-align: top;
  border-bottom: 1px solid var(--spm-line);
}

.spec-table tr:last-child th,
.spec-table tr:last-child td { border-bottom: 0; }

.spec-table th {
  text-align: left;
  font-weight: 700;
  color: var(--spm-ink);
  width: 42%;
  padding-right: 1rem;
}

.spec-table td { color: var(--spm-muted); }

.spec-swatch {
  display: inline-block;
  width: .7rem;
  height: .7rem;
  border-radius: 50%;
  vertical-align: baseline;
}

.spec-tags { line-height: 2 }

.spec-tag {
  display: inline-block;
  font-size: .74rem;
  padding: .1rem .45rem;
  border-radius: 999px;
  background: var(--spm-blue-50);
  color: var(--spm-blue);
  margin-right: .2rem;
}

/* -------------------------------------------------------------- highlights */

.highlight-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: .7rem;
}

.highlight-list li {
  display: flex;
  gap: .65rem;
  align-items: flex-start;
  font-size: .95rem;
  color: var(--spm-muted);
}

.highlight-list i {
  color: var(--tpl-accent, var(--spm-blue));
  flex: 0 0 auto;
  margin-top: .2rem;
}

.alert-quiet {
  display: flex;
  gap: .8rem;
  align-items: flex-start;
  padding: 1rem 1.15rem;
  border-radius: var(--spm-radius);
  background: var(--spm-blue-50);
  border: 1px solid #d5e0ef;
  font-size: .9rem;
  color: var(--spm-ink);
}

.alert-quiet i { color: var(--spm-blue); flex: 0 0 auto; margin-top: .15rem; }

/* ---------------------------------------------------------------- mega menu
   The Services panel is 820px wide and right-aligned to its toggle, which puts
   its left edge off the screen once the toggle sits less than 820px from the
   left — already the case at 1400px wide, and worse below that.

   Anchoring it to the navbar container instead fixes it at every width: the
   dropdown goes position: static so the panel positions against the container,
   and right: 0 lines it up with the container's right edge.

   (socialpointsmedia.com has the same defect and needs the same rule.) */
@media (min-width: 992px) {
  .spm-nav .container { position: relative; }

  .spm-nav .navbar-nav .nav-item.dropdown { position: static; }

  .spm-nav .navbar-nav .dropdown-menu {
    left: auto;
    right: 0;
    /* Anchored to the container, the panel would otherwise stretch to its full
       width. The marketing site's is 820px, so keep that and let it shrink
       rather than run off a narrow window. */
    width: min(calc(100vw - 2rem), 820px);
  }
}
