/**
 * National Beef Accessibility - CSS
 * 
 * Version: 1.0.0
 */

/* General focus states */

a:focus:focus-visible,
button:focus:focus-visible,
[tabindex="0"]:focus:focus-visible,
.n2-ss-slider a:focus:focus-visible,
.n2-ss-slider button:focus:focus-visible,
.n2-ss-slider [tabindex="0"]:focus:focus-visible {
  outline: revert !important;
}

/* Skip links */

.site .skip-link {
  padding: 0;
}

.site .skip-link:focus {
  padding: 15px 23px 14px;
}

/* Header */

.elementor-nav-menu .submenu-toggle {
  position: absolute;
  right: 0;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 30px;
  padding: 0;
  background: transparent !important;
  border: 0;
  cursor: pointer;
}

.elementor-nav-menu .submenu-toggle .sub-arrow {
  position: static !important;
  padding: 0;
}

.elementor-nav-menu li.is-open > .submenu-toggle {
  transform: rotate(180deg);
}

.elementor-nav-menu ul.sub-menu[aria-hidden="true"] {
  display: none;
}

.elementor-nav-menu ul.sub-menu[aria-hidden="false"] {
  display: block;
}

.elementor-nav-menu a:focus-visible,
.elementor-nav-menu button:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

/* Language Switcher */

@media (orientation: landscape) and (max-width: 767px) {
  body .trp_language_switcher_shortcode {
    position: static !important;
  }
}

body .trp-language-switcher {
  width: 10rem;
}

body .trp-language-switcher > div {
  padding: 0;
}

body .trp_language_switcher_shortcode {
  position: fixed;
  bottom: auto;
  top: var(--wp-admin--admin-bar--height, 0px);
  right: 0;
  z-index: 9999999;
  display: block;
  height: 50px;
  text-align: center;
}

body .trp-language-switcher:focus .trp-ls-shortcode-language,
body .trp-language-switcher:hover .trp-ls-shortcode-language {
  padding: 0;
}

body .trp-language-switcher:focus .trp-ls-shortcode-current-language,
body .trp-language-switcher:hover .trp-ls-shortcode-current-language {
  visibility: visible;
}

body .trp-language-switcher .trp-ls-shortcode-language {
  visibility: visible;
  height: auto;
  overflow: visible;
  position: absolute;
  left: 0;
  top: 0;
  display: inline-block !important;
  min-height: auto;
}

body .trp_language_switcher_shortcode .trp-language-switcher a {
  display: flex;
  align-items: center;
  height: 50px;
}

body
  .trp_language_switcher_shortcode
  .trp-language-switcher
  .trp-ls-shortcode-language {
  display: none !important;
}

body
  .trp_language_switcher_shortcode
  .trp-language-switcher
  .trp-ls-shortcode-current-language:has([aria-expanded="true"])
  + .trp-ls-shortcode-language {
  display: block !important;
  visibility: visible !important;
  margin-top: 50px;
}

body
  .trp_language_switcher_shortcode
  .trp-language-switcher
  .trp-ls-shortcode-language
  .trp-ls-disabled-language {
  display: none;
}

body .elementor-shortcode .trp-ls-shortcode-current-language,
body .elementor-shortcode .trp-ls-shortcode-language {
  width: 100% !important;
  background: transparent;
  box-shadow: none;
  border: none;
}

/* Flip Box */

.elementor-flip-box .elementor-flip-box__back:focus-within {
  opacity: 1;
}
