/*
 * Az ujmosoly.hu szakaszstílusa a kampányok tartalmára.
 * Ugyanez töltődik be a szerkesztőben is, így ott is pontosan úgy látszik, ahogy a weboldalon.
 */

:is(.umk .umk__content, .editor-styles-wrapper) {
	font-family: Rubik, sans-serif;
	font-size: 16px;
	font-weight: 400;
	line-height: 30px;
	color: var(--umk-fg, #676565);
}

/* Címek: Jost, közepes vastagság, zöld */
:is(.umk .umk__content, .editor-styles-wrapper) :is(h1:not(.editor-post-title), h2, h3, h4) {
	margin: 0 0 24px;
	font-family: Jost, sans-serif;
	font-weight: 500;
	font-style: normal;
	letter-spacing: -1px;
	text-transform: none;
	color: var(--umk-heading, #588157);
}
:is(.umk .umk__content, .editor-styles-wrapper) :is(h1:not(.editor-post-title), h2) {
	font-size: 46px;
	line-height: 58px;
}
:is(.umk .umk__content, .editor-styles-wrapper) h3 {
	font-size: 32px;
	line-height: 42px;
}
:is(.umk .umk__content, .editor-styles-wrapper) h4 {
	font-size: 24px;
	line-height: 32px;
	letter-spacing: -.5px;
}

/* Szöveg */
:is(.umk .umk__content, .editor-styles-wrapper) p {
	margin: 0 0 20px;
	font-family: Rubik, sans-serif;
	font-size: 16px;
	line-height: 30px;
	color: inherit;
}
:is(.umk .umk__content, .editor-styles-wrapper) strong {
	font-weight: 500;
}

/* Felső cím (blokkstílus a bekezdésen): arany, csupa nagybetű, széles betűköz */
:is(.umk .umk__content, .editor-styles-wrapper) p.is-style-umk-eyebrow {
	margin: 0 0 11px;
	font-family: Rubik, sans-serif;
	font-size: 16px;
	font-weight: 500;
	line-height: 16px;
	letter-spacing: 4px;
	text-transform: uppercase;
	color: var(--umk-eyebrow, #b17204);
}

/* Elválasztó vonal */
:is(.umk .umk__content, .editor-styles-wrapper) .wp-block-separator {
	width: 100%;
	max-width: none;
	margin: 28px 0;
	border: 0;
	border-top: 1px solid rgb(103 101 101 / .25);
	background: none;
	opacity: 1;
}

/* Gomb: arany, 5 px lekerekítés, Rubik félkövér */
/* A rést a WordPress saját változóján keresztül adjuk meg, mert a százalékos
   gombszélességek (25/50/75/100%) ebből számolnak. Így két 50%-os gomb pontosan kitölti a sort. */
:is(.umk .umk__content, .editor-styles-wrapper) .wp-block-buttons {
	--wp--style--block-gap: 12px;
	gap: var(--wp--style--block-gap);
	margin-top: 32px;
}
:is(.umk .umk__content, .editor-styles-wrapper) .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 14px;
	box-sizing: border-box;
	min-height: 58px;
	padding: 21px 32px;
	border: 0;
	border-radius: 5px;
	background-color: #b17204;
	color: #ffffff;
	font-family: Rubik, sans-serif;
	font-size: 15px;
	font-weight: 600;
	line-height: 15px;
	letter-spacing: normal;
	text-transform: none;
	text-decoration: none;
	box-shadow: none;
	transition: background-color .3s linear, filter .3s linear;
}
:is(.umk .umk__content, .editor-styles-wrapper) .wp-block-button__link:hover,
:is(.umk .umk__content, .editor-styles-wrapper) .wp-block-button__link:focus {
	color: #ffffff;
	filter: brightness(.9);
	text-decoration: none;
}
:is(.umk .umk__content, .editor-styles-wrapper) .wp-block-button__link:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: -6px;
}
:is(.umk .umk__content, .editor-styles-wrapper) .wp-block-button.has-custom-width .wp-block-button__link,
:is(.umk .umk__content, .editor-styles-wrapper) .wp-block-button__width-100 .wp-block-button__link {
	width: 100%;
}

/*
 * Gombsor: több gomb együtt kitölti a sort, nem törnek új sorba.
 * - A szélesség nélküli gomb akkora marad, amekkora a szövege.
 * - A százalékos gombok a sor maradékán az arányuk szerint osztoznak.
 * - A 100%-os gomb továbbra is egyedül tölti ki a sort.
 * - Egy sorban minden gomb ugyanolyan magas.
 */
:is(.umk .umk__content, .editor-styles-wrapper) .wp-block-buttons:not(.is-vertical):not(:has(.wp-block-button__width-100)) {
	flex-wrap: nowrap;
	align-items: stretch;
}
:is(.umk .umk__content, .editor-styles-wrapper) .wp-block-buttons > .wp-block-button {
	display: flex;
	flex-shrink: 1;
	min-width: 0;
	/* A sablon minden gomb fölé és alá 30 px-et tenne; a távolságot a gombsor adja. */
	margin: 0 !important;
}
/* Százalékos szélességek (az élő oldalon a WordPress ezt nem mindig tölti be a felugró ablakhoz). */
:is(.umk .umk__content, .editor-styles-wrapper) .wp-block-button.wp-block-button__width-25 { width: calc(25% - var(--wp--style--block-gap) * .75); }
:is(.umk .umk__content, .editor-styles-wrapper) .wp-block-button.wp-block-button__width-50 { width: calc(50% - var(--wp--style--block-gap) * .5); }
:is(.umk .umk__content, .editor-styles-wrapper) .wp-block-button.wp-block-button__width-75 { width: calc(75% - var(--wp--style--block-gap) * .25); }
:is(.umk .umk__content, .editor-styles-wrapper) .wp-block-button.wp-block-button__width-100 { width: 100%; }
:is(.umk .umk__content, .editor-styles-wrapper) .wp-block-buttons > .wp-block-button > .wp-block-button__link {
	flex: 1 1 auto;
}
:is(.umk .umk__content, .editor-styles-wrapper) .wp-block-buttons > .wp-block-button:not([class*="wp-block-button__width"]) {
	flex-shrink: 0;
}
:is(.umk .umk__content, .editor-styles-wrapper) .wp-block-buttons:not(.is-vertical):not(:has(.wp-block-button__width-100)):has(> .wp-block-button + .wp-block-button) > .wp-block-button[class*="wp-block-button__width"] {
	flex-grow: 1;
}
@media (max-width: 480px) {
	:is(.umk .umk__content, .editor-styles-wrapper) .wp-block-buttons:not(.is-vertical) {
		flex-wrap: wrap;
	}
}

/* Körvonalas gomb */
/* A keret 2 px-ét a belső margóból vesszük el, így ugyanolyan magas, mint a kitöltött gomb. */
:is(.umk .umk__content, .editor-styles-wrapper) .is-style-outline .wp-block-button__link {
	padding: 19px 30px;
	border: 2px solid #b17204;
	background-color: transparent;
	color: #b17204;
}
/* Hoverkor kitöltődik: arany háttér, fehér szöveg. */
:is(.umk .umk__content, .editor-styles-wrapper) .is-style-outline .wp-block-button__link:hover,
:is(.umk .umk__content, .editor-styles-wrapper) .is-style-outline .wp-block-button__link:focus-visible {
	background-color: #b17204;
	color: #ffffff;
	filter: none;
}

/* Nyilas gomb (blokkstílus): ugyanaz a nyíl, mint a "Tovább" gombokon */
:is(.umk .umk__content, .editor-styles-wrapper) .is-style-umk-arrow .wp-block-button__link::after {
	content: "";
	flex: none;
	width: 15px;
	height: 15px;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'%3E%3Cpath d='M190.5 66.9l22.2-22.2c9.4-9.4 24.6-9.4 33.9 0L441 239c9.4 9.4 9.4 24.6 0 33.9L246.6 467.3c-9.4 9.4-24.6 9.4-33.9 0l-22.2-22.2c-9.5-9.5-9.3-25 .4-34.3L311.4 296H24c-13.3 0-24-10.7-24-24v-32c0-13.3 10.7-24 24-24h287.4L190.9 101.2c-9.8-9.3-10-24.8-.4-34.3z'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'%3E%3Cpath d='M190.5 66.9l22.2-22.2c9.4-9.4 24.6-9.4 33.9 0L441 239c9.4 9.4 9.4 24.6 0 33.9L246.6 467.3c-9.4 9.4-24.6 9.4-33.9 0l-22.2-22.2c-9.5-9.5-9.3-25 .4-34.3L311.4 296H24c-13.3 0-24-10.7-24-24v-32c0-13.3 10.7-24 24-24h287.4L190.9 101.2c-9.8-9.3-10-24.8-.4-34.3z'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Kisebb felületeken a cím kisebb, a stílus ugyanaz. */
.umk--corner .umk__content :is(h1, h2) {
	font-size: 30px;
	line-height: 38px;
}
.umk--corner .umk__content h3 {
	font-size: 24px;
	line-height: 32px;
}
@media (max-width: 767px) {
	:is(.umk .umk__content, .editor-styles-wrapper) :is(h1:not(.editor-post-title), h2) {
		font-size: 34px;
		line-height: 44px;
	}
	:is(.umk .umk__content, .editor-styles-wrapper) h3 {
		font-size: 26px;
		line-height: 34px;
	}
}

/* Hírsáv: egy sorba rendezett, kisebb szöveg és gomb */
.umk--bar .umk__content,
.umk--bar .umk__content p {
	font-size: 15px;
	line-height: 24px;
}
.umk--bar .umk__content :is(h1, h2, h3, h4) {
	margin: 0;
	font-size: 18px;
	line-height: 24px;
	letter-spacing: 0;
	color: inherit;
}
.umk--bar .umk__content p.is-style-umk-eyebrow {
	margin: 0;
	font-size: 13px;
	letter-spacing: 3px;
	color: inherit;
}
.umk--bar .umk__content .wp-block-buttons {
	margin-top: 0;
}
.umk--bar .umk__content .wp-block-button__link {
	min-height: 40px;
	padding: 12px 22px;
}
.umk--bar .umk__content .is-style-outline .wp-block-button__link {
	padding: 10px 20px;
}
.umk--bar .umk__content .wp-block-separator {
	display: none;
}
