@charset "utf-8";
/* CSS Document */


/* 공통 */

*{
	margin:0;
	padding:0;
}

body, div, dl, dt, dd, ul, ol, li, h1, h2, h3, h4, h5, h6, p, form, figure, fieldset, input, th, td{margin:0;padding:0;}
/*
*:focus {
    outline: 0;
}
*/
.makechat :focus-visible {
    outline: 5px solid #666;
}

html,body{
	height: 100%;
	width: 100%;
	position: fixed;
	-webkit-overflow-scrolling: touch;
 }

img{border:none;}

.clear{clear:both;}

.btn{cursor:pointer;}

.click{cursor:default;}

button{
	border: none;
}

body{
	font-family: '맑은 고딕', 'notokr-regular', sans-serif;
}

.makechat {
    text-size-adjust: 100%;
    font-feature-settings: normal;
    font-family: Söhne, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, Cantarell, "Noto Sans", sans-serif, "Helvetica Neue", Arial, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    font-variation-settings: normal !important;
    line-height: 1.5;
    tab-size: 4;
	display:none;
	letter-spacing:-1px;
}

.makechat,.makechat_msg{
	background:#FFF;
}

.makechat_msg{
	padding-left: 20px;
	padding-right: 20px;
	letter-spacing:0;
	font-size:16px;
}

/* 개행 표시 */
.makechat_msg_item_msg{
	white-space: pre-wrap;
}


/* 상단 */
.makechat_top{
    display: flex; /* Flexbox 사용 */
    justify-content: space-between; /* 양 끝에 요소 배치 */
    align-items: center; /* 세로 중앙 정렬 */
	color:#FFF;
	font-weight:bold;
    padding-left: 25px; /* 여백 추가 */
    padding-right: 25px; /* 여백 추가 */
	background:#666;
}

.makechat_top_logo {
    font-size:16px;
}

.makechat_btn_shareLink {
  background: none;
  border: none;
  cursor: pointer;
  color: #333;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  transition: background-color 0.3s;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0;
}

.share-button i {
  font-size: 20px;
}

.share-button:hover {
  background-color: rgba(0, 123, 255, 0.1);
}

#makechat_btn_close {
    background: none;
    border: none;
    cursor: pointer;
}

#makechat_btn_close i {
    font-size: 20px; /* 아이콘 크기 */
}


/* 하단 */
.makechat_bottom{
	background:#FFF;
	padding-top:10px;
	padding-bottom:10px;
}


.makechat_input textarea{
	width:100%;
	height:30px;
	line-height:20px;
	margin-left:5px;
	margin-right:5px;
	color:#333;
	font-size:1rem;
	padding-left:5px;
	padding-right:5px;
	box-sizing: border-box;
	border:none;
	outline: none !important;
	font-family: '맑은 고딕', 'notokr-regular', sans-serif;
    background-color: transparent; /* 배경색 투명 */
	font-size:14px;
	box-sizing:content-box;
	overflow:hidden;
	background:#FFF;
	margin-top: 10px;
}

/* 채팅 입력 영역 스타일 수정 */
.makechat_input {
    border: none;
    background: #f8f9fa;
    padding: 15px 20px;
    height: 80px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 -1px 3px rgba(0,0,0,0.05);
}

.makechat_input textarea {
    font-size: 14px;
    height: 40px;
    margin: 0 0 10px 0;
    padding: 5px 0;
    background: transparent;
    resize: none;
    border: none;
}

/* 버튼 컨테이너 */
.chat-input-buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.input-buttons-left {
    display: flex;
    gap: 8px;
}

/* 좌측 아이콘 버튼 */
.chat-input-button {
    padding: 8px;
    border: none;
    background: transparent;
    color: #6c757d;
    border-radius: .25rem;
    transition: all .15s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
}

.chat-input-button:hover {
    background-color: #33d1f2;
    color: #FFF;
}

.chat-input-button:active {
    background-color: #33d1f2;
    color: #FFF;
}

/* 전송 버튼 */
.btn_makebot_sumit {
    padding: 8px 16px;
    border: none;
    border-radius: .25rem;
    color: white;
    font-weight: 500;
    transition: all .15s ease-in-out;
    display: flex;
    align-items: center;
    gap: 8px;
    height: 36px;
}

.btn_makebot_sumit i {
    font-size: 14px;
}

.btn_makebot_sumit:hover {
    background-color: #33d1f2;
}

.btn_makebot_sumit:active {
    background-color: #11181f;
}

/* 로딩 상태의 전송 버튼 */
.btn_makebot_sumit.loading {
    background-color: #4a5568;
    cursor: not-allowed;
}

/* 버튼 내 아이콘 크기 통일 */
.chat-input-button i,
.btn_makebot_sumit i {
    font-size: 16px;
}









.makechat_input_msg {
    flex-grow: 1; /* 나머지 공간 채우기 */
    margin: 0 10px; /* 좌우 여백 */
    color: #fff; /* 글자색 (밝은색 권장) */
}

button {
    background: none;
    border: none;
    cursor: pointer;
}

button i {
    color: #999; /* 아이콘 색상 */
    font-size: 16px; /* 아이콘 크기 */
}

/* white 스킨 */
.makechat_white.makechat{
	background:#FFF !important;
}

.makechat_white .makechat_msg{
	background:#FFF !important;
}

.makechat_white button i {
    color: #999; /* 아이콘 색상 */
}

.makechat_white .txt_makechat_input_msg {
    color: #333; /* 아이콘 색상 */
}
.pcoded-main-container{
	background:#FFF;
}




/* 메세지 */
	background:#e8e8e8;
    overflow-y: scroll;
	box-sizing: border-box;
	overflow-x: hidden;
}


.makechat_msg_item_msg_conv_name{
	font-weight:900;
}

.makechat_msg_item_msg{
	margin-bottom:10px;
}
.makechat_msg_item_tools{
	height:20px;
	width:100%;
	margin-bottom:20px;
	color:#999;
}
.makechat_msg_item_tools i{
	cursor:pointer;
}

.makechat_msg_item_img {
	margin-left:20px;
    width: 20px;  /* 썸네일의 너비 */
    height: 20px; /* 썸네일의 높이 */
    border-radius: 10px; /* 원형 썸네일을 위한 border-radius */
    margin-right: 10px; /* 텍스트와의 여백 */
	margin-top:4px;
    float: left; /* 텍스트 옆에 이미지를 위치시키기 위해 */
}

/* chat-client.css와 chat.css에 추가 */
.makechat_msg_item {
    display: flex;
    margin-bottom: 20px;
    width: 100%;
}

.makechat_msg_item.agent-message {
    justify-content: flex-start;
}

.makechat_msg_item.user-message {
    justify-content: flex-end;
}

.user-message .makechat_msg_item_msg {
    background-color: #007bff;
    color: white;
    border-radius: 15px 15px 0 15px;
    padding: 10px 15px;
    margin-left: auto;
}

.agent-message .makechat_msg_item_msg {
    background-color: #e8e8e8;
    border-radius: 15px 15px 15px 0;
    padding: 10px 15px;
}

.makechat_msg {
    overflow-y: auto;
    box-sizing: border-box; /* padding이 전체 크기에 포함되도록 설정 */
    padding-top: 20px;
    scroll-behavior: smooth; /* 부드러운 스크롤 효과 */
}

/* 코드 블락 */
.msg_block_code_head{
	color: #FFF;
    height: 30px;
    line-height: 30px;
    font-size: 12px;
    font-weight: 300;
    background: #333;
    padding-left: 10px;
    box-sizing: border-box;
	border-top-left-radius:10px;
	border-top-right-radius:10px;
}
.msg_block_code_head_title{
	width:50%;
	float:left;
}
.btn_msg_block_code_copy{
	width:80px;
    height: 30px;
    line-height: 30px;
	margin-right:10px;
	float:right;
	text-align:right;
	color:#FFF;
	cursor:pointer
}
.btn_msg_block_code_copy i{
	font-size:14px;
	margin-right:4px;
}
.msg_block_code_msg{
	color:#FFF;
	font-weight:300;
	background:#000000;
	padding:10px 15px 10px 15px;
	box-sizing: border-box;
	border-bottom-left-radius:10px;
	border-bottom-right-radius:10px;
}






/* Font Awesome 아이콘 스타일 */
.fas {
    font-size: 16px; /* 아이콘 크기 */
    color: #FFF; /* 아이콘 색상 */
}




/*********** 메세지 코드 블록 ***********/
.copy-button {
	cursor: pointer;
	background-color: #eee;
	border: none;
	padding: 5px 10px;
	border-radius: 3px;
	margin: 5px;
	font-size: 12px;
	float: right; /* 버튼을 오른쪽에 위치시킵니다 */
}

.copy-button:hover {
	background-color: #ddd;
}

.prism-show-language-label {
	font-size: 0.85em;
	color: #fff;
	padding: 0.5em;
	background-color: #333;
	clear: both; /* float 스타일을 초기화합니다 */
	border-top-left-radius:5px;
	border-top-right-radius:5px;
	position:relative;
}


.prism-show-language-label .btn_msg_block_code_copy{
	width: 80px;
	height: 20px;
	line-height: 20px;
	font-size: 12px;
	float: right;
	text-align: right;
	color: #FFF;
	cursor:pointer
	top:5px;
	right:5px;
}
.prism-show-language-label .btn_msg_block_code_copy i{
	font-size:14px;
	margin-right:4px;
}

pre {
	background:#000;
	border-bottom-left-radius:5px;
	border-bottom-right-radius:5px;
	margin-bottom:0;
	position: relative;
	width:100%;
}
/*********** 메세지 코드 블록 ***********/

cite {
    color: #666;
    font-style: normal;
}

.sources-container h4 {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
}

.source-item {
    font-size: 13px;
    color: #555;
    padding: 4px 0;
}

.source-item strong {
    color: #2c5282;
    margin-right: 6px;
}

.reference {
    color: #666;
    font-style: normal;
}

.sources-container {
    margin-top: 15px;
    padding-top: 10px;
    border-top: 1px solid #eee;
}

.sources-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.source-item {
    margin: 5px 0;
    color: #666;
}

.source-item strong {
    color: #2c5282;
    margin-right: 6px;
}

/* source-item의 기본 스타일은 유지 */
/* 기존 코드 수정 */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* source-item의 기본 스타일은 유지 */
.source-item {
    margin: 5px 0;
    color: #666;
    border-bottom: 1px solid #edf2f7;
    transition: background-color 0.2s;
}

/* 새로 추가되는 항목에만 애니메이션 적용 */
.source-item.new {
    animation: fadeIn 0.5s ease-in-out;
}

.source-item:hover {
    background-color: #f1f5f9;
}

.makechat_msg_item.system {
  width: 100%;
  padding: 12px 0;
  text-align: center;
}

.system-message {
  display: flex;
  align-items: center;
  gap: 16px; /* 선과 텍스트 사이 간격 */
  width: 100%;
}

.system-message::before,
.system-message::after {
  content: "";
  flex: 1;
  height: 1px;
  background-color: #e9ecef;
}

.system-text {
  font-size: 13px;
  line-height: 1.4;
  color: #999;
}

/* 어두운 테마일 때 */
.makechat_dark .system-message::before,
.makechat_dark .system-message::after {
  background-color: #495057;
}

.makechat_dark .system-text {
  color: #adb5bd;
}

/* 버튼 */
.chat-link-button {
    display: inline-flex;  /* flex로 변경 */
    align-items: center;   /* 수직 중앙 정렬 */
    padding: 8px 16px;
    background-color: #007bff;
    color: white !important;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.chat-link-button .icon-margin {
    margin-right: 2px;  /* 또는 원하는 크기로 조정 */
}

.chat-link-button:hover {
  background-color: #0056b3;
  text-decoration: none;
  color: white;
}

.button-container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

/* 메시지 내용 컨테이너 스타일 */
.agent-message .message-content {
    background-color: #e8e8e8;
    border-radius: 15px 15px 15px 0;
    padding: 10px 15px;
}

/* 메시지 텍스트 스타일 */
.message-content p {
    margin: 0;  /* 기본 마진 제거 */
    word-break: break-word;
}

/* 메시지 시간 표시 스타일 */
.message-time {
	font-size: 11px;
	color: #999;
	margin-top: 4px;
	text-align: right;
}

/* 상담원 메시지의 시간은 왼쪽 정렬 */
.agent-message .message-time {
	text-align: left;
}

/* 시스템 메시지의 시간은 중앙 정렬 */
.system .message-time {
	text-align: center;
	margin-top: 8px;
}

/* 메시지 래퍼 스타일 개선 */
.message-wrapper {
	width: 100%;
}

/* 고객 메시지의 시간 위치 조정 */
.user-message .message-wrapper {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
}

.user-message .makechat_msg_item_msg {
	margin-bottom: 0;
}

/* 상담원 메시지의 시간 위치 조정 */
.agent-message .message-wrapper {
	display: flex;
	flex-direction: column;
	width: 100%;
}

/* 메시지와 시간 사이 간격 조정 */
.makechat_msg_item_msg + .message-time,
.message-content + .message-time {
	margin-top: 4px;
}


/* 고객용 만족도 조사 CSS - 고객용 CSS 파일에 추가하거나 chat-client.js에 인라인으로 추가 */

/* 만족도 조사 메시지 스타일 */
.satisfaction-survey-message {
	background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
	border: 1px solid #dee2e6;
	border-radius: 12px;
	padding: 20px;
	margin: 10px 0;
	text-align: center;
	box-shadow: 0 2px 10px rgba(0,0,0,0.1);
	font-family: inherit;
}

.survey-header h4 {
	color: #495057;
	font-weight: 600;
	margin-bottom: 8px;
	font-size: 16px;
}

.survey-header p {
	color: #6c757d;
	line-height: 1.4;
	margin-bottom: 15px;
	font-size: 14px;
}

.satisfaction-rating-buttons {
	display: flex;
	justify-content: center;
	gap: 8px;
	margin: 20px 0;
	flex-wrap: wrap;
}

.rating-btn {
	background: white;
	border: 2px solid #dee2e6;
	border-radius: 12px;
	padding: 12px 8px;
	cursor: pointer;
	transition: all 0.2s ease;
	min-width: 60px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	font-family: inherit;
	outline: none;
}

.rating-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.rating-btn.selected {
	background: #fff3cd;
	border-color: #ffc107;
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(255, 193, 7, 0.3);
}

.rating-btn i {
	font-size: 20px;
	margin-bottom: 4px;
}

.rating-btn small {
	font-size: 10px;
	font-weight: 500;
	text-align: center;
	line-height: 1.2;
	white-space: pre-line;
	color: #495057;
}

.rating-btn:disabled {
	opacity: 0.5;
	cursor: not-allowed !important;
	transform: none !important;
}

.rating-btn:disabled:hover {
	transform: none !important;
	box-shadow: none !important;
}

/* 피드백 섹션 */
#feedback-section textarea {
	width: 100%;
	min-height: 60px;
	padding: 8px;
	border: 1px solid #ddd;
	border-radius: 4px;
	resize: vertical;
	font-family: inherit;
	font-size: 14px;
	transition: border-color 0.2s ease;
}

#feedback-section textarea:focus {
	outline: none;
	border-color: #007bff;
	box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.1);
}

#feedback-section button {
	background: #007bff;
	color: white;
	border: none;
	padding: 8px 16px;
	border-radius: 4px;
	cursor: pointer;
	font-size: 14px;
	font-family: inherit;
	transition: background-color 0.2s ease;
}

#feedback-section button:hover:not(:disabled) {
	background: #0056b3;
}

#feedback-section button:disabled {
	opacity: 0.5;
	cursor: not-allowed !important;
}

/* 성공 메시지 */
.alert {
	padding: 12px 16px;
	margin-bottom: 1rem;
	border: 1px solid transparent;
	border-radius: 4px;
	font-size: 14px;
}

.alert-success {
	color: #155724;
	background-color: #d4edda;
	border-color: #c3e6cb;
	margin-top:10px;
}

/* 모바일 반응형 */
@media (max-width: 576px) {
	.satisfaction-survey-message {
		padding: 16px;
		margin: 8px 0;
	}
	
	.satisfaction-rating-buttons {
		gap: 6px;
	}
	
	.rating-btn {
		min-width: 50px;
		padding: 10px 6px;
	}
	
	.rating-btn i {
		font-size: 18px;
	}
	
	.rating-btn small {
		font-size: 9px;
	}
	
	.survey-header h4 {
		font-size: 14px;
	}
	
	.survey-header p {
		font-size: 13px;
	}
}