/* PG AI Yorum Asistanı 3.3.2 */
body.pg-ai-ya-active .woocommerce-tabs,
body.pg-ai-ya-active .woocommerce-Tabs-panel,
body.pg-ai-ya-active .pg-ai-ya-tab-nav,
body.pg-ai-ya-active .pg-ai-ya-tab-button {
	box-sizing: border-box !important;
}

body.pg-ai-ya-active .woocommerce-tabs {
	position: relative !important;
	border: 1px solid rgba(122, 61, 24, .28) !important;
	border-radius: 18px !important;
	overflow: hidden !important;
	background: #fff !important;
	box-shadow: 0 18px 40px rgba(65, 31, 13, .08) !important;
}

/* WoodMart/WooCommerce'in kendi sekme başlığı gizlenir; yerine çakışmasız özel başlık kullanılır. */
body.pg-ai-ya-active .woocommerce-tabs.pg-ai-ya-custom-tabs-ready ul.tabs,
body.pg-ai-ya-active .woocommerce-tabs.pg-ai-ya-custom-tabs-ready ul.wc-tabs,
body.pg-ai-ya-active .woocommerce-tabs.pg-ai-ya-custom-tabs-ready .woodmart-accordion-title,
body.pg-ai-ya-active .woocommerce-tabs.pg-ai-ya-custom-tabs-ready .wd-accordion-title {
	display: none !important;
}

body.pg-ai-ya-active .pg-ai-ya-tab-nav {
	display: grid !important;
	grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
	position: relative !important;
	top: auto !important;
	left: auto !important;
	transform: none !important;
	width: 100% !important;
	height: auto !important;
	min-height: 72px !important;
	margin: 0 !important;
	padding: 0 !important;
	overflow: visible !important;
	background: #7b3f1e !important;
	border: 0 !important;
	z-index: 5 !important;
}

body.pg-ai-ya-active .pg-ai-ya-tab-button {
	-webkit-appearance: none !important;
	appearance: none !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	position: relative !important;
	top: auto !important;
	bottom: auto !important;
	left: auto !important;
	right: auto !important;
	transform: none !important;
	float: none !important;
	width: 100% !important;
	height: 72px !important;
	min-height: 72px !important;
	max-height: 72px !important;
	margin: 0 !important;
	padding: 14px 10px !important;
	border: 0 !important;
	border-radius: 0 !important;
	outline: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	color: #fff !important;
	font-family: inherit !important;
	font-size: 16px !important;
	font-style: normal !important;
	font-weight: 700 !important;
	line-height: 1.25 !important;
	letter-spacing: 0 !important;
	text-align: center !important;
	text-decoration: none !important;
	text-indent: 0 !important;
	text-transform: none !important;
	white-space: normal !important;
	overflow: visible !important;
	clip: auto !important;
	clip-path: none !important;
	visibility: visible !important;
	opacity: 1 !important;
	cursor: pointer !important;
}

body.pg-ai-ya-active .pg-ai-ya-tab-button:hover,
body.pg-ai-ya-active .pg-ai-ya-tab-button:focus-visible,
body.pg-ai-ya-active .pg-ai-ya-tab-button.is-active {
	background: #945a36 !important;
	color: #fff !important;
}

body.pg-ai-ya-active .pg-ai-ya-tab-button.is-active {
	box-shadow: inset 0 -5px 0 #e6ab55 !important;
}

body.pg-ai-ya-active .woocommerce-tabs .woocommerce-Tabs-panel,
body.pg-ai-ya-active .woocommerce-tabs .panel {
	position: relative !important;
	top: auto !important;
	transform: none !important;
	width: 100% !important;
	margin: 0 !important;
	padding: 36px 38px !important;
	background: #fff !important;
	border: 0 !important;
	min-height: 180px !important;
	visibility: visible !important;
	opacity: 1 !important;
}

body.pg-ai-ya-active .woocommerce-tabs .pg-ai-ya-tab-section {
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
}

body.pg-ai-ya-active #tab-reviews:empty::before,
body.pg-ai-ya-active .woocommerce-Tabs-panel--reviews:empty::before {
	content: "Değerlendirmeler yükleniyor…";
	display: block;
	padding: 15px;
	color: #555;
}

body.pg-ai-ya-active #reviews,
body.pg-ai-ya-active .woocommerce-Reviews {
	margin: 0 !important;
	padding: 0 !important;
}

body.pg-ai-ya-active #reviews #comments,
body.pg-ai-ya-active #reviews #review_form_wrapper {
	width: 100%;
	float: none;
}

body.pg-ai-ya-active #reviews #review_form_wrapper {
	margin-top: 26px;
	padding: 24px;
	border: 1px solid #ead8cb;
	border-radius: 14px;
	background: #fffaf6;
}

body.pg-ai-ya-active #reviews .comment-form {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px 18px;
}

body.pg-ai-ya-active #reviews .comment-form-rating,
body.pg-ai-ya-active #reviews .comment-form-comment,
body.pg-ai-ya-active #reviews .form-submit,
body.pg-ai-ya-active #reviews .comment-notes,
body.pg-ai-ya-active #reviews .comment-form-cookies-consent {
	grid-column: 1 / -1;
}

body.pg-ai-ya-active #reviews label,
body.pg-ai-ya-active .pg-ai-ya-form-card label {
	display: block;
	margin-bottom: 7px;
	font-weight: 700;
	color: #3f2719;
}

body.pg-ai-ya-active #reviews input[type="text"],
body.pg-ai-ya-active #reviews input[type="email"],
body.pg-ai-ya-active #reviews textarea,
body.pg-ai-ya-active .pg-ai-ya-form-card input[type="text"],
body.pg-ai-ya-active .pg-ai-ya-form-card input[type="email"],
body.pg-ai-ya-active .pg-ai-ya-form-card textarea {
	width: 100%;
	border: 1px solid #d8c4b7;
	border-radius: 10px;
	background: #fff;
	padding: 12px 13px;
	box-shadow: none;
}

body.pg-ai-ya-active #reviews input:focus,
body.pg-ai-ya-active #reviews textarea:focus,
body.pg-ai-ya-active .pg-ai-ya-form-card input:focus,
body.pg-ai-ya-active .pg-ai-ya-form-card textarea:focus {
	outline: none;
	border-color: #8a4b28;
	box-shadow: 0 0 0 3px rgba(138, 75, 40, .12);
}

body.pg-ai-ya-active #reviews .stars a {
	font-size: 24px;
}

body.pg-ai-ya-active #reviews .submit,
body.pg-ai-ya-active .pg-ai-ya-form-card .button {
	border: 0 !important;
	border-radius: 999px !important;
	background: #7b3f1e !important;
	color: #fff !important;
	font-weight: 700 !important;
	padding: 12px 22px !important;
	cursor: pointer;
}

body.pg-ai-ya-active .pg-ai-ya-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px;
}

body.pg-ai-ya-active .pg-ai-ya-form-card {
	margin-top: 25px;
	padding: 24px;
	border: 1px solid #ead8cb;
	border-radius: 14px;
	background: #fffaf6;
}

body.pg-ai-ya-active .pg-ai-ya-form-card p {
	margin: 0 0 16px;
}

body.pg-ai-ya-active .pg-ai-ya-form-card label span,
body.pg-ai-ya-active #reviews label .optional {
	font-weight: 400;
	color: #777;
}

body.pg-ai-ya-active .pg-ai-ya-qna-list {
	display: grid;
	gap: 14px;
	margin-top: 18px;
}

body.pg-ai-ya-active .pg-ai-ya-question {
	padding: 18px;
	border: 1px solid #ead8cb;
	border-radius: 12px;
	background: #fff;
}

body.pg-ai-ya-active .pg-ai-ya-q-head {
	display: flex;
	justify-content: space-between;
	gap: 15px;
	margin-bottom: 8px;
	color: #4d2d1c;
}

body.pg-ai-ya-active .pg-ai-ya-q-head time {
	font-size: 13px;
	color: #777;
}

body.pg-ai-ya-active .pg-ai-ya-answer {
	margin-top: 13px;
	padding: 13px 15px;
	border-left: 4px solid #b36f3f;
	background: #fff7f1;
	border-radius: 8px;
}

body.pg-ai-ya-active .pg-ai-ya-payment-item {
	padding: 17px 0;
	border-bottom: 1px solid #eee2da;
}

body.pg-ai-ya-active .pg-ai-ya-payment-item:last-child {
	border-bottom: 0;
}

body.pg-ai-ya-active .pg-ai-ya-payment-item h4 {
	margin: 0 0 7px;
}

body.pg-ai-ya-active .pg-ai-ya-notice {
	margin-bottom: 18px;
	padding: 12px 15px;
	border-radius: 10px;
	font-weight: 600;
}

body.pg-ai-ya-active .pg-ai-ya-notice.success {
	background: #effaf2;
	color: #206631;
	border: 1px solid #bde5c5;
}

body.pg-ai-ya-active .pg-ai-ya-notice.error {
	background: #fff1f1;
	color: #8c2525;
	border: 1px solid #f0c1c1;
}

/* Önceki sürümün ayrı/sabit değerlendirme düğmesi kesinlikle görünmesin. */
body.pg-ai-ya-active .pg-review-floating-button,
body.pg-ai-ya-active .pg-ai-review-fab,
body.pg-ai-ya-active .pg-ai-ya-review-fab,
body.pg-ai-ya-active #pg-review-floating-button,
body.pg-ai-ya-active [data-pg-review-fab] {
	display: none !important;
}

@media (max-width: 900px) {
	body.pg-ai-ya-active .woocommerce-tabs ul.tabs,
	body.pg-ai-ya-active .woocommerce-tabs .tabs {
		grid-template-columns: 1fr !important;
	}

	body.pg-ai-ya-active .woocommerce-tabs ul.tabs li a {
		min-height: 50px;
		justify-content: flex-start;
		padding: 13px 18px !important;
	}

	body.pg-ai-ya-active .woocommerce-tabs .woocommerce-Tabs-panel,
	body.pg-ai-ya-active .woocommerce-tabs .panel {
		padding: 24px 18px !important;
	}

	body.pg-ai-ya-active #reviews .comment-form,
	body.pg-ai-ya-active .pg-ai-ya-grid {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 900px) {
	body.pg-ai-ya-active .pg-ai-ya-tab-nav {
		display: flex !important;
		grid-template-columns: none !important;
		overflow-x: auto !important;
		overflow-y: hidden !important;
		min-height: 56px !important;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: thin;
	}

	body.pg-ai-ya-active .pg-ai-ya-tab-button {
		flex: 0 0 auto !important;
		width: auto !important;
		min-width: 170px !important;
		height: 56px !important;
		min-height: 56px !important;
		max-height: 56px !important;
		padding: 12px 16px !important;
		font-size: 14px !important;
		justify-content: center !important;
	}

	body.pg-ai-ya-active .woocommerce-tabs .woocommerce-Tabs-panel,
	body.pg-ai-ya-active .woocommerce-tabs .panel {
		padding: 24px 18px !important;
	}
}

/* PG AI Yorum Asistanı 3.3.3 — yıldız çakışması için kesin sıfırlama */
body.pg-ai-ya-active #reviews .comment-form-rating,
body.pg-ai-ya-active .woocommerce-Reviews .comment-form-rating {
	display: flex !important;
	flex-direction: column !important;
	align-items: flex-start !important;
	justify-content: flex-start !important;
	gap: 9px !important;
	width: 100% !important;
	min-width: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	float: none !important;
	position: relative !important;
}

body.pg-ai-ya-active #reviews .comment-form-rating > label,
body.pg-ai-ya-active .woocommerce-Reviews .comment-form-rating > label {
	display: block !important;
	width: 100% !important;
	margin: 0 !important;
	padding: 0 !important;
	float: none !important;
	line-height: 1.4 !important;
}

body.pg-ai-ya-active #reviews p.stars,
body.pg-ai-ya-active .woocommerce-Reviews p.stars {
	display: block !important;
	position: static !important;
	float: none !important;
	clear: both !important;
	width: auto !important;
	height: auto !important;
	min-height: 38px !important;
	margin: 0 !important;
	padding: 0 !important;
	font-size: 0 !important;
	line-height: 1 !important;
	letter-spacing: 0 !important;
	white-space: nowrap !important;
	overflow: visible !important;
	transform: none !important;
}

body.pg-ai-ya-active #reviews p.stars > span,
body.pg-ai-ya-active .woocommerce-Reviews p.stars > span {
	display: inline-flex !important;
	flex-direction: row !important;
	align-items: center !important;
	justify-content: flex-start !important;
	gap: 6px !important;
	position: static !important;
	float: none !important;
	width: auto !important;
	height: 38px !important;
	margin: 0 !important;
	padding: 0 !important;
	font-size: 0 !important;
	line-height: 1 !important;
	letter-spacing: 0 !important;
	transform: none !important;
}

body.pg-ai-ya-active #reviews p.stars a,
body.pg-ai-ya-active .woocommerce-Reviews p.stars a,
body.pg-ai-ya-active #reviews p.stars a[class*="star-"],
body.pg-ai-ya-active .woocommerce-Reviews p.stars a[class*="star-"] {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	position: relative !important;
	top: auto !important;
	right: auto !important;
	bottom: auto !important;
	left: auto !important;
	inset: auto !important;
	float: none !important;
	flex: 0 0 38px !important;
	width: 38px !important;
	min-width: 38px !important;
	max-width: 38px !important;
	height: 38px !important;
	min-height: 38px !important;
	max-height: 38px !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 6px !important;
	background: transparent !important;
	box-shadow: none !important;
	font-size: 0 !important;
	line-height: 38px !important;
	letter-spacing: 0 !important;
	text-align: center !important;
	text-decoration: none !important;
	text-indent: -9999px !important;
	white-space: nowrap !important;
	overflow: hidden !important;
	clip: auto !important;
	clip-path: none !important;
	transform: none !important;
	visibility: visible !important;
	opacity: 1 !important;
	color: transparent !important;
}

body.pg-ai-ya-active #reviews p.stars a::before,
body.pg-ai-ya-active .woocommerce-Reviews p.stars a::before,
body.pg-ai-ya-active #reviews p.stars a[class*="star-"]::before,
body.pg-ai-ya-active .woocommerce-Reviews p.stars a[class*="star-"]::before {
	content: "☆" !important;
	display: block !important;
	position: absolute !important;
	top: 0 !important;
	right: 0 !important;
	bottom: 0 !important;
	left: 0 !important;
	width: 38px !important;
	height: 38px !important;
	margin: 0 !important;
	padding: 0 !important;
	font-family: Arial, "Segoe UI Symbol", sans-serif !important;
	font-size: 32px !important;
	font-style: normal !important;
	font-weight: 400 !important;
	line-height: 38px !important;
	letter-spacing: 0 !important;
	text-align: center !important;
	text-indent: 0 !important;
	text-transform: none !important;
	color: #a9a9a9 !important;
	background: transparent !important;
	transform: none !important;
	visibility: visible !important;
	opacity: 1 !important;
}

body.pg-ai-ya-active #reviews p.stars a::after,
body.pg-ai-ya-active .woocommerce-Reviews p.stars a::after {
	content: none !important;
	display: none !important;
}

body.pg-ai-ya-active #reviews p.stars a.pg-ai-ya-star-filled::before,
body.pg-ai-ya-active .woocommerce-Reviews p.stars a.pg-ai-ya-star-filled::before {
	content: "★" !important;
	color: #d98a28 !important;
}

body.pg-ai-ya-active #reviews p.stars a:hover,
body.pg-ai-ya-active #reviews p.stars a:focus-visible,
body.pg-ai-ya-active .woocommerce-Reviews p.stars a:hover,
body.pg-ai-ya-active .woocommerce-Reviews p.stars a:focus-visible {
	background: rgba(217, 138, 40, .10) !important;
	outline: 2px solid rgba(217, 138, 40, .25) !important;
	outline-offset: 1px !important;
}

body.pg-ai-ya-active #reviews select#rating,
body.pg-ai-ya-active .woocommerce-Reviews select#rating {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	margin: -1px !important;
	padding: 0 !important;
	border: 0 !important;
	overflow: hidden !important;
	clip: rect(0 0 0 0) !important;
	clip-path: inset(50%) !important;
	white-space: nowrap !important;
}

/* Beş sekmenin dar masaüstünde sağdan kırpılmasını önler. */
@media (min-width: 901px) {
	body.pg-ai-ya-active .pg-ai-ya-tab-button {
		min-width: 0 !important;
		padding-left: clamp(7px, .8vw, 14px) !important;
		padding-right: clamp(7px, .8vw, 14px) !important;
		font-size: clamp(13px, 1.05vw, 16px) !important;
	}
}

@media (max-width: 600px) {
	body.pg-ai-ya-active #reviews p.stars > span,
	body.pg-ai-ya-active .woocommerce-Reviews p.stars > span {
		gap: 3px !important;
	}

	body.pg-ai-ya-active #reviews p.stars a,
	body.pg-ai-ya-active .woocommerce-Reviews p.stars a {
		flex-basis: 34px !important;
		width: 34px !important;
		min-width: 34px !important;
		max-width: 34px !important;
		height: 34px !important;
		min-height: 34px !important;
		max-height: 34px !important;
		line-height: 34px !important;
	}

	body.pg-ai-ya-active #reviews p.stars a::before,
	body.pg-ai-ya-active .woocommerce-Reviews p.stars a::before {
		width: 34px !important;
		height: 34px !important;
		font-size: 29px !important;
		line-height: 34px !important;
	}
}
