/* WhatsApp chat — embedded in Fiserv case study top-left panel */
.work-card__panel--fiserv-top {
  overflow: hidden;
}

.work-card__panel--fiserv-top .wa-demo {
  display: block;
  width: 100%;
  height: 100%;
}

.work-card__panel--fiserv-top .wa-card {
  position: relative;
  width: 621px;
  height: 448px;
  background: #f9f9f9;
  overflow: hidden;
  flex-shrink: 0;
}

.work-card__panel--fiserv-top .wa-phone {
  position: absolute;
  left: 123px;
  top: 0;
  width: 375px;
  height: 384px;
  background: #171717;
  border-radius: 0 0 36px 36px;
  overflow: hidden;
}

.work-card__panel--fiserv-top .wa-phone__frame {
  position: absolute;
  inset: 0;
  border-left: 6px solid #343434;
  border-right: 6px solid #343434;
  border-bottom: 6px solid #343434;
  border-top: none;
  border-radius: 0 0 36px 36px;
  pointer-events: none;
  z-index: 3;
}

.work-card__panel--fiserv-top .wa-chat-bg {
  position: absolute;
  left: 0;
  top: -388px;
  width: 375px;
  height: 732px;
  overflow: hidden;
  pointer-events: none;
  background-color: #0b141a;
  background-image: url("whatsapp-assets/wallpaper-mask.png");
  background-repeat: repeat;
  background-size: 240px auto;
  background-position: center top;
}

.work-card__panel--fiserv-top .wa-chat__viewport {
  position: absolute;
  left: 0;
  top: 0;
  width: 375px;
  height: 304px;
  z-index: 1;
  overflow: hidden;
}

.work-card__panel--fiserv-top .wa-chat__track {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0 16px 12px;
  --wa-bubble-max-width: 85%;
}

.work-card__panel--fiserv-top .wa-msg {
  display: flex;
  width: 100%;
  flex-shrink: 0;
}

.work-card__panel--fiserv-top .wa-msg--in {
  justify-content: flex-start;
}

.work-card__panel--fiserv-top .wa-msg--out {
  justify-content: flex-end;
}

.work-card__panel--fiserv-top .wa-bubble-wrap {
  display: flex;
  align-items: flex-end;
  max-width: var(--wa-bubble-max-width);
  filter: drop-shadow(0 1px 0.5px rgba(0, 0, 0, 0.2));
}

.work-card__panel--fiserv-top .wa-bubble-wrap--in {
  max-width: 100%;
}

.work-card__panel--fiserv-top .wa-bubble--out {
  background: #0f5247;
  border-radius: 6px;
  border-bottom-right-radius: 0;
  padding: 4px 6px 3px;
  max-width: 100%;
}

.work-card__panel--fiserv-top .wa-bubble__body {
  display: flex;
  flex-direction: column;
}

.work-card__panel--fiserv-top .wa-bubble__text,
.work-card__panel--fiserv-top .wa-bubble__content {
  margin: 0;
  font-family: -apple-system, "SF Pro Text", system-ui, sans-serif;
  font-size: 12px;
  font-weight: 400;
  line-height: 18px;
  letter-spacing: -0.24px;
  color: #f2f5f6;
}

.work-card__panel--fiserv-top .wa-bubble__text {
  white-space: pre-wrap;
}

.work-card__panel--fiserv-top .wa-bubble__content {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.work-card__panel--fiserv-top .wa-bubble__content p {
  margin: 0;
  white-space: pre-wrap;
}

.work-card__panel--fiserv-top .wa-bubble__content strong {
  font-weight: 700;
}

.work-card__panel--fiserv-top .wa-bubble__content a {
  color: #0096de;
  text-decoration: none;
}

.work-card__panel--fiserv-top .wa-bubble__footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 2px;
}

.work-card__panel--fiserv-top .wa-bubble__meta {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 16px;
  flex-shrink: 0;
}

.work-card__panel--fiserv-top .wa-bubble__meta time {
  font-family: -apple-system, "SF Pro Display", system-ui, sans-serif;
  font-size: 9px;
  font-weight: 500;
  line-height: 1;
  color: #799c9b;
  white-space: nowrap;
}

.work-card__panel--fiserv-top .wa-bubble--in .wa-bubble__meta time {
  color: #9da3a7;
}

.work-card__panel--fiserv-top .wa-bubble__meta img {
  width: 15px;
  height: 14px;
  display: block;
  flex-shrink: 0;
}

.work-card__panel--fiserv-top .wa-bubble__tail {
  width: 8px;
  height: 11px;
  flex-shrink: 0;
  display: block;
  overflow: visible;
  margin-bottom: 4px;
  align-self: flex-end;
}

.work-card__panel--fiserv-top .wa-bubble__tail--out {
  margin-left: -2px;
  color: #0f5247;
}

.work-card__panel--fiserv-top .wa-bubble__tail--in {
  margin-right: -2px;
  color: #3c3c3e;
}

.work-card__panel--fiserv-top .wa-bot-message {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-width: var(--wa-bubble-max-width);
}

.work-card__panel--fiserv-top .wa-bubble--in {
  background: #3c3c3e;
  border-radius: 6px;
  border-bottom-left-radius: 0;
  padding: 6px;
  max-width: 100%;
}

.work-card__panel--fiserv-top .wa-bot-actions {
  display: flex;
  gap: 4px;
  width: 100%;
  max-width: 100%;
}

.work-card__panel--fiserv-top .wa-bot-action {
  appearance: none;
  border: none;
  flex: 1 1 0;
  min-width: 0;
  height: 30px;
  padding: 6px;
  background: #3c3c3e;
  border-radius: 8px;
  box-shadow: 0 1px 0.5px rgba(0, 0, 0, 0.2);
  font-family: -apple-system, "SF Pro Text", system-ui, sans-serif;
  font-size: 12px;
  font-weight: 400;
  line-height: normal;
  color: #0096de;
  text-align: center;
  white-space: nowrap;
  cursor: default;
}

.work-card__panel--fiserv-top .wa-msg--typing .wa-bubble--in {
  padding: 10px 14px 12px;
  min-width: 58px;
}

.work-card__panel--fiserv-top .wa-typing-dots {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 8px;
}

.work-card__panel--fiserv-top .wa-typing-dots span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #8696a0;
  animation: wa-dot-bounce 1.2s ease-in-out infinite;
}

.work-card__panel--fiserv-top .wa-typing-dots span:nth-child(2) {
  animation-delay: 0.15s;
}

.work-card__panel--fiserv-top .wa-typing-dots span:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes wa-dot-bounce {
  0%,
  60%,
  100% {
    transform: translateY(0);
    opacity: 0.45;
  }

  30% {
    transform: translateY(-4px);
    opacity: 1;
  }
}

.work-card__panel--fiserv-top .wa-bottom-bar__icon--send.is-pressed {
  transform: scale(0.88);
}

.work-card__panel--fiserv-top .wa-composer__caret {
  display: inline-block;
  width: 2px;
  height: 16px;
  margin-left: 1px;
  background: #007aff;
  vertical-align: text-bottom;
  animation: wa-caret-blink 1s step-end infinite;
}

@keyframes wa-caret-blink {
  0%,
  100% { opacity: 1; }
  50% { opacity: 0; }
}

.work-card__panel--fiserv-top .wa-bottom-bar__icon--send {
  position: absolute;
  right: 17px;
  top: 13px;
  width: 24px;
  height: 24px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: default;
}

.work-card__panel--fiserv-top .wa-bottom-bar__icon--send[hidden],
.work-card__panel--fiserv-top .wa-bottom-bar__icon--mic[hidden] {
  display: none;
}

.work-card__panel--fiserv-top .wa-bottom-bar__typed {
  flex: 1;
  min-width: 0;
  font-family: -apple-system, "SF Pro Text", system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.2;
  color: #f2f5f6;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.work-card__panel--fiserv-top .wa-bottom-bar__typed[hidden] {
  display: none;
}

.work-card__panel--fiserv-top .wa-bottom-bar {
  position: absolute;
  left: 0;
  top: 304px;
  width: 375px;
  height: 80px;
  background: #171717;
  z-index: 2;
}

.work-card__panel--fiserv-top .wa-bottom-bar__divider {
  position: absolute;
  top: 0;
  left: 0;
  width: 375px;
  height: 1px;
  display: block;
}

.work-card__panel--fiserv-top .wa-bottom-bar__icon {
  position: absolute;
  display: block;
  width: 24px;
  height: 24px;
}

.work-card__panel--fiserv-top .wa-bottom-bar__icon--plus {
  left: 13px;
  top: 13px;
}

.work-card__panel--fiserv-top .wa-bottom-bar__field {
  position: absolute;
  left: 46px;
  top: 10px;
  width: 230px;
  height: 30px;
  background: #2c2c2e;
  border: 1px solid #4b4b4d;
  border-radius: 15px;
  display: flex;
  align-items: center;
  padding: 0 34px 0 12px;
}

.work-card__panel--fiserv-top .wa-bottom-bar__attach {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  pointer-events: none;
}

.work-card__panel--fiserv-top .wa-bottom-bar__icon--camera {
  right: 58px;
  top: 13px;
}

.work-card__panel--fiserv-top .wa-bottom-bar__icon--mic {
  right: 17px;
  top: 13px;
}

.work-card__panel--fiserv-top .wa-home-indicator {
  position: absolute;
  left: 50%;
  bottom: 8px;
  transform: translateX(-50%);
  width: 134px;
  height: 5px;
  border-radius: 100px;
  background: #fff;
}
