/* Ice Machine For Sale — social follow popup
   Bottom-left, next to (not on top of) the Google reviews badge. */

.im-social {
  position: fixed;
  left: 18px;
  bottom: 18px;
  z-index: 99980;
  font-family: inherit;
  color: #1b2430;
}

.im-social__launch {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1px solid #d5dee4;
  border-radius: 999px;
  box-shadow: 0 8px 28px rgba(27, 36, 48, 0.14);
  cursor: pointer;
  padding: 8px 14px 8px 10px;
  text-align: left;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  animation: imSocialPulse 2.8s ease-in-out infinite;
}

@keyframes imSocialPulse {
  0%, 100% { box-shadow: 0 8px 28px rgba(27, 36, 48, 0.14); }
  50% { box-shadow: 0 10px 30px rgba(31, 138, 166, 0.4); }
}

.im-social__launch:hover,
.im-social__launch:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 12px 32px rgba(27, 36, 48, 0.18);
  outline: none;
}

.im-social__launch:focus-visible {
  outline: 2px solid #1b2430;
  outline-offset: 3px;
}

.im-social__stack {
  display: flex;
  padding-left: 6px;
}

.im-social__dot {
  align-items: center;
  border: 2px solid #fff;
  border-radius: 50%;
  color: #fff;
  display: flex;
  height: 28px;
  justify-content: center;
  margin-left: -6px;
  width: 28px;
}

.im-social__dot svg {
  height: 14px;
  width: 14px;
}

.im-social__dot--facebook { background: #1877f2; }
.im-social__dot--instagram { background: #e1306c; }
.im-social__dot--tiktok { background: #111; }
.im-social__dot--pinterest { background: #e60023; }
.im-social__dot--trustpilot { background: #00b67a; }

.im-social__launch-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.im-social__kicker {
  color: #5b6773;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.im-social__launch-count {
  font-size: 13px;
  font-weight: 700;
}

.im-social__panel {
  position: absolute;
  left: 0;
  bottom: calc(100% + 10px);
  width: min(360px, calc(100vw - 36px));
}

.im-social__panel[hidden] {
  display: none;
}

.im-social__card {
  background: #fff;
  border: 1px solid #d5dee4;
  border-radius: 16px;
  box-shadow: 0 18px 50px rgba(27, 36, 48, 0.18);
  padding: 20px 18px 16px;
  position: relative;
  transform-origin: bottom left;
  animation: imSocialIn 0.28s ease;
}

.im-social__close {
  background: #f3f6f8;
  border: 0;
  border-radius: 50%;
  color: #1b2430;
  cursor: pointer;
  font-size: 20px;
  height: 32px;
  line-height: 1;
  position: absolute;
  right: 10px;
  top: 10px;
  width: 32px;
}

.im-social__close:hover,
.im-social__close:focus-visible {
  background: #1b2430;
  color: #fff;
  outline: none;
}

.im-social__eyebrow {
  color: #e67e22;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  margin: 0 0 6px;
  text-transform: uppercase;
}

.im-social__title {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.25;
  margin: 0 0 8px;
}

.im-social__lead {
  color: #5b6773;
  font-size: 14px;
  line-height: 1.5;
  margin: 0 0 14px;
}

.im-social__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.im-social__row {
  align-items: center;
  background: #f8fafb;
  border: 1px solid #e6ecef;
  border-radius: 12px;
  color: #1b2430 !important;
  display: grid;
  gap: 10px;
  grid-template-columns: 40px 1fr auto;
  padding: 10px 12px;
  text-decoration: none !important;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.im-social__row:hover,
.im-social__row:focus-visible {
  background: #fff;
  border-color: #1b2430;
}

.im-social__icon {
  align-items: center;
  border-radius: 10px;
  color: #fff;
  display: flex;
  height: 40px;
  justify-content: center;
  width: 40px;
}

.im-social__icon svg {
  height: 18px;
  width: 18px;
}

.im-social__row--facebook .im-social__icon { background: #1877f2; }
.im-social__row--instagram .im-social__icon { background: #e1306c; }
.im-social__row--tiktok .im-social__icon { background: #111; }
.im-social__row--pinterest .im-social__icon { background: #e60023; }
.im-social__row--trustpilot .im-social__icon { background: #00b67a; }

.im-social__meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.im-social__name {
  font-size: 14px;
  font-weight: 700;
}

.im-social__stat {
  color: #5b6773;
  font-size: 12px;
  font-weight: 600;
}

.im-social__cta {
  color: #0f5f86;
  font-size: 12px;
  font-weight: 700;
}

.im-social__foot {
  color: #5b6773;
  font-size: 12px;
  margin: 12px 0 0;
}

.im-social__foot a {
  color: #0f5f86;
  font-weight: 650;
}

@keyframes imSocialIn {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

body.woocommerce-cart .im-social,
body.woocommerce-checkout .im-social,
body.woocommerce-account .im-social,
body.woocommerce-order-received .im-social,
body.woocommerce-cart .impr-google-float,
body.woocommerce-checkout .impr-google-float,
body.woocommerce-account .impr-google-float,
body.woocommerce-order-received .impr-google-float,
body.woocommerce-cart .impr-google-topbar,
body.woocommerce-checkout .impr-google-topbar {
  display: none !important;
}

@media (max-width: 782px) {
  .im-social {
    left: 12px;
    bottom: 12px;
  }

  .im-social__launch-copy {
    display: none;
  }

  .im-social__launch {
    padding: 8px 10px;
  }

  .im-social__panel {
    width: min(340px, calc(100vw - 24px));
  }

  body.single-product .im-social {
    bottom: auto;
    top: auto;
    left: 12px;
    bottom: 12px;
  }

  body.single-product .impr-google-float {
    right: 12px;
    bottom: 12px;
  }

  body.single-product .impr-google-badge--float {
    width: 210px;
    padding: 10px 12px;
  }

  body.single-product .impr-google-badge--float .impr-g-cta {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .im-social__launch,
  .im-social__card {
    animation: none;
    transition: none;
  }
}
