#thcc-wrapper {
	all: initial;
	font-family: system-ui, -apple-system, sans-serif;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

#thcc-wrapper * {
	box-sizing: border-box;
	font-family: inherit;
	line-height: normal; /* OPTIONAL SAFETY */
}

#thcc-wrapper input,
#thcc-wrapper textarea {
	all: unset;
	box-sizing: border-box;
	font-family: inherit;
	display: block;     /* FIX 3 */
	width: 100%;        /* FIX 3 */
}

#thcc-wrapper input::placeholder,
#thcc-wrapper textarea::placeholder {
	color: #999;
}

#thcc-wrapper button {
	all: unset;
	box-sizing: border-box;
	font-family: inherit;
	cursor: pointer;
}

#thcc-wrapper #thcc-chat-button{
position:fixed;
z-index:9999;
cursor:pointer;
transition:all .2s ease;
}

#thcc-wrapper #thcc-chat-button img{
display:block;
height:auto;
}

#thcc-wrapper img {
	max-width: 100%;
	height: auto;
	display: block;
}


/* Popup */

#thcc-wrapper #thcc-popup{
	display:none;
	position:fixed !important;
	background:#ffffff;
	border-radius:12px;
	box-shadow:0 15px 40px rgba(0,0,0,0.25);
	padding:18px;
	z-index:999999 !important;
	font-family:system-ui;
	max-width:95%;

	max-height:90vh;
	overflow-y:auto;
	scroll-behavior: smooth;
}

/* Header */

.thcc-header{
	display:flex;
	justify-content:space-between;
	align-items:center;
	margin-bottom:12px;
	border-bottom:1px solid #f1f1f1;
	padding-bottom:10px;
}

.thcc-header-title{
	font-size:18px;
	font-weight:600;
	margin-bottom:2px;
}

.thcc-header-sub{
	font-size:13px;
	color:#777;
	margin-top:2px;
}

#thcc-close{
font-size:18px;
cursor:pointer;
color:#444;
line-height:1;
}

/* Status */

.thcc-status{
display:flex;
align-items:flex-start;
font-size:13px;
margin-bottom:10px;
line-height:1.4;
}

.thcc-status-dot{
width:7px;
height:7px;
background:#28c76f;
border-radius:50%;
margin-right:6px;
margin-top:4px;
flex-shrink:0;
}

#thcc-wrapper #thcc-status small{
display:block;
font-size:11px;
color:#777;
margin-top:2px;
line-height:1.3;
}

/* Inputs */

#thcc-wrapper #thcc-popup input,
#thcc-wrapper #thcc-popup textarea{
width:100%;
padding:10px;
margin-bottom:8px;
border:1px solid #ddd;
border-radius:8px;
font-size:14px;
box-sizing:border-box;
transition:border .2s;
}

#thcc-wrapper #thcc-popup input:focus,
#thcc-wrapper #thcc-popup textarea:focus{
border-color:#25D366;
outline:none;
}

#thcc-wrapper #thcc-popup textarea{
min-height:90px;
resize:vertical;
}

/* Button */

#thcc-wrapper #thcc-popup button{
	width:100%;
	background:#25D366;
	color:#fff;
	border:none;
	padding:11px;
	font-size:15px;
	border-radius:8px;
	cursor:pointer;
	font-weight:600;
	transition:all .2s;
	text-align:center; /* ADD THIS */
	display:block;     /* ADD THIS */
}

#thcc-wrapper #thcc-popup button:hover{
background:#1ebe5d;
transform:translateY(-1px);
}

/* Footer */

.thcc-footer{
font-size:11px;
color:#777;
margin-top:8px;
text-align:center;
line-height:1.4;
}

/* Status Layout Fix */

#thcc-wrapper #thcc-status{
	display:flex;
	align-items:center;
	gap:6px;
	font-size:13px;
	margin:8px 0 12px;
}

#thcc-wrapper #thcc-status strong{
font-weight:600;
margin-right:4px;
}

.thcc-status-sub{
	font-size:12px;
	color:#777;
	margin-left:4px;
}

/* Mobile */

@media(max-width:768px){

#thcc-wrapper #thcc-popup{
	width:92%!important;
	left:4%!important;
	right:4%!important;
	bottom:95px!important;
}

#thcc-wrapper #thcc-chat-button img{
	width:var(--thcc-mobile-size,65px);
}

#thcc-wrapper #thcc-chat-button{
	bottom:var(--thcc-mobile-bottom,95px);
	right:var(--thcc-mobile-side,15px);
}

}

@media(max-width:480px){

	#thcc-wrapper #thcc-status{
		flex-wrap:wrap;
		align-items:flex-start;
	}

	.thcc-status-sub{
		width:100%;
		margin-left:13px;
		margin-top:2px;
	}
}