/* Contact Widget */
.cw-box,
.cw-box * {
  font-family: "YekanBakh", -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
}

:root {
  --brand: #4A90C4;
  --brand-dark: #2c6e9e;
  --brand-bg: #EAF2FA;
  --wa-green: #25D366;
  --bale-green: #1FBF8A;
  --shadow: 0 10px 36px rgba(74, 144, 196, .22);
}

.cw-trigger {
  position: fixed;
  bottom: 28px;
  right: 24px;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: var(--brand);
  border: none;
  outline: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  z-index: 9998;
  transition: background .2s, transform .25s ease;
}

.cw-trigger:hover {
  background: var(--brand-dark);
  transform: scale(1.08);
}

.cw-trigger svg {
  width: 30px;
  height: 30px;
  fill: white;
  transition: transform .35s ease;
  position: absolute;
}

.cw-trigger::before {
  content: '';
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 2.5px solid var(--brand);
  opacity: 0;
  animation: cw-pulse 2.6s ease-out infinite;
}

@keyframes cw-pulse {
  0%   { transform: scale(1);    opacity: .55; }
  100% { transform: scale(1.75); opacity: 0;   }
}

.cw-box {
  position: fixed;
  bottom: 104px;
  right: 24px;
  width: 275px;
  background: white;
  border-radius: 20px;
  box-shadow: var(--shadow);
  z-index: 9997;
  overflow: hidden;
  transform-origin: bottom right;
  transform: scale(.75) translateY(20px);
  opacity: 0;
  pointer-events: none;
  transition: transform .35s cubic-bezier(.34, 1.56, .64, 1), opacity .25s ease;
}

.cw-box.open {
  transform: scale(1) translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.cw-header {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
  padding: 16px 18px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.cw-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .18);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
  border: 2px solid rgba(255, 255, 255, .35);
}

.cw-header-info h4 {
  margin: 0 0 3px;
  color: white;
  font-size: 14px;
  font-weight: bold;
}

.cw-header-info span {
  color: rgba(255, 255, 255, .82);
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.cw-dot {
  width: 7px;
  height: 7px;
  background: #69f0ae;
  border-radius: 50%;
  animation: cw-blink 2s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes cw-blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: .3; }
}

.cw-body {
  padding: 16px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cw-hint {
  font-size: 12px;
  color: #8fa0b4;
  margin: 0 0 2px;
  text-align: right;
}

.cw-btn {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 12px 14px;
  border-radius: 14px;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
}

.cw-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .1);
}

.cw-btn-wa {
  background: #e8faf2;
}

.cw-btn-bale {
  background: #e6faf4;
}

.cw-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cw-btn-wa .cw-icon {
  background: var(--wa-green);
}

.cw-btn-bale .cw-icon {
  background: var(--bale-green);
}

.cw-icon svg {
  width: 23px;
  height: 23px;
  fill: white;
  position: relative;
}

.cw-info {
  text-align: right;
}

.cw-info strong {
  display: block;
  font-size: 14px;
  font-weight: bold;
}

.cw-btn-wa .cw-info strong {
  color: #1a7a42;
}

.cw-btn-bale .cw-info strong {
  color: #0e7a56;
}

.cw-info small {
  font-size: 12px;
  color: #aaa;
  direction: ltr;
  display: block;
  text-align: right;
}

.cw-footer {
  background: var(--brand-bg);
  text-align: center;
  padding: 9px 12px;
  font-size: 12px;
  color: var(--brand);
  border-top: 1px solid #ddeaf5;
}