/**
 * Green Lion — Shoutout banners (Nov 2026). See inc/gl-shoutouts.php.
 *
 * Front end: brand / category / shop pages, between filter bar and grid.
 * Admin: WooCommerce › Shoutout Banners (live preview + editor layout).
 *
 * Plain CSS, no nesting. Brand tokens from gl-header.css with literal
 * fallbacks so the admin preview (no gl-header.css) renders identically.
 *
 *   1. Wrapper
 *   2. Banner
 *   3. Style variants
 *   4. Mobile (≤ 768px)
 *   5. Admin editor
 */

/* 1. Wrapper ------------------------------------------------------------ */

.shop-page-new .gl-shout-wrap {
	padding: 0;
	margin: 0 0 24px;
}

/* 2. Banner ------------------------------------------------------------- */

.gl-shout {
	--shout-bg: linear-gradient(115deg, #00bf1f 0%, #009a19 100%);
	--shout-ink: #ffffff;
	--shout-sub: rgba(255, 255, 255, 0.88);
	--shout-chip-bg: rgba(255, 255, 255, 0.2);
	--shout-chip-ink: #ffffff;
	--shout-icon-bg: rgba(255, 255, 255, 0.18);
	--shout-icon-ink: #ffffff;
	--shout-cta-bg: #ffffff;
	--shout-cta-ink: #007a14;
	--shout-deco: rgba(255, 255, 255, 0.12);

	position: relative;
	isolation: isolate;
	display: flex;
	align-items: center;
	gap: 18px;
	box-sizing: border-box;
	width: 100%;
	min-height: 84px;
	padding: 18px 22px;
	margin: 0;
	border-radius: var(--gl-radius-card, 16px);
	background: var(--shout-bg);
	color: var(--shout-ink);
	box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.06), 0 6px 18px -10px rgba(0, 0, 0, 0.25);
	overflow: hidden;
	font-family: var(--gl-font, inherit);
	text-align: left;
}

/* Soft decorative rings, right-hand side. */
.gl-shout::after {
	content: "";
	position: absolute;
	z-index: -1;
	inset: 0;
	pointer-events: none;
	background:
		radial-gradient(circle at 100% 0%, var(--shout-deco) 0 110px, transparent 111px),
		radial-gradient(circle at 88% 135%, var(--shout-deco) 0 80px, transparent 81px);
}

.gl-shout .gl-shout__icon {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	border-radius: 9999px;
	background: var(--shout-icon-bg);
	color: var(--shout-icon-ink);
}

.gl-shout .gl-shout__icon svg {
	display: block;
	width: 22px;
	height: 22px;
}

.gl-shout .gl-shout__body {
	flex: 1 1 auto;
	min-width: 0;
}

.gl-shout .gl-shout__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin: 0 0 6px;
}

.gl-shout .gl-shout__eyebrow,
.gl-shout .gl-shout__ends {
	display: inline-flex;
	align-items: center;
	height: 22px;
	padding: 0 10px;
	border-radius: 9999px;
	font-size: 11px;
	line-height: 1;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	white-space: nowrap;
}

.gl-shout .gl-shout__eyebrow {
	background: var(--shout-chip-bg);
	color: var(--shout-chip-ink);
}

.gl-shout .gl-shout__ends {
	padding: 0 2px;
	color: var(--shout-sub);
	letter-spacing: 0.04em;
}

.gl-shout .gl-shout__title {
	margin: 0;
	font-size: 20px;
	line-height: 1.25;
	font-weight: 700;
	letter-spacing: -0.01em;
	color: var(--shout-ink);
	overflow-wrap: anywhere;
}

.gl-shout .gl-shout__text {
	margin: 3px 0 0;
	font-size: 14px;
	line-height: 1.45;
	font-weight: 400;
	color: var(--shout-sub);
	overflow-wrap: anywhere;
}

.gl-shout .gl-shout__title strong,
.gl-shout .gl-shout__text strong {
	font-weight: 800;
	color: inherit;
}

.gl-shout a.gl-shout__cta,
.gl-shout a.gl-shout__cta:visited,
.gl-shout a.gl-shout__cta:hover,
.gl-shout a.gl-shout__cta:focus {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	height: 44px;
	padding: 0 22px;
	border-radius: 9999px;
	background: var(--shout-cta-bg);
	color: var(--shout-cta-ink);
	font-size: 14px;
	line-height: 1;
	font-weight: 700;
	text-decoration: none;
	white-space: nowrap;
	box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.12);
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.gl-shout a.gl-shout__cta svg {
	display: block;
	transition: transform 0.15s ease;
}

.gl-shout a.gl-shout__cta:hover {
	transform: translateY(-1px);
	box-shadow: 0 4px 10px -4px rgba(0, 0, 0, 0.35);
}

.gl-shout a.gl-shout__cta:hover svg {
	transform: translateX(3px);
}

.gl-shout a.gl-shout__cta:focus-visible {
	outline: 2px solid var(--shout-ink);
	outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
	.gl-shout a.gl-shout__cta,
	.gl-shout a.gl-shout__cta svg {
		transition: none;
	}
}

/* 3. Style variants ----------------------------------------------------- */

.gl-shout--dark {
	--shout-bg: linear-gradient(115deg, #111827 0%, #1f2937 100%);
	--shout-sub: rgba(255, 255, 255, 0.75);
	--shout-chip-bg: #00bf1f;
	--shout-icon-bg: rgba(0, 191, 31, 0.18);
	--shout-icon-ink: #2ee04a;
	--shout-cta-bg: #00bf1f;
	--shout-cta-ink: #ffffff;
	--shout-deco: rgba(0, 191, 31, 0.1);
}

.gl-shout--soft {
	--shout-bg: #e6f7eb;
	--shout-ink: #1f2937;
	--shout-sub: #374151;
	--shout-chip-bg: #00bf1f;
	--shout-chip-ink: #ffffff;
	--shout-icon-bg: #00bf1f;
	--shout-icon-ink: #ffffff;
	--shout-cta-bg: #00bf1f;
	--shout-cta-ink: #ffffff;
	--shout-deco: rgba(0, 191, 31, 0.08);
	box-shadow: inset 0 0 0 1px rgba(0, 191, 31, 0.25);
}

.gl-shout--hot {
	--shout-bg: linear-gradient(115deg, #ff7a00 0%, #ee5400 100%);
	--shout-cta-ink: #c24400;
}

.gl-shout--new {
	--shout-bg: linear-gradient(115deg, #ddfe00 0%, #c6ea00 100%);
	--shout-ink: #111111;
	--shout-sub: rgba(17, 17, 17, 0.78);
	--shout-chip-bg: #111111;
	--shout-chip-ink: #ddfe00;
	--shout-icon-bg: rgba(17, 17, 17, 0.08);
	--shout-icon-ink: #111111;
	--shout-cta-bg: #111111;
	--shout-cta-ink: #ddfe00;
	--shout-deco: rgba(17, 17, 17, 0.05);
}

/* 4. Mobile ------------------------------------------------------------- */

@media screen and (max-width: 768px) {
	.shop-page-new .gl-shout-wrap {
		margin-bottom: 20px;
	}

	.gl-shout {
		flex-wrap: wrap;
		align-items: flex-start;
		gap: 12px 14px;
		min-height: 0;
		padding: 16px;
		border-radius: 12px;
	}

	.gl-shout .gl-shout__icon {
		width: 38px;
		height: 38px;
	}

	.gl-shout .gl-shout__icon svg {
		width: 19px;
		height: 19px;
	}

	.gl-shout .gl-shout__body {
		flex-basis: calc(100% - 52px);
	}

	.gl-shout--no-icon .gl-shout__body {
		flex-basis: 100%;
	}

	.gl-shout .gl-shout__title {
		font-size: 16px;
	}

	.gl-shout .gl-shout__text {
		font-size: 13px;
	}

	.gl-shout a.gl-shout__cta,
	.gl-shout a.gl-shout__cta:visited,
	.gl-shout a.gl-shout__cta:hover,
	.gl-shout a.gl-shout__cta:focus {
		width: 100%;
		height: 42px;
	}

	.gl-shout::after {
		background: radial-gradient(circle at 100% 0%, var(--shout-deco) 0 70px, transparent 71px);
	}
}

/* 5. Admin editor ------------------------------------------------------- */

.gl-sa .gl-sa-intro {
	max-width: 760px;
	color: #50575e;
}

.gl-sa .gl-sa-list {
	display: grid;
	gap: 12px;
	margin: 16px 0;
}

.gl-sa .gl-sa-item {
	background: #fff;
	border: 1px solid #dcdcde;
	border-radius: 10px;
}

.gl-sa .gl-sa-item > summary {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 16px;
	cursor: pointer;
	list-style: none;
}

.gl-sa .gl-sa-item > summary::-webkit-details-marker {
	display: none;
}

.gl-sa .gl-sa-item[open] > summary {
	border-bottom: 1px solid #f0f0f1;
}

.gl-sa .gl-sa-sum {
	flex: 1 1 auto;
	min-width: 0;
	font-weight: 600;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.gl-sa .gl-sa-where {
	color: #646970;
	font-size: 12px;
	white-space: nowrap;
}

.gl-sa .gl-sa-actions {
	display: flex;
	gap: 10px;
}

.gl-sa .gl-sa-del {
	color: #b32d2e;
}

.gl-sa .gl-sa-status {
	display: inline-block;
	min-width: 68px;
	padding: 3px 8px;
	border-radius: 9999px;
	font-size: 11px;
	font-weight: 700;
	text-align: center;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	background: #f0f0f1;
	color: #50575e;
}

.gl-sa .gl-sa-status--live { background: #e6f7eb; color: #007a14; }
.gl-sa .gl-sa-status--scheduled { background: #fcf3e6; color: #996800; }
.gl-sa .gl-sa-status--expired { background: #fcf0f1; color: #b32d2e; }

.gl-sa .gl-sa-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 24px;
	padding: 16px;
}

.gl-sa .gl-sa-fields h4 {
	margin: 18px 0 6px;
}

.gl-sa .gl-sa-row {
	margin: 0 0 10px;
}

.gl-sa .gl-sa-row > label:not(.gl-sa-check) {
	display: block;
	margin: 0 0 4px;
	font-weight: 600;
}

.gl-sa .gl-sa-check {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-right: 16px;
}

.gl-sa .gl-sa-cols {
	display: flex;
	flex-wrap: wrap;
	gap: 0 12px;
}

.gl-sa .gl-sa-row--wide {
	flex: 1 1 260px;
}

.gl-sa .gl-sa-multi {
	width: 100%;
	min-height: 90px;
}

.gl-sa .gl-sa-preview {
	position: sticky;
	top: 46px;
	align-self: start;
}

.gl-sa .gl-sa-preview-label {
	margin: 0 0 8px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #646970;
}

.gl-sa .gl-sa-preview-box {
	padding: 16px;
	background: #f6f7f9;
	border-radius: 10px;
}

.gl-sa .gl-sa-hint {
	display: block;
	margin: 4px 0 0;
	color: #b32d2e;
	font-size: 12px;
}

.gl-sa .gl-sa-hint[hidden] {
	display: none;
}

.gl-sa .gl-sa-bar {
	display: flex;
	gap: 8px;
}

@media screen and (max-width: 1100px) {
	.gl-sa .gl-sa-grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.gl-sa .gl-sa-preview {
		position: static;
	}
}
