/*
 * ActionMediaPilot Logo Fix
 * Keeps the logo icon and MediaPilot text in a single clean row.
 */

.amp-logo-fix,
.amp-logo-fix.mediapilot-logo,
.amp-logo-fix.actionmediapilot-logo,
.amp-logo-fix.logo,
.amp-logo-fix.brand,
.amp-logo-fix.navbar-brand,
.amp-logo-fix.site-branding {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 8px !important;
  white-space: nowrap !important;
  line-height: 1 !important;
  min-height: 32px !important;
  min-width: max-content !important;
  overflow: visible !important;
  position: relative !important;
  text-decoration: none !important;
  box-sizing: border-box !important;
}

.amp-logo-fix > img,
.amp-logo-fix > svg,
.amp-logo-fix > i,
.amp-logo-fix > .dashicons,
.amp-logo-fix > [class*="icon"],
.amp-logo-fix > [class*="logo-icon"] {
  position: static !important;
  left: auto !important;
  right: auto !important;
  top: auto !important;
  bottom: auto !important;
  transform: none !important;
  width: 30px !important;
  height: 30px !important;
  min-width: 30px !important;
  max-width: 30px !important;
  flex: 0 0 30px !important;
  object-fit: contain !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 !important;
  vertical-align: middle !important;
}

.amp-logo-fix > span,
.amp-logo-fix > strong,
.amp-logo-fix > b,
.amp-logo-fix > small,
.amp-logo-fix > em,
.amp-logo-fix > .logo-text,
.amp-logo-fix > .brand-text,
.amp-logo-fix > [class*="title"],
.amp-logo-fix > [class*="name"] {
  display: inline-block !important;
  position: static !important;
  left: auto !important;
  right: auto !important;
  top: auto !important;
  bottom: auto !important;
  transform: none !important;
  margin-left: 0 !important;
  padding-left: 0 !important;
  max-width: none !important;
  overflow: visible !important;
  text-indent: 0 !important;
  white-space: nowrap !important;
  vertical-align: middle !important;
}

/* Safety fix when the logo icon is absolutely positioned by the theme/plugin. */
.amp-logo-fix img:first-child,
.amp-logo-fix svg:first-child {
  position: static !important;
  margin-right: 0 !important;
}

@media (max-width: 480px) {
  .amp-logo-fix {
    gap: 7px !important;
    min-height: 30px !important;
  }

  .amp-logo-fix > img,
  .amp-logo-fix > svg,
  .amp-logo-fix > i,
  .amp-logo-fix > .dashicons,
  .amp-logo-fix > [class*="icon"],
  .amp-logo-fix > [class*="logo-icon"] {
    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;
    max-width: 28px !important;
    flex-basis: 28px !important;
  }
}
