/* CODSHIPX_AI_R127_R7D_R3_UNIFIED_WHATSAPP_CALL_UI */

.cx-r127-call-button {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 36px;
  white-space: nowrap;
}

.cx-r127-call-button[data-cx-r127-state="ready"] {
  font-weight: 700;
}

.cx-r127-call-button[data-cx-r127-state="checking"],
.cx-r127-call-button[data-cx-r127-state="unavailable"] {
  opacity: .68;
}

body.cx-r127-call-open {
  overflow: hidden;
}

.cx-r127-call-overlay[hidden] {
  display: none !important;
}

.cx-r127-call-overlay {
  position: fixed;
  inset: 0;
  z-index: 2147482500;
  display: grid;
  place-items: center;
  padding: 20px;
  background:
    radial-gradient(
      circle at 50% 20%,
      rgba(53,193,110,.16),
      transparent 36%
    ),
    rgba(7,12,17,.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.cx-r127-call-card {
  position: relative;
  width: min(430px, calc(100vw - 28px));
  max-height: min(720px, calc(100vh - 28px));
  overflow: auto;
  box-sizing: border-box;
  padding: 34px 28px 26px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 28px;
  background:
    linear-gradient(
      180deg,
      rgba(24,34,41,.98),
      rgba(12,19,24,.99)
    );
  box-shadow:
    0 30px 90px rgba(0,0,0,.48),
    inset 0 1px rgba(255,255,255,.05);
  color: #f8fafc;
  text-align: center;
}

.cx-r127-call-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  color: #fff;
  font-size: 23px;
  line-height: 1;
  cursor: pointer;
}

.cx-r127-call-avatar {
  width: 84px;
  height: 84px;
  margin: 8px auto 16px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background:
    linear-gradient(
      145deg,
      #35c16e,
      #168b4b
    );
  box-shadow:
    0 18px 44px rgba(25,181,96,.24),
    inset 0 1px rgba(255,255,255,.32);
  color: #fff;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: .04em;
}

.cx-r127-call-kicker {
  display: block;
  margin-bottom: 7px;
  color: #86efac;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.cx-r127-call-card h2 {
  margin: 0;
  color: #fff;
  font-size: 23px;
  line-height: 1.2;
}

.cx-r127-call-provider {
  margin: 7px 0 20px;
  color: #9fb0bd;
  font-size: 13px;
}

.cx-r127-call-status {
  min-height: 27px;
  color: #f8fafc;
  font-size: 18px;
  font-weight: 760;
}

.cx-r127-call-time {
  margin-top: 5px;
  color: #a9bac6;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.cx-r127-call-message {
  min-height: 18px;
  margin: 12px auto 0;
  color: #a9bac6;
  font-size: 13px;
  line-height: 1.55;
}

.cx-r127-call-controls,
.cx-r127-call-actions {
  display: flex;
  justify-content: center;
  gap: 11px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.cx-r127-control,
.cx-r127-primary,
.cx-r127-secondary {
  min-width: 110px;
  min-height: 44px;
  padding: 0 17px;
  border: 0;
  border-radius: 14px;
  font: inherit;
  font-size: 13px;
  font-weight: 750;
  cursor: pointer;
  transition:
    transform .16s ease,
    opacity .16s ease,
    background .16s ease;
}

.cx-r127-control:hover:not(:disabled),
.cx-r127-primary:hover:not(:disabled),
.cx-r127-secondary:hover:not(:disabled) {
  transform: translateY(-1px);
}

.cx-r127-control:disabled {
  opacity: .38;
  cursor: default;
}

.cx-r127-mute {
  background: rgba(255,255,255,.1);
  color: #fff;
}

.cx-r127-end {
  background: #ef4444;
  color: #fff;
}

.cx-r127-primary {
  background: #22c55e;
  color: #06150c;
}

.cx-r127-secondary {
  background: rgba(255,255,255,.1);
  color: #fff;
}

.cx-r127-call-history {
  margin-top: 26px;
  padding-top: 18px;
  border-top:
    1px solid rgba(255,255,255,.08);
  text-align: left;
}

.cx-r127-call-history:empty {
  display: none;
}

.cx-r127-call-history > strong {
  display: block;
  margin-bottom: 9px;
  color: #dfe8ee;
  font-size: 12px;
}

.cx-r127-call-history > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  color: #b9c6cf;
  font-size: 12px;
}

.cx-r127-call-history small {
  color: #71838f;
  text-align: right;
}

@media (max-width: 600px) {
  .cx-r127-call-overlay {
    align-items: end;
    padding: 0;
  }

  .cx-r127-call-card {
    width: 100%;
    max-height: 88vh;
    border-radius: 26px 26px 0 0;
    padding: 32px 20px 24px;
  }

  .cx-r127-call-button {
    min-width: 40px;
  }
}
