/* Djehuty v0.3.1 — native first-party Content Inserts. */
.djehuty-component,
.djehuty-component * {
	box-sizing: border-box;
}

.djehuty-component {
	position: relative;
	width: 100%;
	margin: 18px 0;
	font: inherit;
	color: inherit;
}

.djehuty-component-link {
	display: block;
	color: inherit;
	text-decoration: none;
}

.djehuty-component-type--cta,
.djehuty-component-type--text,
.djehuty-component-type--html {
	padding: 18px 20px;
	border: 1px solid currentColor;
	background: #fff;
}

.djehuty-component-heading {
	margin: 0 0 8px;
	font: inherit;
	font-size: 1.2em;
	font-weight: 700;
}

.djehuty-component-message {
	margin: 0;
}

.djehuty-component-button {
	display: inline-block;
	margin-top: 12px;
	padding: 9px 14px;
	border-radius: 3px;
	background: #2271b1;
	color: #fff;
	font-weight: 600;
}

.djehuty-component-image {
	display: block;
	width: 100%;
	height: auto;
}

.djehuty-component-type--ticker {
	overflow: hidden;
	border: 1px solid currentColor;
	background: #fff;
}

.djehuty-ticker {
	overflow: hidden;
	width: 100%;
}

.djehuty-ticker-track {
	display: flex;
	align-items: center;
	width: max-content;
	min-width: 200%;
	padding: 11px 0;
	white-space: nowrap;
	animation: djehuty-ticker-scroll 45s linear infinite;
	will-change: transform;
}

.djehuty-ticker-message,
.djehuty-ticker-icon {
	display: inline-flex;
	align-items: center;
	padding-left: 22px;
}

.djehuty-ticker-icon {
	padding-right: 4px;
}

.djehuty-component-sticky {
	position: fixed;
	left: 0;
	right: 0;
	z-index: 9990;
	padding: 0 16px;
	pointer-events: none;
}

.djehuty-component-sticky > .djehuty-component {
	width: min(1180px, 100%);
	margin: 10px auto;
	box-shadow: 0 4px 18px rgba(0, 0, 0, 0.18);
	pointer-events: auto;
}

.djehuty-component-sticky--top {
	top: var(--wp-admin--admin-bar--height, 0px);
}

.djehuty-component-sticky--bottom {
	bottom: 0;
}

@keyframes djehuty-ticker-scroll {
	from { transform: translateX(0); }
	to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
	.djehuty-ticker-track {
		animation: none;
		white-space: normal;
		width: auto;
		min-width: 0;
		flex-wrap: wrap;
	}
}

@media (max-width: 782px) {
	.djehuty-component {
		margin: 14px 0;
	}
	.djehuty-component-type--cta,
	.djehuty-component-type--text,
	.djehuty-component-type--html {
		padding: 15px;
	}
	.djehuty-component-sticky {
		padding: 0 8px;
	}
}
