/**
 * Top Bar Multisite — front-end stylesheet.
 *
 * Colors come from CSS variables set inline (from the admin color pickers),
 * with the fallbacks below matching the plugin defaults. Everything else —
 * fonts, spacing, sizing, hover behavior, responsive rules — lives here and
 * is safe to edit directly.
 */

:root {
	--tbm-bg-color: #663D1D;
	--tbm-text-color: #FFFFFF;
	--tbm-buynow-bg: #471E00;
	--tbm-buynow-text: #FFFFFF;
	--tbm-bundle-bg: #222222;
	--tbm-bundle-text: #FFFFFF;
}

.tbm-top-bar {
	background-color: var(--tbm-bg-color);
	color: var(--tbm-text-color);
	width: 100%;
	box-sizing: border-box;
	padding: 10px 16px;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 16px;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	font-size: 14px;
	line-height: 1.4;
	position: relative;
	z-index: 9999;
}

/* ---------- Announcement text ---------- */
.tbm-top-bar__text {
    margin: 0;
    text-align: center;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0;
}

.tbm-top-bar__text strong {
	font-weight: 700;
}

.tbm-top-bar__text code {
	background: rgba(255, 255, 255, 0.15);
	padding: 1px 6px;
	border-radius: 3px;
	font-size: 0.95em;
}

/* ---------- Buttons (shared) ---------- */
.tbm-top-bar__actions {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	justify-content: center;
}

.tbm-top-bar__btn {
    display: inline-block;
    padding: 8px 18px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    white-space: nowrap;
    border: none;
    cursor: pointer;
    transition: opacity 0.15s ease, transform 0.1s ease;
}

.tbm-top-bar__btn:hover,
.tbm-top-bar__btn:focus {
	opacity: 0.85;
	text-decoration: none;
}

.tbm-top-bar__btn:active {
	transform: scale(0.97);
}

/* ---------- Buy Now button — style independently here ---------- */
.tbm-top-bar__btn--buy-now {
	background-color: var(--tbm-buynow-bg);
	color: var(--tbm-buynow-text);
}

/* ---------- Buy Bundle button — style independently here ---------- */
.tbm-top-bar__btn--bundle {
	background-color: var(--tbm-bundle-bg);
	color: var(--tbm-bundle-text);
}

/* ---------- Responsive ---------- */
@media (max-width: 600px) {
	.tbm-top-bar {
		flex-direction: column;
		gap: 8px;
		padding: 10px;
	}

	.tbm-top-bar__text {
		font-size: 13px;
	}

	.tbm-top-bar__btn {
		padding: 7px 14px;
		font-size: 12px;
	}
}
