/* Override Elementor button styles */
.elementor-kit-13 .etw-notifications-toggle,
.etw-notifications-toggle {
	position: relative !important;
	background-color: transparent !important;
	background: none !important;
	border: none !important;
	cursor: pointer !important;
	font-size: 32px !important;
	padding: 0 !important;
	margin: 0 !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: auto !important;
	height: auto !important;
	line-height: 1 !important;
	min-width: 0 !important;
	min-height: 0 !important;
	box-shadow: none !important;
	border-radius: 0 !important;
	vertical-align: middle !important;
	color: inherit !important;
	font-weight: normal !important;
}

.etw-notifications-toggle:hover {
	transform: scale(1.15);
	background-color: transparent !important;
	background: none !important;
}

.etw-notifications-toggle:focus {
	outline: none !important;
	box-shadow: none !important;
}

.etw-bell-icon {
	display: inline-block !important;
	font-size: 32px !important;
	line-height: 1 !important;
	margin: 0 !important;
	padding: 0 !important;
	width: auto !important;
	height: auto !important;
}

.etw-announcements-widget {
	position: relative;
	display: inline-block;
	margin: 0 10px;
	z-index: 9990;
}

.etw-badge {
	position: absolute;
	top: 0px !important;
	right: -8px !important;
	background: #dc3545 !important;
	color: white !important;
	border-radius: 50% !important;
	width: 22px !important;
	height: 22px !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	font-size: 77px !important;
	font-weight: 700 !important;
	border: 2px solid white !important;
	box-shadow: 0 2px 5px rgba(0,0,0,0.2) !important;
	line-height: 1 !important;
	padding: 0 !important;
	min-width: 22px !important;
	min-height: 22px !important;
	margin: 0 !important;
}

.etw-announcements-panel {
	position: absolute;
	top: calc(100% + 5px);
	right: 0;
	background: white;
	border: 1px solid #ddd;
	border-radius: 8px;
	box-shadow: 0 4px 12px rgba(0,0,0,0.15);
	min-width: 380px;
	max-width: 450px;
	max-height: 500px;
	z-index: 9999;
	overflow: hidden;
	flex-direction: column;
}

.etw-announcements-header {
	padding: 15px;
	background: #f8f9fa;
	border-bottom: 1px solid #ddd;
}

.etw-announcements-header h3 {
	margin: 0;
	font-size: 16px;
	font-weight: 600;
	color: #333;
}

.etw-announcements-list {
	overflow-y: auto;
	flex: 1;
	max-height: 400px;
	padding: 0;
}

.etw-announcement-item {
	padding: 15px;
	border-bottom: 1px solid #eee;
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 10px;
	background: white;
}

.etw-announcement-item:hover {
	background: #f8f9fa;
}

.etw-announcement-item.unread {
	background: #f0f7ff;
	border-left: 3px solid #007bff;
	padding-left: 12px;
}

.etw-announcement-item.read {
	opacity: 0.7;
}

.etw-announcement-content {
	flex: 1;
	min-width: 0;
}

.etw-announcement-title {
	margin: 0 0 8px 0;
	font-size: 14px;
	font-weight: 600;
	color: #333;
}

.etw-announcement-description {
	margin: 0 0 8px 0;
	font-size: 13px;
	color: #666;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	line-height: 1.4;
}

.etw-announcement-date {
	font-size: 12px;
	color: #999;
	display: block;
}

.etw-announcement-actions {
	display: flex;
	gap: 8px;
	flex-shrink: 0;
}

.etw-announcement-actions form {
	margin: 0;
	padding: 0;
	display: inline;
}

.etw-mark-read,
.etw-close-announcement {
	background: none;
	border: none;
	cursor: pointer;
	font-size: 18px;
	padding: 4px;
	color: #666;
	min-width: 24px;
	height: 24px;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: color 0.2s ease;
}

.etw-mark-read:hover {
	color: #28a745;
}

.etw-close-announcement:hover {
	color: #dc3545;
}

.etw-announcements-empty {
	padding: 40px 20px;
	text-align: center;
	color: #999;
	font-size: 14px;
	min-height: 100px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.etw-announcements-empty p {
	margin: 0;
}

/* Scrollbar styling */
.etw-announcements-list::-webkit-scrollbar {
	width: 6px;
}

.etw-announcements-list::-webkit-scrollbar-track {
	background: #f1f1f1;
}

.etw-announcements-list::-webkit-scrollbar-thumb {
	background: #ccc;
	border-radius: 3px;
}

.etw-announcements-list::-webkit-scrollbar-thumb:hover {
	background: #999;
}

/* Mobile Responsive */
@media (max-width: 600px) {
    .etw-announcements-panel {
        position: fixed;
        top: 25% !important;
        right: 0 !important;
        left: 0 !important;
        bottom: auto !important;
        transform: translateY(-50%);
        min-width: auto;
        max-width: none;
        width: 90%;
        margin: 0 auto;
        border-radius: 8px;
    }

	.etw-announcements-list {
		max-height: calc(70vh - 100px);
	}
}