/**
 * Štýly pre podmienené polia pokladne pri osobnom odbere.
 * Local Pickup Conditional Checkout
 *
 * @package LocalPickupConditionalCheckout
 */

/* ==========================================================================
   1. KLASICKÁ POKLADŇA (WooCommerce Classic Checkout)
   ========================================================================== */

/* Pri osobnom odbere skryjeme hviezdičku povinnosti (*) pri adrese a telefóne */
body.lpcc-pickup-active .woocommerce-checkout #billing_address_1_field .required,
body.lpcc-pickup-active .woocommerce-checkout #billing_address_2_field .required,
body.lpcc-pickup-active .woocommerce-checkout #billing_city_field .required,
body.lpcc-pickup-active .woocommerce-checkout #billing_state_field .required,
body.lpcc-pickup-active .woocommerce-checkout #billing_postcode_field .required,
body.lpcc-pickup-active .woocommerce-checkout #billing_country_field .required,
body.lpcc-pickup-active .woocommerce-checkout #billing_phone_field .required {
	display: none !important;
}

/* Zobrazenie označenia (voliteľné) */
body.lpcc-pickup-active .woocommerce-checkout #billing_address_1_field .optional,
body.lpcc-pickup-active .woocommerce-checkout #billing_city_field .optional,
body.lpcc-pickup-active .woocommerce-checkout #billing_postcode_field .optional,
body.lpcc-pickup-active .woocommerce-checkout #billing_phone_field .optional {
	display: inline-block !important;
}

/* ==========================================================================
   2. BLOKOVÁ POKLADŇA (Gutenberg Checkout Block)
   ========================================================================== */

/* Polia zostávajú viditeľné; potlačenie chybových stavov pri nepovinných poliach */
body.lpcc-pickup-active .wc-block-checkout__billing-fields .wc-block-components-text-input.has-error:has(#billing-address_1),
body.lpcc-pickup-active .wc-block-checkout__billing-fields .wc-block-components-text-input.has-error:has(#billing-city),
body.lpcc-pickup-active .wc-block-checkout__billing-fields .wc-block-components-text-input.has-error:has(#billing-postcode),
body.lpcc-pickup-active .wc-block-checkout__billing-fields .wc-block-components-text-input.has-error:has(#billing-phone),
body.lpcc-pickup-active .wc-block-checkout__contact-fields .wc-block-components-text-input.has-error:has(#phone),
body.lpcc-pickup-active .wc-block-checkout__contact-fields .wc-block-components-text-input.has-error:has(#contact-phone) {
	border-color: inherit;
}
