/**
 * GeoGuard — шапка Breakdance: KA post 51, EN post 91.
 * Подключается через mu-plugins/geoguard-site-overrides.php с filemtime в ?ver=
 */

/* Убрать иконку «человек» (профиль), оставить телефон */
.breakdance .bde-header-builder-51-100 .bde-icon-51-129 {
  display: none !important;
}

/*
 * Текст кнопки шапки: სისტემაში შესვლა
 * (в Breakdance по-прежнему может быть სერვისის გადახდა — подмена только визуально)
 */
.breakdance .bde-header-builder-51-100 .bde-button-51-130 .button-atom,
.breakdance .bde-header-builder-51-100 .bde-button-51-130 .button-atom * {
  font-size: 0 !important;
  line-height: 0 !important;
  color: transparent !important;
}
.breakdance .bde-header-builder-51-100 .bde-button-51-130 .button-atom {
  line-height: 1.25 !important;
}
.breakdance .bde-header-builder-51-100 .bde-button-51-130 .button-atom::after {
  content: "სისტემაში შესვლა";
  font-size: 14px;
  line-height: 1.25;
  color: #fff !important;
  display: inline-block;
  white-space: normal;
  text-align: center;
}
.breakdance .bde-header-builder-51-100 .bde-button-51-130 .button-atom:hover::after,
.breakdance .bde-header-builder-51-100 .bde-button-51-130 .button-atom:focus-visible::after {
  color: #fff !important;
}

/* Цвет кнопки в шапке — десктоп и планшет (на мобильных те же + компактные отступы ниже) */
.breakdance .bde-header-builder-51-100 .bde-button-51-130 .button-atom {
  --bde-button-primary-background-color: #0f7ead !important;
  --bde-button-primary-background-color-hover: #0c6a8f !important;
}
.breakdance .bde-header-builder-51-100 .bde-button-51-130 .button-atom--primary,
.breakdance .bde-header-builder-51-100 .bde-button-51-130 .button-atom--custom,
.breakdance .bde-header-builder-51-100 .bde-button-51-130 a.button-atom {
  background: #0f7ead !important;
  background-color: #0f7ead !important;
  border-color: #0f7ead !important;
  color: #fff !important;
  border-radius: 9999px !important;
}
.breakdance .bde-header-builder-51-100 .bde-button-51-130 .button-atom--primary:hover,
.breakdance .bde-header-builder-51-100 .bde-button-51-130 .button-atom--custom:hover,
.breakdance .bde-header-builder-51-100 .bde-button-51-130 a.button-atom:hover {
  background: #0c6a8f !important;
  background-color: #0c6a8f !important;
  border-color: #0c6a8f !important;
  color: #fff !important;
}

/* Левый блок не сжимать до 40px — чтобы логотип/меню помещались */
@media (max-width: 1240px) {
  .breakdance .bde-div-51-122 {
    width: auto !important;
    min-width: 40px;
    max-width: 45%;
  }
}

/* Кнопка «სერვისის გადახდა» — не скрывать на мобильных */
@media (max-width: 767px) {
  .breakdance .bde-button-51-130 {
    display: inline-flex !important;
  }
}

@media (max-width: 1119px) {
  .breakdance .bde-header-builder-51-100 .bde-div-51-121 {
    flex-wrap: wrap;
    gap: 10px 12px;
    align-items: center;
  }
  .breakdance .bde-header-builder-51-100 .bde-div-51-123 {
    order: -1;
    flex: 1 1 100%;
    width: 100% !important;
    max-width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 40px;
  }
  .breakdance .bde-header-builder-51-100 .bde-div-51-123 img,
  .breakdance .bde-header-builder-51-100 .bde-div-51-123 .bde-image,
  .breakdance .bde-header-builder-51-100 .bde-div-51-123 figure img {
    max-height: 44px;
    width: auto;
    object-fit: contain;
  }
  .breakdance .bde-header-builder-51-100 .bde-div-51-122 {
    width: auto !important;
    flex: 0 0 auto;
  }
  .breakdance .bde-header-builder-51-100 .bde-div-51-124 {
    flex: 1 1 auto;
    justify-content: flex-end;
    min-width: 0;
  }
}

@media (max-width: 767px) {
  .breakdance .bde-header-builder-51-100 .bde-button-51-130 {
    display: inline-flex !important;
    max-width: min(100%, 260px);
  }
  .breakdance .bde-header-builder-51-100 .bde-button-51-130 .button-atom::after {
    font-size: 11px;
  }
  .breakdance .bde-header-builder-51-100 .bde-button-51-130 .button-atom {
    padding: 6px 10px !important;
    line-height: 1.25 !important;
    --bde-button-width: auto;
    white-space: normal !important;
    text-align: center;
  }
}

/* ========== English header (Breakdance post 91) — same behavior as KA ========== */

.breakdance .bde-header-builder-91-127 .bde-icon-91-137 {
  display: none !important;
}

.breakdance .bde-header-builder-91-127 .bde-button-91-138 .button-atom,
.breakdance .bde-header-builder-91-127 .bde-button-91-138 .button-atom * {
  font-size: 0 !important;
  line-height: 0 !important;
  color: transparent !important;
}
.breakdance .bde-header-builder-91-127 .bde-button-91-138 .button-atom {
  line-height: 1.25 !important;
}
.breakdance .bde-header-builder-91-127 .bde-button-91-138 .button-atom::after {
  content: "Sign in";
  font-size: 14px;
  line-height: 1.25;
  color: #fff !important;
  display: inline-block;
  white-space: normal;
  text-align: center;
}
.breakdance .bde-header-builder-91-127 .bde-button-91-138 .button-atom:hover::after,
.breakdance .bde-header-builder-91-127 .bde-button-91-138 .button-atom:focus-visible::after {
  color: #fff !important;
}

/* Цвет кнопки EN — как на KA (фон был только у грузинского блока, из‑за этого /en/ оставался teal) */
.breakdance .bde-header-builder-91-127 .bde-button-91-138 .button-atom {
  --bde-button-primary-background-color: #0f7ead !important;
  --bde-button-primary-background-color-hover: #0c6a8f !important;
}
.breakdance .bde-header-builder-91-127 .bde-button-91-138 .button-atom--primary,
.breakdance .bde-header-builder-91-127 .bde-button-91-138 .button-atom--custom,
.breakdance .bde-header-builder-91-127 .bde-button-91-138 a.button-atom {
  background: #0f7ead !important;
  background-color: #0f7ead !important;
  border-color: #0f7ead !important;
  color: #fff !important;
  border-radius: 9999px !important;
}
.breakdance .bde-header-builder-91-127 .bde-button-91-138 .button-atom--primary:hover,
.breakdance .bde-header-builder-91-127 .bde-button-91-138 .button-atom--custom:hover,
.breakdance .bde-header-builder-91-127 .bde-button-91-138 a.button-atom:hover {
  background: #0c6a8f !important;
  background-color: #0c6a8f !important;
  border-color: #0c6a8f !important;
  color: #fff !important;
}

.breakdance .bde-button-91-138 .button-atom {
  --bde-button-primary-background-color: #0f7ead !important;
  --bde-button-primary-background-color-hover: #0c6a8f !important;
}
.breakdance .bde-button-91-138 .button-atom--primary,
.breakdance .bde-button-91-138 .button-atom--custom,
.breakdance .bde-button-91-138 a.button-atom {
  background: #0f7ead !important;
  background-color: #0f7ead !important;
  border-color: #0f7ead !important;
  color: #fff !important;
  border-radius: 9999px !important;
}
.breakdance .bde-button-91-138 .button-atom--primary:hover,
.breakdance .bde-button-91-138 .button-atom--custom:hover,
.breakdance .bde-button-91-138 a.button-atom:hover {
  background: #0c6a8f !important;
  background-color: #0c6a8f !important;
  border-color: #0c6a8f !important;
  color: #fff !important;
}

@media (max-width: 1240px) {
  .breakdance .bde-div-91-129 {
    width: auto !important;
    min-width: 40px;
    max-width: 45%;
  }
}

@media (max-width: 767px) {
  .breakdance .bde-button-91-138 {
    display: inline-flex !important;
  }
}

@media (max-width: 1119px) {
  .breakdance .bde-header-builder-91-127 .bde-div-91-128 {
    flex-wrap: wrap;
    gap: 10px 12px;
    align-items: center;
  }
  .breakdance .bde-header-builder-91-127 .bde-div-91-132 {
    order: -1;
    flex: 1 1 100%;
    width: 100% !important;
    max-width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 40px;
  }
  .breakdance .bde-header-builder-91-127 .bde-div-91-132 img,
  .breakdance .bde-header-builder-91-127 .bde-div-91-132 .bde-image,
  .breakdance .bde-header-builder-91-127 .bde-div-91-132 figure img {
    max-height: 44px;
    width: auto;
    object-fit: contain;
  }
  .breakdance .bde-header-builder-91-127 .bde-div-91-129 {
    width: auto !important;
    flex: 0 0 auto;
  }
  .breakdance .bde-header-builder-91-127 .bde-div-91-134 {
    flex: 1 1 auto;
    justify-content: flex-end;
    min-width: 0;
  }
}

@media (max-width: 767px) {
  .breakdance .bde-header-builder-91-127 .bde-button-91-138 {
    display: inline-flex !important;
    max-width: min(100%, 260px);
  }
  .breakdance .bde-header-builder-91-127 .bde-button-91-138 .button-atom::after {
    font-size: 11px;
  }
  .breakdance .bde-header-builder-91-127 .bde-button-91-138 .button-atom {
    padding: 6px 10px !important;
    line-height: 1.25 !important;
    --bde-button-width: auto;
    white-space: normal !important;
    text-align: center;
  }
}
