.p4p-live-chat {
  position: fixed;
  z-index: 10000;
  bottom: max(16px, env(safe-area-inset-bottom));
  left: max(16px, env(safe-area-inset-left));
  color: #292923;
  font: 500 14px/1.5 system-ui, sans-serif;
  max-width: calc(100vw - 32px);
}

.p4p-live-chat [hidden], .p4p-live-chat[hidden] { display: none !important; }
.p4p-live-chat button { font: inherit; cursor: pointer; }
.p4p-live-chat-launcher,
.p4p-live-chat-form button {
  border: 1px solid #405609;
  border-radius: 9px;
  background: #516b0b;
  color: #fff;
  padding: 9px 14px;
}
.p4p-live-chat-launcher { box-shadow: 0 4px 15px #29292330; }
.p4p-live-chat button:focus-visible, .p4p-live-chat textarea:focus-visible { outline: 2px solid #dca900; outline-offset: 2px; }
.p4p-live-chat-panel, .p4p-live-chat-notice {
  background: #fbf7e9;
  border: 1px solid #d8ccae;
  box-shadow: 0 8px 28px #29292340;
  border-radius: 12px;
  overflow: hidden;
  width: min(350px, calc(100vw - 32px));
  margin-bottom: 8px;
}
.p4p-live-chat-notice { display: flex; align-items: center; justify-content: space-between; padding: 6px 11px; }
.p4p-live-chat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background: #354807;
  color: #fbf7e9;
  font-weight: 700;
}
.p4p-live-chat .p4p-live-chat-close {
  color: inherit; background: transparent; border: none; padding: 0 6px; font-size: 23px; line-height: 1.2;
}
.p4p-live-chat-log {
  display: flex; flex-direction: column; align-items: flex-start; gap: 8px; overflow-y: auto;
  min-height: min(90px, 15dvh); max-height: min(250px, 34dvh); padding: 12px 12px 0;
}
.p4p-live-chat-log div { max-width: 88%; background: #eaf2cf; border-radius: 9px; padding: 5px 9px; }
.p4p-live-chat-log .p4p-live-chat-guest { align-self: flex-end; background: #bce6fa; }
.p4p-live-chat-log p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.p4p-live-chat-log strong { display: block; font-size: 11px; }
.p4p-live-chat-info, .p4p-live-chat-status { font-size: 11px; line-height: 1.4; margin: 7px 12px; }
.p4p-live-chat-status:empty { display: none; }
.p4p-live-chat-status { color: #8b2a1e; }
.p4p-live-chat-form { display: flex; gap: 6px; padding: 0 12px 12px; align-items: end; margin: 0; }
.p4p-live-chat-form textarea {
  flex: 1; width: 100%; min-width: 0; resize: vertical; font: inherit; color: #292923;
  box-sizing: border-box; background: #fffaf0; border: 1px solid #c9bd9d; border-radius: 7px; padding: 5px 7px;
}
