.srbt-switch {
  --srbt-border: #655138;
  --srbt-text: #e7d9bf;
  --srbt-on: #f5d798;
  display: inline-flex;
  flex: 0 0 auto;
  box-sizing: border-box;
  min-width: 0;
  min-height: 42px;
  max-width: 100%;
  padding: 3px;
  gap: 2px;
  border: 1px solid var(--srbt-border);
  border-radius: 11px;
  background: #191610;
  vertical-align: middle;
  color: var(--srbt-text);
}

.srbt-switch > button[data-srbt-language] {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex: 1 1 0;
  box-sizing: border-box;
  min-height: 34px;
  min-width: 35px;
  margin: 0;
  padding: 0 5px;
  border: 0;
  border-radius: 7px;
  background: none;
  box-shadow: none;
  color: var(--srbt-text);
  font: 700 11px/1 system-ui, sans-serif;
  letter-spacing: .035em;
  cursor: pointer;
  touch-action: manipulation;
}

.srbt-switch > button[data-srbt-language]:hover {
  background: #342a1d;
  color: #fff4d9;
}

.srbt-switch > button[data-srbt-language][aria-pressed="true"] {
  background: var(--srbt-on);
  color: #211a10;
}

.srbt-switch > button[data-srbt-language]:focus-visible {
  outline: 2px solid #fff1cb;
  outline-offset: 1px;
}

.srbt-footer-choice[hidden] {
  display: none !important;
}

.srbt-footer-choice:not([hidden]) {
  position: fixed;
  z-index: 99990;
  inset-inline-start: 12px;
  bottom: max(76px, env(safe-area-inset-bottom, 0px));
}

html body .srbt-header-control {
  position: relative !important;
  inset: auto !important;
  display: flex !important;
  align-items: center !important;
  flex: 0 0 80px !important;
  width: 80px !important;
  min-width: 80px !important;
  height: 44px !important;
  margin: 0 !important;
  padding: 0 !important;
  direction: ltr !important;
  background: none !important;
  border: 0 !important;
  box-shadow: none !important;
}

html body .srbt-header-control .srbt-switch {
  width: 100% !important;
}

@media (min-width: 1025px) {
  html body .srbt-header-desktop-portal.srbt-header-control {
    position: absolute !important;
    left: -9999px !important;
    right: auto !important;
    top: -9999px !important;
    bottom: auto !important;
    transform: none !important;
    z-index: 20;
  }
}

@media (max-width: 1024px) {
  html body .srbt-header-desktop-portal {
    display: none !important;
  }

  html body .srbt-language-row-host {
    position: relative !important;
    overflow: visible !important;
  }

  html body .srbt-header-control.srbt-header-mobile-bottom {
    position: absolute !important;
    top: 50% !important;
    right: max(12px, env(safe-area-inset-right, 0px)) !important;
    left: auto !important;
    bottom: auto !important;
    transform: translateY(-50%) !important;
    width: 92px !important;
    min-width: 92px !important;
    height: 46px !important;
    z-index: 20;
  }

  .srbt-switch > button[data-srbt-language] {
    min-height: 38px;
  }
}


/* Keep both flags in the stylesheet so the switch has no image request. */
.srbt-switch > button[data-srbt-language] {
  font-size: 0 !important;
}

.srbt-switch > button[data-srbt-language]::before {
  content: "";
  display: block;
  box-sizing: border-box;
  width: 26px;
  height: 18px;
  flex: 0 0 26px;
  border-radius: 3px;
  border: 1px solid #0002;
  background-color: #fff;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  box-shadow: 0 1px 3px #0003;
}

.srbt-switch > button[data-srbt-language="ka"]::before {
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2030%2020%22%3E%3Crect%20width%3D%2230%22%20height%3D%2220%22%20fill%3D%22%23fff%22%2F%3E%3Cg%20fill%3D%22%23db1725%22%3E%3Cpath%20d%3D%22M13%200h4v20h-4zM0%208h30v4H0z%22%2F%3E%3Cpath%20id%3D%22cross%22%20d%3D%22M5.8%201.95a5.4%205.4%200%200%200%201.4%200%2010.4%2010.4%200%200%200%200%204.1%205.4%205.4%200%200%200-1.4%200%2010.4%2010.4%200%200%200%200-4.1z%22%2F%3E%3Cuse%20href%3D%22%23cross%22%20transform%3D%22rotate%2890%206.5%204%29%22%2F%3E%3Cuse%20href%3D%22%23cross%22%20x%3D%2217%22%2F%3E%3Cuse%20href%3D%22%23cross%22%20x%3D%2217%22%20transform%3D%22rotate%2890%2023.5%204%29%22%2F%3E%3Cuse%20href%3D%22%23cross%22%20y%3D%2212%22%2F%3E%3Cuse%20href%3D%22%23cross%22%20y%3D%2212%22%20transform%3D%22rotate%2890%206.5%2016%29%22%2F%3E%3Cuse%20href%3D%22%23cross%22%20x%3D%2217%22%20y%3D%2212%22%2F%3E%3Cuse%20href%3D%22%23cross%22%20x%3D%2217%22%20y%3D%2212%22%20transform%3D%22rotate%2890%2023.5%2016%29%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E");
}

.srbt-switch > button[data-srbt-language="en"]::before {
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2060%2030%22%3E%3CclipPath%20id%3D%22edges%22%3E%3Cpath%20d%3D%22M0%200h60v30H0z%22%2F%3E%3C%2FclipPath%3E%3CclipPath%20id%3D%22halves%22%3E%3Cpath%20d%3D%22M30%2015h30v15zv15H0zH0V0zV0h30z%22%2F%3E%3C%2FclipPath%3E%3Cg%20clip-path%3D%22url%28%23edges%29%22%3E%3Cpath%20fill%3D%22%23012169%22%20d%3D%22M0%200h60v30H0z%22%2F%3E%3Cpath%20d%3D%22m0%200%2060%2030m0-30L0%2030%22%20stroke%3D%22%23fff%22%20stroke-width%3D%226%22%2F%3E%3Cpath%20d%3D%22m0%200%2060%2030m0-30L0%2030%22%20clip-path%3D%22url%28%23halves%29%22%20stroke%3D%22%23c8102e%22%20stroke-width%3D%224%22%2F%3E%3Cpath%20d%3D%22M30%200v30M0%2015h60%22%20stroke%3D%22%23fff%22%20stroke-width%3D%2210%22%2F%3E%3Cpath%20d%3D%22M30%200v30M0%2015h60%22%20stroke%3D%22%23c8102e%22%20stroke-width%3D%226%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E");
}

html.smn-active #smn-drawer .smn-drawer-language .srbt-switch > button[data-srbt-language] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 11px !important;
}
