
/* ONLINE PRICE CUSTOM LANGUAGE MENU V1 */

.op-language-selector.op-custom-language-ready {
  position: relative !important;
  width: 76px !important;
  min-width: 76px !important;
  max-width: 76px !important;
  height: 36px !important;
  display: inline-flex !important;
  align-items: center !important;
  flex: 0 0 76px !important;
}

.op-custom-language-ready::before,
.op-custom-language-ready::after,
.op-custom-language-ready .op-language-globe {
  display: none !important;
  content: none !important;
}

.op-custom-language-ready > select {
  display: none !important;
}

.op-custom-language-button {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 6px !important;
  width: 76px !important;
  height: 36px !important;
  padding: 0 8px !important;
  border: 1px solid #4d7a27 !important;
  border-radius: 8px !important;
  background: rgba(6,20,11,.92) !important;
  color: #fff !important;
  cursor: pointer !important;
  box-sizing: border-box !important;
  font-size: 12px !important;
  font-weight: 750 !important;
  box-shadow: none !important;
}

.op-custom-language-button:hover,
.op-custom-language-button[aria-expanded="true"] {
  border-color: #b4f64d !important;
  background: #13281a !important;
}

.op-custom-language-button:focus-visible {
  outline: 1px solid rgba(186,255,71,.65) !important;
  outline-offset: 1px !important;
  box-shadow: 0 0 0 1px rgba(166,255,24,.12) !important;
}

.op-custom-language-icon {
  width: 12px;
  height: 12px;
  flex: 0 0 12px;
  background: center / contain no-repeat
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23baff47' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M3 12h18M12 3a15 15 0 0 1 0 18M12 3a15 15 0 0 0 0 18'/%3E%3C/svg%3E");
}

.op-custom-language-code {
  color: #fff;
  font-size: 12px;
  flex: 1;
  text-align: center;
}

.op-custom-language-arrow {
  width: 9px;
  height: 9px;
  flex: 0 0 9px;
  background: center / contain no-repeat
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23bfd6b6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
}

.op-custom-language-popup[hidden] {
  display: none !important;
}

.op-custom-language-popup {
  position: fixed !important;
  z-index: 999999 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 4px !important;
  padding: 6px !important;
  border: 1px solid #527a2e !important;
  border-radius: 12px !important;
  background: #09190f !important;
  box-shadow: 0 15px 35px rgba(0,0,0,.55) !important;
  box-sizing: border-box !important;
}

.op-custom-language-option {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  width: 100% !important;
  min-height: 40px !important;
  padding: 9px 10px !important;
  border: 0 !important;
  border-radius: 8px !important;
  background: transparent !important;
  color: #edf5eb !important;
  cursor: pointer !important;
  text-align: left !important;
  box-sizing: border-box !important;
}

.op-custom-language-option strong {
  width: 24px;
  font-size: 12px;
  color: #baff47;
}

.op-custom-language-option span:not(.op-custom-language-check) {
  flex: 1;
  font-size: 12px;
}

.op-custom-language-option.is-selected,
.op-custom-language-option:hover {
  background: #1c361c !important;
}

.op-custom-language-check {
  color: #baff47;
  font-weight: 800;
}

@media (max-width:700px) {
  .op-custom-language-option {
    min-height: 44px !important;
  }
}


/* OP LANGUAGE SINGLE BORDER V1 */

/* Убираем внешнюю рамку контейнера */
.op-language-selector.op-custom-language-ready {
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  background: transparent !important;
  border-radius: 0 !important;
  padding: 0 !important;
}

/* Оставляем одну ровную рамку кнопки */
.op-custom-language-button {
  border: 1px solid #739b3b !important;
  outline: none !important;
  outline-offset: 0 !important;
  box-shadow: none !important;
  border-radius: 8px !important;
}

/* При открытии меню не добавляем вторую обводку */
.op-custom-language-button[aria-expanded="true"] {
  border-color: #a6ff38 !important;
  outline: none !important;
  box-shadow: none !important;
}

/* Аккуратное выделение только при управлении клавиатурой */
.op-custom-language-button:focus-visible {
  outline: 1px solid #baff47 !important;
  outline-offset: 2px !important;
  box-shadow: none !important;
}

/* END OP LANGUAGE SINGLE BORDER V1 */

/* FINAL FIX — ONE BORDER ONLY */

.op-language-selector.op-custom-language-ready,
.op-language-selector.op-custom-language-ready:focus,
.op-language-selector.op-custom-language-ready:focus-within {
  outline: none !important;
  box-shadow: none !important;
}

.op-language-selector.op-custom-language-ready
.op-custom-language-button,
.op-language-selector.op-custom-language-ready
.op-custom-language-button:hover,
.op-language-selector.op-custom-language-ready
.op-custom-language-button:focus,
.op-language-selector.op-custom-language-ready
.op-custom-language-button:focus-visible,
.op-language-selector.op-custom-language-ready
.op-custom-language-button:active,
.op-language-selector.op-custom-language-ready
.op-custom-language-button[aria-expanded="true"] {
  outline: none !important;
  box-shadow: none !important;
  border: 1px solid #739b3b !important;
}

.op-language-selector.op-custom-language-ready
.op-custom-language-button[aria-expanded="true"] {
  border-color: #a6ff38 !important;
}

/* END FINAL FIX */

/* REMOVE OUTER LANGUAGE WRAPPER FRAME */

header.main-header .op-language-selector.op-custom-language-ready,
header.main-header .op-language-selector.op-language-desktop.op-custom-language-ready,
header.main-header .op-language-selector.op-language-mobile.op-custom-language-ready {
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  padding: 0 !important;
}

/* Keep only the button border */
header.main-header .op-language-selector.op-custom-language-ready
.op-custom-language-button {
  border: 1px solid #739b3b !important;
  outline: 0 !important;
  box-shadow: none !important;
}


/* ONLINE PRICE — MOBILE LANGUAGE IN HEADER */

@media (max-width: 600px) {
  header.main-header .mobile-actions
  .op-language-selector.op-language-mobile {
    display: inline-flex !important;
    position: relative !important;
    flex: 0 0 64px !important;
    width: 64px !important;
    min-width: 64px !important;
    max-width: 64px !important;
    height: 36px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    outline: none !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  .mobile-actions .op-custom-language-button {
    width: 64px !important;
    min-width: 64px !important;
    max-width: 64px !important;
    height: 36px !important;
    padding: 0 6px !important;
    gap: 4px !important;
    border: 1px solid #4d7a27 !important;
    border-radius: 8px !important;
    outline: none !important;
    box-shadow: none !important;
    background: rgba(6,20,11,.95) !important;
  }

  .mobile-actions .op-custom-language-button:focus,
  .mobile-actions .op-custom-language-button:focus-visible {
    outline: none !important;
    box-shadow: none !important;
  }

  .mobile-actions .op-custom-language-icon {
    width: 11px !important;
    height: 11px !important;
    flex-basis: 11px !important;
  }

  .mobile-actions .op-custom-language-code {
    font-size: 11px !important;
  }

  .mobile-actions .op-custom-language-arrow {
    width: 8px !important;
    height: 8px !important;
    flex-basis: 8px !important;
  }

  .mobile-actions {
    gap: 5px !important;
  }
}

@media (max-width: 370px) {
  header.main-header .mobile-actions
  .op-language-selector.op-language-mobile {
    flex-basis: 60px !important;
    width: 60px !important;
    min-width: 60px !important;
    max-width: 60px !important;
  }

  .mobile-actions .op-custom-language-button {
    width: 60px !important;
    min-width: 60px !important;
    max-width: 60px !important;
  }
}

@media (max-width:600px) {
  .mobile-actions .op-language-selector.op-language-mobile {
    display:inline-flex !important;
    flex:0 0 64px !important;
    width:64px !important;
    min-width:64px !important;
    max-width:64px !important;
    height:36px !important;
    margin:0 !important;
    padding:0 !important;
    border:0 !important;
    outline:none !important;
    box-shadow:none !important;
    background:transparent !important;
  }

  .mobile-actions .op-custom-language-button {
    width:64px !important;
    min-width:64px !important;
    max-width:64px !important;
    height:36px !important;
    padding:0 6px !important;
    outline:none !important;
    box-shadow:none !important;
  }
}
