.ppcw-widget {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 99999;
  font-family: inherit;
}

.ppcw-bubble {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: var(--ppcw-primary, #0f4c81);
  box-shadow: 0 12px 32px rgba(15, 35, 55, 0.24);
  cursor: pointer;
  font: 700 15px/1.2 inherit;
}

.ppcw-bubble:focus-visible,
.ppcw-close:focus-visible,
.ppcw-submit:focus-visible {
  outline: 3px solid rgba(15, 76, 129, 0.28);
  outline-offset: 3px;
}

.ppcw-bubble-icon {
  display: inline-grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
}

.ppcw-panel {
  position: absolute;
  right: 0;
  bottom: 68px;
  width: min(380px, calc(100vw - 32px));
  overflow: hidden;
  border: 1px solid rgba(15, 35, 55, 0.14);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(15, 35, 55, 0.22);
}

.ppcw-panel-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
  color: #fff;
  background: var(--ppcw-primary, #0f4c81);
}

.ppcw-panel-head h2 {
  margin: 0 0 5px;
  color: inherit;
  font-size: 18px;
  line-height: 1.2;
}

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

.ppcw-close {
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
}

.ppcw-form {
  display: grid;
  gap: 11px;
  padding: 16px;
}

.ppcw-form label {
  display: grid;
  gap: 5px;
  color: #183247;
  font-size: 13px;
  font-weight: 700;
}

.ppcw-form input,
.ppcw-form textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #cfd8e3;
  border-radius: 6px;
  padding: 10px 11px;
  color: #15293b;
  background: #fff;
  font: 400 15px/1.35 inherit;
}

.ppcw-form textarea {
  resize: vertical;
}

.ppcw-submit {
  min-height: 44px;
  border: 0;
  border-radius: 6px;
  color: #fff;
  background: var(--ppcw-primary, #0f4c81);
  cursor: pointer;
  font: 700 15px/1.2 inherit;
}

.ppcw-submit:disabled {
  opacity: 0.7;
  cursor: wait;
}

.ppcw-note {
  margin: -2px 0 0;
  color: #5c6f80;
  font-size: 12px;
  line-height: 1.4;
}

.ppcw-status {
  display: none;
  padding: 10px;
  border-radius: 6px;
  font-size: 13px;
  line-height: 1.4;
}

.ppcw-status.is-success,
.ppcw-status.is-error {
  display: block;
}

.ppcw-status.is-success {
  color: #0f5132;
  background: #d1e7dd;
}

.ppcw-status.is-error {
  color: #842029;
  background: #f8d7da;
}

.ppcw-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

@media (max-width: 520px) {
  .ppcw-widget {
    right: 16px;
    bottom: 16px;
    left: 16px;
  }

  .ppcw-bubble {
    justify-content: center;
    width: 100%;
  }

  .ppcw-panel {
    right: 0;
    bottom: 66px;
    width: 100%;
    max-height: calc(100vh - 96px);
    overflow-y: auto;
  }
}
