:root {
  --essb-ctc-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --essb-ctc-whatsapp: #25D366;
  --essb-ctc-viber: #7360F2;
  --essb-ctc-telegram: #0088CC;
  --essb-ctc-signal: #3A76F0;
  --essb-ctc-line: #00C300;
  --essb-ctc-imessage: #007AFF;
  --essb-ctc-sms: #34C759;
  --essb-ctc-text: #fff;
  --essb-ctc-shadow: 0 2px 12px rgba(0,0,0,.15);
  --essb-ctc-size: 56px;
  --essb-ctc-bottom: 24px;
  --essb-ctc-side: 24px;
  --essb-ctc-radius: 50%;
}

.essb-ctc-widget, .essb-ctc-floating, .essb-ctc-inline {
  font-family: var(--essb-ctc-font);
  box-sizing: border-box;
}
.essb-ctc-widget *, .essb-ctc-floating *, .essb-ctc-inline *,
.essb-ctc-widget *::before, .essb-ctc-floating *::before, .essb-ctc-inline *::before,
.essb-ctc-widget *::after, .essb-ctc-floating *::after, .essb-ctc-inline *::after {
  box-sizing: border-box;
}

.essb-ctc-hide { display: none !important; }

.essb-ctc-floating {
  position: fixed !important;
  z-index: 999999;
  bottom: var(--essb-ctc-bottom);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}
.essb-ctc-floating.essb-ctc-right { right: var(--essb-ctc-side); }
.essb-ctc-floating.essb-ctc-left  { left: var(--essb-ctc-side); flex-direction: column; align-items: flex-start; }

.essb-ctc-inline {
  display: inline-flex;
  vertical-align: middle;
}

.essb-ctc-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--essb-ctc-size);
  height: var(--essb-ctc-size);
  border: none;
  border-radius: var(--essb-ctc-btn-radius, var(--essb-ctc-radius));
  color: var(--essb-ctc-text);
  cursor: pointer;
  box-shadow: var(--essb-ctc-shadow);
  transition: transform .2s, box-shadow .2s;
  -webkit-tap-highlight-color: transparent;
  text-decoration: none !important;
  flex-shrink: 0;
}
.essb-ctc-btn:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 6px 20px rgba(0,0,0,.25);
  color: var(--essb-ctc-text);
}
.essb-ctc-btn:active {
  transform: translateY(0) scale(.97);
}
.essb-ctc-btn svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
  display: block;
}

.essb-ctc-round { --essb-ctc-radius: 50%; --essb-ctc-size: 56px; }
.essb-ctc-pill    { --essb-ctc-radius: 50px; --essb-ctc-size: auto; padding: 0 24px 0 16px; gap: 8px; height: 50px; width: auto; min-width: 0; }
.essb-ctc-pill svg { width: 24px; height: 24px; flex-shrink: 0; }
.essb-ctc-rounded { --essb-ctc-radius: 8px; --essb-ctc-size: auto; padding: 0 22px 0 15px; gap: 8px; height: 48px; width: auto; min-width: 0; }
.essb-ctc-rounded svg { width: 22px; height: 22px; flex-shrink: 0; }
.essb-ctc-rect    { --essb-ctc-radius: 0; --essb-ctc-size: auto; padding: 0 20px 0 14px; gap: 8px; height: 48px; width: auto; min-width: 0; }
.essb-ctc-rect svg { width: 22px; height: 22px; flex-shrink: 0; }

.essb-ctc-person.essb-ctc-rect { --essb-ctc-popup-radius: 10px; height: auto; }
.essb-ctc-person.essb-ctc-pill { --essb-ctc-popup-radius: 50px; height: auto; }
.essb-ctc-person.essb-ctc-round { --essb-ctc-popup-radius: 80px; }
.essb-ctc-btn-label { font-size: 14px; font-weight: 500; white-space: nowrap; }

.essb-ctc-btn-mode-icon .essb-ctc-btn .essb-ctc-btn-label { display: none; }
.essb-ctc-btn-mode-label .essb-ctc-btn svg,
.essb-ctc-btn-mode-label.essb-ctc-widget > .essb-ctc-btn svg { display: none; }
.essb-ctc-btn-mode-label[data-essb-ctc] > .essb-ctc-btn,
.essb-ctc-btn-mode-label.essb-ctc-widget > .essb-ctc-btn:only-child { width: auto; height: auto; padding: 10px 18px; }
.essb-ctc-btn-mode-icon-label[data-essb-ctc] > .essb-ctc-btn,
.essb-ctc-btn-mode-icon-label.essb-ctc-widget > .essb-ctc-btn:only-child { width: auto; height: auto; padding: 8px 16px; gap: 8px; }

.essb-ctc-corner-round { --essb-ctc-popup-radius: 12px; --essb-ctc-btn-radius: 12px; }
.essb-ctc-corner-square { --essb-ctc-popup-radius: 0; --essb-ctc-btn-radius: 0; }

.essb-ctc-btn-label-outside {
  display: inline-block;
  font-size: 12px;
  background: #fff;
  padding: 5px 12px;
  border-radius: 6px;
  box-shadow: var(--essb-ctc-shadow);
  margin-bottom: 8px;
  white-space: nowrap;
  color: #333;
  cursor: pointer;
  transition: .3s;
}
.essb-ctc-floating.essb-ctc-right .essb-ctc-btn-label-outside { align-self: center; }
.essb-ctc-floating.essb-ctc-left  .essb-ctc-btn-label-outside { align-self: center; }

.essb-ctc-pulse {
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 2px solid currentColor;
  opacity: 0;
  animation: essb-ctc-pulse 2s ease-out infinite;
  pointer-events: none;
}
.essb-ctc-pulse:nth-child(2) { animation-delay: .7s; }
@keyframes essb-ctc-pulse {
  0%   { transform: scale(.6); opacity: .6; }
  100% { transform: scale(1.8); opacity: 0; }
}

}

.essb-ctc-btn.essb-ctc-offline {
  background: #b0b6bb !important;
  cursor: default !important;
  pointer-events: none;
}
.essb-ctc-btn.essb-ctc-offline svg { opacity: .6; }

.essb-ctc-popup {
  position: absolute;
  bottom: calc(100% + 16px);
  right: 0;
  min-width: 280px;
  max-width: calc(100vw - 60px);
  background: #fff;
  border-radius: var(--essb-ctc-popup-radius, 10px);
  box-shadow: 0 8px 32px rgba(0,0,0,.18);
  overflow: hidden;
  opacity: 0;
  transform: scale(.9) translateY(10px);
  transform-origin: bottom right;
  transition: opacity .25s, transform .25s;
  pointer-events: none;
  visibility: hidden;
}
.essb-ctc-show .essb-ctc-popup {
  opacity: 1;
  transform: scale(1) translateY(0);
  pointer-events: auto;
  visibility: visible;
}
.essb-ctc-left .essb-ctc-popup { right: auto; left: 0; transform-origin: bottom left; }
.essb-ctc-popup-header {
  position: relative;
  padding: 20px 36px 16px 20px;
  color: #fff;
  text-align: center;
}
.essb-ctc-popup-header .essb-ctc-popup-title  { font-size: 15px; font-weight: 600; }
.essb-ctc-popup-header .essb-ctc-popup-desc   { font-size: 12px; opacity: .85; margin-top: 3px; }
.essb-ctc-popup-close {
  position: absolute;
  top: 10px;
  right: 12px;
  cursor: pointer;
  color: rgba(255,255,255,.7);
  font-size: 20px;
  line-height: 1;
  background: none;
  border: none;
  padding: 0;
}
.essb-ctc-popup-close:hover { color: #fff; }
.essb-ctc-popup-body { padding: 12px; background: #f5f7f9; }
.essb-ctc-popup-body.essb-ctc-scroll { overflow-y: auto; }

.essb-ctc-operator {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: #fff;
  border-radius: 6px;
  cursor: pointer;
  transition: transform .15s, box-shadow .15s;
  margin-bottom: 6px;
}
.essb-ctc-operator:last-child { margin-bottom: 0; }
.essb-ctc-operator:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(0,0,0,.08);
}
.essb-ctc-operator-img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.essb-ctc-operator-nophoto { overflow: hidden; }
.essb-ctc-operator-hasphoto { overflow: visible; }
.essb-ctc-operator-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.essb-ctc-operator-img svg {
  width: 28px;
  height: 28px;
  fill: #fff;
}
.essb-ctc-operator-img.essb-ctc-operator-nophoto {
  width: 48px;
  height: 48px;
  border-radius: 50%;
}
.essb-ctc-operator-img.essb-ctc-operator-hasphoto {
  width: 48px;
  height: 48px;
  border-radius: 50%;
}
.essb-ctc-operator-badge {
  position: absolute;
  top: -2px;
  left: -2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
  z-index: 2;
}
.essb-ctc-operator-badge svg {
  width: 11px;
  height: 11px;
  fill: #fff;
}
.essb-ctc-operator-info { display: flex; flex-direction: column; }
.essb-ctc-operator-name { font-size: 14px; font-weight: 600; color: #222; }
.essb-ctc-operator-role { font-size: 11px; color: #888; margin-top: 1px; }
.essb-ctc-operator-status {
  font-size: 10px;
  color: #fff;
  background: #26c281;
  display: inline-block;
  padding: 1px 6px;
  border-radius: 4px;
  margin-top: 3px;
  align-self: flex-start;
}
.essb-ctc-operator.essb-ctc-offline { cursor: default; }
.essb-ctc-operator.essb-ctc-offline .essb-ctc-operator-img { filter: grayscale(1); opacity: .6; }
.essb-ctc-operator.essb-ctc-offline .essb-ctc-operator-status { background: #b0b6bb; }
.essb-ctc-operator.essb-ctc-away .essb-ctc-operator-status { background: #f1a528; }

.essb-ctc-prompt { padding: 0; }
.essb-ctc-prompt-msg {
  font-size: 12px;
  color: #f1a528;
  text-align: center;
  padding: 8px;
  display: none;
}
.essb-ctc-prompt.essb-ctc-offline .essb-ctc-prompt-msg { display: block; }
.essb-ctc-prompt.essb-ctc-offline .essb-ctc-prompt-row { display: none; }
.essb-ctc-prompt-row {
  display: flex;
  background: #fff;
  border-radius: 6px;
  overflow: hidden;
}
.essb-ctc-prompt-row input {
  flex: 1;
  border: none;
  outline: none;
  padding: 12px 14px;
  font-size: 13px;
  font-family: inherit;
}
.essb-ctc-prompt-row input::placeholder { color: #bbb; }
.essb-ctc-prompt-send {
  background: none;
  border: none;
  padding: 0 16px;
  font-weight: 600;
  font-size: 13px;
  color: #26c281;
  cursor: pointer;
  font-family: inherit;
}

.essb-ctc-person-group {
  display: inline-flex;
  flex-direction: column;
  gap: 6px;
  background: transparent;
}
.essb-ctc-person-group-inline {
  flex-direction: row;
  flex-wrap: wrap;
  width: 100%;
}
.essb-ctc-person-group .essb-ctc-person {
  margin: 0;
  border-radius: var(--essb-ctc-popup-radius, 10px);
}
.essb-ctc-person-group .essb-ctc-person:not(:last-child) {
  margin-bottom: 0;
}

.essb-ctc-person-compact {
  padding: 4px 14px 4px 6px;
  gap: 8px;
  border-radius: var(--essb-ctc-popup-radius, 10px);
}
.essb-ctc-person-compact .essb-ctc-person-img {
  width: 36px;
  height: 36px;
}
.essb-ctc-person-compact .essb-ctc-person-img svg {
  width: 20px;
  height: 20px;
}
.essb-ctc-person-compact .essb-ctc-person-name {
  font-size: 12px;
}
.essb-ctc-person-compact .essb-ctc-person-desc {
  display: none;
}
.essb-ctc-person-compact .essb-ctc-person-status {
  font-size: 9px;
  padding: 0 5px;
}

.essb-ctc-hide-offline.essb-ctc-offline {
  display: none !important;
}

.essb-ctc-person {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 7px 18px 8px 10px;
  border-radius: 50px;
  color: #fff;
  cursor: pointer;
  box-shadow: var(--essb-ctc-shadow);
  transition: transform .2s, box-shadow .2s;
  text-decoration: none !important;
}
.essb-ctc-person:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,.2);
  color: #fff;
}
.essb-ctc-person-img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.essb-ctc-person-nophoto { overflow: hidden; }
.essb-ctc-person-hasphoto { overflow: visible; }
.essb-ctc-person-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.essb-ctc-person-img svg {
  width: 28px;
  height: 28px;
  fill: #fff;
}
.essb-ctc-person-badge {
  position: absolute;
  top: -3px;
  left: -3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
  z-index: 2;
}
.essb-ctc-person-badge svg {
  width: 11px;
  height: 11px;
  fill: #fff;
}
.essb-ctc-person-info { display: flex; flex-direction: column; }
.essb-ctc-person-platforms {
  display: flex;
  gap: 4px;
  margin-top: 4px;
}
.essb-ctc-person-platform {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.6);
  cursor: pointer;
}
.essb-ctc-person-platform svg {
  width: 10px;
  height: 10px;
  fill: #fff;
}
.essb-ctc-person-name { font-size: 10px; opacity: .8; }
.essb-ctc-person-desc { font-size: 14px; font-weight: 700; line-height: 1.3; }
.essb-ctc-person-status {
  font-size: 10px;
  background: rgba(255,255,255,.3);
  display: inline-block;
  padding: 1px 6px;
  border-radius: 4px;
  margin-top: 2px;
  align-self: flex-start;
}
.essb-ctc-person.essb-ctc-offline {
  background: #a4a4a4 !important;
  cursor: default !important;
  pointer-events: none;
}
.essb-ctc-person.essb-ctc-offline:hover { transform: none; box-shadow: var(--essb-ctc-shadow); }
.essb-ctc-person.essb-ctc-offline .essb-ctc-person-img { filter: grayscale(1); }
.essb-ctc-person.essb-ctc-offline .essb-ctc-person-status { background: #f1a528; }
.essb-ctc-person.essb-ctc-away .essb-ctc-person-status { background: #f1a528; }

.essb-ctc-popup-mode { position: relative; }
.essb-ctc-inline.essb-ctc-popup-mode .essb-ctc-popup {
  right: auto;
  left: 50%;
  transform: translateX(-50%) scale(.9);
  transform-origin: bottom center;
  min-width: 260px;
}
.essb-ctc-inline.essb-ctc-popup-mode.essb-ctc-show .essb-ctc-popup {
  transform: translateX(-50%) scale(1);
}

.essb-ctc-popup-mode .essb-ctc-popup.essb-ctc-popup-floating {
  position: fixed !important;
  bottom: calc(var(--essb-ctc-bottom) + var(--essb-ctc-size) + 16px) !important;
  right: var(--essb-ctc-side) !important;
  left: auto !important;
  top: auto !important;
  transform: none !important;
  transform-origin: bottom right !important;
}
.essb-ctc-inline .essb-ctc-popup.essb-ctc-popup-floating {
  position: fixed !important;
  bottom: 20px !important;
  right: 20px !important;
  left: auto !important;
  top: auto !important;
  transform: none !important;
  transform-origin: bottom right !important;
}
.essb-ctc-left .essb-ctc-popup.essb-ctc-popup-floating {
  right: auto !important;
  left: var(--essb-ctc-side) !important;
  transform-origin: bottom left !important;
}
.essb-ctc-show .essb-ctc-popup.essb-ctc-popup-floating {
  opacity: 1 !important;
  pointer-events: auto !important;
  visibility: visible !important;
}

.essb-ctc-prompt-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  margin: 0 auto 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #e8eaed;
}
.essb-ctc-prompt-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.essb-ctc-prompt-avatar svg {
  width: 28px;
  height: 28px;
  fill: #666;
}
.essb-ctc-prompt { text-align: center; }
.essb-ctc-prompt-row { text-align: left; }

.essb-ctc-prompt-chat-suggestions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
  margin-top: 4px;
}
.essb-ctc-prompt-chat-msg {
  background: transparent;
  border: none;
  border-radius: 16px 16px 16px 4px;
  padding: 9px 14px;
  font-size: 13px;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  color: #1b5e20;
  transition: filter .15s, transform .15s;
  align-self: flex-start;
  max-width: 90%;
  line-height: 1.4;
}
.essb-ctc-prompt-chat-msg:hover {
  filter: brightness(0.92);
  transform: translateX(4px);
  color: #1b5e20;
}
.essb-ctc-prompt-chat-msg:active {
  transform: scale(.97);
}
.essb-ctc-operator ~ .essb-ctc-prompt-chat-suggestions { margin-top: 8px; }

.essb-ctc-prompt-greeting {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 10px;
  max-width: 100%;
}
.essb-ctc-prompt-greeting-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
}
.essb-ctc-prompt-greeting-avatar svg {
  width: 16px;
  height: 16px;
  fill: #fff;
}
.essb-ctc-prompt-greeting-bubble {
  background: #fff;
  border-radius: 12px 12px 12px 4px;
  padding: 10px 14px;
  box-shadow: 0 1px 4px rgba(0,0,0,.08);
  font-size: 13px;
  line-height: 1.5;
  color: #333;
  max-width: calc(100% - 36px);
  text-align: left;
  position: relative;
}
.essb-ctc-prompt-greeting-time {
  font-size: 10px;
  color: #999;
  margin-top: 4px;
  text-align: right;
}
.essb-ctc-prompt-greeting-close {
  display: none;
}

.essb-ctc-popup-header .essb-ctc-prompt-avatar {
  background: rgba(255,255,255,.2);
  margin: 0 auto 10px;
  width: 56px;
  height: 56px;
}
.essb-ctc-popup-header .essb-ctc-prompt-avatar svg {
  fill: #fff;
  width: 30px;
  height: 30px;
}

.essb-ctc-animated {
  --essb-ctc-anim-duration: 0.45s;
  --essb-ctc-anim-easing: cubic-bezier(0.34, 1.56, 0.64, 1);
  --essb-ctc-anim-stagger: 0.06s;
}

.essb-ctc-animated .essb-ctc-btn {
  animation: essb-ctc-btn-enter var(--essb-ctc-anim-duration) var(--essb-ctc-anim-easing) both;
}
@keyframes essb-ctc-btn-enter {
  0%   { opacity: 0; transform: scale(0); }
  100% { opacity: 1; transform: scale(1); }
}

.essb-ctc-animated .essb-ctc-round.essb-ctc-btn::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: inherit;
  background: inherit;
  opacity: 0;
  z-index: -1;
  animation: essb-ctc-glow 2.5s ease-in-out infinite;
  animation-delay: 0.6s;
  pointer-events: none;
}
@keyframes essb-ctc-glow {
  0%, 100% { opacity: 0; transform: scale(1); }
  50%      { opacity: .35;  transform: scale(1.1); }
}

.essb-ctc-animated .essb-ctc-pill.essb-ctc-btn::after,
.essb-ctc-animated .essb-ctc-rounded.essb-ctc-btn::after,
.essb-ctc-animated .essb-ctc-rect.essb-ctc-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,.25) 50%, transparent 70%);
  background-size: 200% 100%;
  animation: essb-ctc-shimmer 3s ease-in-out infinite;
  animation-delay: 0.6s;
  pointer-events: none;
}
@keyframes essb-ctc-shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.essb-ctc-animated.essb-ctc-show .essb-ctc-popup {
  transition: opacity 0.35s var(--essb-ctc-anim-easing), transform 0.35s var(--essb-ctc-anim-easing);
}

.essb-ctc-animated .essb-ctc-operator {
  opacity: 0;
  transform: translateY(10px);
  animation: essb-ctc-slide-up var(--essb-ctc-anim-duration) var(--essb-ctc-anim-easing) forwards;
}
.essb-ctc-animated .essb-ctc-operator:nth-child(1) { animation-delay: calc(1 * var(--essb-ctc-anim-stagger)); }
.essb-ctc-animated .essb-ctc-operator:nth-child(2) { animation-delay: calc(2 * var(--essb-ctc-anim-stagger)); }
.essb-ctc-animated .essb-ctc-operator:nth-child(3) { animation-delay: calc(3 * var(--essb-ctc-anim-stagger)); }
.essb-ctc-animated .essb-ctc-operator:nth-child(4) { animation-delay: calc(4 * var(--essb-ctc-anim-stagger)); }
.essb-ctc-animated .essb-ctc-operator:nth-child(5) { animation-delay: calc(5 * var(--essb-ctc-anim-stagger)); }
.essb-ctc-animated .essb-ctc-operator:nth-child(6) { animation-delay: calc(6 * var(--essb-ctc-anim-stagger)); }
.essb-ctc-animated .essb-ctc-operator:nth-child(7) { animation-delay: calc(7 * var(--essb-ctc-anim-stagger)); }
.essb-ctc-animated .essb-ctc-operator:nth-child(8) { animation-delay: calc(8 * var(--essb-ctc-anim-stagger)); }
.essb-ctc-animated .essb-ctc-operator:nth-child(9) { animation-delay: calc(9 * var(--essb-ctc-anim-stagger)); }
.essb-ctc-animated .essb-ctc-operator:nth-child(10){ animation-delay: calc(10 * var(--essb-ctc-anim-stagger)); }

.essb-ctc-animated .essb-ctc-operator:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 6px 16px rgba(0,0,0,.12);
}

.essb-ctc-animated .essb-ctc-person,
.essb-ctc-animated.essb-ctc-person {
  opacity: 0;
  animation: essb-ctc-slide-up var(--essb-ctc-anim-duration) var(--essb-ctc-anim-easing) forwards;
}
.essb-ctc-animated .essb-ctc-person:nth-child(1),
.essb-ctc-animated.essb-ctc-person { animation-delay: calc(1 * var(--essb-ctc-anim-stagger)); }
.essb-ctc-animated .essb-ctc-person:nth-child(2) { animation-delay: calc(2 * var(--essb-ctc-anim-stagger)); }
.essb-ctc-animated .essb-ctc-person:nth-child(3) { animation-delay: calc(3 * var(--essb-ctc-anim-stagger)); }
.essb-ctc-animated .essb-ctc-person:nth-child(4) { animation-delay: calc(4 * var(--essb-ctc-anim-stagger)); }
.essb-ctc-animated .essb-ctc-person:nth-child(5) { animation-delay: calc(5 * var(--essb-ctc-anim-stagger)); }

.essb-ctc-animated .essb-ctc-person:hover,
.essb-ctc-animated.essb-ctc-person:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0,0,0,.18);
}

@keyframes essb-ctc-slide-up {
  0%   { opacity: 0; transform: translateY(10px); }
  100% { opacity: 1; transform: translateY(0); }
}

.essb-ctc-animated .essb-ctc-btn:active::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: rgba(255,255,255,.3);
  animation: essb-ctc-ripple 0.4s ease-out forwards;
  pointer-events: none;
}
@keyframes essb-ctc-ripple {
  0%   { opacity: 1; transform: scale(0); }
  100% { opacity: 0; transform: scale(2); }
}

.essb-ctc-animated .essb-ctc-btn-label-outside {
  animation: essb-ctc-slide-up 0.3s var(--essb-ctc-anim-easing) both;
}

@media (max-width: 480px) {
  :root {
    --essb-ctc-size: 50px;
    --essb-ctc-bottom: 16px;
    --essb-ctc-side: 16px;
  }
  .essb-ctc-popup {
    right: 0;
    left: 0;
    margin: 0 8px;
    min-width: 0;
  }
  .essb-ctc-popup-mode .essb-ctc-popup.essb-ctc-popup-floating {
    right: 8px !important;
    left: 8px !important;
  }
  .essb-ctc-left .essb-ctc-popup { left: 0; right: 0; }
}

/* ===========================================
   Powered-by footer in popup
   =========================================== */
.essb-ctc-powered {
  padding: 8px 16px;
  text-align: center;
  font-size: 11px;
  line-height: 1.4;
  border-top: 1px solid rgba(0,0,0,0.08);
}
.essb-ctc-powered a {
  color: #999;
  text-decoration: none;
}
.essb-ctc-powered a:hover {
  color: #666;
  text-decoration: underline;
}
