.tk-sticky-ad,
.tk-sticky-ad * {
  box-sizing: border-box;
}

.tk-sticky-ad {
  position: fixed;
  left: 50%;
  bottom: 14px;
  z-index: 9998;
  width: min(940px, calc(100% - 28px));
  transform: translate(-50%, 130%);
  opacity: 0;
  visibility: hidden;
  transition: transform .28s ease, opacity .22s ease, visibility .22s ease;
  font-family: inherit;
}

.tk-sticky-ad.is-visible {
  transform: translate(-50%, 0);
  opacity: 1;
  visibility: visible;
}

.tk-sticky-inner {
  position: relative;
  display: grid;
  grid-template-columns: 72px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 12px 46px 12px 14px;
  background: rgba(255, 255, 255, .97);
  border: 1px solid rgba(30, 58, 138, .12);
  border-radius: 18px;
  box-shadow: 0 16px 45px rgba(15, 23, 42, .16);
  backdrop-filter: blur(10px);
}

.tk-sticky-media {
  width: 72px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f4f7fb;
  border-radius: 12px;
  overflow: hidden;
}

.tk-sticky-media img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.tk-sticky-content {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.tk-sticky-label {
  width: fit-content;
  padding: 2px 7px;
  border-radius: 999px;
  background: #eef3ff;
  color: #1d4ed8;
  font-size: 10px;
  line-height: 1.3;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.tk-sticky-content strong {
  display: block;
  color: #17357e;
  font-size: 16px;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tk-sticky-content span {
  display: block;
  color: #334155;
  font-size: 13px;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tk-sticky-content small {
  display: block;
  color: #64748b;
  font-size: 11px;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tk-sticky-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 18px;
  border-radius: 12px;
  background: #16a34a;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 8px 18px rgba(22, 163, 74, .24);
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}

.tk-sticky-btn:hover {
  background: #15803d;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(22, 163, 74, .3);
}

.tk-sticky-close {
  position: absolute;
  top: 8px;
  right: 10px;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 999px;
  background: #f1f5f9;
  color: #334155;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tk-sticky-close:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.tk-sticky-open {
  position: fixed;
  left: 14px;
  bottom: 14px;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 9px 14px;
  border: 0;
  border-radius: 999px;
  background: #17357e;
  color: #fff;
  font-family: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(15, 23, 42, .22);
}

.tk-sticky-open.is-visible {
  display: inline-flex;
}

.tk-sticky-open:hover {
  background: #1d4ed8;
}

@media (max-width: 640px) {
  .tk-sticky-ad {
    width: calc(100% - 18px);
    bottom: 9px;
  }

  .tk-sticky-inner {
    grid-template-columns: 54px 1fr;
    gap: 10px;
    padding: 10px 38px 10px 10px;
    border-radius: 16px;
  }

  .tk-sticky-media {
    width: 54px;
    height: 36px;
    border-radius: 10px;
  }

  .tk-sticky-content strong {
    font-size: 14px;
  }

  .tk-sticky-content span {
    font-size: 12px;
    max-width: 100%;
  }

  .tk-sticky-content small {
    display: none;
  }

  .tk-sticky-btn {
    grid-column: 1 / -1;
    width: 100%;
    min-height: 38px;
    padding: 9px 14px;
    font-size: 13px;
    border-radius: 11px;
  }

  .tk-sticky-label {
    font-size: 9px;
  }

  .tk-sticky-close {
    top: 7px;
    right: 7px;
    width: 26px;
    height: 26px;
  }

  .tk-sticky-open {
    left: 9px;
    bottom: 9px;
    min-height: 34px;
    padding: 8px 12px;
    font-size: 12px;
  }
}