/*
Theme Name: Total Child Theme
Theme URI: https://your-site.com
Description: Your site description. Go to Appearance > Editor to modify this file.
Author: Your Name
Author URI: https://your-site.com
Template: Total
Version: 1.0
*/
/* =========================================================
   Language flags - desktop + mobile menu
   ========================================================= */

.menu-lang-en > a,
.menu-lang-sr > a,
li.menu-lang-en > a,
li.menu-lang-sr > a,
.mobile-menu .menu-lang-en > a,
.mobile-menu .menu-lang-sr > a,
.sidr-class-menu-lang-en > a,
.sidr-class-menu-lang-sr > a,
#sidr-main .menu-lang-en > a,
#sidr-main .menu-lang-sr > a,
.wpex-mobile-menu .menu-lang-en > a,
.wpex-mobile-menu .menu-lang-sr > a {
  display: inline-flex !important;
  align-items: center !important;
  gap: 2px !important;
}

.menu-lang-en > a::before,
.menu-lang-sr > a::before,
li.menu-lang-en > a::before,
li.menu-lang-sr > a::before,
.mobile-menu .menu-lang-en > a::before,
.mobile-menu .menu-lang-sr > a::before,
.sidr-class-menu-lang-en > a::before,
.sidr-class-menu-lang-sr > a::before,
#sidr-main .menu-lang-en > a::before,
#sidr-main .menu-lang-sr > a::before,
.wpex-mobile-menu .menu-lang-en > a::before,
.wpex-mobile-menu .menu-lang-sr > a::before {
  content: "" !important;
  display: inline-block !important;
  width: 18px !important;
  height: 12px !important;
  flex: 0 0 18px !important;
  margin-right: -6px !important;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  border-radius: 1px !important;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.25) !important;
}

/* UK flag */
.menu-lang-en > a::before,
li.menu-lang-en > a::before,
.mobile-menu .menu-lang-en > a::before,
.sidr-class-menu-lang-en > a::before,
#sidr-main .menu-lang-en > a::before,
.wpex-mobile-menu .menu-lang-en > a::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 30'%3E%3CclipPath id='s'%3E%3Cpath d='M0,0 v30 h60 v-30 z'/%3E%3C/clipPath%3E%3CclipPath id='t'%3E%3Cpath d='M30,15 h30 v15 z v15 h-30 z h-30 v-15 z v-15 h30 z'/%3E%3C/clipPath%3E%3Cg clip-path='url(%23s)'%3E%3Cpath d='M0,0 v30 h60 v-30 z' fill='%23012169'/%3E%3Cpath d='M0,0 L60,30 M60,0 L0,30' stroke='%23fff' stroke-width='6'/%3E%3Cpath d='M0,0 L60,30 M60,0 L0,30' clip-path='url(%23t)' stroke='%23C8102E' stroke-width='4'/%3E%3Cpath d='M30,0 v30 M0,15 h60' stroke='%23fff' stroke-width='10'/%3E%3Cpath d='M30,0 v30 M0,15 h60' stroke='%23C8102E' stroke-width='6'/%3E%3C/g%3E%3C/svg%3E") !important;
}

/* Serbian flag */
.menu-lang-sr > a::before,
li.menu-lang-sr > a::before,
.mobile-menu .menu-lang-sr > a::before,
.sidr-class-menu-lang-sr > a::before,
#sidr-main .menu-lang-sr > a::before,
.wpex-mobile-menu .menu-lang-sr > a::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 900 600'%3E%3Crect width='900' height='200' y='0' fill='%23C6363C'/%3E%3Crect width='900' height='200' y='200' fill='%230C4076'/%3E%3Crect width='900' height='200' y='400' fill='%23FFFFFF'/%3E%3C/svg%3E") !important;
}
/* =========================================================
   Language flags - fix desktop spacing + mobile sidr menu
   ========================================================= */

/* Mobile sidr menu */
.sidr-class-menu-lang-en .sidr-class-link-inner,
.sidr-class-menu-lang-sr .sidr-class-link-inner {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0 !important;
}

.sidr-class-menu-lang-en .sidr-class-link-inner::before,
.sidr-class-menu-lang-sr .sidr-class-link-inner::before {
  content: "" !important;
  display: inline-block !important;
  width: 18px !important;
  height: 12px !important;
  flex: 0 0 18px !important;
  margin-right: 5px !important;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  border-radius: 1px !important;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.25) !important;
  position: relative !important;
  top: 1px !important;
}

/* UK flag - mobile */
.sidr-class-menu-lang-en .sidr-class-link-inner::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 30'%3E%3CclipPath id='s'%3E%3Cpath d='M0,0 v30 h60 v-30 z'/%3E%3C/clipPath%3E%3CclipPath id='t'%3E%3Cpath d='M30,15 h30 v15 z v15 h-30 z h-30 v-15 z v-15 h30 z'/%3E%3C/clipPath%3E%3Cg clip-path='url(%23s)'%3E%3Cpath d='M0,0 v30 h60 v-30 z' fill='%23012169'/%3E%3Cpath d='M0,0 L60,30 M60,0 L0,30' stroke='%23fff' stroke-width='6'/%3E%3Cpath d='M0,0 L60,30 M60,0 L0,30' clip-path='url(%23t)' stroke='%23C8102E' stroke-width='4'/%3E%3Cpath d='M30,0 v30 M0,15 h60' stroke='%23fff' stroke-width='10'/%3E%3Cpath d='M30,0 v30 M0,15 h60' stroke='%23C8102E' stroke-width='6'/%3E%3C/g%3E%3C/svg%3E") !important;
}

/* Serbian flag - mobile */
.sidr-class-menu-lang-sr .sidr-class-link-inner::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 900 600'%3E%3Crect width='900' height='200' y='0' fill='%23C6363C'/%3E%3Crect width='900' height='200' y='200' fill='%230C4076'/%3E%3Crect width='900' height='200' y='400' fill='%23FFFFFF'/%3E%3C/svg%3E") !important;
}