@media (min-width: 768px) {
  html body .topmenu.fixed-top {
    top: 0;
  }
}

@media (max-width: 767px) {
  html body .header {
    top: 0;
  }
}

.my-plot-promo[hidden] {
  display: none;
}

.my-plot-promo {
  --promo-ink: #182942;
  --promo-action: #253e69;
  box-sizing: border-box;
  position: fixed;
  top: var(--my-plot-promo-top, 14px);
  right: max(22px, env(safe-area-inset-right));
  z-index: 45;
  width: min(346px, calc(100% - 44px));
  max-height: calc(100vh - var(--my-plot-promo-top, 14px) - 12px);
  overflow: auto;
  padding: 17px 19px 19px;
  border: 1px solid #bf6d0f;
  border-radius: 16px;
  background: #e8891c;
  box-shadow: 0 3px 8px #1829420b, 0 14px 36px #18294229;
  color: var(--promo-ink);
  font: 400 14px/1.4 Inter, "Segoe UI", sans-serif;
}

.my-plot-promo__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 42px 10px 0;
  font-weight: 700;
}

.my-plot-promo__brand img {
  box-sizing: border-box;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  padding: 3px 6px;
  border-radius: 7px;
  background: #fff8ed;
  object-fit: contain;
}

.my-plot-promo__title {
  max-width: 290px;
  margin: 0 0 6px;
  color: var(--promo-ink);
  font: 700 23px/1.16 Inter, "Segoe UI", sans-serif;
  letter-spacing: -0.025em;
  text-transform: none;
  text-wrap: balance;
}

.my-plot-promo__note {
  margin: 0 0 15px;
  color: var(--promo-ink);
}

.my-plot-promo__action {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 13px;
  padding: 8px 13px;
  border-radius: 8px;
  background: var(--promo-action);
  color: #fff;
  font-weight: 650;
  text-decoration: none;
}

.my-plot-promo__action:hover {
  background: #182c4c;
  color: #fff;
}

.my-plot-promo__action span {
  font-size: 18px;
  line-height: 1;
}

.my-plot-promo__close {
  position: absolute;
  top: 12px;
  right: 6px;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--promo-ink);
  cursor: pointer;
}

.my-plot-promo__close:hover {
  background: #fff8ed40;
}

.my-plot-promo__close span {
  position: relative;
  display: block;
  width: 16px;
  height: 16px;
}

.my-plot-promo__close span::before,
.my-plot-promo__close span::after {
  content: "";
  position: absolute;
  top: 7px;
  left: 0;
  width: 16px;
  height: 1.5px;
  border-radius: 1px;
  background: currentColor;
  transform: rotate(45deg);
}

.my-plot-promo__close span::after {
  transform: rotate(-45deg);
}

.my-plot-promo__action:focus-visible,
.my-plot-promo__close:focus-visible {
  outline: 2px solid var(--promo-action);
  outline-offset: 2px;
}

@media (max-width: 767px) {
  .my-plot-promo {
    right: max(12px, env(safe-area-inset-right));
    width: min(316px, calc(100% - 24px));
    padding: 14px 16px 16px;
  }

  .my-plot-promo__title {
    font-size: 20px;
  }

  .my-plot-promo__close {
    top: 9px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .my-plot-promo:not([hidden]) {
    animation: my-plot-promo-enter 190ms cubic-bezier(.23, 1, .32, 1);
  }
}

@keyframes my-plot-promo-enter {
  from {
    opacity: 0;
    transform: translateY(-7px);
  }
}
