.npd-rich-text {
	--npd-rich-text-padding-top: 40px;
	--npd-rich-text-padding-bottom: 52px;

	width: 100%;
	padding-top: calc(var(--npd-rich-text-padding-top) * 0.75);
	padding-bottom: calc(var(--npd-rich-text-padding-bottom) * 0.75);
}

@media (min-width: 750px) {
	.npd-rich-text {
		padding-top: var(--npd-rich-text-padding-top);
		padding-bottom: var(--npd-rich-text-padding-bottom);
	}
}

.npd-rich-text__container {
	min-width: 0;
}

.npd-rich-text__wrapper {
	display: flex;
	justify-content: center;
	width: 100%;
}

@media (min-width: 750px) {
	.npd-rich-text__wrapper--left {
		justify-content: flex-start;
	}

	.npd-rich-text__wrapper--right {
		justify-content: flex-end;
	}
}

.npd-rich-text__blocks {
	width: 100%;
	max-width: 100%;
}

.npd-rich-text__blocks--left {
	text-align: left;
}

.npd-rich-text__blocks--center {
	text-align: center;
}

.npd-rich-text__blocks--right {
	text-align: right;
}

.npd-rich-text__blocks > * {
	margin-top: 0;
	margin-bottom: 0;
}

.npd-rich-text__blocks > * + * {
	margin-top: 2rem;
}

.npd-rich-text__heading {
	margin: 0;
	line-height: 1.15;
	color: var(--theme-headings-color, inherit);
}

.npd-rich-text__heading--h2 {
	font-size: clamp(1.35rem, 2vw, 1.7rem);
}

.npd-rich-text__heading--h1 {
	font-size: clamp(1.7rem, 3vw, 2.2rem);
}

.npd-rich-text__heading--h0 {
	font-size: clamp(2rem, 4vw, 2.8rem);
}

.npd-rich-text__heading--hxl {
	font-size: clamp(2.3rem, 5vw, 3.4rem);
}

.npd-rich-text__heading--hxxl {
	font-size: clamp(2.6rem, 6vw, 4rem);
}

.npd-rich-text__caption {
	margin: 0;
}

.npd-rich-text__caption--subtitle {
	font-size: 1.05rem;
	opacity: 0.9;
}

.npd-rich-text__caption--caption-with-letter-spacing {
	text-transform: uppercase;
	letter-spacing: 0.08em;
	font-size: 0.8rem;
	opacity: 0.85;
}

.npd-rich-text__caption--small {
	font-size: 0.8rem;
}

.npd-rich-text__caption--medium {
	font-size: 0.95rem;
}

.npd-rich-text__caption--large {
	font-size: 1.1rem;
}

.npd-rich-text__text {
	color: inherit;
}

.npd-rich-text__text * {
	overflow-wrap: break-word;
}

.npd-rich-text__text p:last-child {
	margin-bottom: 0;
}

.npd-rich-text__buttons {
	display: inline-flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 1rem;
	width: 100%;
	max-width: 45rem;
	word-break: break-word;
}

.npd-rich-text__blocks--left .npd-rich-text__buttons {
	justify-content: flex-start;
}

.npd-rich-text__blocks--right .npd-rich-text__buttons {
	justify-content: flex-end;
}

.npd-rich-text__buttons--multiple > * {
	flex-grow: 1;
	min-width: min(22rem, 100%);
}

.npd-rich-text__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 2.75rem;
	padding: 0.65rem 1.4rem;
	font-weight: 600;
	text-decoration: none !important;
	border-radius: 999px;
	border: 1px solid transparent;
	transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.npd-rich-text__button--primary {
	background: var(--theme-button-background-initial-color, #111);
	color: var(--theme-button-text-initial-color, #fff);
}

.npd-rich-text__button--primary:hover,
.npd-rich-text__button--primary:focus-visible {
	filter: brightness(1.05);
	color: var(--theme-button-text-initial-color, #fff);
}

.npd-rich-text__button--secondary {
	background: transparent;
	color: inherit;
	border-color: rgba(17, 17, 17, 0.35);
}

.npd-rich-text__button--secondary:hover,
.npd-rich-text__button--secondary:focus-visible {
	border-color: rgba(17, 17, 17, 0.7);
}

.npd-rich-text__button.is-disabled {
	opacity: 0.55;
	cursor: not-allowed;
}

.npd-rich-text__empty {
	margin: 0;
	opacity: 0.75;
}

@media (prefers-reduced-motion: reduce) {
	.npd-rich-text__button {
		transition: none;
	}
}
