/* W88 Live Chat Assistant - Frontend Styles - Version 1.5.7 */
.w88-lca-wrapper,
.w88-lca-wrapper *,
.w88-lca-wrapper *::before,
.w88-lca-wrapper *::after,
.w88-lca-panel,
.w88-lca-panel *,
.w88-lca-panel *::before,
.w88-lca-panel *::after {
	box-sizing: border-box;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.w88-lca-wrapper {
	position: fixed;
	right: 24px;
	top: 58%;
	transform: translateY(-50%);
	z-index: 99999;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	user-select: none;
}

.w88-lca-toggle-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	height: 52px;
	padding: 0 20px;
	border: none;
	border-radius: 26px;
	background: #5C68E2;
	color: #ffffff;
	cursor: pointer;
	font-size: 14px;
	font-weight: 600;
	line-height: 1;
	white-space: nowrap;
	box-shadow: 0 4px 16px rgba(92, 104, 226, 0.45);
	opacity: 0.75;
	transition: opacity 0.2s ease, background-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.w88-lca-toggle-btn:hover,
.w88-lca-toggle-btn:focus-visible {
	opacity: 1;
	background: #4a56d2;
	box-shadow: 0 6px 20px rgba(92, 104, 226, 0.55);
	outline: none;
}

.w88-lca-toggle-btn:focus-visible {
	outline: 3px solid rgba(92, 104, 226, 0.5);
	outline-offset: 3px;
}

.w88-lca-toggle-btn:active {
	transform: translateY(1px);
}

.w88-lca-wrapper.w88-lca-is-open .w88-lca-toggle-btn {
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
}

.w88-lca-panel {
	position: fixed;
	right: 90px;
	top: 50%;
	transform: translateY(-50%);
	width: 380px;
	max-height: min(560px, 80vh);
	background: #ffffff;
	border-radius: 14px;
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.14), 0 2px 8px rgba(0, 0, 0, 0.07);
	display: none;
	flex-direction: column;
	overflow: hidden;
	z-index: 99998;
	transition: opacity 0.25s ease;
}

.w88-lca-panel.w88-lca-scrolling {
	opacity: 0.78;
}

.w88-lca-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px 20px;
	background: #5C68E2;
	color: #ffffff;
	flex-shrink: 0;
}

.w88-lca-header-title {
	font-size: 15px;
	font-weight: 700;
	line-height: 1.3;
}

.w88-lca-close-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	padding: 0;
	border: none;
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.15);
	color: #ffffff;
	cursor: pointer;
	transition: background-color 0.15s ease, transform 0.2s ease;
}

.w88-lca-close-btn:hover {
	background: rgba(255, 255, 255, 0.3);
	transform: rotate(90deg) scale(1.08);
}

.w88-lca-close-btn:focus-visible {
	outline: 2px solid rgba(255, 255, 255, 0.7);
	outline-offset: 2px;
}

.w88-lca-body {
	flex: 1 1 auto;
	overflow-y: auto;
	padding: 18px;
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.w88-lca-top-tools {
	display: none;
	justify-content: space-between;
	align-items: center;
	gap: 10px;
	min-height: 38px;
}

.w88-lca-search-context {
	flex: 1 1 auto;
	min-width: 0;
	padding: 8px 10px;
	border: 1px solid #d7dafc;
	border-radius: 999px;
	background: #f5f6ff;
	color: #4d57cf;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.2;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.w88-lca-icon-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border: 1px solid #d7dafc;
	border-radius: 10px;
	background: #eef1ff;
	color: #5C68E2;
	cursor: pointer;
	transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.w88-lca-icon-btn:hover,
.w88-lca-icon-btn:focus-visible {
	background: #e4e8ff;
	border-color: #bcc4ff;
	outline: none;
}

.w88-lca-icon-btn:active {
	transform: translateY(1px);
}

.w88-lca-welcome-msg,
.w88-lca-flow-text,
.w88-lca-contact-row {
	margin: 0;
	font-size: 14px;
	line-height: 1.55;
	color: #333333;
}


.w88-lca-step-nav {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	margin: -2px 0 2px;
}

.w88-lca-step-back {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 5px;
	width: auto;
	min-height: 30px;
	padding: 5px 10px;
	border: 1px solid #d7dafc;
	border-radius: 999px;
	background: #f5f6ff;
	color: #4d57cf;
	cursor: pointer;
	font-size: 13px;
	font-weight: 600;
	line-height: 1;
	transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.w88-lca-step-back:hover,
.w88-lca-step-back:focus-visible {
	background: #eef1ff;
	border-color: #bfc6ff;
	outline: none;
}

.w88-lca-step-back:active {
	transform: translateY(1px);
}

.w88-lca-step-back svg {
	width: 15px;
	height: 15px;
	flex-shrink: 0;
}

.w88-lca-flow-heading {
	margin: 0 0 2px;
	font-size: 15px;
	font-weight: 700;
	color: #161616;
}

.w88-lca-reference-link {
	margin-top: -6px;	
}

.w88-lca-reference-link a {
	color: #5C68E2;
	font-weight: 700;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.w88-lca-actions {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 8px;
}

.w88-lca-action-btn,
.w88-lca-option-btn,
.w88-lca-back-btn,
.w88-lca-human-btn,
.w88-lca-prev-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	min-height: 44px;
	padding: 11px 14px;
	border-radius: 10px;
	cursor: pointer;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.3;
	text-align: center;
	transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.w88-lca-action-btn,
.w88-lca-option-btn,
.w88-lca-back-btn,
.w88-lca-human-btn {
	background: #ffffff;
	color: #5C68E2;
	border: 2px solid #5C68E2;
}

.w88-lca-action-btn:hover,
.w88-lca-option-btn:hover,
.w88-lca-back-btn:hover,
.w88-lca-human-btn:hover,
.w88-lca-action-btn:focus-visible,
.w88-lca-option-btn:focus-visible,
.w88-lca-back-btn:focus-visible,
.w88-lca-human-btn:focus-visible {
	background: #eef1ff;
	outline: none;
}

.w88-lca-action-btn:active,
.w88-lca-option-btn:active,
.w88-lca-back-btn:active,
.w88-lca-human-btn:active,
.w88-lca-prev-btn:active,
.w88-lca-keyword-submit:active {
	transform: translateY(1px);
}

.w88-lca-prev-btn {
	justify-content: flex-start;
	background: #f4f5ff;
	color: #4d57cf;
	border: 1px solid #cfd4ff;
}

.w88-lca-prev-btn svg {
	flex-shrink: 0;
}

.w88-lca-option-list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 8px;
}

.w88-lca-keyword-form {
	display: flex;
	gap: 8px;
	width: 100%;
}

.w88-lca-keyword-input {
	flex: 1 1 auto;
	min-width: 0;
	height: 42px;
	padding: 0 12px;
	border: 1px solid #d7dafc;
	border-radius: 8px;
	background: #ffffff;
	color: #333333;
	font-size: 13px;
}

.w88-lca-keyword-input:focus {
	outline: 3px solid rgba(92, 104, 226, 0.2);
	border-color: #5C68E2;
}

.w88-lca-keyword-submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 42px;
	width: 42px;
	height: 42px;
	padding: 0;
	border: none;
	border-radius: 8px;
	background: #5C68E2;
	color: #ffffff;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
}

.w88-lca-keyword-submit:hover,
.w88-lca-keyword-submit:focus-visible {
	background: #4a56d2;
	outline: none;
}

.w88-lca-keyword-submit-icon {
	display: block;
	width: 18px;
	height: 18px;
	color: currentColor;
	flex-shrink: 0;
}

.w88-lca-response {
	display: none;
}

.w88-lca-button-row {
	display: grid;
	grid-template-columns: 1fr;
	gap: 8px;
	margin-top: 12px;
}

.w88-lca-contact-row a {
	color: #4d57cf;
	text-decoration: none;
	word-break: break-word;
}

.w88-lca-contact-row a:hover,
.w88-lca-contact-row a:focus-visible {
	text-decoration: underline;
	outline: none;
}

.w88-lca-lead-form {
	display: grid;
	gap: 10px;
	padding: 12px;
	border: 1px solid #d7dafc;
	border-radius: 12px;
	background: #f7f8ff;
}

.w88-lca-lead-field {
	display: grid;
	gap: 5px;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.3;
	color: #333333;
}

.w88-lca-lead-field input,
.w88-lca-lead-field select,
.w88-lca-lead-field textarea {
	width: 100%;
	min-width: 0;
	border: 1px solid #cfd4ff;
	border-radius: 8px;
	background: #ffffff;
	color: #333333;
	font-size: 13px;
	font-weight: 400;
	line-height: 1.4;
}

.w88-lca-lead-field input,
.w88-lca-lead-field select {
	height: 38px;
	padding: 0 10px;
}

.w88-lca-lead-field textarea {
	min-height: 92px;
	padding: 9px 10px;
	resize: vertical;
}

.w88-lca-lead-field input:focus,
.w88-lca-lead-field select:focus,
.w88-lca-lead-field textarea:focus {
	outline: 3px solid rgba(92, 104, 226, 0.2);
	border-color: #5C68E2;
}

.w88-lca-lead-note {
	margin: 0;
	font-size: 12px;
	line-height: 1.45;
	color: #666666;
}

.w88-lca-lead-submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 42px;
	padding: 10px 14px;
	border: none;
	border-radius: 10px;
	background: #5C68E2;
	color: #ffffff;
	cursor: pointer;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.3;
	transition: background-color 0.15s ease, transform 0.15s ease;
}

.w88-lca-lead-submit:hover,
.w88-lca-lead-submit:focus-visible {
	background: #4a56d2;
	outline: none;
}

.w88-lca-lead-submit:active {
	transform: translateY(1px);
}

.w88-lca-footer {
	padding: 12px 18px 16px;
	border-top: 1px solid #eceef5;
	background: #fafbff;
	flex-shrink: 0;
}

.w88-lca-privacy-notice {
	margin: 0;
	font-size: 12px;
	line-height: 1.45;
	color: #666666;
}

.w88-lca-noscript {
	position: fixed;
	right: 24px;
	bottom: 92px;
	width: 320px;
	padding: 14px 16px;
	border-radius: 12px;
	background: #ffffff;
	box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
	font-size: 14px;
	line-height: 1.5;
	color: #333333;
}

.w88-lca-noscript a {
	color: #4d57cf;
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

@media screen and (max-width: 480px) {
	.w88-lca-wrapper {
		right: 16px;
		bottom: 16px;
		top: auto;
		transform: none;
	}

	.w88-lca-panel {
		right: 12px !important;
		left: 12px;
		top: auto !important;
		bottom: 82px;
		width: auto;
		max-height: calc(100vh - 108px) !important;
	}
}

@media screen and (max-width: 360px) {
	.w88-lca-actions {
		grid-template-columns: 1fr;
	}

	.w88-lca-keyword-form {
		flex-direction: column;
	}

	.w88-lca-keyword-submit {
		width: 100%;
		flex-basis: 42px;
	}
}


/* v1.2.5: legacy prev button fallback. The active Back control is now .w88-lca-step-back at the top. */
.w88-lca-prev-btn {
	width: auto;
	min-height: 30px;
	padding: 5px 10px;
	border: 1px solid #d7dafc;
	border-radius: 999px;
	background: #f5f6ff;
	color: #4d57cf;
	font-size: 13px;
	font-weight: 600;
}


.w88-lca-option-list .w88-lca-option-btn {
	min-height: 48px;
	padding-left: 10px;
	padding-right: 10px;
}


.w88-lca-summary {
	display: grid;
	gap: 4px;
	padding: 12px;
	border: 1px solid #d7dafc;
	border-radius: 10px;
	background: #f7f8ff;
}

.w88-lca-summary p {
	margin: 0;
	font-size: 13px;
	line-height: 1.45;
	color: #333333;
}

.w88-lca-search-icon {
	display: block;
	width: 18px;
	height: 18px;
	color: currentColor;
	flex-shrink: 0;
}

.w88-lca-lead-field input[type="file"] {
	height: auto;
	padding: 8px 10px;
	line-height: 1.3;
}
