/* AnyBot iframe Container */
#anybot-container {
	display:none;

	position:absolute;
	top: 160px;
	bottom:30px;
	left:15px;
	right: 15px;
	z-index: 9998; /* Unter dem Tool-Overlay */

	width:auto;
	height:auto;
}
@media (min-width: 768px) {
	#anybot-container {
		position:absolute;
		top: 140px;
		bottom:auto;
		left:auto;
		right: 80px;
		width: 600px;
		height:65vh;
	}
}
@media (min-width: 992px) {
	#anybot-container {
		right: 340px;
	}
}

.anybot-open-button {
	display:block;
	text-align:center;
	cursor:pointer;
	user-select: none;
}
.anybot-open-button img {
	width:auto;
	height:auto;
	max-width:300px;
}
@media (min-width: 992px) {
	.anybot-open-button {
		position:absolute;
		right:320px;
		top:180px;

		display:inline-block;

		cursor:pointer;
		user-select: none;
	}

	.anybot-open-button img {
		width:auto;
		height:auto;
		max-width:400px;
	}
}

.anybot-close-button {
	position:absolute;
	top:-23px;
	right:-15px;
	display:inline-flex;
	justify-content:center;
	align-items:center;

	width:50px;
	height:50px;
	border-radius:50%;

	background-color:#007432;
	color:#FFFFFF;
	font-weight:bold;
	border:2px solid #FFFFFF;
	cursor:pointer;
	user-select: none;
}


#anybot-iframe {
	width: 100%;
	height: 100%;
	border: none;

	border: 2px solid #FFFFFF;
	border-radius: 10px;
	box-shadow: 0 4px 12px rgba(0,0,0,0.15);

	overflow: hidden;

}

/* Tool-Overlay (wird vom Parent verwaltet) */
.anybot-tool-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.5);
	z-index: 9999; /* Über dem AnyBot-iframe */
	display: none;
}

.anybot-tool-overlay.is-open {
	display: flex;
	align-items: center;
	justify-content: center;
	animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
	from { opacity: 0; }
	to { opacity: 1; }
}

.anybot-tool-modal {
	background: white;
	width: 90%;
	max-width: 800px;
	height: 90%;
	max-height: 800px;
	border-radius: 10px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	box-shadow: 0 10px 40px rgba(0,0,0,0.3);
	animation: slideUp 0.3s ease;
}
@media (max-width: 768px) {
	.anybot-tool-modal {
		width: 100%;
		height: 100%;
		max-width: 100%;
		max-height: 100%;
		border-radius: 0;
	}
}

@keyframes slideUp {
	from { 
		opacity: 0;
		transform: translateY(50px);
	}
	to { 
		opacity: 1;
		transform: translateY(0);
	}
}

.anybot-tool-header {
	background: #333;
	color: white;
	padding: 15px 20px;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.anybot-tool-header h3 {
	margin: 0;
	font-size: 18px;
}

.anybot-tool-close {
	background: transparent;
	border: none;
	color: white;
	font-size: 28px;
	cursor: pointer;
	padding: 0;
	width: 30px;
	height: 30px;
	line-height: 28px;
	text-align: center;
	border-radius: 50%;
	transition: background 0.2s;
}

.anybot-tool-close:hover {
	background: rgba(255,255,255,0.1);
}

.anybot-tool-content {
	flex: 1;
	overflow: hidden;
	position: relative;
}

.anybot-tool-content iframe {
	width: 100%;
	height: 100%;
	border: none;
}

.anybot-tool-loader {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	font-size: 16px;
	color: #666;
}
