/* Sunpal footer redesign */
.sunpal-footer {
  border-top: 1px solid var(--line);
  background:
    radial-gradient(900px 280px at 0% 0%, rgba(22, 139, 61, .08), transparent 55%),
    linear-gradient(180deg, #f7faf8 0%, #fff 42%);
  color: var(--ink);
}

.sunpal-footer-cta {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) auto;
  align-items: center;
  gap: clamp(20px, 3vw, 36px);
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(32px, 4.5vw, 48px) max(28px, calc((100vw - var(--max)) / 2));
  border-bottom: 1px solid var(--line);
}

.sunpal-footer-cta-copy p {
  margin: 0 0 8px;
  color: var(--green);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.sunpal-footer-cta-copy strong {
  display: block;
  max-width: 22ch;
  font-size: clamp(24px, 2.8vw, 34px);
  font-weight: 750;
  letter-spacing: -.04em;
  line-height: 1.12;
  color: var(--ink);
}

.sunpal-footer-cta-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.sunpal-footer-cta-actions .button,
.sunpal-footer-cta-actions a.button {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  min-width: 168px;
  padding: 0 22px !important;
  border-radius: 8px !important;
  border: 1px solid transparent !important;
  font-size: 14px !important;
  font-weight: 750 !important;
  line-height: 1 !important;
  letter-spacing: -.01em;
  text-decoration: none !important;
  white-space: nowrap;
  transition: transform .2s ease, background .2s ease, border-color .2s ease, color .2s ease, box-shadow .2s ease;
}

.sunpal-footer-cta-actions .button:hover,
.sunpal-footer-cta-actions a.button:hover {
  transform: translateY(-1px);
  opacity: 1;
}

.sunpal-footer-cta-actions .button:not(.secondary),
.sunpal-footer-cta-actions a.button:not(.secondary) {
  border-color: var(--green) !important;
  background: var(--green) !important;
  color: #fff !important;
  box-shadow: 0 10px 24px rgba(22, 139, 61, .22);
}

.sunpal-footer-cta-actions .button:not(.secondary):hover,
.sunpal-footer-cta-actions a.button:not(.secondary):hover {
  filter: brightness(.95);
  box-shadow: 0 14px 28px rgba(22, 139, 61, .28);
}

.sunpal-footer-cta-actions .button.secondary,
.sunpal-footer-cta-actions a.button.secondary {
  border-color: rgba(9, 11, 13, .18) !important;
  background: #fff !important;
  color: var(--ink) !important;
  box-shadow: none;
}

.sunpal-footer-cta-actions .button.secondary:hover,
.sunpal-footer-cta-actions a.button.secondary:hover {
  border-color: var(--green) !important;
  background: #f2faf4 !important;
  color: #075d27 !important;
}

.sunpal-footer-grid {
  display: grid;
  grid-template-columns: minmax(240px, 1.35fr) repeat(3, minmax(140px, .75fr));
  gap: clamp(28px, 4vw, 48px);
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(42px, 6vw, 72px) max(28px, calc((100vw - var(--max)) / 2));
  border-bottom: 1px solid var(--line);
}

.sunpal-footer-grid section {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.sunpal-footer-brand {
  display: block;
  max-width: 340px;
}

.sunpal-footer-brand .sunpal-brand,
.sunpal-footer-brand .sunpal-brand img,
.sunpal-footer-brand .custom-logo {
  width: 138px;
  margin-bottom: 14px;
}

.sunpal-footer-brand p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.sunpal-footer-store-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 750;
}

.sunpal-footer-store-link span {
  transition: transform .2s ease;
}

.sunpal-footer-store-link:hover span {
  transform: translateX(3px);
}

.sunpal-footer-grid h2 {
  margin: 0 0 4px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.sunpal-footer-grid a {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.35;
  transition: color .18s ease;
}

.sunpal-footer-grid a:hover,
.sunpal-footer-grid a:focus-visible {
  color: var(--green);
}

.sunpal-legal-notes,
.sunpal-footer-directory {
  max-width: none;
  margin: 0;
  padding: 0;
  color: #6e6e73;
  font-size: 12px;
  line-height: 1.5;
  background: #f5f5f7;
  border-top: 1px solid #d2d2d7;
}

.sunpal-footer-directory-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 28px max(28px, calc((100vw - var(--max)) / 2)) 36px;
}

.sunpal-footer-directory-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 0;
  margin: 0 0 18px;
  padding: 0 0 16px;
  border-bottom: 1px solid #d2d2d7;
}

.sunpal-footer-directory-links a {
  position: relative;
  padding-right: 14px;
  margin-right: 14px;
  color: #1d1d1f;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: -.01em;
}

.sunpal-footer-directory-links a:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  width: 1px;
  height: 10px;
  background: #d2d2d7;
  transform: translateY(-50%);
}

.sunpal-footer-directory-links a:hover,
.sunpal-footer-directory-links a:focus-visible {
  color: var(--green);
}

.sunpal-footer-notices {
  margin: 0 0 18px;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.sunpal-footer-notices summary {
  cursor: pointer;
  list-style: none;
  padding: 0 0 10px;
  color: #1d1d1f;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: -.01em;
}

.sunpal-footer-notices summary::-webkit-details-marker {
  display: none;
}

.sunpal-footer-notices summary::after {
  content: "+";
  float: right;
  color: #6e6e73;
  font-weight: 400;
}

.sunpal-footer-notices[open] summary::after {
  content: "−";
}

.sunpal-footer-notices-body {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0 0 14px;
  border-top: 0;
  color: #6e6e73;
  font-size: 11px;
  line-height: 1.55;
}

.sunpal-footer-notices-body p {
  margin: 0;
  max-width: none;
}

.sunpal-footer-notices-body strong {
  color: #1d1d1f;
  font-weight: 600;
}

.sunpal-footer-entity {
  display: grid;
  gap: 10px;
  margin: 0 0 18px;
  padding: 14px 0 0;
  border-top: 1px solid #d2d2d7;
}

.sunpal-footer-entity p {
  margin: 0;
  max-width: 1080px;
  color: #6e6e73;
  font-size: 11px;
  line-height: 1.6;
}

.sunpal-footer-entity strong {
  color: #1d1d1f;
  font-weight: 600;
}

.sunpal-footer-meta,
.sunpal-copyright {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin: 0;
  padding: 14px 0 0;
  border-top: 1px solid #d2d2d7;
  color: #6e6e73;
  font-size: 11px;
}

.sunpal-footer-copy,
.sunpal-footer-locale {
  margin: 0;
}

.sunpal-footer-copy span[aria-hidden="true"] {
  margin: 0 6px;
  color: #d2d2d7;
}

.sunpal-legal-notes nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 0;
}

.sunpal-legal-notes nav a {
  color: #1d1d1f;
  font-size: 12px;
  font-weight: 500;
}

.sunpal-legal-notes nav a:hover {
  color: var(--green);
}

@media (max-width: 980px) {
  .sunpal-footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .sunpal-footer-brand {
    grid-column: 1 / -1;
    max-width: none;
  }
}

@media (max-width: 900px) {
  .sunpal-footer-cta {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .sunpal-footer-cta-copy strong {
    max-width: 28ch;
  }

  .sunpal-footer-cta-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  .sunpal-footer-cta,
  .sunpal-footer-grid,
  .sunpal-footer-directory-inner {
    padding-right: 18px;
    padding-left: 18px;
  }

  .sunpal-footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .sunpal-footer-cta-actions,
  .sunpal-footer-cta-actions .button,
  .sunpal-footer-cta-actions a.button {
    width: 100%;
  }

  .sunpal-footer-directory-links a {
    margin-right: 10px;
    padding-right: 10px;
  }

  .sunpal-footer-meta,
  .sunpal-copyright {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sunpal-footer-store-link span {
    transition: none;
  }
}
