/* Product-data tab icon */
#woocommerce-product-data ul.product_data_tabs li.ghestihub_calculator_tab a::before {
	font-family: Dashicons;
	content: "\f18e";
	speak: never;
	font-weight: 400;
	font-variant: normal;
	text-transform: none;
	line-height: 1;
	text-indent: 0;
	position: absolute;
	top: 0.9em;
	inset-inline-start: 12px;
	inset-inline-end: auto;
	font-size: 1.2em;
}

.rtl #woocommerce-product-data ul.product_data_tabs li.ghestihub_calculator_tab a::before {
	inset-inline-start: 12px;
	inset-inline-end: auto;
}

#ghestihub_calculator_product_data.ghestihub-calc-panel {
	container-type: inline-size;
	container-name: ghcalc;
	max-width: 100%;
	padding: 0 !important;
	background: #f6faf9;
	overflow: visible;
}

#ghestihub_calculator_product_data.ghestihub-calc-panel *,
#ghestihub_calculator_product_data.ghestihub-calc-panel *::before,
#ghestihub_calculator_product_data.ghestihub-calc-panel *::after {
	box-sizing: border-box;
}

/* WooCommerce floats labels 150px left and sets inputs to 50% width. */
#ghestihub_calculator_product_data.woocommerce_options_panel label,
#ghestihub_calculator_product_data.woocommerce_options_panel legend,
#ghestihub_calculator_product_data.woocommerce_options_panel p,
#ghestihub_calculator_product_data.woocommerce_options_panel li,
#ghestihub_calculator_product_data.woocommerce_options_panel dt,
#ghestihub_calculator_product_data.woocommerce_options_panel dd,
#ghestihub_calculator_product_data.woocommerce_options_panel fieldset,
#ghestihub_calculator_product_data.woocommerce_options_panel input,
#ghestihub_calculator_product_data.woocommerce_options_panel select,
#ghestihub_calculator_product_data.woocommerce_options_panel textarea,
#ghestihub_calculator_product_data.woocommerce_options_panel h2,
#ghestihub_calculator_product_data.woocommerce_options_panel h3,
#ghestihub_calculator_product_data.woocommerce_options_panel h4 {
	float: none !important;
	clear: none !important;
	width: auto !important;
	max-width: 100% !important;
	margin: 0 !important;
	line-height: 1.5 !important;
}

#ghestihub_calculator_product_data.woocommerce_options_panel p::after,
#ghestihub_calculator_product_data.woocommerce_options_panel label::after,
#ghestihub_calculator_product_data.woocommerce_options_panel fieldset::after {
	content: none !important;
	display: none !important;
}

.ghestihub-calc {
	direction: inherit;
	text-align: start;
	max-width: 100%;
	padding: 16px;
	color: #134e4a;
	font-family: "IRANYekan", Tahoma, sans-serif !important;
	font-size: 13px;
	line-height: 1.6;
}

.ghestihub-calc.is-rtl {
	direction: rtl;
	text-align: right;
}

.ghestihub-calc.is-ltr {
	direction: ltr;
	text-align: left;
}

.ghestihub-calc__top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin: 0 0 14px;
	padding: 0 0 14px;
	border-bottom: 1px solid #d7ebe6;
}

.ghestihub-calc__intro {
	min-width: 0;
	flex: 1 1 auto;
}

#ghestihub_calculator_product_data .ghestihub-calc__intro h2 {
	margin: 0 0 4px !important;
	padding: 0 !important;
	color: #134e4a !important;
	font-size: 16px !important;
	font-weight: 800 !important;
	line-height: 1.4 !important;
}

#ghestihub_calculator_product_data .ghestihub-calc__intro p {
	margin: 0 !important;
	padding: 0 !important;
	color: #5b6f6b !important;
	font-size: 12.5px !important;
	line-height: 1.7 !important;
}

.ghestihub-calc__actions {
	display: flex;
	flex: 0 0 auto;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: flex-end;
	gap: 8px;
}

.ghestihub-calc__scope {
	display: flex !important;
	flex-direction: column;
	align-items: stretch;
	gap: 4px;
	min-width: 190px;
	margin: 0 !important;
	padding: 0 !important;
}

#ghestihub_calculator_product_data .ghestihub-calc__scope span,
#ghestihub_calculator_product_data .ghestihub-calc__field > span,
#ghestihub_calculator_product_data .ghestihub-calc-card__fee > span {
	display: block;
	margin: 0 !important;
	padding: 0 !important;
	color: #4b635f !important;
	font-size: 11px !important;
	font-weight: 700 !important;
	line-height: 1.4 !important;
}

#ghestihub_calculator_product_data .ghestihub-calc__scope select,
#ghestihub_calculator_product_data .ghestihub-calc__field input[type="number"],
#ghestihub_calculator_product_data .ghestihub-calc__field select,
#ghestihub_calculator_product_data .ghestihub-calc-card__fee input {
	display: block !important;
	width: 100% !important;
	max-width: 100% !important;
	height: 38px !important;
	min-height: 38px !important;
	margin: 0 !important;
	padding: 0 12px !important;
	border: 1px solid #c9e0db !important;
	border-radius: 10px !important;
	background: #fff !important;
	color: #134e4a !important;
	box-shadow: none !important;
	font-family: "IRANYekan", Tahoma, sans-serif !important;
	font-size: 13px !important;
	line-height: 38px !important;
}

#ghestihub_calculator_product_data .ghestihub-calc__field input[dir="ltr"],
#ghestihub_calculator_product_data .ghestihub-calc-card__fee input {
	text-align: left !important;
	unicode-bidi: isolate;
}

#ghestihub_calculator_product_data .ghestihub-calc__scope select:focus,
#ghestihub_calculator_product_data .ghestihub-calc__field input:focus,
#ghestihub_calculator_product_data .ghestihub-calc__field select:focus,
#ghestihub_calculator_product_data .ghestihub-calc-card__fee input:focus {
	border-color: #0f766e !important;
	box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.16) !important;
	outline: none !important;
}

.ghestihub-calc__hide {
	display: inline-flex !important;
	align-items: center;
	gap: 8px;
	height: 38px;
	margin: 0 !important;
	padding: 0 12px !important;
	border: 1px solid #c9e0db;
	border-radius: 10px;
	background: #fff;
	cursor: pointer;
	white-space: nowrap;
}

#ghestihub_calculator_product_data .ghestihub-calc__hide input,
#ghestihub_calculator_product_data .ghestihub-calc__field--check input {
	width: 16px !important;
	height: 16px !important;
	min-height: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	accent-color: #0f766e;
	flex: 0 0 auto;
}

#ghestihub_calculator_product_data .ghestihub-calc__hide span {
	color: #134e4a !important;
	font-size: 12px !important;
	font-weight: 700 !important;
	line-height: 1.3 !important;
}

.ghestihub-calc__alert {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin: 0 0 12px;
	padding: 10px 12px;
	border: 1px solid #d5ebe6;
	border-radius: 12px;
	background: #e7f4f1;
	color: #134e4a;
	line-height: 1.7;
}

.ghestihub-calc__alert a {
	color: #0f766e;
	font-weight: 700;
	text-decoration: none;
}

.ghestihub-calc__alert--warn {
	border-color: #fed7aa;
	background: #fff7ed;
	color: #9a3412;
}

.ghestihub-calc__alert--danger {
	border-color: #fecaca;
	background: #fef2f2;
	color: #991b1b;
}

.ghestihub-calc__toolbar {
	display: grid;
	grid-template-columns: minmax(0, 1.5fr) 92px minmax(0, 1.15fr) auto;
	gap: 10px;
	align-items: end;
	margin: 0 0 14px;
	padding: 12px;
	border: 1px solid #d7ebe6;
	border-radius: 14px;
	background: #fff;
	box-shadow: 0 8px 20px rgba(15, 118, 110, 0.05);
}

.ghestihub-calc__field {
	display: flex !important;
	flex-direction: column;
	align-items: stretch;
	gap: 4px;
	min-width: 0;
	margin: 0 !important;
	padding: 0 !important;
}

.ghestihub-calc__field--check {
	flex-direction: row !important;
	align-items: center;
	align-self: end;
	height: 38px;
	padding: 0 12px !important;
	border: 1px solid #c9e0db;
	border-radius: 10px;
	background: #f7fbfa;
	white-space: nowrap;
}

#ghestihub_calculator_product_data .ghestihub-calc__field--check span {
	font-size: 12px !important;
}

.ghestihub-calc__reco {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
	margin: 0 0 16px;
}

.ghestihub-calc__reco.is-plain {
	display: block;
	padding: 10px 12px;
	border: 1px dashed #c9e0db;
	border-radius: 12px;
	background: #fff;
	color: #4b635f;
}

.ghestihub-calc__reco-item {
	min-width: 0;
	padding: 12px 14px;
	border-radius: 14px;
	background: linear-gradient(145deg, #0f766e, #115e59);
	color: #fff;
	box-shadow: 0 10px 22px rgba(15, 118, 110, 0.18);
}

.ghestihub-calc__reco-item:nth-child(2) {
	background: linear-gradient(145deg, #134e4a, #0f3d39);
	box-shadow: 0 10px 22px rgba(19, 78, 74, 0.16);
}

.ghestihub-calc__reco-item span,
.ghestihub-calc__reco-item strong,
.ghestihub-calc__reco-item b {
	display: block;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.ghestihub-calc__reco-item span {
	margin-bottom: 2px;
	color: rgba(255, 255, 255, 0.82);
	font-size: 11px;
}

.ghestihub-calc__reco-item strong {
	color: #fff;
	font-size: 13px;
	font-weight: 700;
}

.ghestihub-calc__reco-item b {
	margin-top: 4px;
	color: #fff;
	font-size: 18px;
	font-weight: 800;
	unicode-bidi: isolate;
}

.ghestihub-calc__section {
	margin: 0 0 16px;
}

#ghestihub_calculator_product_data .ghestihub-calc__section-title {
	margin: 0 0 8px !important;
	padding: 0 !important;
	color: #134e4a !important;
	font-size: 13px !important;
	font-weight: 800 !important;
}

.ghestihub-calc__table-wrap {
	overflow-x: auto;
	border: 1px solid #d7ebe6;
	border-radius: 14px;
	background: #fff;
	box-shadow: 0 8px 20px rgba(15, 118, 110, 0.04);
}

.ghestihub-calc__table {
	width: 100% !important;
	min-width: 640px;
	margin: 0 !important;
	border-collapse: collapse;
	text-align: start;
}

#ghestihub_calculator_product_data .ghestihub-calc__table th,
#ghestihub_calculator_product_data .ghestihub-calc__table td {
	padding: 10px 12px !important;
	border-bottom: 1px solid #eef5f3 !important;
	text-align: start !important;
	vertical-align: middle !important;
	white-space: nowrap;
}

#ghestihub_calculator_product_data .ghestihub-calc__table tr:last-child td {
	border-bottom: 0 !important;
}

#ghestihub_calculator_product_data .ghestihub-calc__table th {
	background: #f4faf8 !important;
	color: #4b635f !important;
	font-size: 11px !important;
	font-weight: 800 !important;
}

.ghestihub-calc__gw {
	display: flex;
	align-items: center;
	gap: 8px;
	min-width: 0;
}

.ghestihub-calc__gw img {
	width: 22px !important;
	height: 22px !important;
	max-width: 22px !important;
	padding: 2px;
	object-fit: contain;
	border-radius: 6px;
	background: #f4faf8;
}

.ghestihub-calc__gw strong {
	font-size: 12.5px;
	font-weight: 800;
}

#ghestihub_calculator_product_data .ghestihub-calc__table td[dir="ltr"] {
	font-variant-numeric: tabular-nums;
	text-align: left !important;
	unicode-bidi: isolate;
}

#ghestihub_calculator_product_data .ghestihub-calc__table tr.is-best-monthly td,
#ghestihub_calculator_product_data .ghestihub-calc__table tr.is-best-net td {
	background: #f0fdfa !important;
}

#ghestihub_calculator_product_data .ghestihub-calc__table tr.is-muted {
	opacity: 0.72;
}

#ghestihub_calculator_product_data .ghestihub-calc__table tbody tr:hover td {
	background: #f7fbfa !important;
}

.ghestihub-calc-pill {
	display: inline-flex;
	align-items: center;
	padding: 2px 8px;
	border-radius: 999px;
	background: #e7f4f1;
	color: #0f766e;
	font-size: 11px;
	font-weight: 800;
	line-height: 1.5;
	white-space: nowrap;
}

.ghestihub-calc-pill.is-disabled,
.ghestihub-calc-pill.is-unconfigured {
	background: #f3f4f6;
	color: #4b5563;
}

.ghestihub-calc-pill.is-too_low,
.ghestihub-calc-pill.is-too_high,
.ghestihub-calc-pill.is-excluded,
.ghestihub-calc-pill.is-campaign_off {
	background: #fef2f2;
	color: #b91c1c;
}

.ghestihub-calc__cards {
	display: grid;
	grid-template-columns: 1fr;
	gap: 12px;
}

.ghestihub-calc-card {
	padding: 14px;
	overflow: hidden;
	border: 1px solid #d7ebe6;
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 8px 20px rgba(15, 118, 110, 0.04);
}

.ghestihub-calc-card.is-best-monthly,
.ghestihub-calc-card.is-best-net {
	border-color: #0f766e;
	box-shadow: 0 0 0 1px rgba(15, 118, 110, 0.2), 0 10px 24px rgba(15, 118, 110, 0.08);
}

.ghestihub-calc-card__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 12px;
}

.ghestihub-calc-card__brand {
	display: flex;
	align-items: center;
	gap: 10px;
	min-width: 0;
	flex: 1 1 auto;
}

.ghestihub-calc-card__brand img {
	flex: 0 0 auto;
	width: 36px !important;
	height: 36px !important;
	max-width: 36px !important;
	padding: 4px;
	object-fit: contain;
	border-radius: 10px;
	background: #f4faf8;
}

.ghestihub-calc-card__titles {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 4px;
	min-width: 0;
}

#ghestihub_calculator_product_data .ghestihub-calc-card__titles h3 {
	margin: 0 !important;
	padding: 0 !important;
	color: #134e4a !important;
	font-size: 14px !important;
	font-weight: 800 !important;
	line-height: 1.3 !important;
}

.ghestihub-calc-card__kpis {
	display: grid;
	grid-template-columns: repeat(2, minmax(108px, auto));
	gap: 8px;
	flex: 0 0 auto;
}

.ghestihub-calc-card__kpis div {
	min-width: 0;
	padding: 8px 10px;
	border-radius: 12px;
	background: #f4faf8;
	text-align: start;
}

.ghestihub-calc-card__kpis span {
	display: block;
	color: #5b6f6b;
	font-size: 10px;
}

.ghestihub-calc-card__kpis strong {
	display: block;
	margin-top: 2px;
	color: #0f766e;
	font-size: 13px;
	font-weight: 800;
	unicode-bidi: isolate;
}

.ghestihub-calc-card__fee {
	display: grid !important;
	grid-template-columns: auto 104px minmax(0, 1fr);
	align-items: center;
	gap: 8px 10px;
	margin: 0 0 12px !important;
	padding: 8px 10px !important;
	border-radius: 12px;
	background: #f4faf8;
}

#ghestihub_calculator_product_data .ghestihub-calc-card__fee input {
	width: 104px !important;
}

#ghestihub_calculator_product_data .ghestihub-calc-card__fee em {
	margin: 0 !important;
	color: #5b6f6b !important;
	font-size: 11px !important;
	font-style: normal !important;
	line-height: 1.5 !important;
}

.ghestihub-calc-card__figures {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 8px;
	margin: 0 0 12px;
}

.ghestihub-calc-card__figures div {
	min-width: 0;
	padding: 8px 10px;
	border-radius: 12px;
	background: #fff;
	border: 1px solid #e5f1ee;
}

#ghestihub_calculator_product_data .ghestihub-calc-card__figures dt {
	margin: 0 0 3px !important;
	color: #5b6f6b !important;
	font-size: 10px !important;
	font-weight: 700 !important;
}

#ghestihub_calculator_product_data .ghestihub-calc-card__figures dd {
	margin: 0 !important;
	color: #134e4a !important;
	font-size: 12.5px !important;
	font-weight: 800 !important;
	line-height: 1.4 !important;
	word-break: break-word;
}

#ghestihub_calculator_product_data .ghestihub-calc-card__figures dd[dir="ltr"] {
	text-align: left;
	unicode-bidi: isolate;
}

.ghestihub-calc-card__figures div:last-child {
	background: #f0fdfa;
	border-color: #c9e0db;
}

.ghestihub-calc-card__plans {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 10px;
}

.ghestihub-calc-plan {
	min-width: 108px;
	padding: 8px 10px;
	border: 1px solid #d7ebe6;
	border-radius: 12px;
	background: #fff;
	text-align: start;
}

.ghestihub-calc-plan span {
	display: block;
	color: #5b6f6b;
	font-size: 10px;
}

.ghestihub-calc-plan strong {
	display: block;
	margin: 2px 0;
	color: #134e4a;
	font-size: 13px;
	font-weight: 800;
	unicode-bidi: isolate;
}

#ghestihub_calculator_product_data .ghestihub-calc-card__settle,
#ghestihub_calculator_product_data .ghestihub-calc-card__summary {
	margin: 0 0 8px !important;
	padding: 0 !important;
	color: #4b635f !important;
	line-height: 1.7 !important;
}

#ghestihub_calculator_product_data .ghestihub-calc-card__reasons {
	margin: 0 0 10px !important;
	padding: 8px 12px 8px 28px !important;
	padding-inline-start: 28px !important;
	border-radius: 12px;
	background: #fff7ed;
	color: #9a3412 !important;
}

.ghestihub-calc-card__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 0 0 10px;
}

.ghestihub-calc-card__meta span {
	padding: 3px 8px;
	border: 1px solid #d7ebe6;
	border-radius: 999px;
	background: #f7fbfa;
	font-size: 11px;
}

.ghestihub-calc-card__guide {
	margin-top: 4px;
	padding-top: 8px;
	border-top: 1px solid #eef5f3;
}

.ghestihub-calc-card__guide summary {
	color: #0f766e;
	font-size: 12px;
	font-weight: 800;
	cursor: pointer;
}

#ghestihub_calculator_product_data .ghestihub-calc-card__guide h4 {
	margin: 10px 0 4px !important;
	padding: 0 !important;
	font-size: 12px !important;
	font-weight: 800 !important;
}

#ghestihub_calculator_product_data .ghestihub-calc-card__guide ul {
	margin: 0 0 8px !important;
	padding: 0 !important;
	padding-inline-start: 18px !important;
}

#ghestihub_calculator_product_data .ghestihub-calc-card__guide li {
	margin: 0 0 3px !important;
	line-height: 1.7 !important;
}

.ghestihub-calc-card__links {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin: 8px 0 0 !important;
}

.ghestihub-calc-card__links a {
	color: #0f766e;
	font-weight: 700;
	text-decoration: none;
}

@container ghcalc (max-width: 720px) {
	.ghestihub-calc__table {
		min-width: 0 !important;
	}

	#ghestihub_calculator_product_data .ghestihub-calc__table thead {
		display: none;
	}

	#ghestihub_calculator_product_data .ghestihub-calc__table,
	#ghestihub_calculator_product_data .ghestihub-calc__table tbody {
		display: block;
		width: 100% !important;
	}

	#ghestihub_calculator_product_data .ghestihub-calc__table tr {
		display: grid;
		grid-template-columns: 1fr;
		gap: 6px;
		padding: 12px;
		border-bottom: 1px solid #eef5f3;
	}

	#ghestihub_calculator_product_data .ghestihub-calc__table tr:last-child {
		border-bottom: 0;
	}

	#ghestihub_calculator_product_data .ghestihub-calc__table td {
		display: flex !important;
		align-items: center;
		justify-content: space-between;
		gap: 8px;
		width: auto !important;
		padding: 0 !important;
		border: 0 !important;
		white-space: normal !important;
	}

	#ghestihub_calculator_product_data .ghestihub-calc__table td.ghestihub-calc__gw {
		grid-column: 1 / -1;
		justify-content: flex-start;
	}

	#ghestihub_calculator_product_data .ghestihub-calc__table td[data-label]::before {
		content: attr(data-label);
		display: block;
		margin: 0;
		color: #5b6f6b;
		font-size: 11px;
		font-weight: 700;
		line-height: 1.4;
		text-align: start;
	}

	.ghestihub-calc.is-rtl .ghestihub-calc__table td[dir="ltr"]::before {
		direction: rtl;
	}

	#ghestihub_calculator_product_data .ghestihub-calc__table td[dir="ltr"] {
		text-align: start !important;
	}

	.ghestihub-calc__toolbar {
		grid-template-columns: minmax(0, 1fr) 92px;
	}

	.ghestihub-calc__field--check {
		grid-column: 1 / -1;
		justify-self: start;
	}

	.ghestihub-calc-card__figures {
		grid-template-columns: 1fr 1fr;
	}
}

@container ghcalc (max-width: 560px) {
	.ghestihub-calc {
		padding: 12px;
	}

	.ghestihub-calc__top,
	.ghestihub-calc__actions,
	.ghestihub-calc-card__head {
		flex-direction: column;
		align-items: stretch;
	}

	.ghestihub-calc__actions {
		justify-content: stretch;
	}

	.ghestihub-calc__scope,
	.ghestihub-calc__hide {
		width: 100%;
	}

	.ghestihub-calc__reco,
	.ghestihub-calc-card__kpis,
	.ghestihub-calc-card__fee {
		grid-template-columns: 1fr;
	}

	#ghestihub_calculator_product_data .ghestihub-calc-card__fee input {
		width: 100% !important;
	}

	.ghestihub-calc__hide {
		white-space: normal;
	}
}
