/*
Theme Name: HealthHub Child Theme
Template: healthhub
Theme URI: https://healthhub.ancorathemes.com/
Description: HealthHub Child Theme
Author: AncoraThemes
Author URI: https://ancorathemes.com/
Version: 1.0.0
Tested up to: 6.6
Requires at least: 5.0
Requires PHP: 7.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: clinic, dental, doctor, gynecology, health, healthtech, healthyliving, hospital, medical, medicine, nutrition, pediatric, therapy
Text Domain: healthhub
*/


/* =Child-Theme customization starts here
------------------------------------------------------------ */

/* WooCommerce categories sidebar */
.woocommerce .sidebar .widget.woocommerce.widget_product_categories .product-categories,
.woocommerce-page .sidebar .widget.woocommerce.widget_product_categories .product-categories {
	margin: 0;
	padding: 0;
	list-style: none;
}

.woocommerce .sidebar .widget.woocommerce.widget_product_categories .product-categories li,
.woocommerce-page .sidebar .widget.woocommerce.widget_product_categories .product-categories li {
	position: relative;
	margin: 0;
}

.woocommerce .sidebar .widget.woocommerce.widget_product_categories .product-categories li + li,
.woocommerce-page .sidebar .widget.woocommerce.widget_product_categories .product-categories li + li {
	margin-top: 0.45em;
}

.woocommerce .sidebar .widget.woocommerce.widget_product_categories .product-categories li a:first-child:before,
.woocommerce-page .sidebar .widget.woocommerce.widget_product_categories .product-categories li a:first-child:before {
	display: none;
}

.woocommerce .sidebar .widget.woocommerce.widget_product_categories .product-categories li > a,
.woocommerce-page .sidebar .widget.woocommerce.widget_product_categories .product-categories li > a {
	display: inline-block;
	padding: 0.35em 0.55em;
	border-radius: 8px;
	color: var(--theme-color-alter_dark);
	transition: color 0.2s ease, background-color 0.2s ease;
}

.woocommerce .sidebar .widget.woocommerce.widget_product_categories .product-categories li > a:hover,
.woocommerce-page .sidebar .widget.woocommerce.widget_product_categories .product-categories li > a:hover {
	color: var(--theme-color-text_link);
	background-color: var(--theme-color-bg_color);
}

.woocommerce .sidebar .widget.woocommerce.widget_product_categories .product-categories .count,
.woocommerce-page .sidebar .widget.woocommerce.widget_product_categories .product-categories .count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.2em;
	margin-left: 0.3em;
	padding: 0.2em 0.6em;
	border-radius: 999px;
	font-size: 0.82em;
	line-height: 1;
	color: var(--theme-color-text_light);
	background-color: var(--theme-color-bg_color);
}

.woocommerce .sidebar .widget.woocommerce.widget_product_categories .product-categories .current-cat > a,
.woocommerce-page .sidebar .widget.woocommerce.widget_product_categories .product-categories .current-cat > a {
	font-weight: 600;
	color: var(--theme-color-text_link);
	background-color: var(--theme-color-bg_color);
}

.woocommerce .sidebar .widget.woocommerce.widget_product_categories .product-categories .current-cat > .count,
.woocommerce-page .sidebar .widget.woocommerce.widget_product_categories .product-categories .current-cat > .count {
	color: var(--theme-color-inverse_link);
	background-color: var(--theme-color-text_link);
}

.woocommerce .sidebar .widget.woocommerce.widget_product_categories .product-categories .children,
.woocommerce-page .sidebar .widget.woocommerce.widget_product_categories .product-categories .children {
	margin-top: 0.5em;
	margin-left: 0.55em;
	padding-top: 0.25em;
	padding-left: 0.85em;
	border-left: 1px solid var(--theme-color-alter_bd_color);
}

.woocommerce .sidebar .widget.woocommerce.widget_product_categories .widget_title,
.woocommerce-page .sidebar .widget.woocommerce.widget_product_categories .widget_title {
	margin-bottom: 1.1em;
}

@media (max-width: 767px) {
	.woocommerce .sidebar .widget.woocommerce.widget_product_categories .product-categories li > a,
	.woocommerce-page .sidebar .widget.woocommerce.widget_product_categories .product-categories li > a {
		padding: 0.3em 0.4em;
	}
}

/* Single product: marketplace links and consultation */
.single-product div.product .summary .hh-marketplace-links {
	margin-top: 1.35em;
	padding: 1.05em 1.15em;
	/* border: 1px solid var(--theme-color-bd_color); */
	/* border-radius: 14px; */
	/* background-color: var(--theme-color-alter_bg_color); */
}

.single-product div.product .summary .hh-marketplace-links__title {
	margin: 0 0 0.7em;
	font-size: 0.95em;
	font-weight: 600;
	color: var(--theme-color-text_dark);
}

.single-product div.product .summary .hh-marketplace-links__list {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.55em;
}

.single-product div.product .summary .hh-marketplace-link.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 2.4em;
	padding: 0.45em 0.95em;
	border-radius: 999px;
	font-size: 0.88em;
	line-height: 1;
	border: 1px solid transparent;
	color: var(--theme-color-inverse_link);
	background-color: var(--theme-color-text_link);
}

.single-product div.product .summary .hh-marketplace-link.button:hover,
.single-product div.product .summary .hh-marketplace-link.button:focus {
	color: var(--theme-color-inverse_hover);
	background-color: var(--theme-color-text_hover);
}

.single-product div.product .summary .hh-consultation-wrap {
	margin-top: 1em;
}

.single-product div.product .summary .hh-consultation-trigger.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.35em;
	min-height: 2.85em;
	padding: 0.65em 1.25em;
	border-radius: 10px;
	color: var(--theme-color-inverse_link);
	background-color: var(--theme-color-text_link);
	border: 1px solid transparent;
}

.single-product div.product .summary .hh-consultation-trigger.button:hover,
.single-product div.product .summary .hh-consultation-trigger.button:focus {
	color: var(--theme-color-inverse_hover);
	background-color: var(--theme-color-text_hover);
}

@media (max-width: 767px) {
	.single-product div.product .summary .hh-marketplace-links {
		padding: 0.9em 0.95em;
	}

	.single-product div.product .summary .hh-marketplace-link.button,
	.single-product div.product .summary .hh-consultation-trigger.button {
		width: 100%;
	}
}

/* Advanced Popups: product consultation modal */
.adp-popup[data-id="59550"] .adp-popup-wrap,
.adp-popup[data-id="59550"] .adp-popup-outer,
.adp-popup[data-id="59550"] .adp-popup-content,
.adp-popup[data-id="59550"] .adp-popup-inner,
.adp-popup[data-id="59550"] .wpcf7-form-control,
.adp-popup[data-id="59550"] .wpcf7-submit,
.adp-popup[data-id="59550"] .wpcf7-response-output {
	border-radius: 0 !important;
}

.adp-popup[data-id="59550"] .adp-popup-content {
	padding: 28px 34px 24px !important;
}

.adp-popup[data-id="59550"] .adp-popup-close {
	top: 14px;
	right: 14px;
}

.adp-popup[data-id="59550"] .hh-product-consult-form {
	padding-top: 12px;
}

.adp-popup[data-id="59550"] .hh-consultation-modal-title {
	margin: 0 0 16px;
	font-size: 24px;
	line-height: 1.2;
	font-weight: 500;
	color: var(--theme-color-text_dark);
	text-align: center;
}

.adp-popup[data-id="59550"] .hh-product-consult-form .columns_wrap > [class*=column-] {
	padding-bottom: 28px;
}

.adp-popup[data-id="59550"] div.wpcf7 .hh-product-consult-form input:not([type=submit]):not([type=radio]):not([type=checkbox]),
.adp-popup[data-id="59550"] div.wpcf7 .hh-product-consult-form textarea {
	padding-top: 7px !important;
	padding-bottom: 7px !important;
	padding-left: 12px !important;
	padding-right: 12px !important;
}

.adp-popup[data-id="59550"] .hh-product-consult-form [data-name*=acceptance] {
	margin-top: 8px;
}

.adp-popup[data-id="59550"] .hh-product-consult-form .wpcf7-submit {
	border-radius: 0 !important;
}

@media (max-width: 767px) {
	.adp-popup[data-id="59550"] .adp-popup-content {
		padding: 22px 18px 18px !important;
	}

	.adp-popup[data-id="59550"] .hh-product-consult-form {
		padding-top: 8px;
	}

	.adp-popup[data-id="59550"] .hh-consultation-modal-title {
		font-size: 20px;
		margin-bottom: 12px;
	}

	.adp-popup[data-id="59550"] .hh-product-consult-form .columns_wrap > [class*=column-] {
		padding-bottom: 18px;
	}
}

/* Header layouts (Elementor): enforce brand button colors */
.top_panel .elementor-widget-button .elementor-button,
.sc_layouts_row .elementor-widget-button .elementor-button,
.elementor-location-header .elementor-widget-button .elementor-button,
.top_panel .sc_button:not(.sc_button_simple),
.sc_layouts_row .sc_button:not(.sc_button_simple),
.elementor-location-header .sc_button:not(.sc_button_simple) {
background-color: #00a47b !important;
	border-color: #00a47b !important;
	color: #ffffff !important;
	background-image: none !important;
}

.top_panel .elementor-widget-button .elementor-button:hover,
.top_panel .elementor-widget-button .elementor-button:focus,
.sc_layouts_row .elementor-widget-button .elementor-button:hover,
.sc_layouts_row .elementor-widget-button .elementor-button:focus,
.elementor-location-header .elementor-widget-button .elementor-button:hover,
.elementor-location-header .elementor-widget-button .elementor-button:focus,
.top_panel .sc_button:not(.sc_button_simple):hover,
.top_panel .sc_button:not(.sc_button_simple):focus,
.sc_layouts_row .sc_button:not(.sc_button_simple):hover,
.sc_layouts_row .sc_button:not(.sc_button_simple):focus,
.elementor-location-header .sc_button:not(.sc_button_simple):hover,
.elementor-location-header .sc_button:not(.sc_button_simple):focus {
	background-color: #008f6b !important;
	border-color: #008f6b !important;
	color: #ffffff !important;
}

/* CF7 submit style: replace default colors */
.wpcf7 .wpcf7-submit-style .submit-style-in {
	background-color: #00a47b !important;
	color: #ffffff !important;
}

.wpcf7 .wpcf7-submit-style .submit-style-in:before {
	background-color: #008f6b !important;
}

.wpcf7 .wpcf7-submit-style .wpcf7-submit {
	border-color: #00a47b !important;
}

.wpcf7 .wpcf7-submit-style:hover .wpcf7-submit,
.wpcf7 .wpcf7-submit-style:focus-within .wpcf7-submit {
	border-color: #008f6b !important;
}

/* Kaspi button: remove white outline inherited from global button styles */
.single-product div.product .summary .hh-marketplace-link.button,
.single-product div.product .summary .hh-marketplace-link.button:hover,
.single-product div.product .summary .hh-marketplace-link.button:focus,
.single-product div.product .summary .hh-marketplace-link.button:active {
	border: none !important;
	outline: none !important;
	-webkit-box-shadow: none !important;
	box-shadow: none !important;
}

.single-product div.product .summary .hh-marketplace-link.button:before,
.single-product div.product .summary .hh-marketplace-link.button:after {
	display: none !important;
	border: none !important;
	-webkit-box-shadow: none !important;
	box-shadow: none !important;
}

/* Product buttons: unify consultation and Kaspi visual style */
.single-product div.product .summary .hh-consultation-trigger.button,
.single-product div.product .summary .hh-marketplace-link.button {
	border-radius: 999px !important;
	padding: 0.62em 1.4em !important;
	min-height: 2.9em;
	font-size: 0.95em;
	line-height: 1.1;
}

/* Force marketplace buttons in one column: Kaspi on top, Dealer below */
.single-product div.product .summary .hh-marketplace-links__list {
	display: flex !important;
	flex-direction: column !important;
	flex-wrap: nowrap !important;
	align-items: flex-start !important;
	gap: 0.55em !important;
}

.single-product div.product .summary .hh-marketplace-links__list .hh-marketplace-link.button {
	margin: 0 !important;
}
