.demo-video-widget {
	position: fixed;
	bottom: 30px;
	z-index: 99999;
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
}

.demo-video-widget.demo-video-right {
	right: 30px;
	align-items: flex-end;
}

.demo-video-widget.demo-video-left {
	left: 30px;
	align-items: flex-start;
}

/* Toggle Button (Minimized) */
.demo-video-toggle {
	width: 60px;
	height: 60px;
	background-color: #2271b1;
	/* WP Blue, but slightly darker/richer */
	color: #fff;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
	transition: transform 0.2s ease, background-color 0.2s;
}

.demo-video-toggle:hover {
	transform: scale(1.05);
	background-color: #135e96;
}

.demo-video-toggle .dashicons {
	font-size: 32px;
	width: 32px;
	height: 32px;
}

/* Main Content Container */
.demo-video-content {
	width: 420px;
	max-width: 90vw;
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
	/* Softer, larger shadow */
	overflow: hidden;
	border: 1px solid rgba(0, 0, 0, 0.05);
	/* Subtle border */
	transition: width 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
	/* Smooth ease */
	display: flex;
	flex-direction: column;
}

/* Large Mode */
.demo-video-widget.is-large .demo-video-content {
	width: 840px;
	max-width: 95vw;
}

/* Header */
.demo-video-header {
	background: #fff;
	padding: 12px 20px;
	display: flex;
	justify-content: flex-end;
	align-items: center;
	border-bottom: 1px solid #f0f0f1;
	min-height: 44px;
}

.demo-video-actions {
	display: flex;
	gap: 15px;
}

.demo-video-actions span {
	cursor: pointer;
	color: #646970;
	transition: color 0.2s;
	display: flex;
	/* Fix alignment */
	align-items: center;
}

.demo-video-actions span:hover {
	color: #2271b1;
}

.demo-video-actions .dashicons {
	font-size: 20px;
	width: 20px;
	height: 20px;
}

/* Video Body */
.demo-video-body {
	padding: 0;
	background: #000;
	position: relative;
	padding-bottom: 56.25%;
	/* 16:9 */
	height: 0;
	overflow: hidden;
}

.demo-video-body iframe,
.demo-video-body object,
.demo-video-body embed {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}

/* Footer */
.demo-video-footer {
	padding: 24px;
	background: #fff;
}

.demo-video-footer h4 {
	margin: 0 0 12px 0;
	font-size: 18px;
	font-weight: 600;
	color: #1d2327;
	line-height: 1.3;
}

.demo-video-helper-text {
	font-size: 15px;
	color: #50575e;
	line-height: 1.6;
}

.demo-video-helper-text p {
	margin: 0 0 12px 0;
}

.demo-video-helper-text p:last-child {
	margin-bottom: 0;
}

/* Feedback Section */
.demo-video-feedback {
	margin-top: 24px;
	padding-top: 20px;
	border-top: 1px solid #f0f0f1;
}

.feedback-title {
	font-weight: 600;
	margin-bottom: 12px;
	font-size: 14px;
	color: #1d2327;
}

.feedback-emojis {
	display: flex;
	gap: 12px;
	margin-bottom: 16px;
}

.feedback-btn {
	background: #f6f7f7;
	border: 1px solid transparent;
	border-radius: 8px;
	/* Softer square */
	width: 48px;
	height: 48px;
	font-size: 24px;
	cursor: pointer;
	transition: all 0.2s;
	display: flex;
	align-items: center;
	justify-content: center;
}

.feedback-btn:hover {
	background-color: #fff;
	border-color: #dcdcde;
	transform: translateY(-2px);
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.feedback-btn.selected {
	background-color: #e5f5fa;
	border-color: #2271b1;
	color: #2271b1;
}

.feedback-form textarea {
	width: 100%;
	margin-bottom: 12px;
	border: 1px solid #dcdcde;
	border-radius: 6px;
	padding: 12px;
	font-size: 14px;
	line-height: 1.5;
	box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
}

.feedback-form textarea:focus {
	border-color: #2271b1;
	box-shadow: 0 0 0 1px #2271b1;
	outline: none;
}

.feedback-submit {
	/* Inherits WP button styles but let's ensure it looks good */
	height: 36px !important;
	line-height: 34px !important;
	padding: 0 16px !important;
	font-size: 14px !important;
}

.feedback-message {
	margin-top: 12px;
	font-size: 14px;
	font-weight: 500;
	color: #00a32a;
	background: #edfaef;
	padding: 10px;
	border-radius: 6px;
	border: 1px solid #c3e6cb;
}

/* Responsive */
@media (max-width: 480px) {

	.demo-video-widget,
	.demo-video-widget.demo-video-right,
	.demo-video-widget.demo-video-left {
		right: 0;
		left: 0;
		bottom: 0;
		align-items: center;
	}

	.demo-video-content {
		width: 100%;
		max-width: 100%;
		border-radius: 12px 12px 0 0;
		border-bottom: none;
	}

	.demo-video-widget.is-large .demo-video-content {
		width: 100%;
	}
}