/* Spin Wheel Creator per-wheel branding: the logo. */

.swc-branding-logo {
  position: absolute;
  top: 12px;
  z-index: 60;
  display: flex;
  align-items: center;
  max-width: 40vw;
  color: var(--txt, #fff);
  font-family: var(--font, system-ui, sans-serif);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
  pointer-events: none;
}

.swc-branding-logo img {
  display: block;
  width: auto;
  height: auto;
  max-width: min(180px, 40vw);
  max-height: 44px;
  object-fit: contain;
}

.swc-branding-logo span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.swc-branding-logo--top-left {
  left: 16px;
}

.swc-branding-logo--top-right {
  right: 16px;
}

/* Keep clear of the nav pill when the header is shown. */
.swc-branding-logo--below-nav {
  top: 60px;
}

/* Inside #center-header, above the page title. */
.swc-branding-logo--top-center {
  position: static;
  justify-content: center;
  max-width: none;
  margin: 0 auto 6px;
}

@media (max-width: 768px) {
  .swc-branding-logo--top-left,
  .swc-branding-logo--top-right {
    top: 70px;
  }

  .swc-branding-logo img {
    max-height: 36px;
  }
}
