/* Основной контейнер - ЯРКИЙ ГРАДИЕНТ, НО БЕЗ ВЫПИРАЮЩЕЙ ТЕНИ */
.bestchange-custom-widget {
  background: linear-gradient(145deg, #7a9e0d 0%, #8db710 30%, #a4cf1f 70%, #8db710 100%) !important;
  width: 100%;
  height: 285px !important;
  padding: 0 15px;
  text-align: center;
  color: #ffffff;
  font-family: 'Segoe UI', 'Tahoma', 'Verdana', sans-serif;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12) !important;
  box-sizing: border-box;
  border: 2px solid rgba(164, 207, 31, 0.4) !important;
  outline: none !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-evenly !important;
  align-items: center !important;
}

/* Запрещаем изменение фона при любых событиях */
.bestchange-custom-widget:hover,
.bestchange-custom-widget:focus,
.bestchange-custom-widget:active,
.bestchange-custom-widget:focus-visible,
.bestchange-custom-widget:focus-within {
  background: linear-gradient(145deg, #7a9e0d 0%, #8db710 30%, #a4cf1f 70%, #8db710 100%) !important;
}

/* Сбрасываем все возможные изменения для всех элементов */
.bestchange-custom-widget *,
.bestchange-custom-widget *:hover,
.bestchange-custom-widget *:focus,
.bestchange-custom-widget *:active,
.bestchange-custom-widget *:focus-visible {
  outline: none !important;
}

/* Заголовок */
.bestchange-custom-widget .widget-title {
  margin: 0;
  padding: 8px 0 0 0;
  font-size: 20px;
  font-weight: 700;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  border: none !important;
  outline: none !important;
  background: transparent !important;
}

/* ===== ЛОГОТИП 40% НА 60% С СИММЕТРИЧНЫМИ ОТСТУПАМИ ===== */
.bestchange-logo {
  display: flex;
  min-width: 260px;
  width: 31%;
  max-width: 340px;
  height: 35px;
  
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  
  margin: 5px auto 10px auto;
}

.left-part {
  background-color: #222;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45%;
  font-family: 'Arial', sans-serif;
  font-size: 2.2vw;
  font-weight: bold;
  line-height: 1.4;
  
  /* Отступы - одинаковые слева и справа */
  padding: 8px 10px 8px 10px;
  box-sizing: border-box;
  
  border-top-left-radius: 10px;
  border-bottom-left-radius: 10px;
}

.right-part {
  background-color: #ddd;
  color: #222;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 55%;
  font-family: 'Arial', sans-serif;
  font-size: 2.2vw;
  font-weight: bold;
  letter-spacing: 1px;
  line-height: 1.4;
  
  /* Отступы - одинаковые слева и справа */
  padding: 8px 10px 8px 10px;
  box-sizing: border-box;
  
  border-top-right-radius: 10px;
  border-bottom-right-radius: 10px;
}

/* Ограничение шрифта для больших экранов */
@media (min-width: 1200px) {
  .left-part, .right-part {
    font-size: 26px;
  }
  .left-part {
    padding: 8px 12px 8px 12px;
  }
  .right-part {
    padding: 8px 10px 8px 10px;
  }
}

/* Адаптация логотипа на мобильных */
@media (max-width: 600px) {
  .bestchange-logo {
    width: 50%;
    min-width: 240px;
  }
  .left-part, .right-part {
    font-size: 18px;
    line-height: 1.2;
  }
  .left-part {
    padding: 6px 8px 6px 8px;
  }
  .right-part {
    padding: 6px 5px 6px 5px;
  }
}

@media (max-width: 400px) {
  .bestchange-logo {
    width: 60%;
    min-width: 150px;
  }
  .left-part, .right-part {
    font-size: 15px;
  }
  .left-part {
    padding: 5px 6px 5px 6px;
  }
  .right-part {
    padding: 5px 4px 5px 4px;
  }
}

/* Форма */
.bestchange-custom-widget .bc-form {
  width: 100%;
  border: none !important;
  outline: none !important;
  background: transparent !important;
}

.bestchange-custom-widget .bc-form:hover,
.bestchange-custom-widget .bc-form:focus {
  background: transparent !important;
}

/* Тёмно-зелёный блок (таблица) */
.bestchange-custom-widget .bc-table {
  margin: 0 auto;
  background: rgba(0, 0, 0, 0.15) !important;
  padding: 22px 35px !important;
  border-radius: 40px !important;
  display: inline-block;
  border: none !important;
  outline: none !important;
}

.bestchange-custom-widget .bc-table,
.bestchange-custom-widget .bc-table:hover,
.bestchange-custom-widget .bc-table:focus,
.bestchange-custom-widget .bc-table:focus-within {
  background: rgba(0, 0, 0, 0.15) !important;
  border: none !important;
  outline: none !important;
}

/* Строка таблицы */
.bestchange-custom-widget .bc-table tr {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 16px;
  border: none !important;
  outline: none !important;
  background: transparent !important;
}

.bestchange-custom-widget .bc-table tr:hover {
  background: transparent !important;
}

/* Ячейки */
.bestchange-custom-widget .bc-table td {
  padding: 0;
  display: block;
  border: none !important;
  outline: none !important;
  background: transparent !important;
}

.bestchange-custom-widget .bc-table td:hover {
  background: transparent !important;
}

/* Селекты */
.bestchange-custom-widget .bc-select {
  background: #4a6608 !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 16px !important;
  padding: 12px 20px !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  cursor: pointer !important;
  width: 200px;
  max-width: 100%;
  box-sizing: border-box;
  outline: none !important;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2) !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  appearance: none !important;
  text-align: center !important;
  text-align-last: center !important;
  
  overflow-y: auto !important;
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}

.bestchange-custom-widget .bc-select::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  background: transparent !important;
}

.bestchange-custom-widget .bc-select:hover {
  background: #56750a !important;
  border: none !important;
  outline: none !important;
}

.bestchange-custom-widget .bc-select:focus,
.bestchange-custom-widget .bc-select:focus-visible,
.bestchange-custom-widget .bc-select:active {
  outline: none !important;
  border: none !important;
  background: #4a6608 !important;
}

.bestchange-custom-widget .bc-select option {
  background-color: #3d5506 !important;
  color: #ffffff !important;
  padding: 10px 15px !important;
  text-align: left !important;
}

.bestchange-custom-widget .bc-select option:hover,
.bestchange-custom-widget .bc-select option:focus,
.bestchange-custom-widget .bc-select option:active,
.bestchange-custom-widget .bc-select option:checked {
  background: #7a9e0d !important;
  background-color: #7a9e0d !important;
  color: #ffffff !important;
  box-shadow: none !important;
}

/* Текст "на" */
.bestchange-custom-widget .bc-label {
  color: #ffffff;
  font-weight: 600;
  font-size: 16px;
  padding: 0 12px;
  border: none !important;
  outline: none !important;
  background: transparent !important;
}

.bc-label {
    padding-left: 8px;
    padding-right: 8px;
}

/* Кнопка */
.bestchange-custom-widget .bc-button {
  background: linear-gradient(135deg, #f0f7e0 0%, #ffffff 50%, #f5fae8 100%) !important;
  background-size: 200% 200% !important;
  color: #3a5a00 !important;
  padding: 13px 35px !important;
  border-radius: 30px !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  border: 1px solid rgba(255, 255, 255, 0.6) !important;
  outline: none !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15), inset 0 1px 2px rgba(255, 255, 255, 0.8) !important;
  cursor: pointer !important;
  text-transform: uppercase !important;
  letter-spacing: 0.8px !important;
  white-space: nowrap;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  appearance: none !important;
  transition: all 0.3s ease !important;
  margin-left: 16px !important;
  text-shadow: 0 1px 1px rgba(255, 255, 255, 0.5) !important;
  position: relative !important;
  left: 0 !important;
  animation: breatheGlow 2.5s ease-in-out infinite !important;
}

@keyframes breatheGlow {
  0% {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15), inset 0 1px 2px rgba(255, 255, 255, 0.8), 0 0 0 0 rgba(164, 207, 31, 0.4) !important;
    transform: scale(1) !important;
    background-position: 0% 50% !important;
  }
  25% {
    background-position: 50% 50% !important;
  }
  50% {
    box-shadow: 0 6px 18px rgba(164, 207, 31, 0.3), inset 0 1px 3px rgba(255, 255, 255, 0.9), 0 0 15px 3px rgba(164, 207, 31, 0.5) !important;
    transform: scale(1.03) !important;
    background-position: 100% 50% !important;
  }
  75% {
    background-position: 50% 50% !important;
  }
  100% {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15), inset 0 1px 2px rgba(255, 255, 255, 0.8), 0 0 0 0 rgba(164, 207, 31, 0.4) !important;
    transform: scale(1) !important;
    background-position: 0% 50% !important;
  }
}

.bestchange-custom-widget .bc-button:hover {
  background: linear-gradient(135deg, #e5f0cc 0%, #ffffff 50%, #eaf2d6 100%) !important;
  background-size: 200% 200% !important;
  box-shadow: 0 8px 20px rgba(164, 207, 31, 0.4), inset 0 1px 3px rgba(255, 255, 255, 0.9), 0 0 20px 5px rgba(164, 207, 31, 0.6) !important;
  border: 1px solid rgba(164, 207, 31, 0.4) !important;
  transform: translateY(-2px) scale(1.05) !important;
  color: #2d4700 !important;
  animation: none !important;
}

.bestchange-custom-widget .bc-button:focus,
.bestchange-custom-widget .bc-button:focus-visible,
.bestchange-custom-widget .bc-button:active {
  outline: none !important;
  border: 1px solid rgba(164, 207, 31, 0.5) !important;
  background: linear-gradient(135deg, #d9e8b8 0%, #f8fcf0 50%, #e0ecbf 100%) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15), inset 0 1px 3px rgba(255, 255, 255, 0.7) !important;
  transform: translateY(0) scale(0.98) !important;
  animation: none !important;
}

/* === АДАПТИВ ДЛЯ МОБИЛЬНЫХ УСТРОЙСТВ === */
@media (max-width: 600px) {
  .bestchange-custom-widget {
    height: auto !important;
    min-height: 285px !important;
    padding: 12px 12px 15px 12px !important;
    justify-content: space-between !important;
  }
  
  .bestchange-custom-widget .widget-title {
    font-size: 18px;
    padding: 5px 0 8px 0 !important;
    margin: 0;
  }
  
  .bestchange-custom-widget .bc-form {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    width: 100% !important;
  }
  
  .bestchange-custom-widget .bc-table {
    padding: 28px 15px 28px 15px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    margin: 5px 0 !important;
  }
  
  .bestchange-custom-widget .bc-table tr {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 0 !important;
    width: 100% !important;
  }

  .bestchange-custom-widget .bc-table td:nth-child(1),
  .bestchange-custom-widget .bc-table td:nth-child(2),
  .bestchange-custom-widget .bc-table td:nth-child(3) {
    display: inline-block !important;
    width: auto !important;
    flex: 0 0 auto !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .bestchange-custom-widget .bc-select {
    width: 140px !important;
    min-width: 130px !important;
    padding: 11px 8px !important;
    font-size: 12px !important;
    text-overflow: ellipsis !important;
    text-align: center !important;
    text-align-last: center !important;
    margin: 0 2px !important;
  }

  .bestchange-custom-widget .bc-label {
    padding: 0 6px !important;
    font-size: 14px !important;
    white-space: nowrap !important;
    display: inline-block !important;
    margin: 0 !important;
  }


  .bestchange-custom-widget .bc-table td:last-child {
    display: block !important;
    width: 100% !important;
    text-align: center !important;
    margin-top: 22px !important;
    margin-bottom: 5px !important;
    flex: 0 0 100% !important;
  }

  .bestchange-custom-widget .bc-button {
    display: inline-block !important;
    width: auto !important;
    min-width: 220px !important;
    max-width: 85% !important;
    padding: 15px 28px !important;
    font-size: 16px !important;
    margin-left: 0 !important;
    white-space: nowrap !important;
    animation: breatheGlow 2.5s ease-in-out infinite !important;
  }
}

/* === ОЧЕНЬ МАЛЕНЬКИЕ ЭКРАНЫ (до 400px) === */
@media (max-width: 400px) {
  .bestchange-custom-widget {
    min-height: 285px !important;
    padding: 10px 8px 12px 8px !important;
  }
  
  .bestchange-custom-widget .widget-title {
    font-size: 16px;
    padding: 4px 0 12px 0 !important;
  }
  
  .bestchange-custom-widget .bc-table {
    padding: 22px 8px 22px 8px !important;
    margin: 3px 0 !important;
  }
  
  .bestchange-custom-widget .bc-select {
    width: 120px !important;
    min-width: 110px !important;
    padding: 10px 4px !important;
    font-size: 11px !important;
    margin: 0 1px !important;
  }
  
  .bestchange-custom-widget .bc-label {
    font-size: 12px !important;
    padding: 0 5px !important;
  }
  
  .bestchange-custom-widget .bc-table td:last-child {
    margin-top: 18px !important;
    margin-bottom: 3px !important;
  }
  
  .bestchange-custom-widget .bc-button {
    min-width: 180px !important;
    padding: 13px 20px !important;
    font-size: 14px !important;
  }
}