/* Component rules are scoped to the credit; parent-layout rules use the exact approved footer structure. */
.lp-hosting-credit {
	display: block;
	flex: 0 1 100%;
	min-width: 0;
	max-width: 100%;
	margin: 0.75rem 0 0;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--lp-hosting-credit-color, #cbd5e1);
	font-family: inherit;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.5;
	text-align: inherit;
	overflow-wrap: anywhere;
}

/* The existing Lucky Paws inner footer supplies its own row gap. */
.lp-inner-footer__inner > .lp-hosting-credit {
	margin-top: 0;
}

/*
 * On wider screens, use the open right side of both Lucky Paws footer styles.
 * The stylesheet is printed only when the credit itself is rendered, so these
 * parent-layout rules cannot affect the site while the plugin is disabled.
 */
@media (min-width: 769px) {
	.site-footer > .footer-bottom {
		display: grid;
		grid-template-columns: minmax(0, 1fr) fit-content(22rem);
		column-gap: 2rem;
		align-items: center;
	}

	.site-footer > .footer-bottom > p {
		grid-column: 1;
	}

	.site-footer > .footer-bottom > .lp-hosting-credit {
		grid-column: 2;
		grid-row: 1 / span 2;
		align-self: center;
		justify-self: end;
		max-inline-size: 22rem;
		margin-top: 0;
		text-align: end;
	}

	.lp-inner-footer__inner > .lp-hosting-credit {
		flex: 0 0 auto;
		max-inline-size: 22rem;
		margin-inline-start: auto;
		text-align: end;
	}
}

@media (max-width: 768px) {
	.lp-inner-footer__inner > .lp-hosting-credit {
		flex: 0 1 100%;
		margin-inline-start: 0;
		text-align: start;
	}
}

.lp-hosting-credit .lp-hosting-credit__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	max-width: 100%;
	color: inherit;
	font: inherit;
	text-decoration: underline;
	text-underline-offset: 0.15em;
}

.lp-hosting-credit .lp-hosting-credit__link:hover {
	color: var(--lp-hosting-credit-hover-color, #f3ca52);
}

.lp-hosting-credit .lp-hosting-credit__link:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 4px;
	border-radius: 2px;
}

.lp-hosting-credit .lp-hosting-credit__logo {
	display: block;
	flex: 0 0 auto;
	width: 22px;
	height: 22px;
	max-width: 22px;
	margin: 0;
	padding: 0;
	border: 0;
	object-fit: contain;
}

.lp-hosting-credit .lp-hosting-credit__text {
	min-width: 0;
	max-width: 100%;
	overflow-wrap: anywhere;
}

@media (forced-colors: active) {
	.lp-hosting-credit .lp-hosting-credit__link {
		color: LinkText;
	}
}
