/*
Theme Name: Reboot Child — WP Template
Description: Reusable child theme for the wp-template.wp.ks.ua site skeleton.
Author: WP Template
Template: reboot
Version: 1.0.0
Text Domain: wp-template-reboot-child
*/

/* Compact Polylang switcher next to the Reboot search button. */
@media (min-width: 992px) {
  .site-header .header-search {
    display: flex;
    align-items: center;
    width: auto;
  }

  .site-header .header-flags {
    display: flex;
    flex: 0 0 auto;
    width: max-content !important;
    margin-left: 13px;
    padding-left: 13px;
    border-left: 1px solid rgba(13, 47, 83, 0.45);
  }

  .site-header .header-flags ul {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    width: max-content !important;
    min-width: 0;
    margin: 0;
    padding: 0;
  }

  .site-header .header-flags ul::before {
    display: none;
    content: none;
  }

  .site-header .header-flags li {
    display: block;
    width: auto !important;
    margin: 0;
    padding: 0;
    list-style: none;
    line-height: 1;
  }

  .site-header .header-flags a {
    display: block;
    width: auto !important;
    color: #1f2937;
    font-size: 14px;
    font-weight: 700;
    line-height: 24px;
    text-decoration: none;
    text-transform: uppercase;
    transition: color 0.2s ease;
  }

  .site-header .header-flags a:hover,
  .site-header .header-flags a:focus-visible {
    color: var(--wp-template-accent, #0f9f98);
  }
}

@media (max-width: 991px) {
  .site-header .site-header-inner {
    position: relative;
  }

  .site-header .header-search {
    position: absolute;
    top: 50%;
    right: 20px;
    z-index: 5;
    display: flex;
    align-items: center;
    width: auto;
    height: 36px;
    margin: 0;
    transform: translateY(-50%);
  }

  .site-header .search-icon {
    display: block;
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
    margin: 0;
  }

  .site-header .header-flags {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    width: max-content !important;
    height: 28px;
    margin: 0 0 0 10px;
    padding: 0 0 0 10px;
    border-left: 1px solid rgba(13, 47, 83, 0.45);
  }

  .site-header .header-flags ul {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    width: max-content !important;
    min-width: 0;
    margin: 0;
    padding: 0;
  }

  .site-header .header-flags ul::before {
    display: none;
    content: none;
  }

  .site-header .header-flags li {
    display: block;
    width: auto !important;
    margin: 0;
    padding: 0;
    list-style: none;
    line-height: 1;
  }

  .site-header .header-flags a {
    display: flex;
    align-items: center;
    min-width: 28px;
    height: 32px;
    color: #1f2937;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    text-transform: uppercase;
  }

  .site-header .header-flags a:hover,
  .site-header .header-flags a:focus-visible {
    color: var(--wp-template-accent, #0f9f98);
  }
}

@media (max-width: 575px) {
  .site-header .header-search {
    right: 14px;
  }

  .site-header .header-flags {
    margin-left: 8px;
    padding-left: 8px;
  }
}
