/* カスタムスタイル */
.custom-frame {
	z-index: 10;
}

.custom-chat-window {
	top: auto !important;
	left: auto !important;
	bottom: 20px !important;
	right: 20px !important;
	cursor: auto !important;
	z-index: 9999 !important;
}

.custom-chat-window>div {
	border-radius: 10px 10px 0 0;
	max-width: 100%;
	max-height: calc(100vh - 60px);
}

.custom-wakeup-button {
	z-index: 999;
	border-radius: 50%;
	aspect-ratio: 1 / 1;
	width: 70px;
	height: auto;
	text-align: center;
	vertical-align: middle;
	position: fixed;
	color: #fff;
	background: url("../../App_Themes/Images/icon_white.svg") no-repeat center center / 45px auto #005bac;
	cursor: pointer;
}

.custom-wakeup-button.is-large {
	z-index: 999;
	border-radius: 12px;
	aspect-ratio: auto;
	padding: 15px 18px;
	box-shadow: 0px 3px 6px 0px rgba(0, 0, 0, 0.16);
	width: auto !important;
	height: auto !important;
	line-height: 1.3 !important;
	background: url("../../App_Themes/Images/icon_white.svg") no-repeat center left 18px / 37px auto #005bac;
}

.custom-wakeup-button.is-hide {
	display: none;
}

@media (hover: hover) {
	.custom-wakeup-button:hover {
		background-color: #add8ff;
	}
}

.custom-wakeup-button-text {
	font-size: 18px;
	font-weight: bold;
	padding-left: 50px;
	text-align: left;
	margin: 0;
}

.custom-wakeup-button svg {
	display: none;
}

.custom-wakeup-close-button {
	z-index: 100000;
	position: fixed;
	bottom: 162px;
	right: 8px;
	width: 30px;
	height: 30px;
	border: none;
	background-color: #5c5c5c;
	border-radius: 50%;
}

.custom-wakeup-close-button:hover {
	background-color: #9c9b9b;
}

.custom-wakeup-close-button::before, .custom-wakeup-close-button::after {
	content: "";
	position: absolute;
	width: 3px;
	height: 20px;
	border-radius: 10px;
	background-color: #fff;
	top: 50%;
	left: 50%;
}

.custom-wakeup-close-button::before {
	transform: translate(-50%, -50%) rotate(45deg);
}
.custom-wakeup-close-button::after {
	transform: translate(-50%, -50%) rotate(-45deg);
}

.custom-title-bar-text {
	font-weight: bold;
}

.custom-hide-button {
	display: block !important;
	top: -39px !important;
	left: auto !important;
	right: 15px !important;
	aspect-ratio: 1 / 1;
	width: 30px !important;
	height: auto !important;
	border: none !important;
	background-color: #fff !important;
	border-radius: 50% !important;
}

.custom-hide-button::before, .custom-hide-button::after {
	content: "";
	position: absolute;
	width: 3px;
	height: 20px;
	border-radius: 10px;
	background-color: #005bac;
	top: 50%;
	left: 50%;
}

.custom-hide-button::before {
	transform: translate(-50%, -50%) rotate(45deg);

}

.custom-hide-button::after {
	transform: translate(-50%, -50%) rotate(-45deg);
}

div:has(> .botui-app-container) {
	height: calc(100% - 72px) !important;
	overflow: visible !important;
}

.custom-button-area {
	position: relative;
	display: flex;
	justify-content: center;
	align-items: center;
	margin-top: 10px;
	gap: 0 5px;
	width: 290px;
}

.custom-button-yes, .custom-button-no {
	padding: 20px 0;
	width: calc(50% - 5px / 2);
	height: auto;
	border-radius: 12px;
	color: #fff;
	cursor: pointer;
	border: none;
	box-shadow: none;
}

.custom-button-yes {
	background-color: #005bac;
}

.custom-button-yes:hover {
	background-color: #add8ff;
}

.custom-button-no {
	background-color: #5a5858;
}

.custom-button-no:hover {
	background-color: #9c9b9b;
}

.chatbot-h {
	padding-top: 20px;
	font-size: 2.0rem;
	font-weight: bold;
}

.chatbot-bold {
	display: inline-block;
	padding-top: 5px;
	font-weight: bold;
	word-break: break-all;
}



/* スマホ */
@media screen and (max-width: 768px) {
	.botui-container {
		font-size: 14px !important;
	}

	.botui-message-content {
		padding: 12px;
		max-width: calc(100% - 70px);
	}

	.botui-messages-container {
		padding: 10px;
	}

	.botui-message .profil {
		width: 40px;
	}

	.botui-messages-container-ios .botui-message .profil img {
		transform: translate(-50%, 25%);
	}

	.chatux-btn-on {
		right: 20px !important;
	}

	.custom-chat-window {
		bottom: 4px !important;
		right: 2px !important;
		max-width: 100vw;
		max-height: 100vh;
	}

	.custom-chat-window>div {
		border-radius: 0;
	}

	.custom-chat-window-ios {
		max-width: 350px;
		max-height: 470px;
	}

	.custom-chat-window-ios>div {
		border-radius: 0;
		max-height: calc(100% - 50px);
	}

	.custom-hide-button {
		top: -37px !important;
		right: 10px !important;
		width: 25px !important;
	}

	.custom-title-bar-text {
		font-size: 16px !important;
	}

	.custom-wakeup-button.is-large {
		padding: 9px 9px !important;
	}

	.custom-wakeup-button-text {
		font-size: 14px !important;
	}

	.custom-wakeup-close-button {
		bottom: 142px !important;
	}
}
