.color-seo-hero {
  overflow: hidden;
  padding: var(--spacing-600) var(--Grid-container-padding-side);
  position: relative;
}

.color-seo-hero-motion-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  container-type: inline-size;
}

.color-seo-hero-glows {
  position: absolute;
  inset: 0;
  /* stylelint-disable-next-line declaration-property-value-disallowed-list */
  transform: translate3d(var(--tx, 0px), var(--ty, 0px), 0) scale(var(--gscale, 1));
  transform-origin: 55% 45%;
  filter: blur(64px);
  opacity: 0.5;
  will-change: transform;
}

.color-seo-hero-glow {
  position: absolute;
  border-radius: 50%;
}

.color-seo-hero-glow-base {
  left: 14cqw;
  top: 8cqw;
  width: 82cqw;
  height: 82cqw;
}

.color-seo-hero-glow-dark {
  left: 56cqw;
  top: 10cqw;
  width: 76cqw;
  height: 76cqw;
}

.color-seo-hero-glow-light {
  left: 54cqw;
  top: -18cqw;
  width: 56cqw;
  height: 56cqw;
}

.color-seo-hero.is-ready .color-seo-hero-glow-base {
  background: radial-gradient(circle, var(--color-seo-hero-primary) 0%, transparent 72%);
}

.color-seo-hero.is-ready .color-seo-hero-glow-dark {
  background: radial-gradient(circle, color-mix(in srgb, var(--color-seo-hero-primary) 62%, var(--color-black)) 0%, transparent 70%);
}

.color-seo-hero.is-ready .color-seo-hero-glow-light {
  background: radial-gradient(circle, color-mix(in srgb, var(--color-seo-hero-primary) 55%, var(--color-white)) 0%, transparent 74%);
}

@media (max-width: 600px) {
  .color-seo-hero-glows {
    filter: blur(56px);
  }

  .color-seo-hero-glow-base {
    left: 42cqw;
    top: 92cqw;
    width: 92cqw;
    height: 92cqw;
  }

  .color-seo-hero-glow-dark {
    left: 62cqw;
    top: 112cqw;
    width: 70cqw;
    height: 70cqw;
  }

  .color-seo-hero-glow-light {
    left: 54cqw;
    top: 70cqw;
    width: 56cqw;
    height: 56cqw;
  }
}

.color-seo-hero-layout {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: var(--spacing-700);
  max-width: 1440px;
  margin: 0 auto;
}

.color-seo-hero-content {
  width: 100%;
  max-width: 656px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: var(--Spacing-spacing-300);
}

.color-seo-hero-content h1 {
  font-size: var(--ax-heading-xxl-size);
  line-height: 104%;
}

.color-seo-hero .color-seo-hero-text {
  font-size: var(--ax-body-s-size);
  line-height: 140%;
  margin: 1em 0;
}

.color-seo-hero .color-seo-hero-cta-row .color-seo-hero-cta {
  margin: 0;
}

.color-seo-hero-logo {
  height: var(--spacing-400);
  width: auto;
}

.color-seo-hero-preview {
  background: var(--color-white);
  border-radius: var(--spacing-350);
  box-shadow: 0 2px 8px rgb(0 0 0 / 10%);
  display: flex;
  flex-direction: column;
  gap: var(--spacing-100);
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 656px;
  min-width: 564px;
  padding: var(--spacing-300);
  box-sizing: border-box;
}

.color-seo-hero-canvas {
  aspect-ratio: 624 / 521;
  position: relative;
}

.color-seo-hero-canvas-clip {
  border-radius: var(--spacing-300);
  inset: 0;
  overflow: hidden;
  position: absolute;
}

.color-seo-hero-canvas-host {
  display: block;
  inset: 0;
  position: absolute;
  z-index: 0;
}

.color-seo-hero-canvas-rail {
  --figma-strip-radius: var(--spacing-300);
  --swatch-column-flex: 1;
  --swatch-column-width: 100%;
  --swatch-column-min-width: 0;
  --swatch-column-last-radius: var(--spacing-300);
  --swatch-rail-horizontal-height: 100%;
  --swatch-rail-horizontal-padding: 0;
  --swatch-column-horizontal-padding: var(--spacing-300);
  --bottom-info-horizontal-height: var(--spacing-500);
  --bottom-info-horizontal-padding: 0;
  --bottom-info-horizontal-gap: 0 7px;
  --bottom-info-horizontal-radius: 9px;
  --bottom-info-horizontal-box-sizing: border-box;

  display: block;
  height: 100%;
  width: 100%;
}

.color-seo-hero-preview-skeleton .color-seo-hero-strip-host {
  height: 60px;
}

@media (min-width: 900px) {
  .color-seo-hero-preview-skeleton .color-seo-hero-strip-host {
    height: 84px;
  }
}

@media (max-width: 599px) {
  .color-seo-hero-preview-skeleton .color-seo-hero-actions-row {
    height: 48px;
  }
}

.color-seo-hero-sk {
  border-radius: var(--spacing-300);
  background: linear-gradient(90deg, #ebebeb 25%, #f5f5f5 50%, #ebebeb 75%);
  background-size: 200% 100%;
  animation: color-seo-hero-sk-shimmer 1.5s linear infinite;
}

.color-seo-hero-sk-pill {
  height: 100%;
  flex: 1;
  border-radius: 999px;
}

.color-seo-hero-sk-pill-wide {
  flex: 2;
}

@keyframes color-seo-hero-sk-shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

.color-seo-hero-editor-popover {
  left: 75px;
  position: absolute;
  bottom: 50px;
  z-index: 10;
}

.color-seo-hero-editor-popover[hidden] {
  display: none;
}

.color-seo-hero-editor-popover color-edit {
  border-radius: var(--spacing-200);
  box-shadow: 0 var(--spacing-200) var(--spacing-500) rgb(0 0 0 / 18%);
  display: block;
  overflow: hidden;
  width: 280px;
}

.color-seo-hero-strip-host {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.color-seo-hero-swatch-strip {
  --figma-strip-radius: var(--spacing-300);
  --swatch-rail-gap: var(--spacing-50);
  --swatch-column-flex: 1;
  --swatch-column-first-radius: var(--spacing-300) 0 0 var(--spacing-300);
  --swatch-column-last-radius: 0 var(--spacing-300) var(--spacing-300) 0;
  --bottom-info-horizontal-height: var(--spacing-500);
  --bottom-info-horizontal-padding: 0 var(--spacing-100) 0 var(--spacing-80);
  --bottom-info-horizontal-gap: 8px;
  --bottom-info-horizontal-radius: 9px;
  --bottom-info-horizontal-box-sizing: border-box;

  --swatch-column-horizontal-padding: var(--spacing-80) var(--spacing-75) var(--spacing-75) var(--spacing-200);
  --swatch-column-horizontal-radius: 0;

  --swatch-column-horizontal-gap: 10px;
  --swatch-rail-horizontal-height: 60px;
  --swatch-rail-horizontal-padding: 0;

  flex: 1;
  min-height: 0;
  width: 100%;
}

.color-seo-hero-actions-row {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-200);
  min-height: var(--spacing-500);
  justify-content: space-between;
}

.color-seo-hero-dropdown-group {
  align-items: center;
  display: flex;
  gap: var(--spacing-200);
}

.color-seo-hero-pick-label {
  color: var(--color-dark-gray);
  font-size: var(--ax-body-xs-size);
  white-space: nowrap;
}

.color-seo-hero-actions-group {
  align-items: center;
  display: flex;
  gap: var(--spacing-200);
}

.color-seo-hero-icons {
  align-items: center;
  display: flex;
  gap: var(--spacing-80);
}

.color-seo-hero-actions-row.is-stacked {
  display: grid;
  grid-template-columns: minmax(min-content, max-content) minmax(0, 1fr);
  align-items: center;
}

@media (max-width: 599px) {
  .color-seo-hero-actions-row.is-stacked {
    grid-template-columns: fit-content(110px) minmax(0, 1fr);
  }
}

.color-seo-hero-actions-row.is-stacked .color-seo-hero-dropdown-group,
.color-seo-hero-actions-row.is-stacked .color-seo-hero-actions-group {
  display: contents;
}

.color-seo-hero-actions-row.is-stacked .color-seo-hero-pick-label {
  grid-column: 1;
  grid-row: 1;
  white-space: normal;
}

.color-seo-hero-actions-row.is-stacked .color-seo-hero-dropdown-group > sp-theme {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  min-width: 0;
}

.color-seo-hero-actions-row.is-stacked .color-seo-hero-dropdown-group sp-picker.filter-picker {
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
}

.color-seo-hero-actions-row.is-stacked .color-seo-hero-icons {
  grid-column: 1;
  grid-row: 2;
}

.color-seo-hero-actions-row.is-stacked .color-seo-hero-build-link {
  grid-column: 2;
  grid-row: 2;
  width: auto;
  min-width: 0;
}

.color-seo-hero-actions-row.is-stacked.cta-wraps .color-seo-hero-icons {
  grid-column: 1 / -1;
  grid-row: 2;
}

.color-seo-hero-actions-row.is-stacked.cta-wraps .color-seo-hero-build-link {
  grid-column: 1 / -1;
  grid-row: 3;
}

/* Copy-as-code / Download dropdown menus (shared library-card action menu) */
.color-seo-hero .ax-lib-card__action-menu {
  position: relative;
  --ax-lib-bg: var(--color-white);
}

.color-seo-hero .ax-lib-card__action-menu-popover {
  position: absolute;
  top: calc(100% + var(--spacing-100));
  left: 0;
  right: auto;
  z-index: 10;
  display: flex;
  flex-direction: column;
  width: max-content;
  min-width: 0;
  padding: var(--spacing-100);
  background: var(--ax-lib-bg);
  border-radius: var(--Corner-radius-corner-radius-100);
  box-shadow: var(--Alias-drop-shadow-ambient), var(--Alias-drop-shadow-elevated-key);
}

.color-seo-hero .ax-lib-card__action-menu-popover--align-right {
  left: auto;
  right: 0;
}

.color-seo-hero .ax-lib-card__action-menu-popover--align-up {
  top: auto;
  bottom: calc(100% + var(--spacing-100));
}

.color-seo-hero .ax-lib-card__action-menu-popover[hidden] {
  display: none;
}

.color-seo-hero .ax-lib-card__action-menu-list {
  display: block;
  inline-size: max-content;
  width: max-content;
  border: none;
  background: transparent;
  box-shadow: none;
  padding: 0;
}

.color-seo-hero .ax-lib-card__action-menu-list sp-menu-item {
  background: transparent;
  white-space: nowrap;
}

.color-seo-hero .ax-lib-card__action-menu-list sp-menu-item:hover {
  background: var(--color-gray-150);
}

.color-seo-hero .ax-lib-card__action-menu-list sp-menu-item:focus,
.color-seo-hero .ax-lib-card__action-menu-list sp-menu-item:focus-visible,
.color-seo-hero .ax-lib-card__action-menu-list sp-menu-item[focused],
.color-seo-hero .ax-lib-card__action-menu-list sp-menu-item[aria-selected="true"] {
  background: transparent;
  font-weight: 400;
}

.color-seo-hero .ax-lib-card__action {
  --mod-actionbutton-border-radius: var(--Corner-radius-corner-radius-100);
  --mod-actionbutton-background-color-hover: var(--color-light-gray-2);
  --mod-actionbutton-background-color-down: var(--color-gray-300-variant);
  --mod-actionbutton-background-color-focus: var(--color-light-gray-2);
  --mod-actionbutton-content-color-hover: var(--color-default-font);
  --mod-actionbutton-content-color-down: var(--color-default-font);
  --mod-actionbutton-content-color-focus: var(--color-default-font);
  cursor: pointer;
}

.color-seo-hero .ax-lib-card__action-menu sp-action-button.ax-lib-card__action[aria-expanded="true"] {
  --mod-actionbutton-background-color-default: var(--color-light-gray-2);
}

.color-seo-hero .color-seo-hero-actions-group .color-seo-hero-build-link {
  margin: 0;
}

.color-seo-hero-toolbar-mount {
  margin-top: var(--spacing-400);
  position: relative;
  z-index: 80;
}

.color-seo-hero-toolbar-mount .color-floating-toolbar-container:not(.ax-toolbar-sticky-wrapper) {
  display: none;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (min-width: 1200px) {
  .color-seo-hero {
    max-height: 765px;
  }
}

@media (min-width: 900px) {
  .color-seo-hero-preview {
    margin: 0 0 0 auto;
  }

  .color-seo-hero-swatch-strip {
    --swatch-column-horizontal-padding: var(--spacing-200);
    --swatch-column-horizontal-gap: 0;
    --swatch-rail-horizontal-height: 84px;
  }
}

@media (max-width: 1199px) {
  .color-seo-hero-cta.button.xlarge:any-link {
    padding: 6px 14px 8px 16px;
    font-size: var(--ax-body-xs-size);
    border-radius: 999px;
  }
}

@media (min-width: 600px) and (max-width: 1199px) {
  .color-seo-hero {
    min-height: auto;
  }

  .color-seo-hero-layout {
    flex-direction: column;
    align-items: center;
    max-width: 835px;
    gap: var(--spacing-200);
  }

  .color-seo-hero-content {
    max-width: 720px;
    align-items: center;
    text-align: center;
    gap: 0;
  }

  .color-seo-hero-preview {
    max-width: 100%;
    max-height: 704px;
    min-width: 0;
    margin: 0;
  }

  .color-seo-hero-canvas {
    aspect-ratio: unset;
    height: 540px;
  }

  .color-seo-hero-swatch-strip {
    --swatch-column-horizontal-padding: var(--spacing-200);
  }
}

/* Mobile */
@media (max-width: 599px) {
  .color-seo-hero {
    min-height: auto;
    padding: var(--spacing-400) var(--Grid-container-padding-side);
  }

  .color-seo-hero-layout {
    flex-direction: column;
    gap: var(--spacing-200);
  }

  .color-seo-hero-content {
    max-width: 100%;
    align-items: flex-start;
    text-align: left;
    gap: 0;
  }

  .color-seo-hero-cta-row {
    align-self: stretch;
    width: 100%;
  }

  .color-seo-hero-cta {
    box-sizing: border-box;
    text-align: center;
    width: 100%;
  }

  .color-seo-hero-preview {
    max-width: 100%;
    min-width: 0;
    padding: var(--spacing-200);
  }

  .color-seo-hero-actions-row {
    height: auto;
  }

  .color-seo-hero-dropdown-group {
    flex: 1 1 100%;
  }


  .color-seo-hero-dropdown-group > sp-theme {
    flex: 1;
    min-width: 0;
  }

  .color-seo-hero-pick-label {
    white-space: normal;
  }

  .color-seo-hero-actions-group {
    flex: 1 1 100%;
    justify-content: space-between;
  }

  .color-seo-hero-build-link {
    flex: 1;
    box-sizing: border-box;
    width: 50%;
  }

  .color-seo-hero-dropdown-group sp-picker.filter-picker {
    --mod-picker-border-radius: 10px;
  }

  body:has(.color-seo-hero) sp-popover {
    --mod-popover-corner-radius: 10px;
    border-radius: 10px;
  }

  .color-seo-hero-dropdown-group sp-picker.filter-picker::part(button) {
    border-radius: 10px;
  }

  .color-seo-hero-swatch-strip {
    --swatch-column-stacked-padding: 0 var(--spacing-300);
    --hex-code-stacked-width: fit-content;
  }
}
