/* Inkjetwell 1.5.11 — Kadence Theme main-row HTML language component.
 * Based on 1.5.9; no automatic desktop top row and no relocation script. */

@media (min-width:1025px){
  /* Scheme 1 menu separators: no additional calculated menu width. */
  body.inkjetwell-kadence-ui #masthead #main-header .primary-menu-container>ul>li,
  body.inkjetwell-kadence-ui #masthead #main-header .header-menu-container>ul>li{
    position:relative!important;
  }
  body.inkjetwell-kadence-ui #masthead #main-header .primary-menu-container>ul>li:not(:last-child)::after,
  body.inkjetwell-kadence-ui #masthead #main-header .header-menu-container>ul>li:not(:last-child)::after{
    content:""!important;
    position:absolute!important;
    z-index:2!important;
    top:50%!important;
    right:0!important;
    width:1px!important;
    height:1.15em!important;
    max-height:17px!important;
    border:0!important;
    border-radius:999px!important;
    background:#d6e1e7!important;
    opacity:.95!important;
    transform:translateY(-50%)!important;
    pointer-events:none!important;
  }

  /* Kadence owns the header row. Give Primary Navigation and the administrator
   * HTML item two explicit columns only when that HTML item contains the
   * official TranslatePress shortcode output. */
  body.inkjetwell-kadence-ui.ijw-header-language-enabled #masthead #main-header .site-header-main-section-right:has(>.site-header-item .trp-shortcode-switcher__wrapper){
    display:grid!important;
    grid-template-columns:minmax(0,1fr) max-content!important;
    grid-auto-flow:column!important;
    align-items:center!important;
    justify-content:end!important;
    column-gap:clamp(4px,.4vw,8px)!important;
    width:100%!important;
    min-width:0!important;
    overflow:visible!important;
  }
  body.inkjetwell-kadence-ui.ijw-header-language-enabled #masthead #main-header .site-header-main-section-right:has(>.site-header-item .trp-shortcode-switcher__wrapper)>.site-header-item-main-navigation{
    grid-column:1!important;
    grid-row:1!important;
    display:flex!important;
    justify-content:flex-end!important;
    width:100%!important;
    min-width:0!important;
    margin:0!important;
  }
  body.inkjetwell-kadence-ui.ijw-header-language-enabled #masthead #main-header .site-header-main-section-right>.site-header-item:has(.trp-shortcode-switcher__wrapper){
    grid-column:2!important;
    grid-row:1!important;
    display:block!important;
    justify-self:end!important;
    box-sizing:border-box!important;
    width:max-content!important;
    min-width:0!important;
    max-width:none!important;
    margin:0!important;
    padding:0!important;
    overflow:visible!important;
    position:relative!important;
    z-index:80!important;
  }

  /* Kadence HTML may add wrapper margins and wpautop paragraphs. They carry no
   * visual value around a block shortcode, so remove only those outer spaces. */
  body.inkjetwell-kadence-ui.ijw-header-language-enabled #masthead #main-header .site-header-item:has(.trp-shortcode-switcher__wrapper) .header-html-inner,
  body.inkjetwell-kadence-ui.ijw-header-language-enabled #masthead #main-header .site-header-item:has(.trp-shortcode-switcher__wrapper) .header-html,
  body.inkjetwell-kadence-ui.ijw-header-language-enabled #masthead #main-header .site-header-item:has(.trp-shortcode-switcher__wrapper) p{
    box-sizing:border-box!important;
    width:max-content!important;
    min-width:0!important;
    max-width:none!important;
    margin:0!important;
    padding:0!important;
    overflow:visible!important;
  }

  /* TranslatePress 3.x uses a hidden in-flow anchor plus an absolutely
   * positioned interactive overlay. Size both from their content so English
   * and every dropdown language are complete, then open the list toward the
   * left because this control sits at the far-right edge of the header. */
  body.inkjetwell-kadence-ui.ijw-header-language-enabled #masthead #main-header .site-header-item:has(.trp-shortcode-switcher__wrapper) .trp-shortcode-switcher__wrapper,
  body.inkjetwell-kadence-ui.ijw-header-language-enabled #masthead #main-header .site-header-item:has(.trp-shortcode-switcher__wrapper) .trp-shortcode-switcher,
  body.inkjetwell-kadence-ui.ijw-header-language-enabled #masthead #main-header .site-header-item:has(.trp-shortcode-switcher__wrapper) .trp-current-language-item__wrapper{
    box-sizing:border-box!important;
    width:max-content!important;
    min-width:max-content!important;
    max-width:none!important;
  }
  body.inkjetwell-kadence-ui.ijw-header-language-enabled #masthead #main-header .site-header-item:has(.trp-shortcode-switcher__wrapper) .trp-shortcode-switcher__wrapper{
    position:relative!important;
    border:0!important;
  }
  body.inkjetwell-kadence-ui.ijw-header-language-enabled #masthead #main-header .site-header-item:has(.trp-shortcode-switcher__wrapper) .trp-shortcode-overlay{
    right:0!important;
    left:auto!important;
    z-index:9999!important;
  }
  body.inkjetwell-kadence-ui.ijw-header-language-enabled #masthead #main-header .site-header-item:has(.trp-shortcode-switcher__wrapper) .trp-language-item{
    gap:6px!important;
    box-sizing:border-box!important;
    width:max-content!important;
    min-width:100%!important;
    padding:7px 9px!important;
  }
  body.inkjetwell-kadence-ui.ijw-header-language-enabled #masthead #main-header .site-header-item:has(.trp-shortcode-switcher__wrapper) .trp-current-language-item__wrapper:not(.trp-hide-arrow){
    padding-right:4px!important;
  }
  body.inkjetwell-kadence-ui.ijw-header-language-enabled #masthead #main-header .site-header-item:has(.trp-shortcode-switcher__wrapper) .trp-language-item-name{
    width:max-content!important;
    min-width:max-content!important;
    max-width:none!important;
    overflow:visible!important;
    text-overflow:clip!important;
    white-space:nowrap!important;
  }
  body.inkjetwell-kadence-ui.ijw-header-language-enabled #masthead #main-header .site-header-item:has(.trp-shortcode-switcher__wrapper) .trp-shortcode-arrow{
    flex:0 0 16px!important;
    width:16px!important;
    height:16px!important;
  }

  /* The existing administrator switch still controls both placements even
   * though desktop content is authored in Kadence's HTML component. */
  body.inkjetwell-kadence-ui.ijw-header-language-disabled #masthead #main-header .site-header-item:has(.trp-shortcode-switcher__wrapper){
    display:none!important;
  }
}
