:root{
  --kufp-reserve-mobile: 148px;
  --kufp-reserve-desktop: 124px;
}

.kufp-sticky{
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 999999;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  pointer-events: none;
}

.kufp-card{
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  background: #111827;
  color: #ffffff;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px;
  box-shadow: 0 18px 46px rgba(0,0,0,0.28);
  padding: 12px 56px 12px 12px;
  pointer-events: auto;
  position: relative;
}

.kufp-media-wrap{
  width: 84px;
  height: 84px;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255,255,255,0.08);
}

.kufp-media{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.kufp-copy{
  min-width: 0;
}

.kufp-label{
  display: inline-block;
  font-size: 11px;
  line-height: 1;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #fcd34d;
  margin-bottom: 8px;
  font-weight: 700;
}

.kufp-title{
  font-size: 24px;
  line-height: 1.1;
  font-weight: 800;
  margin: 0 0 6px;
}

.kufp-subtitle{
  font-size: 13px;
  line-height: 1.35;
  color: rgba(255,255,255,0.82);
}

.kufp-actions{
  display: flex;
  align-items: center;
}

.kufp-button{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  background: #f59e0b;
  color: #111827 !important;
  text-decoration: none;
  font-weight: 800;
  white-space: nowrap;
}

.kufp-button:hover,
.kufp-button:focus{
  text-decoration: none;
  filter: brightness(1.03);
}

.kufp-close{
  appearance: none;
  border: 0;
  background: transparent;
  color: rgba(255,255,255,0.72);
  font-size: 28px;
  line-height: 1;
  width: 36px;
  height: 36px;
  position: absolute;
  top: 8px;
  right: 8px;
  cursor: pointer;
}

.kufp-close:hover,
.kufp-close:focus{
  color: #ffffff;
}

html.kufp-hidden .kufp-sticky{
  display: none !important;
}

@media (max-width: 781px){
  .kufp-sticky{
    padding-left: 10px;
    padding-right: 10px;
  }

  .kufp-card{
    grid-template-columns: 68px minmax(0, 1fr);
    gap: 12px;
    padding: 12px 44px 12px 12px;
  }

  .kufp-media-wrap{
    width: 68px;
    height: 68px;
  }

  .kufp-actions{
    grid-column: 1 / -1;
  }

  .kufp-button{
    width: 100%;
  }

  .kufp-title{
    font-size: 20px;
  }
}
