.pm-guest-fab,
.pm-guest-panel,
.pm-guest-panel * {
  box-sizing: border-box;
  letter-spacing: -0.03em;
}

.pm-guest-fab {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 80;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 56px;
  padding: 0 18px 0 16px;
  border: 0;
  border-radius: 999px;
  background: #068fca;
  color: #fff;
  font-family: Manrope, "Noto Sans KR", sans-serif;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(6, 143, 202, 0.35);
}

.pm-guest-fab:hover {
  background: #057eb3;
}

.pm-guest-fab svg {
  width: 22px;
  height: 22px;
  display: block;
}

.pm-guest-badge {
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: #f49a19;
  color: #fff;
  font-size: 11px;
  font-style: normal;
  line-height: 20px;
  text-align: center;
}

.pm-guest-panel {
  position: fixed;
  right: 24px;
  bottom: 96px;
  z-index: 80;
  display: flex;
  flex-direction: column;
  width: min(380px, calc(100vw - 32px));
  height: min(640px, calc(100vh - 130px));
  margin: 0;
  padding: 0;
  background: #fff;
  border: 1px solid #dfe8ef;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(8, 44, 82, 0.18);
  font-family: Manrope, "Noto Sans KR", sans-serif;
  color: #112c4d;
}

.pm-guest-panel[hidden] {
  display: none;
}

.pm-guest-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 16px 14px;
  background: #082c52;
  color: #fff;
}

.pm-guest-head b {
  display: block;
  font-size: 16px;
}

.pm-guest-head small {
  display: block;
  margin-top: 2px;
  color: #c5d5e4;
  font-size: 12px;
  font-weight: 600;
}

.pm-guest-x {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.pm-guest-body {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 18px 16px;
  background: #f5f9fc;
}

.pm-guest-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pm-guest-form p {
  margin: 0 0 4px;
  font-size: 14px;
  line-height: 1.5;
  color: #294360;
}

.pm-guest-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  font-weight: 800;
  color: #294360;
}

.pm-guest-form input {
  height: 44px;
  padding: 0 12px;
  border: 1px solid #dfe8ef;
  border-radius: 12px;
  background: #fff;
  color: #112c4d;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
}

.pm-guest-form input:focus {
  outline: 2px solid rgba(6, 143, 202, 0.25);
  border-color: #068fca;
}

.pm-guest-submit,
.pm-guest-send {
  border: 0;
  border-radius: 12px;
  background: #068fca;
  color: #fff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.pm-guest-submit {
  height: 46px;
  margin-top: 4px;
  font-size: 15px;
}

.pm-guest-submit:disabled,
.pm-guest-send:disabled {
  opacity: 0.6;
  cursor: default;
}

.pm-guest-error {
  margin: 0;
  color: #c2410c;
  font-size: 13px;
  font-weight: 700;
}

.pm-guest-log {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pm-guest-msg {
  max-width: 84%;
  padding: 10px 12px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 1px 0 rgba(17, 44, 77, 0.04);
}

.pm-guest-msg.is-mine {
  align-self: flex-end;
  background: #068fca;
  color: #fff;
  border-bottom-right-radius: 6px;
}

.pm-guest-msg.is-theirs {
  align-self: flex-start;
  border-bottom-left-radius: 6px;
}

.pm-guest-msg strong {
  display: block;
  margin-bottom: 4px;
  font-size: 11px;
  font-weight: 800;
  color: #068fca;
}

.pm-guest-msg p {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
}

.pm-guest-msg time {
  display: block;
  margin-top: 6px;
  font-size: 10px;
  opacity: 0.7;
}

.pm-guest-msg a,
.pm-guest-msg img {
  display: block;
  margin-top: 6px;
}

.pm-guest-msg img {
  max-width: 180px;
  border-radius: 10px;
}

.pm-guest-msg a {
  color: inherit;
  font-size: 13px;
  font-weight: 700;
  text-decoration: underline;
}

.pm-guest-compose {
  display: flex;
  flex: 0 0 auto;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid #e6eef4;
  background: #fff;
}

.pm-guest-compose[hidden] {
  display: none;
}

.pm-guest-compose textarea {
  flex: 1;
  height: 44px;
  max-height: 120px;
  padding: 11px 12px;
  border: 1px solid #dfe8ef;
  border-radius: 12px;
  resize: none;
  font: inherit;
  font-size: 14px;
  color: #112c4d;
}

.pm-guest-compose textarea:focus {
  outline: 2px solid rgba(6, 143, 202, 0.25);
  border-color: #068fca;
}

.pm-guest-send {
  width: 64px;
  height: 44px;
  font-size: 14px;
}

@media (max-width: 640px) {
  .pm-guest-fab {
    right: 16px;
    bottom: 16px;
    height: 52px;
  }

  .pm-guest-panel {
    right: 12px;
    left: 12px;
    bottom: 80px;
    width: auto;
    height: min(70vh, 640px);
  }
}
