.kik-hero-overlay {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--overlay-coverage);
  background: var(--overlay-color);
  opacity: var(--overlay-opacity);
  mask-image: linear-gradient(to right, rgb(0 0 0 / 95%), rgb(0 0 0 / 80%) 45.45%, rgb(0 0 0 / 18%) 75.76%, transparent);
}

@media (min-width: 768px) and (max-width: 1023px) {
  .kik-hero-overlay {
    inset: 0 0 auto;
    width: auto;
    /* The original tablet fade covers 78% at the desktop default of 66%. */
    height: min(calc(var(--overlay-coverage) * 78 / 66), calc(100% - (100% - var(--overlay-coverage)) * 22 / 34));
    mask-image: linear-gradient(to bottom, rgb(0 0 0 / 96%) 52.3%, rgb(0 0 0 / 88%) 77.3%, rgb(0 0 0 / 42%) 89.2%, transparent);
  }
}

.kik-hero-button-slot,
.kik-hero-button-area {
  display: contents;
}

.kik-hero-button-slot {
  --primary-fill: var(--primary-bg, var(--kik-color-action-primary));
  --primary-ink: var(--primary-text, var(--kik-color-text-inverse));
  --secondary-fill: var(--secondary-bg, var(--kik-color-action-secondary));
  --secondary-ink: var(--secondary-text, var(--kik-color-action-primary));
  --secondary-stroke: var(--secondary-border, var(--kik-color-border-accent));
}

.kik-hero-button-slot .sth-senfeng-fresh-fullpage-0908-page-section-1--c-btn--primary {
  background-color: var(--primary-fill);
  color: var(--primary-ink);
}

.kik-hero-button-slot .sth-senfeng-fresh-fullpage-0908-page-section-1--c-btn--secondary {
  background-color: var(--secondary-fill);
  color: var(--secondary-ink);
  border-color: var(--secondary-stroke);
}

.kik-hero-button-slot .sth-senfeng-fresh-fullpage-0908-page-section-1--c-btn--primary:hover {
  background-color: color-mix(in srgb, var(--primary-fill) 83%, black);
}

.kik-hero-button-slot .sth-senfeng-fresh-fullpage-0908-page-section-1--c-btn--secondary:hover {
  background-color: color-mix(in srgb, var(--secondary-fill) 90%, var(--secondary-ink));
}

@media (max-width: 767px) {
  .kik-hero-overlay {
    inset: 0 0 auto;
    width: auto;
    height: var(--overlay-mobile-coverage);
    background: var(--overlay-mobile-color);
    opacity: var(--overlay-mobile-opacity);
    mask-image: linear-gradient(to bottom, rgb(0 0 0 / 96%) 52%, rgb(0 0 0 / 88%) 77%, rgb(0 0 0 / 42%) 89%, transparent);
  }

  .kik-hero-button-slot {
    --primary-fill: var(--primary-bg-mobile, var(--primary-bg, var(--kik-color-action-primary)));
    --primary-ink: var(--primary-text-mobile, var(--primary-text, var(--kik-color-text-inverse)));
    --secondary-fill: var(--secondary-bg-mobile, var(--secondary-bg, var(--kik-color-action-secondary)));
    --secondary-ink: var(--secondary-text-mobile, var(--secondary-text, var(--kik-color-action-primary)));
    --secondary-stroke: var(--secondary-border-mobile, var(--secondary-border, var(--kik-color-border-accent)));
  }
}

@media (min-width: 768px) {
  .sth-senfeng-fresh-fullpage-0908-page-section-1--c-hero:has([data-custom-desktop="true"]:not([hidden])) {
    isolation: isolate;
    .sth-senfeng-fresh-fullpage-0908-page-section-1--c-hero__bg,
    .sth-senfeng-fresh-fullpage-0908-page-section-1--c-hero__tmark { z-index: -1; }

    .sth-senfeng-fresh-fullpage-0908-page-section-1--c-hero__inner,
    .sth-senfeng-fresh-fullpage-0908-page-section-1--c-hero__slides { position: static; }
  }

  .sth-senfeng-fresh-fullpage-0908-page-section-1--c-hero__slide[data-custom-desktop="true"]:not([hidden]) {
    /* A transformed slide would anchor its buttons to the copy instead of the banner. */
    animation: none;

    .kik-hero-button-slot {
      --button-x: var(--desktop-x);
      --button-y: var(--desktop-y);
      display: block;
      min-height: 48px;
    }

    .kik-hero-button-area {
      display: block;
      position: absolute;
      inset: 16px var(--gutter) 104px;
      pointer-events: none;
    }

    .sth-senfeng-fresh-fullpage-0908-page-section-1--c-hero__ctas {
      position: absolute;
      left: var(--button-x);
      top: var(--button-y);
      translate: calc(-1 * var(--button-x)) calc(-1 * var(--button-y));
      width: max-content;
      max-width: 100%;
    }

    .sth-senfeng-fresh-fullpage-0908-page-section-1--c-btn {
      pointer-events: auto;
      max-width: 100%;
      height: auto;
      min-height: 48px;
      white-space: normal;
      overflow-wrap: anywhere;
      flex: 0 1 auto;
    }
  }
}

@media (max-width: 767px) {
  .sth-senfeng-fresh-fullpage-0908-page-section-1--c-hero:has([data-custom-mobile="true"]:not([hidden])) {
    isolation: isolate;
    .sth-senfeng-fresh-fullpage-0908-page-section-1--c-hero__bg,
    .sth-senfeng-fresh-fullpage-0908-page-section-1--c-hero__tmark { z-index: -1; }

    .sth-senfeng-fresh-fullpage-0908-page-section-1--c-hero__inner,
    .sth-senfeng-fresh-fullpage-0908-page-section-1--c-hero__slides { position: static; }
  }

  .sth-senfeng-fresh-fullpage-0908-page-section-1--c-hero__slide[data-custom-mobile="true"]:not([hidden]) {
    /* A transformed slide would anchor its buttons to the copy instead of the banner. */
    animation: none;

    .kik-hero-button-slot {
      --button-x: var(--mobile-x);
      --button-y: var(--mobile-y);
      display: block;
      min-height: 48px;
    }

    .kik-hero-button-area {
      display: block;
      position: absolute;
      inset: 16px var(--gutter) 88px;
      pointer-events: none;
    }

    .sth-senfeng-fresh-fullpage-0908-page-section-1--c-hero__ctas {
      position: absolute;
      left: var(--button-x);
      top: var(--button-y);
      translate: calc(-1 * var(--button-x)) calc(-1 * var(--button-y));
      width: max-content;
      max-width: 100%;
    }

    .sth-senfeng-fresh-fullpage-0908-page-section-1--c-btn {
      pointer-events: auto;
      max-width: 100%;
      height: auto;
      min-height: 48px;
      white-space: normal;
      overflow-wrap: anywhere;
      flex: 0 1 auto;
    }
  }
}
