.talk-widget {
  position: fixed;
  right: 22px;
  bottom: 24px;
  z-index: 90;
  font-family: "Pretendard", "Noto Sans KR", Arial, sans-serif;
}

.talk-widget * {
  box-sizing: border-box;
}

.talk-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 132px;
  height: 52px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: #ffe812;
  color: #171717;
  box-shadow: 0 14px 34px rgba(0,0,0,.18);
  font-size: 15px;
  font-weight: 900;
  cursor: pointer;
  white-space: nowrap;
}

.talk-toggle-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 28px;
  border-radius: 999px;
  background: #171717;
  color: #ffe812;
  flex: 0 0 38px;
  font-size: 12px;
  line-height: 1;
  letter-spacing: 0;
  overflow: visible;
}

.talk-panel {
  position: absolute;
  right: 0;
  bottom: 66px;
  width: min(330px, calc(100vw - 32px));
  padding: 18px;
  border: 1px solid #e6e0d8;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(0,0,0,.16);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: .18s ease;
}

.talk-widget.open .talk-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.talk-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.talk-panel h2 {
  margin: 0 0 4px;
  font-size: 20px;
  line-height: 1.25;
}

.talk-panel p {
  margin: 0;
  color: #666;
  font-size: 13px;
  line-height: 1.55;
}

.talk-close {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 999px;
  background: #f3f0ea;
  color: #171717;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.talk-actions {
  display: grid;
  gap: 8px;
}

.talk-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
  padding: 0 14px;
  border-radius: 10px;
  background: #171717;
  color: #fff;
  text-decoration: none;
  font-weight: 900;
}

.talk-action.kakao {
  background: #ffe812;
  color: #171717;
}

.talk-time {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #eee8df;
  color: #777;
  font-size: 12px;
  line-height: 1.6;
}

@media (max-width: 640px) {
  .talk-widget {
    right: 16px;
    bottom: 92px;
  }

  .talk-toggle {
    min-width: 128px;
    height: 48px;
    padding: 0 15px;
    font-size: 14px;
  }

  .talk-toggle-icon {
    width: 38px;
    flex-basis: 38px;
    height: 28px;
    font-size: 12px;
  }
}
