.ai-scroll-chat-panel{padding:0!important;border:0!important;border-radius:0!important;background:none!important;box-shadow:none!important;display:flex;justify-content:center}.iphone-shell{position:relative;width:min(350px,calc((100svh - 160px)*.47),100%);aspect-ratio:390/800;padding:9px;border-radius:52px;background:linear-gradient(130deg,#777d85,#202329 14%,#08090c 45%,#555b65 85%,#1a1d23);box-shadow:0 0 0 1px #91a0b547,inset 0 0 0 2px #060709,0 24px 65px #0005;color:#f5f5f5}.iphone-shell:before,.iphone-shell:after,.iphone-side-button{content:'';position:absolute;background:linear-gradient(90deg,#636a73,#1f2329);width:3px;border-radius:3px;left:-3px;top:120px;height:32px}.iphone-shell:after{top:165px;height:48px}.iphone-side-button{left:auto;right:-3px;top:155px;height:70px}.iphone-screen{height:100%;border-radius:43px;overflow:hidden;border:2px solid #050608;background:#10181d;display:flex;flex-direction:column}.iphone-status{height:46px;flex-shrink:0;position:relative;display:flex;justify-content:space-between;align-items:center;padding:5px 22px 0;font:600 13px/1 Inter,Arial,sans-serif;color:#f4f6f7;background:#17191d}.iphone-island{position:absolute;left:50%;top:9px;transform:translateX(-50%);width:29%;height:25px;border-radius: 15px;background:#030405}.iphone-status-icons{display:flex;gap:5px;align-items:center}.iphone-status-icons i{width:13px;height:11px;display:block;background:linear-gradient(to right,#eee 0 20%,transparent 20% 28%,#eee 28% 48%,transparent 48% 56%,#eee 56% 76%,transparent 76% 84%,#eee 84%);clip-path:polygon(0 75%,20% 75%,20% 50%,48% 50%,48% 25%,76% 25%,76% 0,100% 0,100% 100%,0 100%)}.iphone-status-icons b{font-size:14px}.iphone-battery{display:block;width:21px;height:10px;border:1px solid #fff9;border-radius:3px;position:relative;padding:1px}.iphone-battery:before{content:'';display:block;width:85%;height:100%;background:#eee;border-radius:1px}.iphone-battery:after{content:'';position:absolute;right:-3px;top:2px;width:2px;height:4px;border-radius:1px;background:#fff8}.wa-ios-header{background:#17191d;display:flex;align-items:center;gap:9px;padding:12px 12px 12px 9px;border-bottom:1px solid #ffffff0a;flex-shrink:0}.wa-back{font:300 35px/.8 Arial;color:#53a5ff}.wa-contact-avatar{display:grid;place-items:center;width:33px;height:33px;flex:0 0 33px;background:linear-gradient(145deg,#126ce0,#072347);border-radius:50%}.wa-contact-avatar img{width:22px;height:auto}.wa-contact{min-width:0;flex:1}.wa-contact strong{font:600 12px/1.2 Inter,sans-serif;display:block}.wa-contact small{display:block;font:400 8px/1.3 Inter,sans-serif;color:#9ba4ad;margin-top:4px;white-space:nowrap}.wa-tools{display:flex;gap:12px;color:#61aaff}.wa-tools svg{width:19px;height:19px}.wa-ios-messages{position:relative;display:block!important;min-height:0!important;flex:1;padding:0!important;overflow:hidden;background-color:#0d171d;background-image:radial-gradient(ellipse at 15% 30%,#ffffff03,transparent 40%),repeating-linear-gradient(35deg,transparent 0 33px,#ffffff02 33px 34px,transparent 34px 65px)}.iphone-message-track{position:relative;display:flex;flex-direction:column;align-items:flex-start;gap:10px;padding:15px 10px 12px;will-change:transform}.wa-date{align-self:center;font:500 9px/1 Inter,sans-serif;background:#202c33;color:#c0c9d0;padding:5px 8px;border-radius:7px;margin:0 0 2px}.wa-encryption{align-self:center;font:400 8px/1.4 Inter,sans-serif;color:#c6b979;text-align:center;margin:0 0 5px;max-width:200px}.iphone-shell .ai-scroll-message{border:0;padding:9px 10px 7px!important;border-radius:8px!important;min-width:60px;max-width:90%;background:#202c33;box-shadow:0 1px 2px #0003;box-sizing:border-box}.iphone-shell .ai-scroll-message.from-client{background:#075e50;align-self:flex-end}.iphone-shell .ai-scroll-message.from-agent{border-top-left-radius:2px!important}.iphone-shell .ai-scroll-message.from-client{border-top-right-radius:2px!important}.iphone-shell .ai-scroll-message p{font:400 11px/1.45 Inter,Arial,sans-serif!important;color:#f0f4f5;margin:0!important;letter-spacing:0}.iphone-shell .ai-message-role{display:none}.iphone-shell .ai-type-caret{height:11px;background:#88dda6}.wa-message-meta{display:flex;justify-content:flex-end;align-items:center;gap:3px;margin-top:4px;color:#a9c6c1;font:400 8px/1 Inter,sans-serif}.wa-read{width:14px;height:10px;color:#62b9f6}.wa-transfer{font:400 8px/1.2 Inter,sans-serif;color:#92c5af;border:0;padding:8px 12px;margin:0;background:#14201f;flex-shrink:0;min-height:27px}.wa-transfer .ai-status-dot{width:5px;height:5px;flex-basis:5px;background:#66bb8c;box-shadow:none}.wa-ios-composer{background:#17191d;display:flex;align-items:center;gap:10px;padding:9px 10px;flex-shrink:0;color:#65adff}.wa-composer-plus{font-size:27px;font-weight:300;line-height:1}.wa-composer-input{flex:1;display:flex;align-items:center;justify-content:space-between;border:1px solid #ffffff24;background:#24282e;border-radius:999px;padding:7px 10px;color:#a3a8b1;font:400 10px/1.2 Inter,sans-serif}.wa-composer-input span{font-size:15px}.wa-ios-composer>svg{width:18px;height:18px;flex-shrink:0}.iphone-home{height:19px;background:#17191d;display:flex;justify-content:center;align-items:center;flex-shrink:0}.iphone-home span{width:34%;height:4px;border-radius:8px;background:#f4f5f6}
@media(max-width:767px){.ai-scroll-chat-sticky{gap:14px}.iphone-shell{width:min(320px,calc((100svh - 220px)*.47),100%);padding:7px;border-radius:44px}.iphone-screen{border-radius:37px}.iphone-status{height:40px;padding-inline:18px;font-size:11px}.iphone-island{height:22px;top:7px}.wa-ios-header{gap:6px;padding:9px 8px}.wa-tools{gap:8px}.wa-tools svg{width:16px;height:16px}.wa-contact strong{font-size:10px}.wa-contact small{font-size:7px}.wa-contact-avatar{width:28px;height:28px;flex-basis:28px}.wa-contact-avatar img{width:19px}.wa-ios-composer{gap:7px;padding:7px 9px}.iphone-shell .ai-scroll-message p{font-size:10px!important}.iphone-message-track{gap:8px;padding-inline:8px}.wa-transfer{font-size:7px}.wa-ios-composer>svg{width:16px;height:16px}.wa-contact small{max-width:120px;overflow:hidden;text-overflow:ellipsis}}

.iphone-shell .ai-scroll-message.from-client{background:#202c33;align-self:flex-start;border-top-left-radius:2px!important;border-top-right-radius:8px!important}.iphone-shell .ai-scroll-message.from-agent{background:#075e50;align-self:flex-end;border-top-right-radius:2px!important;border-top-left-radius:8px!important}.wa-tools .wa-icon{width:19px;height:19px;color:inherit}.wa-read{width:14px;height:10px;color:#62b9f6}.wa-read svg{width:14px;height:10px}.wa-composer-icon{width:18px;height:18px;flex-shrink:0}.iphone-wifi{width:13px;height:13px}.iphone-wifi svg{width:13px;height:13px}.wa-composer-sticker{width:15px;height:15px;vertical-align:middle;margin-left:6px}

.wa-composer-input .wa-composer-sticker{width:15px;height:15px;flex:0 0 15px;margin-left:6px;color:#a3a8b1}

.iphone-shell .ai-scroll-message.wa-has-media{padding:7px 7px 6px!important}.wa-media-image{margin:0;display:grid;gap:5px}.wa-media-image>span{font-size:8px;color:#c4d0d9;line-height:1.2}.wa-media-image img{display:block;width:min(175px,100%);height:94px;object-fit:cover;border-radius:6px}.wa-media-image figcaption{font-size:8px;line-height:1.25;color:#d3d9dc}.wa-media-audio{display:flex;align-items:center;gap:8px;min-width:168px;max-width:205px;padding:3px 2px 4px}.wa-audio-play{width:25px;height:25px;flex:0 0 25px;display:grid;place-items:center;border-radius:50%;background:#dce5e2;color:#35443f}.wa-audio-play svg{width:12px;height:12px;fill:currentColor;stroke-width:1.2}.wa-audio-wave{height:24px;min-width:0;flex:1;display:flex;align-items:center;justify-content:space-between;gap:2px;overflow:hidden}.wa-audio-wave i{width:2px;height:var(--wave-height);max-height:19px;border-radius:3px;background:#c7d4d1;opacity:.88;flex:0 0 2px}.wa-media-audio time{font:400 8px/1 Inter,Arial,sans-serif;color:#d3dfdc}.wa-audio-caption{display:block;margin:4px 2px 2px;color:#d4dfdc;font:400 8px/1.35 Inter,Arial,sans-serif}.ai-dashboard-entry .ai-button{transition:transform .35s cubic-bezier(.2,.65,.25,1),box-shadow .35s}.ai-dashboard-entry .ai-button:hover{transform:translateY(-2px)}


/* WhatsApp Native iOS Dark Mode Audio & Messages */
.wa-ios-messages {
  background-color: #0b141a !important;
}
.iphone-shell .ai-scroll-message.from-client {
  background-color: #202c33 !important;
  color: #e9edef !important;
  border-radius: 12px 12px 12px 2px !important;
  border: none !important;
  box-shadow: 0 1px 2px rgba(0,0,0,0.3) !important;
}
.iphone-shell .ai-scroll-message.from-agent {
  background-color: #005c4b !important;
  color: #e9edef !important;
  border-radius: 12px 12px 2px 12px !important;
  border: none !important;
  box-shadow: 0 1px 2px rgba(0,0,0,0.3) !important;
}
.iphone-shell .wa-read {
  color: #53bdeb !important;
}
.wa-native-audio-player {
  width: 100%;
  min-width: 210px;
  max-width: 250px;
  display: flex;
  flex-direction: column;
  padding: 4px 2px 2px;
}
.wa-audio-sender-name {
  font-size: 11px;
  font-weight: 600;
  color: #53bdeb;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}
.wa-audio-main-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.wa-audio-play-btn {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #e9edef;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
}
.wa-audio-play-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}
.wa-audio-play-btn svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}
.wa-audio-wave-container {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.wa-audio-wave-bars {
  height: 20px;
  display: flex;
  align-items: center;
  gap: 2px;
  overflow: hidden;
}
.wa-wave-bar {
  width: 2px;
  height: var(--bar-h, 10px);
  max-height: 18px;
  border-radius: 2px;
  background: #8696a0;
  flex: 0 0 2px;
}
.wa-wave-bar.played {
  background: #53bdeb;
}
.wa-audio-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10px;
  color: #8696a0;
  padding-right: 2px;
}
.wa-audio-user-badge {
  position: relative;
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
}
.wa-audio-avatar-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #475a64;
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.wa-audio-mic-icon {
  position: absolute;
  bottom: -2px;
  left: -4px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #202c33;
  color: #53bdeb;
  display: flex;
  align-items: center;
  justify-content: center;
}
.wa-audio-mic-icon svg {
  width: 9px;
  height: 9px;
}
.wa-transcription-card {
  margin-top: 8px;
  padding: 8px 10px;
  background: rgba(0, 0, 0, 0.28);
  border-radius: 8px;
  border-left: 3px solid #53bdeb;
}
.wa-transcription-tag {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #53bdeb;
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 3px;
}
.wa-transcription-tag svg {
  width: 10px;
  height: 10px;
}
.wa-transcription-quote {
  font-size: 11px;
  line-height: 1.35;
  color: #d1d7db;
  margin: 0;
}


/* Explicit WhatsApp bubble alignments */
.iphone-shell .ai-scroll-message.from-client {
  align-self: flex-start !important;
  background-color: #202c33 !important;
  color: #e9edef !important;
  border-radius: 14px 14px 14px 3px !important;
  margin-right: auto !important;
  margin-left: 0 !important;
}
.iphone-shell .ai-scroll-message.from-agent {
  align-self: flex-end !important;
  background-color: #005c4b !important;
  color: #e9edef !important;
  border-radius: 14px 14px 3px 14px !important;
  margin-left: auto !important;
  margin-right: 0 !important;
}
