/**
 * Kedaranchal â€” floating labels for all storefront forms
 */

.kedaranchal-theme .form-row.kr-float-ready,
.kedaranchal-theme .woocommerce-form-row.kr-float-ready,
.kedaranchal-theme .kr-auth-field.kr-float-ready,
.kedaranchal-theme .kr-review-form__field.kr-float-ready,
.kedaranchal-theme .kr-location-dropdown__field.kr-float-ready,
.kedaranchal-theme .kr-float-field.kr-float-ready,
.kedaranchal-theme .comment-form-author.kr-float-ready,
.kedaranchal-theme .comment-form-email.kr-float-ready,
.kedaranchal-theme .comment-form-url.kr-float-ready,
.kedaranchal-theme .comment-form-comment.kr-float-ready,
.kedaranchal-theme .wpforms-field.kr-float-ready,
.kedaranchal-theme .upiwc-input.kr-float-ready {
	position: relative !important;
}

/* Default floating label (resting inside field) */
.kedaranchal-theme .form-row.kr-float-ready > label:not(.checkbox):not(.woocommerce-form__label-for-checkbox),
.kedaranchal-theme .woocommerce-form-row.kr-float-ready > label:not(.checkbox):not(.woocommerce-form__label-for-checkbox),
.kedaranchal-theme .kr-auth-field.kr-float-ready > label,
.kedaranchal-theme .kr-review-form__field.kr-float-ready > label,
.kedaranchal-theme .kr-location-dropdown__field.kr-float-ready > label,
.kedaranchal-theme .kr-float-field.kr-float-ready > label,
.kedaranchal-theme .comment-form-author.kr-float-ready > label,
.kedaranchal-theme .comment-form-email.kr-float-ready > label,
.kedaranchal-theme .comment-form-url.kr-float-ready > label,
.kedaranchal-theme .comment-form-comment.kr-float-ready > label,
.kedaranchal-theme .wpforms-field.kr-float-ready > .wpforms-field-label,
.kedaranchal-theme .wpforms-field.kr-float-ready > label,
.kedaranchal-theme .upiwc-input.kr-float-ready > label {
	position: absolute !important;
	top: 50% !important;
	left: 14px !important;
	right: 14px !important;
	bottom: auto !important;
	transform: translateY(-50%) !important;
	margin: 0 !important;
	padding: 0 !important;
	height: auto !important;
	line-height: 1.2 !important;
	font-size: 0.9375rem !important;
	font-weight: 500 !important;
	color: var(--kr-text-muted, #6b7280) !important;
	background: transparent !important;
	pointer-events: none !important;
	overflow: hidden !important;
	white-space: nowrap !important;
	text-overflow: ellipsis !important;
	z-index: 2 !important;
	display: block !important;
	transition: top 0.18s ease, transform 0.18s ease, font-size 0.18s ease, color 0.18s ease !important;
}

/* Floated / focused */
.kedaranchal-theme .form-row.kr-float-ready.is-floating > label:not(.checkbox):not(.woocommerce-form__label-for-checkbox),
.kedaranchal-theme .form-row.kr-float-ready.w-anim-wrap > label:not(.checkbox):not(.woocommerce-form__label-for-checkbox),
.kedaranchal-theme .woocommerce-form-row.kr-float-ready.is-floating > label:not(.checkbox):not(.woocommerce-form__label-for-checkbox),
.kedaranchal-theme .kr-auth-field.kr-float-ready.is-floating > label,
.kedaranchal-theme .kr-review-form__field.kr-float-ready.is-floating > label,
.kedaranchal-theme .kr-location-dropdown__field.kr-float-ready.is-floating > label,
.kedaranchal-theme .kr-float-field.kr-float-ready.is-floating > label,
.kedaranchal-theme .comment-form-author.kr-float-ready.is-floating > label,
.kedaranchal-theme .comment-form-email.kr-float-ready.is-floating > label,
.kedaranchal-theme .comment-form-url.kr-float-ready.is-floating > label,
.kedaranchal-theme .comment-form-comment.kr-float-ready.is-floating > label,
.kedaranchal-theme .wpforms-field.kr-float-ready.is-floating > .wpforms-field-label,
.kedaranchal-theme .wpforms-field.kr-float-ready.is-floating > label,
.kedaranchal-theme .upiwc-input.kr-float-ready.is-floating > label {
	top: 8px !important;
	transform: none !important;
	font-size: 0.6875rem !important;
	font-weight: 600 !important;
	color: var(--kr-saffron, #ff7722) !important;
	letter-spacing: 0.02em;
}

/* Inputs under floating labels */
.kedaranchal-theme .form-row.kr-float-ready .input-text,
.kedaranchal-theme .form-row.kr-float-ready input[type="text"],
.kedaranchal-theme .form-row.kr-float-ready input[type="email"],
.kedaranchal-theme .form-row.kr-float-ready input[type="tel"],
.kedaranchal-theme .form-row.kr-float-ready input[type="password"],
.kedaranchal-theme .form-row.kr-float-ready input[type="number"],
.kedaranchal-theme .form-row.kr-float-ready input[type="url"],
.kedaranchal-theme .form-row.kr-float-ready select,
.kedaranchal-theme .woocommerce-form-row.kr-float-ready .input-text,
.kedaranchal-theme .kr-auth-field.kr-float-ready .kr-auth-input,
.kedaranchal-theme .kr-review-form__field.kr-float-ready input,
.kedaranchal-theme .kr-review-form__field.kr-float-ready textarea,
.kedaranchal-theme .kr-location-dropdown__field.kr-float-ready input,
.kedaranchal-theme .kr-float-field.kr-float-ready input,
.kedaranchal-theme .kr-float-field.kr-float-ready textarea,
.kedaranchal-theme .kr-float-field.kr-float-ready select,
.kedaranchal-theme .comment-form-author.kr-float-ready input,
.kedaranchal-theme .comment-form-email.kr-float-ready input,
.kedaranchal-theme .comment-form-url.kr-float-ready input,
.kedaranchal-theme .comment-form-comment.kr-float-ready textarea,
.kedaranchal-theme .wpforms-field.kr-float-ready input,
.kedaranchal-theme .wpforms-field.kr-float-ready textarea,
.kedaranchal-theme .wpforms-field.kr-float-ready select,
.kedaranchal-theme .upiwc-input.kr-float-ready input {
	padding-top: 20px !important;
	padding-bottom: 8px !important;
}

.kedaranchal-theme .form-row.kr-float-ready textarea,
.kedaranchal-theme .kr-review-form__field.kr-float-ready textarea,
.kedaranchal-theme .kr-float-field.kr-float-ready textarea,
.kedaranchal-theme .comment-form-comment.kr-float-ready textarea,
.kedaranchal-theme .wpforms-field.kr-float-ready textarea {
	padding-top: 26px !important;
	min-height: 110px !important;
}

/* Textarea resting label sits near top */
.kedaranchal-theme .form-row.kr-float-ready:has(textarea) > label:not(.checkbox),
.kedaranchal-theme .kr-review-form__field.kr-float-ready:has(textarea) > label,
.kedaranchal-theme .comment-form-comment.kr-float-ready > label,
.kedaranchal-theme .wpforms-field.kr-float-ready:has(textarea) > .wpforms-field-label,
.kedaranchal-theme .wpforms-field.kr-float-ready:has(textarea) > label {
	top: 18px !important;
	transform: none !important;
}

.kedaranchal-theme .form-row.kr-float-ready:has(textarea).is-floating > label:not(.checkbox),
.kedaranchal-theme .kr-review-form__field.kr-float-ready:has(textarea).is-floating > label,
.kedaranchal-theme .comment-form-comment.kr-float-ready.is-floating > label,
.kedaranchal-theme .wpforms-field.kr-float-ready:has(textarea).is-floating > .wpforms-field-label,
.kedaranchal-theme .wpforms-field.kr-float-ready:has(textarea).is-floating > label {
	top: 8px !important;
}

/* Hide placeholders while floating labels handle the hint */
.kedaranchal-theme .form-row.kr-float-ready .input-text::placeholder,
.kedaranchal-theme .form-row.kr-float-ready input::placeholder,
.kedaranchal-theme .form-row.kr-float-ready textarea::placeholder,
.kedaranchal-theme .kr-auth-field.kr-float-ready .kr-auth-input::placeholder,
.kedaranchal-theme .kr-review-form__field.kr-float-ready input::placeholder,
.kedaranchal-theme .kr-review-form__field.kr-float-ready textarea::placeholder,
.kedaranchal-theme .kr-location-dropdown__field.kr-float-ready input::placeholder,
.kedaranchal-theme .kr-float-field.kr-float-ready input::placeholder,
.kedaranchal-theme .kr-float-field.kr-float-ready textarea::placeholder,
.kedaranchal-theme .comment-form-author.kr-float-ready input::placeholder,
.kedaranchal-theme .comment-form-email.kr-float-ready input::placeholder,
.kedaranchal-theme .comment-form-url.kr-float-ready input::placeholder,
.kedaranchal-theme .comment-form-comment.kr-float-ready textarea::placeholder,
.kedaranchal-theme .wpforms-field.kr-float-ready input::placeholder,
.kedaranchal-theme .wpforms-field.kr-float-ready textarea::placeholder,
.kedaranchal-theme .upiwc-input.kr-float-ready input::placeholder {
	color: transparent !important;
	opacity: 0 !important;
}

/* Select2 rendered value padding for floated label */
.kedaranchal-theme .form-row.kr-float-ready .select2-container .select2-selection--single {
	height: 52px !important;
	min-height: 52px !important;
	display: flex !important;
	align-items: center !important;
}

.kedaranchal-theme .form-row.kr-float-ready .select2-container .select2-selection__rendered {
	padding: 16px 36px 4px 14px !important;
	line-height: 1.35 !important;
	color: var(--kr-text, #1a1a1a) !important;
}

.kedaranchal-theme .form-row.kr-float-ready .select2-container .select2-selection__arrow {
	height: 100% !important;
	top: 0 !important;
}

/* Auth fields with leading icons */
.kedaranchal-theme .kr-auth-field.kr-float-ready > label {
	left: 44px !important;
}

.kedaranchal-theme .kr-auth-field.kr-float-ready .kr-auth-input {
	padding-left: 44px !important;
}

/* Checkout overrides â€” enable floating (undo stacked) */
.kedaranchal-theme.checkout-layout-3 form.checkout .col-left .form-row:not(.field-readonly).kr-float-ready {
	position: relative !important;
}

.kedaranchal-theme.checkout-layout-3 form.checkout .col-left .form-row:not(.field-readonly).kr-float-ready label:not(.checkbox),
.kedaranchal-theme.checkout-layout-3 form.checkout .col-left .form-row:not(.field-readonly).kr-float-ready.w-anim-wrap label,
.kedaranchal-theme.checkout-layout-3 form.checkout .col-left .form-row:not(.field-readonly).kr-float-ready.notes label {
	position: absolute !important;
	pointer-events: none !important;
}

.kedaranchal-theme.woocommerce-checkout .form-row.kr-float-ready .kr-checkout-input,
.kedaranchal-theme.woocommerce-checkout .form-row.kr-float-ready .input-text,
.kedaranchal-theme.woocommerce-checkout .form-row.kr-float-ready select,
.kedaranchal-theme.woocommerce-checkout .form-row.kr-float-ready textarea {
	height: 52px !important;
	padding: 20px 14px 8px !important;
}

.kedaranchal-theme.woocommerce-checkout .form-row.kr-float-ready textarea {
	height: auto !important;
	min-height: 110px !important;
	padding-top: 26px !important;
}

/* Account dashboard forms */
.kedaranchal-theme.kr-account-dashboard-page .woocommerce-EditAccountForm .form-row.kr-float-ready label,
.kedaranchal-theme.kr-account-dashboard-page .woocommerce-address-fields .form-row.kr-float-ready label {
	margin-bottom: 0 !important;
}

.kedaranchal-theme.kr-account-dashboard-page .woocommerce-EditAccountForm .form-row.kr-float-ready input.input-text,
.kedaranchal-theme.kr-account-dashboard-page .woocommerce-EditAccountForm .form-row.kr-float-ready select,
.kedaranchal-theme.kr-account-dashboard-page .woocommerce-EditAccountForm .form-row.kr-float-ready textarea {
	height: 52px !important;
	padding: 20px 14px 8px !important;
}

.kedaranchal-theme.kr-account-dashboard-page .woocommerce-EditAccountForm .form-row.kr-float-ready textarea {
	height: auto !important;
	min-height: 110px !important;
	padding-top: 26px !important;
}

/* Review form */
.kedaranchal-theme .kr-review-form__field.kr-float-ready label {
	display: block;
}

.kedaranchal-theme .kr-review-form__field.kr-float-ready input[type="text"],
.kedaranchal-theme .kr-review-form__field.kr-float-ready input[type="email"],
.kedaranchal-theme .kr-review-form__field.kr-float-ready textarea {
	height: 52px;
}

.kedaranchal-theme .kr-review-form__field.kr-float-ready textarea {
	height: auto;
}

/* Location pincode â€” floating label over input (button stays right) */
.kedaranchal-theme .kr-location-dropdown__field.kr-float-ready {
	margin-bottom: 0;
}

.kedaranchal-theme .kr-location-dropdown__field.kr-float-ready > label {
	left: 14px !important;
	right: auto !important;
	width: calc(100% - 120px);
	z-index: 3 !important;
}

.kedaranchal-theme .kr-location-dropdown__field.kr-float-ready .kr-location-dropdown__pin-input {
	padding-top: 20px !important;
	padding-bottom: 8px !important;
	height: 52px !important;
}

/* UPI checkout field */
.kedaranchal-theme .upiwc-input.kr-float-ready > label {
	z-index: 3 !important;
}

.kedaranchal-theme .upiwc-input.kr-float-ready .upiwc-input-field input,
.kedaranchal-theme .upiwc-input.kr-float-ready input.upiwc-address {
	height: 52px !important;
	padding: 20px 14px 8px !important;
}

/* Blog comments */
.kedaranchal-theme .comment-form-author.kr-float-ready,
.kedaranchal-theme .comment-form-email.kr-float-ready,
.kedaranchal-theme .comment-form-url.kr-float-ready,
.kedaranchal-theme .comment-form-comment.kr-float-ready {
	margin: 0 0 14px !important;
}

.kedaranchal-theme .comment-form-author.kr-float-ready input,
.kedaranchal-theme .comment-form-email.kr-float-ready input,
.kedaranchal-theme .comment-form-url.kr-float-ready input {
	width: 100% !important;
	height: 52px !important;
	padding: 20px 14px 8px !important;
	border: 1.5px solid var(--kr-border, #e8e4df) !important;
	border-radius: var(--kr-radius, 12px) !important;
	background: #fff !important;
	box-sizing: border-box !important;
}

.kedaranchal-theme .comment-form-comment.kr-float-ready textarea {
	width: 100% !important;
	padding: 26px 14px 10px !important;
	border: 1.5px solid var(--kr-border, #e8e4df) !important;
	border-radius: var(--kr-radius, 12px) !important;
	background: #fff !important;
	box-sizing: border-box !important;
}

/* WPForms */
.kedaranchal-theme .wpforms-field.kr-float-ready {
	padding-top: 0 !important;
}

.kedaranchal-theme .wpforms-field.kr-float-ready input,
.kedaranchal-theme .wpforms-field.kr-float-ready select {
	height: 52px !important;
	padding: 20px 14px 8px !important;
}

.kedaranchal-theme .wpforms-field.kr-float-ready .wpforms-field-sublabel,
.kedaranchal-theme .wpforms-field.kr-float-ready .wpforms-field-description {
	margin-top: 6px;
}
