/*
 * Pelak Azad — Mobile touch halo follow-up
 * v1.1.72.567
 *
 * Root cause:
 * The original mobile-touch-feedback.css is loaded early. Some later component
 * styles (and custom controls using `all: unset`) can reintroduce browser focus/
 * tap visuals. This file is intentionally enqueued late and only on touch/coarse
 * pointers.
 *
 * Scope:
 * 1) Mobile header notification bell.
 * 2) Home hero price-range handles.
 * 3) Site custom dropdown options/triggers.
 *
 * Selected/open colors are preserved. Only the unintended browser blue halo /
 * focus shadow is neutralized.
 */

@media (hover: none), (pointer: coarse) {

    /* ----------------------------------------------------------
     * 1. Mobile header notification bell
     * ---------------------------------------------------------- */
    .pelak-notification-bell,
    .pelak-notification-bell *,
    .pelak-notification-bell *::before,
    .pelak-notification-bell *::after {
        -webkit-tap-highlight-color: transparent !important;
    }

    .pelak-notification-bell:focus,
    .pelak-notification-bell:focus-visible,
    .pelak-notification-bell:active,
    .pelak-notification-bell :focus,
    .pelak-notification-bell :focus-visible,
    .pelak-notification-bell :active {
        outline: 0 !important;
        outline-color: transparent !important;
        box-shadow: none !important;
        -webkit-box-shadow: none !important;
    }

    /* ----------------------------------------------------------
     * Single-car share control
     * Android Chrome paints its native blue tap highlight on the
     * Elementor icon wrapper after the Web Share sheet is opened.
     * Keep the icon's approved Pelak-red presentation unchanged.
     * ---------------------------------------------------------- */
    .pelak-share-button,
    .pelak-share-button *,
    .pelak-share-button *::before,
    .pelak-share-button *::after {
        -webkit-tap-highlight-color: transparent !important;
    }

    .pelak-share-button:focus,
    .pelak-share-button:focus-visible,
    .pelak-share-button:active,
    .pelak-share-button .elementor-icon-wrapper:focus,
    .pelak-share-button .elementor-icon-wrapper:focus-visible,
    .pelak-share-button .elementor-icon-wrapper:active,
    .pelak-share-button .elementor-icon:focus,
    .pelak-share-button .elementor-icon:focus-visible,
    .pelak-share-button .elementor-icon:active {
        outline: 0 !important;
        outline-color: transparent !important;
        box-shadow: none !important;
        -webkit-box-shadow: none !important;
    }

    /* ----------------------------------------------------------
     * 2. Home-page price range handles
     * Keep the approved Pelak-red handle/shadow; remove native
     * blue focus/tap feedback around the focusable noUi handle.
     * ---------------------------------------------------------- */
    .pa-hero-price-range .noUi-handle,
    .pa-hero-price-range .noUi-touch-area,
    .pa-hero-price-range input[type="range"] {
        -webkit-tap-highlight-color: transparent !important;
        outline: 0 !important;
        outline-color: transparent !important;
    }

    .pa-hero-price-range .noUi-handle:focus,
    .pa-hero-price-range .noUi-handle:focus-visible {
        outline: 0 !important;
        outline-color: transparent !important;
        box-shadow: 0 3px 10px rgba(237, 28, 36, 0.28) !important;
        -webkit-box-shadow: 0 3px 10px rgba(237, 28, 36, 0.28) !important;
    }

    .pa-hero-price-range .noUi-handle:active,
    .pa-hero-price-range .noUi-handle:active:focus,
    .pa-hero-price-range .noUi-handle:active:focus-visible {
        outline: 0 !important;
        outline-color: transparent !important;
        box-shadow:
            0 0 0 5px rgba(237, 28, 36, 0.10),
            0 3px 10px rgba(15, 23, 42, .12) !important;
        -webkit-box-shadow:
            0 0 0 5px rgba(237, 28, 36, 0.10),
            0 3px 10px rgba(15, 23, 42, .12) !important;
    }

    .pa-hero-price-range input[type="range"]:focus,
    .pa-hero-price-range input[type="range"]:focus-visible,
    .pa-hero-price-range input[type="range"]:active {
        outline: 0 !important;
        outline-color: transparent !important;
        box-shadow: none !important;
        -webkit-box-shadow: none !important;
    }

    /* ----------------------------------------------------------
     * 3. Custom dropdowns used across the site
     * The existing selected / hover colors stay untouched.
     * ---------------------------------------------------------- */
    :where(
        .pa-hselect__trigger,
        .pa-hselect__option,
        .pa-custom-select__button,
        .pa-custom-select__option,
        .pa-custom-brand-trigger,
        .pa-custom-brand-option,
        .pa-custom-visit-trigger,
        .pa-custom-visit-option,
        .pa-price-picker-trigger,
        .pa-price-picker-row,
        .pa-mileage-picker-trigger,
        .pa-mileage-picker-row,
        .pa-year-picker-trigger,
        .pa-year-picker-row,
        .pa-agahi-sort-ui__trigger,
        .pa-agahi-sort-ui__option,
        .pa-si-custom-select__option,
        .pa-slead-status-menu__option,
        .pa-identity-request-dropdown__button,
        .pa-identity-request-dropdown-menu__option,
        .jet-select__control,
        select
    ) {
        -webkit-tap-highlight-color: transparent !important;
    }

    :where(
        .pa-hselect__trigger,
        .pa-hselect__option,
        .pa-custom-select__button,
        .pa-custom-select__option,
        .pa-custom-brand-trigger,
        .pa-custom-brand-option,
        .pa-custom-visit-trigger,
        .pa-custom-visit-option,
        .pa-price-picker-trigger,
        .pa-price-picker-row,
        .pa-mileage-picker-trigger,
        .pa-mileage-picker-row,
        .pa-year-picker-trigger,
        .pa-year-picker-row,
        .pa-agahi-sort-ui__trigger,
        .pa-agahi-sort-ui__option,
        .pa-si-custom-select__option,
        .pa-slead-status-menu__option,
        .pa-identity-request-dropdown__button,
        .pa-identity-request-dropdown-menu__option,
        .jet-select__control,
        select
    ):focus,
    :where(
        .pa-hselect__trigger,
        .pa-hselect__option,
        .pa-custom-select__button,
        .pa-custom-select__option,
        .pa-custom-brand-trigger,
        .pa-custom-brand-option,
        .pa-custom-visit-trigger,
        .pa-custom-visit-option,
        .pa-price-picker-trigger,
        .pa-price-picker-row,
        .pa-mileage-picker-trigger,
        .pa-mileage-picker-row,
        .pa-year-picker-trigger,
        .pa-year-picker-row,
        .pa-agahi-sort-ui__trigger,
        .pa-agahi-sort-ui__option,
        .pa-si-custom-select__option,
        .pa-slead-status-menu__option,
        .pa-identity-request-dropdown__button,
        .pa-identity-request-dropdown-menu__option,
        .jet-select__control,
        select
    ):focus-visible,
    :where(
        .pa-hselect__option,
        .pa-custom-select__option,
        .pa-custom-brand-option,
        .pa-custom-visit-option,
        .pa-price-picker-row,
        .pa-mileage-picker-row,
        .pa-year-picker-row,
        .pa-agahi-sort-ui__option,
        .pa-si-custom-select__option,
        .pa-slead-status-menu__option,
        .pa-identity-request-dropdown-menu__option
    ):active {
        outline: 0 !important;
        outline-color: transparent !important;
        box-shadow: none !important;
        -webkit-box-shadow: none !important;
    }
}
