.plcb-widget {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 99999;
  font-family: Axiforma, Arial, sans-serif;
  color: #38385e;
}
.plcb-panel[hidden],
.plcb-typing[hidden] {
  display: none !important;
}
.plcb-launcher {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 0;
  border-radius: 999px;
  padding: 15px 21px;
  background: #ff4f35;
  color: #fff;
  font:
    700 15px/1 Axiforma,
    Arial,
    sans-serif;
  box-shadow: 0 12px 30px rgba(56, 56, 94, 0.24);
  cursor: pointer;
}
.plcb-launcher:hover {
  background: #e83d27;
}
.plcb-launcher-star,
.plcb-header-mark {
  font-size: 19px;
  line-height: 1;
}
.plcb-panel {
  position: absolute;
  right: 0;
  bottom: 66px;
  display: flex;
  flex-direction: column;
  width: min(390px, calc(100vw - 32px));
  height: min(630px, calc(100vh - 115px));
  overflow: hidden;
  border: 1px solid #e1e3eb;
  border-radius: 22px;
  background: #f7f8fb;
  box-shadow: 0 22px 55px rgba(26, 31, 64, 0.26);
}
.plcb-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 17px 18px;
  background: #38385e;
  color: #fff;
}
.plcb-header > div:first-child {
  display: flex;
  align-items: center;
  gap: 10px;
}
.plcb-header-mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #ff4f35;
}
.plcb-header strong,
.plcb-header small {
  display: block;
}
.plcb-header strong {
  font-size: 15px;
}
.plcb-header small {
  margin-top: 2px;
  color: #dcdcf0;
  font-size: 11px;
}
.plcb-header-actions {
  display: flex;
  gap: 5px;
}
.plcb-header-actions button {
  display: flex;
  justify-content: center;
  align-items: center;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #fff;
  font-size: 23px;
  cursor: pointer;
  padding: 0px !important;

}
.plcb-header-actions button:first-child {
  font-size: 22px;
}
.plcb-header-actions button:hover {
  background: rgba(255, 255, 255, 0.15);
}
.plcb-messages {
  flex: 1;
  overflow-y: auto;
  padding: 18px;
}
.plcb-message {
  max-width: 90%;
  margin: 0 0 13px;
}
.plcb-message p {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
}
#plcb-message::placeholder{
    color: #555;
}
.plcb-assistant {
  padding: 12px 13px;
  border: 1px solid #e2e3eb;
  border-radius: 4px 15px 15px 15px;
  background: #fff;
  color: #38385e;
}
.plcb-visitor {
  margin-left: auto;
  width: fit-content;
  max-width: 82%;
  box-sizing: border-box;
  padding: 11px 13px;
  border-radius: 15px 4px 15px 15px;
  background: #38385e;
  color: #fff;
}
.plcb-results-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin-top: 12px;
}

/* A visitor who explicitly asks for both sources should be able to see that
   the chat fulfilled both parts of the request at a glance. */
.plcb-result-group { margin: 14px 0 18px; }
.plcb-result-group h5 {
  margin: 0 0 8px;
  color: #292250;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
}

.plcb-result-card {
  overflow: hidden;
  border: 1px solid #e1e3eb;
  border-radius: 11px;
  background: #fff;
}
.plcb-card-image {
  height: 84px;
  background: #ececf2;
}
.plcb-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.plcb-card-fallback {
  display: grid;
  height: 100%;
  place-items: center;
  color: #38385e;
  font-size: 12px;
  font-weight: 700;
}
.plcb-card-body {
  padding: 9px;
}
.plcb-card-body h4 {
  display: -webkit-box;
  overflow: hidden;
  margin: 0 0 5px;
  color: #38385e;
  font-size: 12px;
  line-height: 1.35;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.plcb-card-body .plcb-card-why {
  margin: 0 0 8px;
  color: #5f6681;
  font-size: 10px;
  line-height: 1.45;
}
.plcb-card-body .plcb-card-why strong {
  color: #38385e;
}
.plcb-card-body .plcb-card-price {
  margin: 0 0 9px;
  color: #20233a;
  font-size: 13px;
  font-weight: 700;
}
.plcb-card-body a,
.plcb-more,
.plcb-similar,
.plcb-choice-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  padding: 7px 10px;
  background: #ff4f35;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
}
.plcb-card-body a:hover,
.plcb-more:hover,
.plcb-similar:hover,
.plcb-choice-actions button:hover {
  background: #e83d27;
  color: #fff;
}
.plcb-card-actions,
.plcb-choice-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.plcb-similar,
.plcb-choice-actions .plcb-lead-no {
  border: 1px solid #38385e;
  background: #fff;
  color: #38385e;
}
.plcb-similar:hover,
.plcb-choice-actions .plcb-lead-no:hover {
  border-color: #38385e;
  background: #38385e;
  color: #fff;
}
.plcb-inline-link {
  color: #ff4f35;
  font-weight: 700;
}
.plcb-more {
  width: 100%;
  margin-top: 11px;
  padding: 10px;
}
.plcb-more:disabled {
  opacity: 0.65;
  cursor: wait;
}
.plcb-typing {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0 18px 10px;
  color: #67708d;
  font-size: 11px;
}
.plcb-typing span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #ff4f35;
  animation: plcb-dot 1s infinite;
}
.plcb-typing span:nth-child(2) {
  animation-delay: 0.16s;
}
.plcb-typing span:nth-child(3) {
  animation-delay: 0.32s;
}
@keyframes plcb-dot {
  0%,
  100% {
    opacity: 0.25;
    transform: translateY(0);
  }
  50% {
    opacity: 1;
    transform: translateY(-3px);
  }
}
.plcb-form {
  display: flex;
  gap: 8px;
  padding: 13px;
  border-top: 1px solid #e1e3eb;
  background: #fff;
}
.plcb-form input {
  min-width: 0;
  flex: 1;
  border: 1px solid #d8dbe5 !important;
  border-radius: 999px !important;
  padding: 11px 13px !important;
  color: #222 !important;
  font:
    13px Axiforma,
    Arial,
    sans-serif !important;
  outline: 0;
}
.plcb-form input:focus {
  border-color: #38385e !important;
}
.plcb-form button {
  display: flex;
  align-items: center;
  gap: 5px;
  border: 0;
  border-radius: 999px;
  padding: 0 14px;
  background: #ff4f35;
  color: #fff;
  font:
    700 12px Axiforma,
    Arial,
    sans-serif;
  cursor: pointer;
}
.plcb-form button:hover {
  background: #e83d27;
}
@media (max-width: 600px) {
  .plcb-widget {
    right: 14px;
    bottom: 14px;
  }
  .plcb-panel {
    right: -2px;
    bottom: 61px;
    width: calc(100vw - 24px);
    height: min(620px, calc(100vh - 92px));
  }
  .plcb-launcher {
    padding: 13px 17px;
  }
  .plcb-results-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
.plcb-widget .plcb-header .plcb-header-actions > button svg.plcb-icon-minimise {
    display: none !important;
}

.plcb-widget .plcb-panel-fullscreen .plcb-header-actions > button svg.plcb-icon-expand {
    display: none !important;
}

.plcb-widget .plcb-panel-fullscreen .plcb-header-actions > button svg.plcb-icon-minimise {
    display: block !important;
}
