/* Proxym website chat widget — floating WhatsApp-styled launcher + panel */

:root {
  --pxc-green:      #25D366;
  --pxc-green-dark: #1DA851;
}

.pxc-trigger {
  position: fixed;
  right: 22px;
  bottom: 90px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--pxc-green);
  color: #fff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  box-shadow: var(--ds-shadow-lg, 0 12px 40px rgba(0,0,0,.18));
  cursor: pointer;
  z-index: 2147483000;
  transition: transform .2s var(--ds-ease, ease), box-shadow .2s;
}
.pxc-trigger:hover { transform: scale(1.06); }
.pxc-trigger .bi-x-lg { display: none; }
.pxc-trigger.pxc-open .bi-whatsapp { display: none; }
.pxc-trigger.pxc-open .bi-x-lg { display: inline-block; }

.pxc-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  background: #ff4757;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  border: 2px solid #fff;
}

.pxc-panel {
  position: fixed;
  right: 22px;
  bottom: 160px;
  width: 340px;
  max-width: calc(100vw - 32px);
  height: 470px;
  max-height: calc(100vh - 130px);
  background: var(--ds-surface, #fff);
  border-radius: var(--ds-radius-lg, 18px);
  box-shadow: var(--ds-shadow-lg, 0 12px 40px rgba(0,0,0,.18));
  display: none;
  flex-direction: column;
  overflow: hidden;
  z-index: 2147483000;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
.pxc-panel.pxc-visible { display: flex; }

.pxc-head {
  background: var(--pxc-green);
  color: #fff;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.pxc-head-icon {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,.18);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.pxc-head-title { font-weight: 700; font-size: 14.5px; line-height: 1.2; }
.pxc-head-sub { font-size: 11.5px; opacity: .85; }
.pxc-head-close {
  margin-left: auto;
  background: none; border: none; color: #fff;
  font-size: 18px; cursor: pointer; opacity: .9; padding: 4px;
}
.pxc-head-close:hover { opacity: 1; }

.pxc-body {
  flex: 1;
  overflow-y: auto;
  padding: 14px 12px;
  background: #ECE5DD;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pxc-msg {
  max-width: 82%;
  padding: 8px 11px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.45;
  word-wrap: break-word;
  box-shadow: var(--ds-shadow-xs, 0 1px 2px rgba(0,0,0,.08));
}
.pxc-msg a { color: var(--ds-gold-dark, #A8892E); font-weight: 600; }
.pxc-msg.pxc-bot, .pxc-msg.pxc-admin {
  align-self: flex-start;
  background: #fff;
  color: var(--ds-text, #1A1714);
  border-bottom-left-radius: 3px;
}
.pxc-msg.pxc-visitor {
  align-self: flex-end;
  background: #DCF8C6;
  color: #1A1714;
  border-bottom-right-radius: 3px;
}

.pxc-product-item:hover { background: #F0E6C8 !important; }

.pxc-quick-replies {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-self: flex-start;
  max-width: 88%;
}
.pxc-qr-btn {
  background: #fff;
  border: 1px solid var(--ds-border-gold, rgba(201,168,76,.4));
  color: var(--ds-gold-dark, #A8892E);
  font-weight: 600;
  font-size: 12.5px;
  padding: 8px 12px;
  border-radius: 10px;
  cursor: pointer;
  text-align: left;
  transition: background .15s;
}
.pxc-qr-btn:hover { background: var(--ds-gold-pale, #F7F1E3); }

.pxc-foot {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px;
  background: #fff;
  border-top: 1px solid var(--ds-border, #E8E4DC);
}
.pxc-input {
  flex: 1;
  border: 1px solid var(--ds-border, #E8E4DC);
  border-radius: 20px;
  padding: 9px 14px;
  font-size: 13px;
  outline: none;
}
.pxc-input:focus { border-color: var(--pxc-green); }
.pxc-send {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--pxc-green);
  color: #fff;
  border: none;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  font-size: 15px;
}
.pxc-send:hover { background: var(--pxc-green-dark); }
.pxc-send:disabled { opacity: .5; cursor: default; }

@media (max-width: 480px) {
  .pxc-panel {
    right: 12px;
    left: 12px;
    width: auto;
    bottom: 152px;
  }
  .pxc-trigger { right: 16px; bottom: 84px; }
}
