.wpocs-widget,
.wpocs-widget * {
  box-sizing: border-box;
}

.wpocs-widget {
  --wpocs-accent: #0f9d58;
  --wpocs-text: #17202a;
  --wpocs-muted: #667085;
  --wpocs-border: #e5e7eb;
  --wpocs-surface: #ffffff;
  bottom: 24px;
  color: var(--wpocs-text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  position: fixed;
  z-index: 99999;
}

.wpocs-right {
  right: 24px;
}

.wpocs-left {
  left: 24px;
}

.wpocs-screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

.wpocs-dock {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.wpocs-dock-button {
  align-items: center;
  background: #16c784;
  border: 0;
  border-radius: 50%;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.18);
  color: #fff;
  cursor: pointer;
  display: flex;
  font-size: 20px;
  font-weight: 700;
  height: 56px;
  justify-content: center;
  line-height: 1;
  padding: 0;
  position: relative;
  text-decoration: none;
  transition: transform 150ms ease, box-shadow 150ms ease;
  width: 56px;
}

.wpocs-dock-button:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.24);
}

.wpocs-dock-button:focus-visible,
.wpocs-close:focus-visible,
.wpocs-form button:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--wpocs-accent), white 55%);
  outline-offset: 3px;
}

.wpocs-dock-icon {
  align-items: center;
  display: inline-flex;
  height: 100%;
  justify-content: center;
  width: 100%;
}

.wpocs-dock-icon svg {
  display: block;
  fill: currentColor;
  height: 28px;
  width: 28px;
}

.wpocs-dock-chat {
  background: #1d4ed8;
}

.wpocs-dock-phone {
  background: #10d68a;
}

.wpocs-dock-whatsapp {
  background: #25d366;
  border: 3px solid #ffffff;
}

.wpocs-dock-email {
  background: #f04466;
}

.wpocs-dock-livechat {
  background: #3b82f6;
}

.wpocs-panel {
  background: var(--wpocs-surface);
  border: 1px solid var(--wpocs-border);
  border-radius: 8px;
  bottom: 0;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.22);
  max-height: min(680px, calc(100vh - 116px));
  opacity: 0;
  overflow: auto;
  pointer-events: none;
  position: absolute;
  transform: translateY(12px);
  transition: opacity 160ms ease, transform 160ms ease;
  width: min(360px, calc(100vw - 32px));
}

.wpocs-right .wpocs-panel {
  right: 74px;
}

.wpocs-left .wpocs-panel {
  left: 74px;
}

.wpocs-open .wpocs-panel {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.wpocs-panel-head {
  align-items: flex-start;
  background: var(--wpocs-accent);
  color: #fff;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  padding: 18px;
}

.wpocs-panel-head strong {
  display: block;
  font-size: 18px;
  line-height: 1.25;
}

.wpocs-panel-head p {
  color: rgba(255, 255, 255, 0.86);
  font-size: 13px;
  line-height: 1.45;
  margin: 6px 0 0;
}

.wpocs-close {
  align-items: center;
  background: rgba(255, 255, 255, 0.18);
  border: 0;
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 22px;
  height: 32px;
  justify-content: center;
  line-height: 1;
  width: 32px;
}

.wpocs-form {
  display: grid;
  gap: 10px;
  padding: 16px;
}

.wpocs-auto-reply {
  align-items: flex-start;
  background: color-mix(in srgb, var(--wpocs-accent), white 91%);
  border: 1px solid color-mix(in srgb, var(--wpocs-accent), white 70%);
  border-radius: 8px;
  color: var(--wpocs-text);
  display: flex;
  gap: 10px;
  margin: 16px 16px 0;
  padding: 12px;
}

.wpocs-auto-reply[hidden] {
  display: none;
}

.wpocs-auto-reply span {
  align-items: center;
  background: var(--wpocs-accent);
  border-radius: 50%;
  color: #fff;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 800;
  height: 24px;
  justify-content: center;
  margin-top: 1px;
  width: 24px;
}

.wpocs-auto-reply p {
  font-size: 13px;
  line-height: 1.5;
  margin: 0;
}

.wpocs-form input,
.wpocs-form textarea {
  background: #fff;
  border: 1px solid var(--wpocs-border);
  border-radius: 8px;
  color: var(--wpocs-text);
  font: inherit;
  font-size: 14px;
  line-height: 1.35;
  padding: 11px 12px;
  width: 100%;
}

.wpocs-form textarea {
  resize: vertical;
}

.wpocs-form input:focus,
.wpocs-form textarea:focus {
  border-color: var(--wpocs-accent);
  outline: 0;
}

.wpocs-privacy {
  color: var(--wpocs-muted);
  font-size: 12px;
  line-height: 1.45;
  margin: 0;
}

.wpocs-form button {
  background: var(--wpocs-accent);
  border: 0;
  border-radius: 8px;
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  min-height: 44px;
  padding: 11px 14px;
}

.wpocs-form button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.wpocs-status {
  font-size: 13px;
  line-height: 1.4;
  min-height: 18px;
}

.wpocs-status-success {
  color: #087443;
}

.wpocs-status-error {
  color: #b42318;
}

@media (max-width: 480px) {
  .wpocs-widget {
    bottom: 16px;
  }

  .wpocs-right {
    right: 16px;
  }

  .wpocs-left {
    left: 16px;
  }

  .wpocs-dock-button {
    height: 52px;
    width: 52px;
  }

  .wpocs-panel {
    bottom: 0;
  }

  .wpocs-right .wpocs-panel {
    right: 62px;
  }

  .wpocs-left .wpocs-panel {
    left: 62px;
  }
}

/* WhatsApp window */
.wpocs-widget [hidden] { display: none !important; }
.wpocs-wa-panel {
  position: absolute; bottom: 0; width: min(360px, calc(100vw - 122px));
  max-height: calc(100vh - 48px); max-height: calc(100dvh - 48px);
  overflow: auto; border-radius: 16px; background: #fff;
  box-shadow: 0 20px 60px rgba(15,23,42,.24); border: 1px solid #e5e7eb;
}
.wpocs-right .wpocs-wa-panel { right: 74px; }
.wpocs-left .wpocs-wa-panel { left: 74px; }
.wpocs-wa-panel .wpocs-panel-head { background: #075e54; }
.wpocs-wa-close { min-width: 44px; min-height: 44px; }
.wpocs-wa-body { display: grid; gap: 14px; padding: 18px; background: #efeae2; }
.wpocs-wa-welcome { margin: 0; background: white; padding: 14px; border-radius: 0 12px 12px; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14px; }
.wpocs-wa-body label { font-size: 14px; font-weight: 600; }
.wpocs-wa-body textarea { width: 100%; min-height: 88px; resize: vertical; background: #fff; color: #17202a; border: 1px solid #b9c8bf; border-radius: 8px; padding: 12px; font: inherit; font-size: 16px; }
.wpocs-wa-send { display: block; background: #128c4a; color: #fff; padding: 14px; border-radius: 24px; text-align: center; text-decoration: none; font-size: 15px; font-weight: 700; }
.wpocs-wa-send:hover { background: #075e54; color: #fff; }
.wpocs-wa-send:focus-visible, .wpocs-wa-body textarea:focus-visible { outline: 3px solid #075e54; outline-offset: 3px; }
@media (max-width: 480px) {
  .wpocs-widget { bottom: calc(16px + env(safe-area-inset-bottom, 0px)); }
  .wpocs-wa-panel, .wpocs-panel { width: calc(100vw - 94px); max-height: calc(100dvh - 32px); }
  .wpocs-right .wpocs-wa-panel { right: 62px; }
  .wpocs-left .wpocs-wa-panel { left: 62px; }
  .wpocs-wa-body { padding: 12px; }
}

/* Factory contact button: readable on desktop and mobile. */
.wpocs-oem-label { font-family: Arial, sans-serif; font-size: 14px; font-weight: 800; line-height: 1; letter-spacing: .3px; color: #fff; }
