/* ===========================================================================
   Easy-Commission - cookie consent notice.

   Reproduces what mod_ebstickycookienotice 1.7 rendered on the live Joomla 3
   site, from that module's own stored parameters (qnp2r_modules id 151):

       position      Bottom
       background    #2299d0        message   #ffffff, 16px
       button        "OK", #2299d0 text on #ffffff
       z-index       99999
       link          /privacy-policy.html, white

   The colours are set inline from the plugin's parameters, so they are not
   repeated here - this file is layout, type and behaviour only.
   ======================================================================== */

.ec-consent {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 99999;

	/* Hidden until the script decides it is needed. Using display rather than
	   opacity keeps it out of the tab order while hidden. */
	display: none;

	box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.15);
}

.ec-consent.is-visible {
	display: block;
}

.ec-consent__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 16px;

	max-width: 1140px;
	margin: 0 auto;
	padding: 14px 20px;
}

.ec-consent__text {
	flex: 1 1 420px;
	margin: 0;
	font-size: 16px;
	line-height: 24px;
	color: inherit;
}

.ec-consent__link,
.ec-consent__link:hover,
.ec-consent__link:focus {
	color: inherit;
	text-decoration: underline;
}

.ec-consent__actions {
	flex: 0 0 auto;
	display: flex;
	gap: 10px;
}

.ec-consent__btn {
	min-width: 92px;
	padding: 8px 18px;
	border: 1px solid transparent;
	border-radius: 3px;
	font-size: 15px;
	font-weight: 600;
	line-height: 20px;
	cursor: pointer;
	transition: opacity 0.2s ease-in-out;
}

.ec-consent__btn:hover,
.ec-consent__btn:focus {
	opacity: 0.85;
}

.ec-consent__btn:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

/* Decline is the quieter of the two, but it must stay legible: an outline
   button on the bar's own colour, not a greyed-out one. It only ever appears
   in gate mode. */
.ec-consent__btn--decline {
	background-color: transparent;
	border-color: currentColor;
	color: inherit;
}

@media (max-width: 575px) {
	.ec-consent__inner {
		padding: 12px 16px;
		gap: 12px;
	}

	.ec-consent__text {
		flex: 1 1 100%;
		font-size: 15px;
		line-height: 22px;
	}

	.ec-consent__actions {
		flex: 1 1 100%;
	}

	.ec-consent__btn {
		flex: 1 1 auto;
	}
}
