/**
 * Frontend Styles for Stella Announcement Bar
 */

.stella-ab-ribbon {
	width: 100%;
	padding: 12px 20px;
	text-align: center;
	z-index: 99999;
	box-sizing: border-box;
	display: flex;
	justify-content: center;
	align-items: center;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
	line-height: 1.4;
}

.stella-ab-pos-top {
	position: sticky;
	top: 0;
	left: 0;
}

.stella-ab-pos-top.stella-ab-fallback-top {
	position: fixed;
	width: 100%;
}

/* Admin Bar Adjustments */
.admin-bar .stella-ab-pos-top {
	top: 32px;
}

.admin-bar .stella-ab-pos-top.stella-ab-fallback-top {
	top: 32px;
}

@media screen and (max-width: 782px) {
	.admin-bar .stella-ab-pos-top {
		top: 46px;
	}

	.admin-bar .stella-ab-pos-top.stella-ab-fallback-top {
		top: 46px;
	}
}

/* Blocks should always be relative */
.stella-ab-is-block {
	position: relative;
	margin: 20px 0;
	border-radius: 8px;
}

/* Sticky versions when specifically needed or forced by settings */
.stella-ab-pos-bottom {
	position: fixed;
	bottom: 0;
	left: 0;
	width: 100%;
	z-index: 99999;
}

.stella-ab-pos-top.stella-ab-has-shadow {
	box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.stella-ab-pos-bottom.stella-ab-has-shadow {
	box-shadow: 0 -4px 6px -1px rgba(0, 0, 0, 0.1), 0 -2px 4px -1px rgba(0, 0, 0, 0.06);
}

.stella-ab-is-block.stella-ab-has-shadow {
	box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.stella-ab-close {
	background: none;
	border: none;
	color: inherit;
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
	padding: 0 5px;
	margin-left: 15px;
	opacity: 0.7;
	transition: opacity 0.2s;
}

.stella-ab-close:hover {
	opacity: 1;
}

.stella-ab-container {
	max-width: 1200px;
	margin: 0 auto;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 15px;
}

.stella-ab-message {
	font-weight: 500;
}

.stella-ab-btn {
	display: inline-block;
	padding: 6px 16px;
	border-radius: 4px;
	text-decoration: none;
	font-weight: 600;
	font-size: 14px;
	transition: opacity 0.2s ease;
}

.stella-ab-btn:hover {
	opacity: 0.9;
}

/* Responsive */
@media (max-width: 600px) {
	.stella-ab-ribbon {
		padding: 10px;
	}
	.stella-ab-container {
		flex-direction: column;
		gap: 8px;
		text-align: center;
	}
	.stella-ab-btn {
		width: 100%;
		box-sizing: border-box;
	}
}
