.ss-ext-banner,
.ss-ext-banner * {
  box-sizing: border-box;
}

.ss-ext-banner {
  --ss-ext-ink: #231f1b;
  --ss-ext-soft: #645d56;
  --ss-ext-sage: #245b47;
  --ss-ext-sage-dark: #183d31;
  --ss-ext-correction: #4f8d71;
  --ss-ext-gold: #e9ba67;
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 2400;
  display: grid;
  grid-template-columns: 202px minmax(0, 1fr);
  width: min(540px, calc(100vw - 48px));
  min-height: 164px;
  overflow: hidden;
  color: var(--ss-ext-ink);
  background: rgba(255, 254, 251, 0.98);
  border: 1px solid rgba(36, 91, 71, 0.62);
  border-radius: 17px;
  box-shadow: 0 22px 55px rgba(56, 44, 31, 0.18), 0 4px 12px rgba(56, 44, 31, 0.08);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji";
  text-align: left;
  isolation: isolate;
  animation: ss-ext-banner-in 240ms ease-out both;
}

.ss-ext-banner__visual {
  position: relative;
  min-width: 0;
  margin: 8px 0 8px 8px;
  overflow: hidden;
  background: #dfe9e4;
  border: 1px solid rgba(70, 102, 87, 0.14);
  border-radius: 12px;
}

.ss-ext-banner__photo {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 61% 50%;
}

.ss-ext-banner__image-tile {
  position: absolute;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(35, 62, 49, 0.11);
  border-radius: 5px;
  box-shadow: 0 4px 13px rgba(28, 48, 38, 0.17);
  backdrop-filter: blur(3px);
}

.ss-ext-banner__image-tile--chrome { top: 10px; left: 10px; }
.ss-ext-banner__image-tile--docs { top: 13px; right: 11px; }
.ss-ext-banner__image-tile--gmail { bottom: 10px; left: 10px; }
.ss-ext-banner__image-tile--facebook { top: 50%; left: 50%; z-index: 2; transform: translate(-50%, -50%); }
.ss-ext-banner__image-tile--linkedin { right: 11px; bottom: 10px; }
.ss-ext-banner__image-tile .ss-ext-banner__chrome,
.ss-ext-banner__image-tile .ss-ext-banner__service-icon {
  width: 22px;
  height: 22px;
  flex-basis: 22px;
}

.ss-ext-banner__content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-width: 0;
  padding: 19px 20px 17px 20px;
}

.ss-ext-banner__close {
  position: absolute;
  top: 10px;
  right: 10px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  color: #332e29;
  background: transparent;
  border: 0;
  border-radius: 50%;
  font: inherit;
  font-size: 25px;
  line-height: 1;
  cursor: pointer;
}

.ss-ext-banner__close:hover { background: rgba(71, 92, 82, 0.08); }

.ss-ext-banner__title {
  margin: 0 34px 0 0;
  color: var(--ss-ext-ink);
  font-family: inherit;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.28;
}

.ss-ext-banner__correction {
  color: var(--ss-ext-correction);
  text-decoration-line: line-through;
  text-decoration-color: currentColor;
  text-decoration-thickness: 1.5px;
  text-decoration-skip-ink: none;
}

.ss-ext-banner__body {
  max-width: 37ch;
  margin: 7px 0 0;
  color: var(--ss-ext-soft);
  font-size: 14px;
  line-height: 1.43;
}

.ss-ext-banner__service-icon {
  display: block;
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  overflow: visible;
}

.ss-ext-banner__cta {
  display: flex;
  align-items: center;
  gap: 9px;
  width: auto;
  min-width: 166px;
  min-height: 40px;
  margin-top: 14px;
  padding: 8px 14px;
  color: #fff;
  background: linear-gradient(180deg, var(--ss-ext-sage) 0%, var(--ss-ext-sage-dark) 100%);
  border-radius: 999px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
}

.ss-ext-banner__cta:hover { color: #fff; filter: brightness(1.07); }
.ss-ext-banner__cta .ss-ext-banner__chrome { width: 24px; height: 24px; flex: 0 0 auto; }
.ss-ext-banner__cta span { flex: 0 1 auto; }

.ss-ext-banner__external {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
  opacity: 0.82;
}

.ss-ext-banner__close:focus-visible,
.ss-ext-banner__cta:focus-visible {
  outline: 3px solid #f0bd61;
  outline-offset: 3px;
}

.ss-ext-banner[dir="rtl"] { text-align: right; }
.ss-ext-banner[dir="rtl"] .ss-ext-banner__close { right: auto; left: 10px; }
.ss-ext-banner[dir="rtl"] .ss-ext-banner__title { margin-right: 0; margin-left: 34px; }

[data-theme="dark"] .ss-ext-banner {
  --ss-ext-ink: #f7f2ea;
  --ss-ext-soft: #d3c9bd;
  --ss-ext-correction: #7fbea1;
  background: rgba(38, 36, 34, 0.985);
  border-color: rgba(72, 145, 112, 0.78);
  box-shadow: 0 22px 58px rgba(0, 0, 0, 0.42), 0 4px 12px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .ss-ext-banner__close { color: #eee6dc; }
[data-theme="dark"] .ss-ext-banner__close:hover { background: rgba(255, 255, 255, 0.08); }
[data-theme="dark"] .ss-ext-banner__photo { filter: brightness(0.86) saturate(0.88); }

@keyframes ss-ext-banner-in {
  from { opacity: 0; transform: translateY(10px) scale(0.99); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 767px), (hover: none), (pointer: coarse) {
  .ss-ext-banner { display: none !important; }
}

@media (max-height: 560px) {
  .ss-ext-banner { bottom: 12px; max-height: calc(100vh - 24px); overflow: auto; }
}

@media (prefers-reduced-motion: reduce) {
  .ss-ext-banner { animation: none; }
}
