/**
 * Elementor styles for Cure Webinars.
 *
 * @package Cure_Webinars
 */

/* Chat Widget Styles */
.cure-webinar-chat-widget {
	width: 100%;
}

.cure-webinar-chat-container {
	display: flex;
	flex-direction: column;
	border: 1px solid #ddd;
	border-radius: 8px;
	overflow: hidden;
	background-color: #fff;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.cure-webinar-chat-messages {
	flex: 1;
	overflow-y: auto;
	padding: 15px;
	min-height: 300px;
	max-height: 600px;
	background-color: #f9f9f9;
}

.cure-chat-message {
	margin-bottom: 15px;
	padding: 10px;
	background-color: #fff;
	border-radius: 8px;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.cure-chat-message-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 5px;
}

.cure-chat-user-name {
	font-weight: bold;
	color: #333;
	font-size: 14px;
}

.cure-chat-timestamp {
	font-size: 12px;
	color: #999;
}

.cure-chat-message-body {
	color: #555;
	line-height: 1.5;
	word-wrap: break-word;
}

.cure-webinar-chat-input {
	display: flex;
	padding: 15px;
	background-color: #fff;
	border-top: 1px solid #ddd;
}

.cure-chat-input-field {
	flex: 1;
	padding: 10px 15px;
	border: 1px solid #ddd;
	border-radius: 4px;
	font-size: 14px;
	margin-right: 10px;
}

.cure-chat-input-field:focus {
	outline: none;
	border-color: #0073aa;
}

.cure-chat-send-button {
	padding: 10px 20px;
	background-color: #0073aa;
	color: #fff;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	font-size: 14px;
	font-weight: 500;
	transition: background-color 0.3s;
}

.cure-chat-send-button:hover {
	background-color: #005a87;
}

.cure-chat-send-button:active {
	background-color: #004a6f;
}

.cure-chat-loading,
.cure-chat-error {
	padding: 20px;
	text-align: center;
	color: #666;
}

.cure-chat-error {
	color: #d63638;
}

.cure-webinar-chat-error {
	padding: 20px;
	background-color: #fff3cd;
	border: 1px solid #ffc107;
	border-radius: 4px;
	color: #856404;
	text-align: center;
}

/* Video Widget Styles */
.cure-webinar-video-widget {
	width: 100%;
}

.cure-webinar-video-container {
	position: relative;
	width: 100%;
	overflow: hidden;
}

.cure-webinar-video-container iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	border: none;
}

.cure-webinar-video-error {
	padding: 20px;
	background-color: #fff3cd;
	border: 1px solid #ffc107;
	border-radius: 4px;
	color: #856404;
	text-align: center;
}

/* Conditional Section Styles */
.cure-webinar-conditional-section {
	padding: 20px;
}

.cure-webinar-access-denied {
	padding: 20px;
	background-color: #fff3cd;
	border: 1px solid #ffc107;
	border-radius: 4px;
	color: #856404;
	text-align: center;
}

/* Webinar Info Widget Styles */
.cure-webinar-info-widget {
	width: 100%;
}

.cure-webinar-info-title {
	margin-top: 0;
	margin-bottom: 15px;
	color: #333;
}

.cure-webinar-info-meta {
	margin-bottom: 15px;
}

.cure-webinar-info-meta-item {
	margin-bottom: 8px;
	display: flex;
	align-items: baseline;
	gap: 8px;
}

.cure-webinar-info-label {
	font-weight: 600;
	color: #555;
}

.cure-webinar-info-value {
	color: #333;
}

.cure-webinar-status-draft {
	color: #999;
}

.cure-webinar-status-active {
	color: #28a745;
}

.cure-webinar-status-completed {
	color: #0073aa;
}

.cure-webinar-info-description {
	margin-top: 20px;
	padding-top: 15px;
	border-top: 1px solid #eee;
	line-height: 1.7;
	color: #444;
}

.cure-webinar-info-notice {
	padding: 15px;
	background-color: #f0f0f1;
	border-left: 4px solid #2271b1;
	color: #666;
}

/* Responsive Design */
@media (max-width: 768px) {
	.cure-webinar-chat-messages {
		min-height: 200px;
		max-height: 400px;
	}

	.cure-webinar-chat-input {
		flex-direction: column;
	}

	.cure-chat-input-field {
		margin-right: 0;
		margin-bottom: 10px;
	}

	.cure-chat-send-button {
		width: 100%;
	}

	.cure-webinar-info-meta-item {
		flex-direction: column;
		gap: 2px;
	}
}

