/*
 * The CookieYes opt-out bar, compacted, and the Intercom launcher kept clear of it. The owner's
 * choice "B+", 2026-11-27: the link moves into the text, the spacing tightens, and from 768 px up
 * "Powered by CookieYes" sits in the bar's bottom right corner instead of a line of its own; the
 * title stays. Loaded with the banner by ConsentBanner; consent.js makes the link and measures
 * the bar.
 *
 * Scoped to .cky-banner-bottom, the opt-out bar. The opt-in bar (.cky-classic-bottom) keeps
 * sidetrade.com's layout untouched.
 */

/* The separate "Do Not Sell" link goes only when the text itself carries the link. */
.cky-banner-bottom:has([data-ezy-dns-link], .cky-notice-des a[onclick*="revisitCkyConsent"]) .cky-notice-btn-wrapper {
	display: none !important;
}

.cky-banner-bottom .cky-notice-des a {
	text-decoration: underline;
	text-underline-offset: 2px;
}

/* 154 px to 122 px at 1339 px wide, measured 2026-11-27: 48 px of padding becomes 24. */
.cky-banner-bottom .cky-notice-content-wrapper {
	padding-top: 14px !important;
	padding-bottom: 4px !important;
}

.cky-banner-bottom .cky-title {
	margin-bottom: 4px !important;
}

.cky-banner-bottom .cky-consent-bar > div:has(> [data-cky-tag="powered-by"]) {
	padding-bottom: 6px !important;
}

/*
 * From 768 px up, "Powered by" moves into the corner beside the end of the text: 122 px to 102 px
 * at 1339 px, 98 to 78 at 1905, measured 2026-11-27. The text keeps 190 px clear on its right so
 * the two never meet. A phone has no room beside the text and keeps the line of its own.
 */
@media (min-width: 768px) {
	.cky-banner-bottom .cky-consent-bar {
		position: relative;
	}

	.cky-banner-bottom .cky-notice-content-wrapper {
		padding-right: 190px !important;
		padding-bottom: 10px !important;
	}

	.cky-banner-bottom .cky-consent-bar > div:has(> [data-cky-tag="powered-by"]) {
		position: absolute;
		right: 0;
		bottom: 0;
		padding: 0 24px 10px 0 !important;
	}
}

/* While a bar is open, the Intercom launcher sits above it instead of over "Powered by". */
html.ezy-cky-bar-open .intercom-lightweight-app-launcher,
html.ezy-cky-bar-open .intercom-launcher-frame {
	bottom: calc(var(--ezy-cky-bar, 0px) + 20px) !important;
	transition: bottom 0.2s ease;
}
