/* AsanWP Market — responsive, configurable footer */
.awp-site-footer {
  margin-top: 0;
  background: var(--awp-footer-bg);
  color: var(--awp-footer-text);
}

.awp-site-footer,
.awp-site-footer * {
  box-sizing: border-box;
}

.awp-site-footer a {
  text-decoration: none;
}

.awp-site-footer .awp-brand-mark {
  background: var(--awp-footer-accent);
  color: #111318;
}

/* Trust strip */
.awp-footer-trust {
  border-block: 1px solid var(--awp-footer-border);
  border-inline: 0;
  background: var(--awp-footer-surface);
}

.awp-footer-trust-grid {
  display: grid;
  grid-template-columns: repeat(var(--awp-footer-trust-count, 4), minmax(0, 1fr));
}

.awp-footer-trust-item {
  display: flex;
  min-width: 0;
  min-height: 76px;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
}

.awp-footer-trust-item:not(:last-child) {
  border-inline-end: 1px solid var(--awp-footer-border);
}

.awp-footer-trust-icon {
  display: grid;
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--awp-footer-accent) 26%, transparent);
  border-radius: 11px;
  background: color-mix(in srgb, var(--awp-footer-accent) 9%, transparent);
  color: var(--awp-footer-accent);
}

.awp-footer-trust-icon svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
}

.awp-footer-trust-copy {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.awp-footer-trust-copy strong {
  color: var(--awp-footer-text);
  font-size: 12.5px;
  font-weight: 900;
  line-height: 1.65;
}

.awp-footer-trust-copy small {
  color: var(--awp-footer-muted);
  font-size: 10.5px;
  line-height: 1.7;
}

/* Support callout */
.awp-footer-support-banner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 25px 28px;
  border-radius: 0 0 18px 18px;
  background: var(--awp-footer-cta-bg);
  color: var(--awp-footer-cta-text);
}

.awp-footer-support-copy {
  min-width: 0;
}

.awp-footer-eyebrow {
  display: block;
  margin-bottom: 3px;
  color: color-mix(in srgb, var(--awp-footer-cta-text) 72%, transparent);
  font-size: 10px;
  font-weight: 900;
  line-height: 1.6;
}

.awp-footer-support-banner h2 {
  margin: 0 0 4px;
  color: inherit;
  font-size: clamp(18px, 1.65vw, 22px);
  font-weight: 950;
  line-height: 1.55;
}

.awp-footer-support-banner p {
  max-width: 800px;
  margin: 0;
  color: color-mix(in srgb, var(--awp-footer-cta-text) 76%, transparent);
  font-size: 12px;
  line-height: 1.9;
}

.awp-footer-support-button {
  display: inline-flex;
  flex: 0 0 auto;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 15px;
  border: 1px solid color-mix(in srgb, var(--awp-footer-cta-text) 18%, transparent);
  border-radius: 10px;
  background: color-mix(in srgb, var(--awp-footer-cta-text) 96%, transparent);
  color: var(--awp-footer-cta-bg);
  font-size: 11.5px;
  font-weight: 900;
  line-height: 1;
  transition: transform .18s ease, opacity .18s ease;
}

.awp-footer-support-button:hover {
  color: var(--awp-footer-cta-bg);
  transform: translateX(-2px);
}

.awp-footer-support-button svg {
  width: 14px;
  height: 14px;
}

/* Main footer */
.awp-site-footer .awp-footer-main {
  display: grid;
  grid-template-columns: minmax(280px, 1.05fr) minmax(0, 2.25fr);
  gap: var(--awp-footer-column-gap);
  padding: var(--awp-footer-vertical-padding) 0 calc(var(--awp-footer-vertical-padding) * .72);
}

.awp-site-footer .awp-footer-main.is-no-about {
  grid-template-columns: 1fr;
}

.awp-site-footer .awp-footer-main.is-no-widgets {
  grid-template-columns: minmax(0, 600px);
}

.awp-footer-about,
.awp-footer-column,
.awp-footer-widget,
.awp-footer-column-content {
  min-width: 0;
}

.awp-footer-brand {
  display: flex;
  min-height: 48px;
  align-items: center;
  gap: 11px;
}

.awp-footer-logo-link {
  display: inline-flex;
  align-items: center;
  width: var(--awp-footer-logo-width);
  max-width: 100%;
  min-width: 1px;
}

.awp-footer-logo-image {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  max-height: 58px;
  object-fit: contain;
  object-position: right center;
}

.awp-footer-brand-fallback {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--awp-footer-text);
}

.awp-footer-brand-fallback > span:last-child,
.awp-footer-brand-copy {
  display: grid;
  gap: 1px;
}

.awp-footer-brand-fallback strong,
.awp-footer-brand-copy strong {
  color: var(--awp-footer-text);
  font-size: 17px;
  font-weight: 950;
  line-height: 1.55;
}

.awp-footer-brand-fallback small,
.awp-footer-brand-copy small {
  color: var(--awp-footer-muted);
  font-size: 10.5px;
  line-height: 1.7;
}

.awp-footer-about-text {
  max-width: 460px;
  margin: 14px 0 14px;
  color: var(--awp-footer-muted);
  font-size: 12.5px;
  line-height: 2;
}

.awp-footer-domains {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.awp-footer-domains a {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: 0 9px;
  border: 1px solid var(--awp-footer-border);
  border-radius: 8px;
  color: var(--awp-footer-muted);
  font-size: 10px;
  line-height: 1;
  transition: border-color .16s ease, color .16s ease, background .16s ease;
}

.awp-footer-domains a:hover {
  border-color: color-mix(in srgb, var(--awp-footer-accent) 55%, var(--awp-footer-border));
  background: color-mix(in srgb, var(--awp-footer-accent) 6%, transparent);
  color: var(--awp-footer-text);
}

.awp-footer-widgets {
  display: grid;
  grid-template-columns: repeat(var(--awp-footer-widget-columns), minmax(0, 1fr));
  gap: var(--awp-footer-column-gap);
  min-width: 0;
}

.awp-footer-widget + .awp-footer-widget {
  margin-top: 20px;
}

.awp-site-footer .awp-footer-column h2,
.awp-site-footer .awp-footer-column h3,
.awp-site-footer .awp-footer-widget-title,
.awp-site-footer .widget-title {
  margin: 0 0 13px;
  color: var(--awp-footer-text);
  font-size: 14px;
  font-weight: 900;
  line-height: 1.7;
}

.awp-site-footer .awp-footer-column ul,
.awp-site-footer .awp-footer-widget ul,
.awp-site-footer .widget ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.awp-site-footer .awp-footer-column li,
.awp-site-footer .awp-footer-widget li {
  margin: 8px 0;
  padding: 0;
}

.awp-site-footer .awp-footer-column a,
.awp-site-footer .awp-footer-widget a {
  color: var(--awp-footer-muted);
  font-size: 12.5px;
  line-height: 1.9;
  transition: color .16s ease;
}

.awp-site-footer .awp-footer-column a:hover,
.awp-site-footer .awp-footer-widget a:hover {
  color: var(--awp-footer-text);
}

.awp-site-footer .awp-footer-widget p,
.awp-site-footer .awp-footer-widget .textwidget {
  color: var(--awp-footer-muted);
  font-size: 12.5px;
  line-height: 1.95;
}

.awp-site-footer .awp-footer-widget img {
  max-width: 100%;
  height: auto;
}

/* Social networks: local brand SVGs, one configurable color */
.awp-footer-social {
  display: grid;
  gap: 9px;
  margin-top: 18px;
}

.awp-footer-social-title {
  color: var(--awp-footer-text);
  font-size: 11.5px;
  font-weight: 900;
  line-height: 1.7;
}

.awp-footer-social-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.awp-footer-social-link {
  display: grid;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--awp-footer-border);
  border-radius: 10px;
  background: var(--awp-footer-surface);
  color: var(--awp-footer-social-icon);
  transition: border-color .16s ease, transform .16s ease;
}

.awp-footer-social-link:hover {
  border-color: color-mix(in srgb, var(--awp-footer-social-icon) 62%, var(--awp-footer-border));
  color: var(--awp-footer-social-icon);
  transform: translateY(-2px);
}

.awp-footer-social-link:focus-visible {
  outline: 2px solid var(--awp-footer-accent);
  outline-offset: 2px;
}

.awp-footer-social-icon-svg {
  display: block;
  width: 21px;
  height: 21px;
  color: currentColor;
  fill: currentColor;
  overflow: visible;
}

.awp-footer-social-icon-svg path,
.awp-footer-social-icon-svg polygon,
.awp-footer-social-icon-svg circle,
.awp-footer-social-icon-svg rect,
.awp-footer-social-icon-svg polyline {
  vector-effect: non-scaling-stroke;
  stroke-width: 0 !important;
}

.awp-footer-social-link .awp-social-cutout {
  fill: var(--awp-footer-surface) !important;
  stroke: none !important;
}

/* Trust / certification logos */
.awp-footer-trust-logos {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 18px 0;
  border-top: 1px solid var(--awp-footer-border);
}

.awp-footer-trust-logos-title {
  flex: 0 0 auto;
  color: var(--awp-footer-muted);
  font-size: 11px;
  font-weight: 850;
  line-height: 1.8;
}

.awp-footer-trust-logos-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
}

.awp-footer-trust-logo {
  display: grid;
  flex: 0 0 auto;
  width: 76px;
  height: 64px;
  place-items: center;
  padding: 7px;
  overflow: hidden;
  border: 1px solid var(--awp-footer-border);
  border-radius: 10px;
  background: #fff;
}

a.awp-footer-trust-logo {
  transition: transform .16s ease, border-color .16s ease;
}

a.awp-footer-trust-logo:hover {
  border-color: color-mix(in srgb, var(--awp-footer-accent) 60%, var(--awp-footer-border));
  transform: translateY(-2px);
}

a.awp-footer-trust-logo:focus-visible {
  outline: 2px solid var(--awp-footer-accent);
  outline-offset: 2px;
}

.awp-footer-trust-logo-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.awp-footer-trust-logo-code {
  padding: 0;
  background: #fff;
}

.awp-footer-trust-logo-code > a,
.awp-footer-trust-logo-code > span {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  padding: 7px;
}

.awp-footer-trust-logo-code img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.awp-footer-trust-logo-code a {
  color: inherit;
}

/* Bottom row */
.awp-footer-bottom {
  display: flex;
  min-height: 62px;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  border-top: 1px solid var(--awp-footer-border);
  color: var(--awp-footer-muted);
  font-size: 11.5px;
}

.awp-footer-copyright {
  line-height: 1.9;
}

.awp-footer-bottom-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.awp-footer-bottom-nav a {
  color: var(--awp-footer-muted);
  font-size: 11.5px;
  line-height: 1.8;
}

.awp-footer-bottom-nav a:hover {
  color: var(--awp-footer-text);
}

/* Accordion is progressively enhanced by footer.js. */
.awp-footer-accordion-toggle {
  display: none;
}

@media (max-width: 1180px) {
  .awp-site-footer .awp-footer-main {
    grid-template-columns: minmax(250px, .92fr) minmax(0, 2.08fr);
    gap: 28px;
  }

  .awp-footer-widgets {
    gap: 24px;
  }
}

@media (max-width: 980px) {
  .awp-footer-trust-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .awp-footer-trust-item:nth-child(2n) {
    border-inline-end: 0;
  }

  .awp-footer-trust-item:nth-child(n + 3) {
    border-top: 1px solid var(--awp-footer-border);
  }

  .awp-site-footer .awp-footer-main {
    grid-template-columns: 1fr;
    gap: 30px;
    padding-top: 36px;
    padding-bottom: 28px;
  }

  .awp-site-footer .awp-footer-main.is-no-widgets {
    grid-template-columns: minmax(0, 680px);
  }

  .awp-footer-about-text {
    max-width: 720px;
  }

}


@media (max-width: 720px) {
  .awp-footer-trust-item {
    min-height: 68px;
    gap: 10px;
    padding: 13px 11px;
  }

  .awp-footer-trust-icon {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
    border-radius: 9px;
  }

  .awp-footer-trust-icon svg {
    width: 17px;
    height: 17px;
  }

  .awp-footer-trust-copy strong {
    font-size: 11px;
    line-height: 1.55;
  }

  .awp-footer-trust-copy small {
    font-size: 9.5px;
    line-height: 1.6;
  }

  .awp-footer-support-banner {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    justify-items: stretch;
    gap: 15px;
    padding: 20px 18px;
  }

  .awp-footer-support-copy {
    width: 100%;
  }

  .awp-footer-support-banner h2 {
    font-size: 18px;
  }

  .awp-footer-support-banner p {
    font-size: 11.5px;
  }

  .awp-footer-support-button {
    display: flex;
    width: 100%;
    max-width: none;
    min-height: 44px;
    margin-inline: auto;
    box-sizing: border-box;
    justify-self: stretch;
    align-self: stretch;
    align-items: center;
    justify-content: center;
    text-align: center;
  }

  .awp-footer-support-button > span {
    flex: 0 0 auto;
  }

  .awp-site-footer .awp-footer-main,
  .awp-site-footer .awp-footer-main.is-no-widgets {
    grid-template-columns: 1fr;
    gap: 24px;
    padding-top: 30px;
    padding-bottom: 22px;
  }

  .awp-footer-brand {
    align-items: flex-start;
  }

  .awp-footer-about-text {
    margin-top: 12px;
    font-size: 11.5px;
  }

  .awp-footer-social {
    margin-top: 15px;
  }

  .awp-footer-social-link {
    flex-basis: 38px;
    width: 38px;
    height: 38px;
  }

  .awp-footer-widgets {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .awp-footer-widgets.is-accordion-ready {
    gap: 0;
    border-top: 1px solid var(--awp-footer-border);
  }

  .awp-footer-widgets.is-accordion-ready .awp-footer-column {
    border-bottom: 1px solid var(--awp-footer-border);
  }

  .awp-footer-widgets.is-accordion-ready .awp-footer-accordion-toggle {
    display: flex;
    width: 100%;
    min-height: 54px;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--awp-footer-text);
    font-family: inherit;
    font-size: 12px;
    font-weight: 900;
    text-align: right;
    cursor: pointer;
  }

  .awp-footer-accordion-toggle:focus-visible {
    outline: 2px solid var(--awp-footer-accent);
    outline-offset: -2px;
    border-radius: 6px;
  }

  .awp-footer-accordion-icon {
    position: relative;
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
  }

  .awp-footer-accordion-icon::before,
  .awp-footer-accordion-icon::after {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 1.5px;
    border-radius: 2px;
    background: var(--awp-footer-muted);
    content: "";
    transform: translate(-50%, -50%);
    transition: transform .18s ease, opacity .18s ease;
  }

  .awp-footer-accordion-icon::after {
    transform: translate(-50%, -50%) rotate(90deg);
  }

  .awp-footer-column.is-open .awp-footer-accordion-icon::after {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(0);
  }

  .awp-footer-widgets.is-accordion-ready .awp-footer-column-content {
    padding: 0 0 16px;
  }

  .awp-footer-column-content[hidden] {
    display: none;
  }

  .awp-footer-widgets.is-accordion-ready .awp-footer-column-content > .awp-footer-widget:first-child > .awp-footer-widget-title:first-child,
  .awp-footer-widgets.is-accordion-ready .awp-footer-column-content > .awp-footer-widget:first-child > .widget-title:first-child,
  .awp-footer-widgets.is-accordion-ready .awp-footer-column-content > .widget:first-child > .widget-title:first-child {
    display: none;
  }

  .awp-footer-widget + .awp-footer-widget {
    margin-top: 16px;
  }

  .awp-footer-trust-logos {
    display: grid;
    gap: 10px;
    padding: 15px 0;
  }

  .awp-footer-trust-logos-list {
    flex-wrap: nowrap;
    justify-content: flex-start;
    max-width: 100%;
    overflow-x: auto;
    padding-bottom: 3px;
    scrollbar-width: thin;
  }

  .awp-footer-trust-logo {
    width: 68px;
    height: 58px;
  }

  .awp-footer-bottom {
    display: grid;
    min-height: 0;
    gap: 8px;
    padding: 16px 0;
  }

  .awp-footer-bottom-nav ul {
    gap: 10px 14px;
  }

  body.awp-has-mobile-bottom-nav .awp-footer-bottom {
    padding-bottom: 18px;
  }
}

@media (max-width: 340px) {
  .awp-footer-trust-grid {
    grid-template-columns: 1fr;
  }

  .awp-footer-trust-item,
  .awp-footer-trust-item:nth-child(2n),
  .awp-footer-trust-item:nth-child(n + 3) {
    border-top: 0;
    border-inline-end: 0;
    border-bottom: 1px solid var(--awp-footer-border);
  }

  .awp-footer-trust-item:last-child {
    border-bottom: 0;
  }

  .awp-footer-brand-fallback strong,
  .awp-footer-brand-copy strong {
    font-size: 16px;
  }

  .awp-footer-brand-fallback small,
  .awp-footer-brand-copy small {
    font-size: 9.5px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .awp-footer-support-button,
  .awp-footer-domains a,
  .awp-site-footer .awp-footer-column a,
  .awp-site-footer .awp-footer-widget a,
  .awp-footer-social-link,
  a.awp-footer-trust-logo,
  .awp-footer-accordion-icon::before,
  .awp-footer-accordion-icon::after {
    transition: none;
  }
}
