/* =========================================================
   ماژول: بنر اطلاعیه بالای سایت
   ========================================================= */

.mytheme-announcement-bar {
	position: relative;
	color: #fff;
	text-align: center;
	padding: 10px 44px;
	font-size: 13px;
	transition: opacity 0.25s ease;
}
.mytheme-announcement-bar.is-dismissed { opacity: 0; }

.mytheme-announcement-bar__inner {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 10px;
	max-width: var(--container-max);
	margin: 0 auto;
}

.mytheme-announcement-bar__text { line-height: 1.6; }

.mytheme-announcement-bar__image { max-height: 44px;
    display: inline-block;
    object-fit: cover; }
.mytheme-announcement-bar__image-link { display: inline-flex; }

.mytheme-announcement-bar__link {
	text-decoration: underline;
	font-weight: 600;
	flex-shrink: 0;
	white-space: nowrap;
}

.mytheme-announcement-bar__close {
	position: absolute;
	top: 50%;
	left: 12px;
	transform: translateY(-50%);
	background: rgba(255, 255, 255, 0.15);
	border: none;
	color: #fff;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	cursor: pointer;
	font-size: 16px;
	line-height: 1;
	transition: background-color var(--transition);
}
.mytheme-announcement-bar__close:hover { background: rgba(255, 255, 255, 0.3); }

@media (max-width: 600px) {
	.mytheme-announcement-bar__image {
    max-height: 32px;
    display: inline-block;
    object-fit: cover;
    min-height: 32px;
}
	.mytheme-announcement-bar__inner {
    min-height: 42px;
}
	.mytheme-announcement-bar { padding: 0px; font-size: 12px; }
}
