/* ==========================================================================
   Checkout & Account: Fatura Türü Segmented Control & Coherent Corporate Block
   ========================================================================== */

.pirladent-invoice-type-field.is-enhanced select.pirladent-invoice-type-input {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	white-space: nowrap !important;
	border: 0 !important;
}

.pirladent-invoice-type-toggle {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 6px;
	padding: 4px;
	border: 1px solid var(--el-color-border-soft, #e4e1ea);
	border-radius: var(--el-radius-pill, 999px);
	background: var(--el-color-surface-section-soft, #f3eff8);
	max-width: 100%;
	margin-top: 6px;
	margin-bottom: 4px;
}

.pirladent-invoice-type-toggle button.pirladent-invoice-type-btn {
	--btn-bgcolor: transparent;
	--btn-color: var(--el-color-text-muted, #6f6b78);
	--btn-brd-width: 0px;
	--btn-transform: none;
	--btn-box-shadow: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 8px 16px;
	border: 1px solid transparent;
	border-radius: var(--el-radius-pill, 999px);
	background-color: transparent !important;
	color: var(--el-color-text-muted, #6f6b78) !important;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.2;
	text-align: center;
	text-transform: none !important;
	cursor: pointer;
	box-shadow: none !important;
	transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
	user-select: none;
	-webkit-tap-highlight-color: transparent;
}

@media (hover: hover) {
	.pirladent-invoice-type-toggle button.pirladent-invoice-type-btn:hover:not(.is-active) {
		--btn-bgcolor: rgba(255, 255, 255, 0.6);
		--btn-color: var(--el-color-brand-primary, #7b4fa8);
		color: var(--el-color-brand-primary, #7b4fa8) !important;
		background-color: rgba(255, 255, 255, 0.6) !important;
	}
}

.pirladent-invoice-type-toggle button.pirladent-invoice-type-btn:focus-visible {
	outline: 2px solid var(--el-color-brand-primary, #7b4fa8);
	outline-offset: 2px;
}

.pirladent-invoice-type-toggle button.pirladent-invoice-type-btn.is-active {
	--btn-bgcolor: var(--el-color-brand-primary, #7b4fa8);
	--btn-color: #ffffff;
	background-color: var(--el-color-brand-primary, #7b4fa8) !important;
	color: #ffffff !important;
	border-color: var(--el-color-brand-primary, #7b4fa8) !important;
	box-shadow: 0 2px 8px rgba(106, 66, 145, 0.25) !important;
	font-weight: 700;
}

/* Ensure clean flow for corporate and individual fields on checkout */
.woocommerce-checkout .pirladent-invoice-type-field,
.woocommerce-checkout .pirladent-company-field,
.woocommerce-checkout #billing_tckn_field {
	clear: both;
}

.woocommerce-checkout #billing_tax_office_field {
	clear: left;
}
