/**
 * Keyboard Navigation Accessibility Fixes
 */

/* Add visible focus styles for search button */
.tff-header-search-wrapper .search-form-main .search-submit:focus {
    outline: 2px solid #20c997;
    outline-offset: 2px;
    box-shadow: 0 0 0 2px rgba(32, 201, 151, 0.5);
}

/* Make sure search button has clear focus styles */
.search-submit:focus,
button.search-submit:focus,
input[type="submit"].search-submit:focus {
    outline: 2px solid #20c997;
    outline-offset: 2px;
    box-shadow: 0 0 0 2px rgba(32, 201, 151, 0.5);
}

/* Fix submenu keyboard navigation */
.tff-menu li:focus-within > .sub-menu,
.tff-menu li:focus > .sub-menu {
    visibility: visible;
    opacity: 1;
    z-index: 999;
    transform: translateY(0);
    transition-delay: 0s, 0s, 0.3s;
}

/* Add visible focus to menu items */
.tff-menu li a:focus,
.tff-menu li a:focus-visible {
    outline: 2px solid #20c997;
    outline-offset: 2px;
}

/* Fix for keyboard navigation in submenu */
.tff-menu li.menu-item-has-children:focus-within > a::after {
    transform: rotate(180deg);
} 