/* Cobrança sem disputar espaço com a conversa. */
.pix-panel {
  top: 116px;
  right: auto;
  bottom: auto;
  left: 18px;
  width: min(404px, calc(100% - 36px));
  max-height: calc(100% - 132px);
  overflow: auto;
  border: 1px solid #9de1b8;
  border-radius: 20px;
  background: linear-gradient(145deg, #ffffff 0%, #f5fff8 100%);
  box-shadow: 0 28px 70px #0a422a35, 0 2px 0 #ffffff inset;
  animation: pix-float-in .28s cubic-bezier(.18,.8,.22,1);
}

.pix-panel::before {
  position: absolute;
  z-index: 0;
  top: -72px;
  left: -62px;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  background: #4fe18920;
  content: "";
  pointer-events: none;
}

.pix-panel > * {
  position: relative;
  z-index: 1;
}

.pix-panel-head {
  padding: 16px 16px 13px;
  border-bottom-color: #d9f0e1;
  background: transparent;
}

.pix-panel-head b {
  font-size: 13px;
  letter-spacing: -.02em;
}

.pix-logo-mini {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: linear-gradient(145deg, #14c864, #047b3c);
  box-shadow: 0 10px 20px #139a4e42;
}

.pix-create-form {
  gap: 11px;
  padding: 15px 16px 16px;
}

.pix-create-form > label:first-child input {
  height: 44px;
  border-color: #89d8a7;
  background: #fff;
  color: #0b6e37;
  font-size: 18px;
  font-weight: 900;
}

.pix-create-form > label:first-child input::placeholder {
  color: #9bbcac;
}

.pix-payer-note {
  padding: 10px 11px;
  border-color: #dcefe2;
  background: #f8fdf9;
}

.pix-payer-note b::after {
  margin-left: 6px;
  border-radius: 999px;
  padding: 2px 5px;
  background: #fff0ed;
  color: #b75045;
  content: "obrigatório";
  font-size: 8px;
}

.pix-create-button {
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, #14b85c, #057d3b);
  box-shadow: 0 10px 20px #0b984744;
  font-size: 11px;
}

.pix-open-settings {
  height: 34px;
  border: 1px dashed #74c993;
  border-radius: 10px;
  background: #f8fdf9;
  color: #14743c;
  font: inherit;
  font-size: 10px;
  font-weight: 900;
  transition: background .16s ease, border-color .16s ease, transform .16s ease;
}

.pix-open-settings:hover {
  border-color: #28a95e;
  background: #edfbf2;
  transform: translateY(-1px);
}

.payshark-settings-group {
  order: -1;
  position: relative;
  border-color: #b8e8c9;
  box-shadow: 0 12px 26px #1484470c;
}

.payshark-settings-group .settings-group-head {
  background: linear-gradient(100deg, #f2fff6, #ffffff);
}

.payshark-config-form input {
  height: 40px;
  border-color: #b6dfc4;
  background: #fbfffc;
}

.payshark-config-form button.secondary {
  height: 36px;
  padding: 0 13px;
  border-radius: 10px;
}

body[data-theme="midnight"] .pix-panel {
  border-color: #32734a;
  background: linear-gradient(145deg, #142b1d, #102218);
}

body[data-theme="midnight"] .pix-panel-head,
body[data-theme="midnight"] .payshark-settings-group .settings-group-head {
  background: #162d20;
}

body[data-theme="midnight"] .pix-create-form > label:first-child input,
body[data-theme="midnight"] .payshark-config-form input {
  border-color: #356f49;
  background: #11271a;
  color: #d6f5df;
}

body[data-theme="midnight"] .pix-open-settings {
  border-color: #447c56;
  background: #173523;
  color: #8be9ac;
}

@keyframes pix-float-in {
  from { opacity: 0; transform: translate(-14px, -8px) scale(.97); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 760px) {
  .pix-panel {
    top: 104px;
    right: 10px;
    left: 10px;
    width: calc(100% - 20px);
    max-height: calc(100% - 116px);
  }
}
