/**
 * Кнопки submit у всіх формах — брендовий помаранчевий.
 * Soleil __custom.css завантажується після brand-colors і повертає зелений text_link.
 */

:root,
[class*="scheme_"] {
	--theme-color-text_link: var(--st-color-primary) !important;
	--theme-color-text_hover: var(--st-color-primary-hover) !important;
	--theme-color-alter_link: var(--st-color-primary) !important;
	--theme-color-extra_link: var(--st-color-primary) !important;
	--theme-color-text_link2: var(--st-color-blue) !important;
	--theme-color-alter_link2: var(--st-color-blue) !important;
	--theme-color-extra_link2: var(--st-color-blue) !important;
}

/* ——— Спільний submit ——— */

.wpcf7 input.wpcf7-submit,
.wpcf7 input[type="submit"],
.wpcf7 .wpcf7-submit,
.wpcf7-submit-style input.wpcf7-submit,
.wpcf7-submit-style input[type="submit"],
.wpcf7 .submit-style-in input.wpcf7-submit,
.wpcf7 .submit-style-in input[type="submit"],
.sc_form input[type="submit"],
.sc_form button[type="submit"],
.sc_form button:not(.components-button),
form.wpcf7-form input[type="submit"],
form input[type="submit"]:not(.is-link):not(.components-button):not(.single_add_to_cart_button),
form button[type="submit"]:not(.components-button):not(.is-link):not(.single_add_to_cart_button),
.elementor-form .elementor-button[type="submit"],
.elementor-form .elementor-field-type-submit .elementor-button,
.elementor-widget-trx_sc_contact_form_7 input.wpcf7-submit,
.elementor-widget-trx_sc_contact_form_7 input[type="submit"],
.sc_contact_form input.wpcf7-submit,
.sc_contact_form input[type="submit"],
[data-suntime-form] input[type="submit"],
[data-suntime-form] button[type="submit"],
.suntime-contacts__panel--form input.wpcf7-submit,
.suntime-contacts__panel--form input[type="submit"] {
	background-color: var(--st-color-primary) !important;
	border-color: var(--st-color-primary) !important;
	color: #fff !important;
	box-shadow: 0 7px 25px rgba(239, 83, 63, 0.22) !important;
	transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.wpcf7 input.wpcf7-submit:hover,
.wpcf7 input.wpcf7-submit:focus,
.wpcf7 input[type="submit"]:hover,
.wpcf7 input[type="submit"]:focus,
.wpcf7 .wpcf7-submit:hover,
.wpcf7 .wpcf7-submit:focus,
.wpcf7-submit-style input.wpcf7-submit:hover,
.wpcf7-submit-style input.wpcf7-submit:focus,
.wpcf7-submit-style input[type="submit"]:hover,
.wpcf7-submit-style input[type="submit"]:focus,
.sc_form input[type="submit"]:hover,
.sc_form input[type="submit"]:focus,
.sc_form button[type="submit"]:hover,
.sc_form button[type="submit"]:focus,
form input[type="submit"]:not(.is-link):not(.components-button):hover,
form input[type="submit"]:not(.is-link):not(.components-button):focus,
form button[type="submit"]:not(.components-button):not(.is-link):hover,
form button[type="submit"]:not(.components-button):not(.is-link):focus,
.elementor-form .elementor-button[type="submit"]:hover,
.elementor-form .elementor-button[type="submit"]:focus,
.elementor-widget-trx_sc_contact_form_7 input.wpcf7-submit:hover,
.elementor-widget-trx_sc_contact_form_7 input.wpcf7-submit:focus,
.sc_contact_form input.wpcf7-submit:hover,
.sc_contact_form input.wpcf7-submit:focus,
[data-suntime-form] input[type="submit"]:hover,
[data-suntime-form] input[type="submit"]:focus,
[data-suntime-form] button[type="submit"]:hover,
[data-suntime-form] button[type="submit"]:focus,
.suntime-contacts__panel--form input.wpcf7-submit:hover,
.suntime-contacts__panel--form input.wpcf7-submit:focus {
	background-color: var(--st-color-primary-hover) !important;
	border-color: var(--st-color-primary-hover) !important;
	color: #fff !important;
}

.wpcf7 input.wpcf7-submit:active,
.wpcf7 input[type="submit"]:active,
.wpcf7 .wpcf7-submit:active,
.wpcf7-submit-style input.wpcf7-submit:active,
.sc_form input[type="submit"]:active,
.sc_form button[type="submit"]:active,
form input[type="submit"]:not(.is-link):not(.components-button):active,
form button[type="submit"]:not(.components-button):not(.is-link):active,
.elementor-form .elementor-button[type="submit"]:active,
[data-suntime-form] input[type="submit"]:active,
[data-suntime-form] button[type="submit"]:active {
	background-color: var(--st-color-primary-active) !important;
	border-color: var(--st-color-primary-active) !important;
	color: #fff !important;
}

body.single-product div.product .summary form.cart .single_add_to_cart_button,
body.single-product div.product .summary form.cart .single_add_to_cart_button:hover,
body.single-product div.product .summary form.cart .single_add_to_cart_button:focus,
body.single-product div.product .summary form.cart .single_add_to_cart_button:active {
	box-shadow: none !important;
}

/* Обгортка Soleil CF7 — без зеленого декору */
.wpcf7-submit-style,
.wpcf7-submit-style .submit-style-in {
	background: transparent !important;
	border-color: transparent !important;
}

.wpcf7-submit-style .submit-style-in::before,
.wpcf7-submit-style .submit-style-in::after {
	background-color: var(--st-color-primary) !important;
	border-color: var(--st-color-primary) !important;
}

/* color_style_link2 у формах — синій, не зелений */
form input[type="submit"].color_style_link2,
form button[type="submit"].color_style_link2,
.wpcf7 input.color_style_link2,
.sc_form input.color_style_link2 {
	background-color: var(--st-color-blue) !important;
	border-color: var(--st-color-blue) !important;
	color: #fff !important;
	box-shadow: 0 7px 25px rgba(32, 144, 240, 0.22) !important;
}

form input[type="submit"].color_style_link2:hover,
form input[type="submit"].color_style_link2:focus,
form button[type="submit"].color_style_link2:hover,
form button[type="submit"].color_style_link2:focus,
.wpcf7 input.color_style_link2:hover,
.wpcf7 input.color_style_link2:focus {
	background-color: var(--st-color-blue-hover) !important;
	border-color: var(--st-color-blue-hover) !important;
	color: #fff !important;
}

/* Квіз */
.stq .stq-btn--primary,
.stq button.stq-btn--primary,
.stq .stq-actions .stq-btn--primary {
	background: var(--st-color-primary) !important;
	border-color: var(--st-color-primary) !important;
	color: #fff !important;
}

.stq .stq-btn--primary:hover,
.stq button.stq-btn--primary:hover,
.stq .stq-actions .stq-btn--primary:hover {
	background: var(--st-color-primary-hover) !important;
	border-color: var(--st-color-primary-hover) !important;
	color: #fff !important;
}

/* Калькулятор */
.calculator__container .btn-form,
.calculator__container .results .but,
.calculator__container #submit-calc,
.calculator__container button[type="submit"] {
	background: var(--st-color-primary) !important;
	border-color: var(--st-color-primary) !important;
	color: #fff !important;
}

.calculator__container .btn-form:hover,
.calculator__container .results .but:hover,
.calculator__container #submit-calc:hover,
.calculator__container button[type="submit"]:hover {
	background: var(--st-color-primary-hover) !important;
	border-color: var(--st-color-primary-hover) !important;
	color: #fff !important;
}

/* Купити в 1 клік */
.stq-purchase button.stq-btn--primary[type="submit"],
.stq-purchase .stq-btn--primary {
	background: var(--st-color-primary) !important;
	border-color: var(--st-color-primary) !important;
	color: #fff !important;
}

.stq-purchase button.stq-btn--primary[type="submit"]:hover,
.stq-purchase .stq-btn--primary:hover {
	background: var(--st-color-primary-hover) !important;
	border-color: var(--st-color-primary-hover) !important;
	color: #fff !important;
}

/* Сторінка відгуків — зірки та допоміжні кнопки не як submit теми Soleil */
body:is(.suntime-reviews-page, .page-slug-vidguky)
	.suntime-reviews__form
	button.suntime-reviews__star-pick[type="button"] {
	-webkit-appearance: none !important;
	appearance: none !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	flex: 0 0 auto !important;
	width: 44px !important;
	height: 44px !important;
	min-width: 44px !important;
	min-height: 44px !important;
	max-width: 44px !important;
	max-height: 44px !important;
	padding: 0 !important;
	margin: 0 !important;
	border: 1px solid #ebe4dc !important;
	border-radius: 50% !important;
	background: #fff !important;
	color: #d5dbe7 !important;
	font-size: 16px !important;
	line-height: 1 !important;
	font-weight: 400 !important;
	text-transform: none !important;
	letter-spacing: normal !important;
	white-space: normal !important;
	box-shadow: none !important;
}

body:is(.suntime-reviews-page, .page-slug-vidguky)
	.suntime-reviews__form
	button.suntime-reviews__star-pick[type="button"]:hover,
body:is(.suntime-reviews-page, .page-slug-vidguky)
	.suntime-reviews__form
	button.suntime-reviews__star-pick[type="button"]:focus-visible,
body:is(.suntime-reviews-page, .page-slug-vidguky)
	.suntime-reviews__form
	button.suntime-reviews__star-pick[type="button"].is-active {
	color: #ffd000 !important;
	border-color: rgba(239, 83, 63, 0.55) !important;
	background: rgba(239, 83, 63, 0.12) !important;
}

body:is(.suntime-reviews-page, .page-slug-vidguky) .suntime-reviews__pager-btn,
body:is(.suntime-reviews-page, .page-slug-vidguky) .suntime-reviews__file-btn {
	box-shadow: none !important;
	text-transform: none !important;
	letter-spacing: normal !important;
}
