/*!
Theme Name: Hello Elementor Child
Theme URI: https://crocoblock.com/
Author: Crocoblock
Author URI: https://crocoblock.com/
Description: Child theme for Hello Elementor with all CrocoBlock features compatibility.
Template: hello-elementor
Version: 1.0.0
License: GNU General Public License v3 or later
License URI: http://www.gnu.org/licenses/gpl-3.0.html
Text Domain: hello-elementor-child
*/

/* =========================================================
   KÖNYVELŐZÓNA – KOMPAKT DEVIZAÁRFOLYAMOK
   ========================================================= */

.kz-fx-card,
.kz-fx-card * {
	box-sizing: border-box;
}

.kz-fx-card {
	width: 100%;
	margin: 0;
	padding: 0;
	color: #3d3d3f;
	background: transparent;
	font-family: inherit;
}

/* Táblázat */

.kz-fx-table {
	width: 100%;
	margin: 18px 0 10px;
	border-top: 1px solid #b8b8b8;
	border-left: 1px solid #b8b8b8;
	background: #ffffff;
}

.kz-fx-row {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 142px;
	align-items: stretch;
	width: 100%;
	min-height: 50px;
	border-right: 1px solid #b8b8b8;
	border-bottom: 1px solid #b8b8b8;
}

/* Devizanév */

.kz-fx-currency {
	display: flex;
	align-items: center;
	min-width: 0;
	padding: 9px 12px;
	color: #3d3d3f;
	font-size: 16px;
	font-weight: 400;
	line-height: 1.2;
	white-space: nowrap;
}

.kz-fx-code {
	flex: 0 0 auto;
	font-weight: 500;
}

.kz-fx-separator {
	flex: 0 0 auto;
	margin: 0 5px;
}

.kz-fx-name {
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/* Árfolyam és változás */

.kz-fx-value-group {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 42px;
	align-items: center;
	gap: 5px;
	min-width: 0;
	padding: 7px 9px;
	border-left: 1px solid #b8b8b8;
	text-align: right;
}

.kz-fx-rate {
	color: #3d3d3f;
	font-size: 18px;
	font-weight: 700;
	line-height: 1;
	white-space: nowrap;
}

.kz-fx-change {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-width: 0;
	font-weight: 700;
	line-height: 1;
}

.kz-fx-arrow {
	display: block;
	font-size: 15px;
	line-height: 1;
}

.kz-fx-percentage {
	display: block;
	margin-top: 3px;
	font-size: 9px;
	line-height: 1;
	white-space: nowrap;
}

.kz-fx-change.is-up {
	color: #2f8f6b;
}

.kz-fx-change.is-down {
	color: #c5483d;
}

.kz-fx-change.is-same {
	color: #777777;
}

/* Forrás és dátum */

.kz-fx-footer {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px;
	padding: 0 1px;
	color: #777777;
	font-size: 10px;
	line-height: 1.4;
}

.kz-fx-source {
	font-weight: 600;
}

.kz-fx-footer-separator {
	color: #aaa39a;
}

.kz-fx-stale {
	color: #9d6e00;
	font-weight: 600;
}

/* Hibaüzenet */

.kz-fx-error {
	width: 100%;
	margin-top: 16px;
	padding: 12px;
	color: #6b5400;
	background: #fff9df;
	border: 1px solid #d9bd45;
	font-size: 13px;
	line-height: 1.4;
}

.kz-fx-debug {
	display: block;
	margin-top: 7px;
	font-family: monospace;
	font-size: 11px;
	line-height: 1.4;
	word-break: break-word;
}

/* Mobil */

@media (max-width: 767px) {
	.kz-fx-row {
		grid-template-columns: minmax(0, 1fr) 128px;
		min-height: 48px;
	}

	.kz-fx-currency {
		padding: 8px 9px;
		font-size: 14px;
	}

	.kz-fx-value-group {
		grid-template-columns: minmax(0, 1fr) 38px;
		padding: 6px 7px;
	}

	.kz-fx-rate {
		font-size: 16px;
	}

	.kz-fx-arrow {
		font-size: 14px;
	}

	.kz-fx-percentage {
		font-size: 8px;
	}
}

/* =========================================================
   KÖNYVELŐZÓNA – FOLYAMATOS FRISS HÍREK TICKER
   ========================================================= */

.kz-news-ticker,
.kz-news-ticker * {
	box-sizing: border-box;
}

/*
 * A külső konténer elrendezését, hátterét és méretét
 * továbbra is Elementorban állíthatod.
 */
.kz-news-ticker {
	min-width: 0;
	overflow: hidden;
}

/* A Listing Grid töltse ki a rendelkezésre álló helyet */
.kz-ticker-listing {
	flex: 1 1 auto;
	min-width: 0;
	overflow: hidden;
}

/* A hírek látható területe */
.kz-ticker-listing .jet-listing-grid {
	position: relative;
	width: 100%;
	overflow: hidden;
}

/* A JavaScript ezt a sort mozgatja */
.kz-ticker-listing .jet-listing-grid__items {
	display: flex !important;
	flex-wrap: nowrap !important;
	align-items: center;
	width: max-content !important;
	max-width: none !important;
	margin: 0 !important;
	padding: 0 !important;
	transform: translate3d(0, 0, 0);
	transition: none !important;
	will-change: transform;
}

/* Egy teljes, ismétlődő hírcsoport */
.kz-ticker-group {
	display: flex;
	flex: 0 0 auto;
	align-items: center;
	gap: 90px;
	width: max-content;
	padding-right: 90px;
}

/* JetEngine listaelemek */
.kz-ticker-listing .jet-listing-grid__item {
	flex: 0 0 auto !important;
	width: auto !important;
	max-width: none !important;
	margin: 0 !important;
	padding: 0 !important;
}

/* Hírcímek egy sorban */
.kz-ticker-listing .jet-listing-dynamic-field__content,
.kz-ticker-listing .jet-listing-dynamic-field__content a,
.kz-ticker-listing .jet-listing-grid__item a {
	display: block;
	width: max-content;
	max-width: none;
	white-space: nowrap;
	text-decoration: none;
	transition: color 0.2s ease;
}

/* Opcionális hover-szín */
.kz-ticker-listing .jet-listing-grid__item a:hover {
	color: #ffffff;
}

/* =========================================================
   FINOM, FOKOZATOS SZÉLELHALVÁNYÍTÁS
   ========================================================= */

.kz-ticker-listing .jet-listing-grid {
	-webkit-mask-image: linear-gradient(
		to right,
		transparent 0,
		#000 75px,
		#000 calc(100% - 75px),
		transparent 100%
	);

	mask-image: linear-gradient(
		to right,
		transparent 0,
		#000 75px,
		#000 calc(100% - 75px),
		transparent 100%
	);

	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;

	-webkit-mask-size: 100% 100%;
	mask-size: 100% 100%;
}

/* A korábbi blur rétegek kikapcsolása */
.kz-ticker-listing .jet-listing-grid::before,
.kz-ticker-listing .jet-listing-grid::after {
	display: none !important;
}

/* Tablet */
@media (max-width: 1024px) {
	.kz-ticker-listing .jet-listing-grid {
		-webkit-mask-image: linear-gradient(
			to right,
			transparent 0,
			#000 50px,
			#000 calc(100% - 50px),
			transparent 100%
		);

		mask-image: linear-gradient(
			to right,
			transparent 0,
			#000 50px,
			#000 calc(100% - 50px),
			transparent 100%
		);
	}
}

/* Mobil */
@media (max-width: 767px) {
	.kz-ticker-listing .jet-listing-grid {
		-webkit-mask-image: linear-gradient(
			to right,
			transparent 0,
			#000 28px,
			#000 calc(100% - 28px),
			transparent 100%
		);

		mask-image: linear-gradient(
			to right,
			transparent 0,
			#000 28px,
			#000 calc(100% - 28px),
			transparent 100%
		);
	}
}