#cs-extension-promo {
  all: initial;
  position: fixed;
  top: 92px;
  right: 18px;
  z-index: 2147483000;
  color: #0f172a;
  font-family: Montserrat, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  pointer-events: none;
}

#cs-extension-promo *,
#cs-extension-promo *::before,
#cs-extension-promo *::after {
  box-sizing: border-box;
  font-family: inherit;
}

.cs-install-promo__wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.cs-install-promo__bubble,
.cs-install-promo__panel {
  pointer-events: auto;
}

.cs-install-promo__bubble {
  position: relative;
  display: grid;
  width: 56px;
  height: 56px;
  margin: 0;
  padding: 0;
  place-items: center;
  overflow: visible;
  cursor: pointer;
  background: #1677ff;
  border: 3px solid #fff;
  border-radius: 50%;
  box-shadow: 0 8px 22px rgba(14, 42, 107, .35);
  -webkit-tap-highlight-color: transparent;
}

.cs-install-promo__bubble img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  pointer-events: none;
}

.cs-install-promo__badge {
  position: absolute;
  right: -8px;
  bottom: -7px;
  min-width: 38px;
  padding: 3px 6px;
  color: #0e2a6b;
  font-size: 9px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: .02em;
  text-align: center;
  text-transform: uppercase;
  background: #fff;
  border: 1px solid rgba(14, 42, 107, .15);
  border-radius: 999px;
  box-shadow: 0 3px 9px rgba(14, 42, 107, .2);
}

.cs-install-promo__bubble:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 26px rgba(14, 42, 107, .4);
}

.cs-install-promo__bubble:focus-visible,
.cs-install-promo__close:focus-visible,
.cs-install-promo__cta:focus-visible,
.cs-install-promo__later:focus-visible {
  outline: 3px solid #ffc950;
  outline-offset: 3px;
}

.cs-install-promo__panel {
  width: min(330px, calc(100vw - 28px));
  overflow: hidden;
  color: #0f172a;
  background: #fff;
  border: 1px solid rgba(14, 42, 107, .12);
  border-radius: 16px;
  box-shadow: 0 16px 42px rgba(14, 42, 107, .25);
}

.cs-install-promo__header {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px 12px;
  color: #fff;
  background: linear-gradient(135deg, #0e2a6b, #143a8c);
}

.cs-install-promo__header img {
  width: 26px;
  height: 26px;
  object-fit: cover;
  border-radius: 50%;
}

.cs-install-promo__brand {
  flex: 1;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
}

.cs-install-promo__site-label {
  display: block;
  margin-top: 2px;
  font-size: 10px;
  font-weight: 600;
  opacity: .9;
}

.cs-install-promo__close {
  display: grid;
  width: 36px;
  height: 36px;
  margin: -5px -5px -5px 0;
  padding: 0;
  place-items: center;
  color: #fff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  background: transparent;
  border: 0;
  border-radius: 50%;
}

.cs-install-promo__body {
  padding: 16px;
}

.cs-install-promo__title {
  margin: 0 0 8px;
  color: #0e2a6b;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.25;
}

.cs-install-promo__copy {
  margin: 0 0 15px;
  color: #5b6b7c;
  font-size: 13px;
  line-height: 1.5;
}

.cs-install-promo__cta,
.cs-install-promo__later {
  display: flex;
  width: 100%;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-radius: 999px;
}

.cs-install-promo__cta {
  padding: 11px 14px;
  color: #fff !important;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.25;
  text-decoration: none !important;
  background: linear-gradient(180deg, #ffa033, #ff8a00);
  box-shadow: 0 5px 14px rgba(255, 138, 0, .25);
}

.cs-install-promo__cta:hover {
  color: #fff !important;
  text-decoration: none !important;
  background: #f57f00;
}

.cs-install-promo__later {
  margin-top: 5px;
  padding: 8px 12px;
  color: #0F66E0;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  background: transparent;
  border: 0;
}

.cs-install-promo__later:hover {
  background: #eef4ff;
}

.cs-install-promo__permissions {
  margin: 7px 4px 0;
  color: #6b7a8c;
  font-size: 10px;
  line-height: 1.4;
  text-align: center;
}

@media (prefers-reduced-motion: no-preference) {
  .cs-install-promo__bubble {
    animation: cs-install-promo-arrive .32s ease-out both;
    transition: transform .15s ease, box-shadow .15s ease;
  }

  .cs-install-promo__panel {
    animation: cs-install-promo-open .18s ease-out both;
  }
}

@keyframes cs-install-promo-arrive {
  from { opacity: 0; transform: translateY(-8px) scale(.92); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes cs-install-promo-open {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 767px) {
  #cs-extension-promo {
    display: none !important;
  }
}

/* ---------- Extension preview mock inside the install panel ---------- */
#cs-extension-promo .cs-install-promo__panel {
  width: min(340px, calc(100vw - 28px));
}

.cs-install-demo {
  position: relative;
  margin: 12px 12px 0;
  padding: 10px;
  overflow: hidden;
  background: #0b1c47;
  border: 1px solid rgba(22, 119, 255, .32);
  border-radius: 14px;
  box-shadow: 0 8px 20px rgba(14, 42, 107, .22);
}

.cs-install-demo__ribbon {
  position: absolute;
  top: 9px;
  right: -26px;
  width: 92px;
  padding: 2px 0;
  color: #0e2a6b;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .08em;
  text-align: center;
  text-transform: uppercase;
  background: #ffc950;
  transform: rotate(35deg);
}

.cs-install-demo__top {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 9px;
  padding-right: 40px;
}

.cs-install-demo__top img {
  width: 22px;
  height: 22px;
  object-fit: cover;
  border-radius: 50%;
}

.cs-install-demo__brand {
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.cs-install-demo__found {
  overflow: hidden;
  color: #7fb2ff;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.cs-install-demo__rows {
  display: grid;
  gap: 6px;
}

.cs-install-demo__row {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 9px;
  background: #12285e;
  border: 1px solid rgba(255, 255, 255, .06);
  border-radius: 10px;
  transition: border-color .25s ease, background .25s ease;
}

.cs-install-demo__icon {
  flex: 0 0 26px;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: #1b3778;
  background-position: center;
  background-repeat: no-repeat;
  background-size: 15px 15px;
}

.cs-install-demo__row--cashback .cs-install-demo__icon {
  background-color: rgba(61, 220, 151, .16);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233ddc97' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M12 3v18M16.5 7.5c0-1.7-2-3-4.5-3s-4.5 1.3-4.5 3 2 2.6 4.5 3 4.5 1.4 4.5 3.2-2 3.3-4.5 3.3-4.5-1.4-4.5-3.1'/%3E%3C/svg%3E");
}

.cs-install-demo__row--coupon .cs-install-demo__icon {
  background-color: rgba(77, 155, 255, .18);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234d9bff' stroke-width='2.2' stroke-linejoin='round'%3E%3Cpath d='M3 7h18v3a2 2 0 0 0 0 4v3H3v-3a2 2 0 0 0 0-4z'/%3E%3Cpath d='M10 7v10' stroke-dasharray='2 2'/%3E%3C/svg%3E");
}

.cs-install-demo__row--giftcard .cs-install-demo__icon {
  background-color: rgba(251, 144, 54, .16);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fb9036' stroke-width='2.2' stroke-linejoin='round'%3E%3Crect x='3' y='8' width='18' height='12' rx='2'/%3E%3Cpath d='M12 8v12M3 12h18M12 8c-2-4-6-4-6-1.5S10 8 12 8c2 0 6 1 6-1.5S14 4 12 8z'/%3E%3C/svg%3E");
}

.cs-install-demo__text {
  display: flex;
  flex: 1;
  min-width: 0;
  flex-direction: column;
  line-height: 1.25;
}

.cs-install-demo__text strong {
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.cs-install-demo__text span {
  overflow: hidden;
  color: #9fb0d0;
  font-size: 10.5px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.cs-install-demo__pill {
  flex: 0 0 auto;
  padding: 5px 9px;
  color: #fff;
  font-size: 10.5px;
  font-weight: 800;
  white-space: nowrap;
  background: #1677ff;
  border-radius: 999px;
  transition: background .25s ease;
}

.cs-install-demo__row--coupon .cs-install-demo__pill,
.cs-install-demo__row--giftcard .cs-install-demo__pill {
  color: #d6e4ff;
  background: #1b3778;
}

.cs-install-demo__row.is-active {
  background: rgba(61, 220, 151, .08);
  border-color: rgba(61, 220, 151, .45);
}

.cs-install-demo__row.is-active .cs-install-demo__pill {
  background: #1f9e66;
}

#cs-extension-promo .cs-install-promo__body {
  padding-top: 14px;
}

@media (prefers-reduced-motion: reduce) {
  .cs-install-demo__row,
  .cs-install-demo__pill {
    transition: none;
  }
}

#cs-extension-promo .cs-install-promo__panel {
  max-height: calc(100vh - 180px);
  overflow-y: auto;
}
