.page-advertisement {
  box-sizing: border-box;
  display: block;
  width: 100%;
  background-color: var(--page-advertisement-bg-initial, #000);
  transition: width 3s, height 3s, background-color 3s, transform 3s;
}

.page-advertisement.is-active {
  background-color: var(--page-advertisement-bg-active, #1a1a1a);
}

.page-advertisement__inner {
  display: flex;
  gap: 6px;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 0;
}

.page-advertisement__inner--content-width {
  max-width: 1400px;
  margin: 0 auto;
  text-align: center;
}

.page-advertisement__icon {
  display: flex;
  flex: 0 0 24px;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
}

.page-advertisement__icon img {
  display: block;
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.page-advertisement__center,
.page-advertisement__action {
  overflow: hidden;
  font-size: var(--page-advertisement-font-size, 14px);
  font-weight: var(--page-advertisement-font-weight, 500);
  line-height: var(--page-advertisement-line-height, 20px);
}

.page-advertisement__center {
  min-width: 0;
  color: var(--page-advertisement-center-color, #fff);
  text-align: center;
}

.page-advertisement__action {
  flex: 0 1 auto;
  max-width: 40%;
  color: var(--page-advertisement-link-color, #00a9f4);
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (min-width: 960px) {
  .page-advertisement__center--ellipsis {
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

.page-advertisement__action a {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  max-width: 100%;
  color: inherit;
  text-decoration: none;
}

.page-advertisement__action a span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.page-advertisement__action i {
  flex: 0 0 7px;
  width: 7px;
  height: 7px;
  border-block-start: 1px solid currentcolor;
  border-inline-end: 1px solid currentcolor;
  transform: rotate(45deg);
}

.page-advertisement__action a:hover {
  text-decoration: underline;
}

.page-advertisement__action a:focus-visible {
  outline: revert;
  outline-offset: 2px;
}

@media (max-width: 959px) {
  .page-advertisement__inner {
    gap: 6px;
    flex-wrap: nowrap;
  }

  .page-advertisement__center,
  .page-advertisement__action {
    font-size: var(--page-advertisement-font-size-mobile, 12px);
    font-weight: var(--page-advertisement-font-weight-mobile, 500);
    line-height: var(--page-advertisement-line-height-mobile, 18px);
  }

  .page-advertisement__center--ellipsis-mobile {
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .page-advertisement__action {
    max-width: 38%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-advertisement {
    transition: none;
  }
}
