/* GROmagic Coupon Auto-Apply - the confirmation bar. */

.gmca-bar {
	box-sizing: border-box;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	width: 100%;
	padding: 11px 44px 11px 16px;
	background: var(--gmca-good-bg, #1f7a4d);
	color: var(--gmca-good-text, #fff);
	font-size: 15px;
	line-height: 1.4;
	text-align: center;
	position: relative;
	z-index: 100000;
	opacity: 0;
	transform: translateY(-100%);
	transition: opacity 0.25s ease, transform 0.25s ease;
}

.gmca-bar.is-bad {
	background: var(--gmca-bad-bg, #8a2b2b);
	color: var(--gmca-bad-text, #fff);
}

.gmca-bar.is-visible {
	opacity: 1;
	transform: none;
}

/* Pinned to the viewport instead of sitting in the page flow. */
.gmca-bar--fixed {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	width: 100%;
}

.gmca-bar__text {
	margin: 0;
	font-weight: 500;
}

.gmca-bar__close {
	position: absolute;
	top: 50%;
	right: 10px;
	transform: translateY(-50%);
	display: flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: inherit;
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
	opacity: 0.75;
}

.gmca-bar__close:hover,
.gmca-bar__close:focus-visible {
	opacity: 1;
	background: rgba(255, 255, 255, 0.18);
}

.gmca-bar__close:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

@media (max-width: 600px) {
	.gmca-bar {
		padding: 10px 40px 10px 14px;
		font-size: 14px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.gmca-bar {
		transition: none;
	}
}
