.mst-unified-footer {
  width: min(1460px, calc(100% - 20px)) !important;
  margin: 18px auto 12px !important;
  padding: 10px !important;
  border: 1px solid rgba(185, 197, 215, 0.14) !important;
  border-radius: 8px !important;
  background: rgba(8, 12, 19, 0.92) !important;
  color: #eef4ff !important;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18) !important;
}

.mst-unified-footer,
.mst-unified-footer * {
  box-sizing: border-box !important;
}

.mst-unified-footer-top {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 4px 8px !important;
  margin-bottom: 8px !important;
  color: #c7d2e4 !important;
  font-size: 0.72rem !important;
  line-height: 1.15 !important;
}

.mst-unified-footer-brand {
  color: #ffffff !important;
  font-weight: 800 !important;
}

.mst-unified-footer-grid {
  display: grid !important;
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  gap: 8px !important;
  align-items: stretch !important;
}

.mst-unified-footer-group {
  display: flex !important;
  flex-direction: column !important;
  min-width: 0 !important;
  min-height: 0 !important;
  padding: 8px !important;
  border: 1px solid rgba(185, 197, 215, 0.1) !important;
  border-radius: 8px !important;
  background: rgba(255, 255, 255, 0.03) !important;
}

.mst-unified-footer-title {
  margin: 0 0 8px !important;
  color: #ffffff !important;
  font-size: 0.68rem !important;
  font-weight: 850 !important;
  letter-spacing: 0 !important;
  line-height: 1.1 !important;
  text-transform: none !important;
}

.mst-unified-footer-links {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 5px !important;
  align-items: start !important;
}

.mst-unified-footer-group[aria-label="Learning"] .mst-unified-footer-links,
.mst-unified-footer-group[aria-label="Account And Support"] .mst-unified-footer-links {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

.mst-unified-footer-group[aria-label="Learning"] .mst-unified-footer-links a[href*="ai-image-prompt-examples"],
.mst-unified-footer-group[aria-label="Learning"] .mst-unified-footer-links a[href*="advanced-ai-image-generator-guide"] {
  grid-column: 1 / -1 !important;
}

.mst-unified-footer a,
.mst-unified-footer button {
  appearance: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  width: auto !important;
  max-width: 100% !important;
  min-height: 18px !important;
  padding: 1px 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: #d9e4f4 !important;
  font: inherit !important;
  font-size: 0.68rem !important;
  line-height: 1.22 !important;
  text-align: left !important;
  text-decoration: none !important;
  box-shadow: none !important;
  white-space: normal !important;
  cursor: pointer !important;
}

.mst-unified-footer a:hover,
.mst-unified-footer button:hover,
.mst-unified-footer a:focus-visible,
.mst-unified-footer button:focus-visible {
  color: #ffffff !important;
  outline: none !important;
  text-decoration: underline !important;
  text-underline-offset: 3px !important;
}

.mst-footer-badges {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: flex-end !important;
  justify-content: flex-start !important;
  gap: 5px !important;
  margin-top: 10px !important;
  width: 100% !important;
  max-width: 100% !important;
  overflow: hidden !important;
}

.mst-unified-footer .mst-footer-badge {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 0 0 var(--mst-footer-badge-width, 92px) !important;
  width: var(--mst-footer-badge-width, 92px) !important;
  max-width: var(--mst-footer-badge-width, 92px) !important;
  min-width: 0 !important;
  min-height: 26px !important;
  height: 26px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 6px !important;
  line-height: 1 !important;
  overflow: hidden !important;
}

.mst-footer-badge[href*="saascity"] {
  --mst-footer-badge-width: 92px;
}

.mst-footer-badge[href*="easywithai"] {
  --mst-footer-badge-width: 96px;
}

.mst-footer-badge img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  border-radius: 5px !important;
  object-fit: contain !important;
}

.mst-unified-footer .trustpilot-widget {
  flex: 1 1 190px !important;
  min-width: 150px !important;
  max-width: 190px !important;
  min-height: 32px !important;
  color: #d9e4f4 !important;
  font-size: 0.68rem !important;
}

@media (max-width: 1060px) {
  .mst-unified-footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 620px) {
  .mst-unified-footer {
    width: min(100% - 12px, 1460px) !important;
    margin: 12px auto 10px !important;
    padding: 6px !important;
  }

  .mst-unified-footer-grid {
    grid-template-columns: 1fr !important;
    gap: 5px !important;
  }

  .mst-unified-footer-group {
    padding: 6px !important;
  }

  .mst-unified-footer-links,
  .mst-unified-footer-group[aria-label="Learning"] .mst-unified-footer-links,
  .mst-unified-footer-group[aria-label="Account And Support"] .mst-unified-footer-links {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .mst-unified-footer a,
  .mst-unified-footer button {
    min-height: 32px !important;
    font-size: 0.68rem !important;
    line-height: 1.14 !important;
  }

  .mst-footer-badges {
    gap: 4px !important;
    margin-top: 6px !important;
  }

  .mst-footer-badge[href*="saascity"] {
    --mst-footer-badge-width: 76px;
  }

  .mst-footer-badge[href*="easywithai"] {
    --mst-footer-badge-width: 82px;
  }
}
