/**
 * SunTime — Onest typography (CSS only).
 * Завантажується останнім, щоб перебити тему Soleil / Elementor.
 * Без body * — лише текстові зони (хедер, меню, футер, контент).
 */
@import url("https://fonts.googleapis.com/css2?family=Onest:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap");

:root {
	--suntime-font: "Onest", sans-serif;
	--suntime-heading-weight: var(--theme-font-h1_font-weight, 700);
	--suntime-subheading-weight: var(--theme-font-h2_font-weight, 700);
}

html,
body {
	font-family: var(--suntime-font);
}

/* ——— Хедер (ThemeREX layout + Elementor) ——— */
.top_panel,
.top_panel .elementor,
.top_panel .e-con,
.top_panel .elementor-widget-container,
.top_panel .elementor-heading-title,
.top_panel .elementor-icon-list-text,
.top_panel .elementor-icon-list-item,
.top_panel .sc_layouts_menu_nav,
.top_panel .sc_layouts_menu_nav a,
.top_panel .sc_layouts_menu_nav a span,
.top_panel .sc_layouts_menu_nav li,
.top_panel .sc_layouts_iconed_text,
.top_panel .sc_layouts_item_details,
.top_panel .sc_layouts_item_details_line1,
.top_panel .sc_layouts_item_details_line2,
.top_panel .sc_layouts_cart_items_short,
.top_panel .search_wrap,
.top_panel .search_wrap input,
.top_panel .search_field,
.top_panel .search_submit,
.top_panel a:not([class*="trx_addons_icon"]):not([class*="eicon"]),
.top_panel p,
.top_panel span:not([class*="trx_addons_icon"]):not([class*="eicon"]),
.top_panel .suntime-header-lang-slot,
.top_panel .suntime-lang-switcher,
.top_panel .suntime-lang-switcher a,
.top_panel .suntime-lang-switcher button,
.top_panel .trp-language-item-name {
	font-family: var(--suntime-font) !important;
}

/* ——— Мобільне меню ——— */
.menu_mobile,
.menu_mobile a,
.menu_mobile span:not([class*="trx_addons_icon"]),
.menu_mobile .menu_mobile_nav_area,
.menu_mobile .menu_mobile_nav_area a,
.menu_mobile .menu_mobile_nav_area li,
.menu_mobile .suntime-mobile-menu-contacts,
.menu_mobile .suntime-mobile-menu-contacts a,
.menu_mobile .suntime-mobile-menu-contacts__text,
.menu_mobile .suntime-mobile-menu-aux,
.menu_mobile .suntime-lang-switcher--mobile a {
	font-family: var(--suntime-font) !important;
}

/* ——— Кастомний футер SunTime ——— */
#suntime-site-footer,
.suntime-footer,
.suntime-footer p,
.suntime-footer a,
.suntime-footer li,
.suntime-footer span,
.suntime-footer h2,
.suntime-footer h3,
.suntime-footer__title,
.suntime-footer__tagline,
.suntime-footer__menu a,
.suntime-footer__contact-list a,
.suntime-footer__contact-note,
.suntime-footer__legal a,
.suntime-footer__cta,
.suntime-footer__bottom,
.suntime-footer__copyright {
	font-family: var(--suntime-font) !important;
}

/* ——— Elementor контент (заголовки, текст, кнопки) ——— */
.elementor-widget-heading .elementor-heading-title,
.elementor-widget-text-editor,
.elementor-widget-text-editor p,
.elementor-widget-button .elementor-button,
.elementor-widget-icon-list .elementor-icon-list-text,
.elementor-widget-icon-box .elementor-icon-box-wrapper,
.elementor-widget-icon-box .elementor-icon-box-title,
.elementor-widget-icon-box .elementor-icon-box-title span,
.elementor-widget-icon-box .elementor-icon-box-description,
.elementor-nav-menu a,
.elementor-popup-modal .elementor-heading-title,
.elementor-popup-modal .elementor-widget-text-editor {
	font-family: var(--suntime-font) !important;
}

/* ——— Панель міні-кошика (Soleil / TRX) ——— */
.sc_layouts_cart_panel,
.sc_layouts_cart_panel .sc_layouts_cart_panel_title,
.sc_layouts_cart_panel .sc_layouts_cart_panel_title_text,
.sc_layouts_cart_panel .widget_shopping_cart_content,
.sc_layouts_cart_panel .suntime-mini-cart-empty,
.sc_layouts_cart_panel .suntime-mini-cart-empty__title,
.sc_layouts_cart_panel .suntime-mini-cart-empty__text {
	font-family: var(--suntime-font) !important;
}

/* ——— WooCommerce / форми (наслідування) ——— */
.woocommerce,
.woocommerce-page,
.wpcf7-form,
.stq-form,
.stq-form label,
.stq-form input,
.stq-form textarea,
.stq-form button {
	font-family: var(--suntime-font);
}

/* ——— Усі кастомні сторінки SunTime (FAQ, контакти, відгуки, про нас, проєкти) ——— */
body:is(.suntime-faq-page, .suntime-contacts-page, .suntime-reviews-page, .suntime-about-page, .suntime-projects-page, .suntime-services-page)
	:is(.suntime-faq, .suntime-contacts, .suntime-reviews, .suntime-about, .suntime-projects, .suntime-services) {
	font-family: var(--suntime-font) !important;
}

body:is(.suntime-faq-page, .suntime-contacts-page, .suntime-reviews-page, .suntime-about-page, .suntime-projects-page, .suntime-services-page)
	:is(.suntime-faq, .suntime-contacts, .suntime-reviews, .suntime-about, .suntime-projects, .suntime-services)
	:where(
		p,
		li,
		span,
		a,
		label,
		button,
		input,
		textarea,
		select,
		time,
		small,
		strong,
		em,
		h1,
		h2,
		h3,
		h4,
		h5,
		h6,
		.wpcf7-form,
		.wpcf7-form-control
	) {
	font-family: var(--suntime-font) !important;
}

body:is(.suntime-faq-page, .suntime-contacts-page, .suntime-reviews-page, .suntime-about-page, .suntime-projects-page, .suntime-services-page)
	:is(.suntime-faq, .suntime-contacts, .suntime-reviews, .suntime-about, .suntime-projects, .suntime-services)
	:where(
		h1,
		h2,
		h3,
		.suntime-contacts__panel-title,
		.suntime-contacts__title,
		.suntime-faq__title,
		.suntime-faq__section-title,
		.suntime-faq__cta-title,
		.suntime-reviews__title,
		.suntime-reviews__section-title,
		.suntime-reviews__form-title,
		.suntime-about__section-title,
		.suntime-about__intro-title,
		.suntime-projects__title,
		.suntime-services__title,
		.suntime-services__card-title,
		.suntime-services__seo-title
	) {
	font-weight: var(--suntime-heading-weight) !important;
}

/* Іконкові шрифти — не перевизначати Onest */
.dashicons,
.fontello,
[class*="fontello"],
[class^="eicon"],
[class^="trx_addons_icon-"],
.mce-ico,
.trx_addons_icon-menu,
.trx_addons_icon-basket {
	font-family: revert !important;
}

.fas,
.far,
.fal,
.fad,
.fa-solid,
.fa-regular,
.fa-light,
.fa-thin {
	font-family: "Font Awesome 5 Free", "Font Awesome 6 Free", "FontAwesome" !important;
	font-weight: 900 !important;
}

.fab,
.fa-brands {
	font-family: "Font Awesome 5 Brands", "Font Awesome 6 Brands", "FontAwesome" !important;
	font-weight: 400 !important;
}
