/* Базові стилі кнопки */
.smx-allegro-wrap { 
  min-width: 32%;
  padding: 15px 0 15px 25px;
}

.smx-allegro-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: #FF5A00;
  color: #fff !important;
  border: none;
  border-radius: 3px;
  padding: 20px 20px 1.25rem;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 1px;
  text-decoration: none;
  box-shadow: none;
  transition: background-color 0.2s ease, transform 0.02s ease;
}

.smx-allegro-btn:hover {
  background-color: #e14a00;
  color: #fff !important;
}

.smx-allegro-btn:active {
  transform: translateY(1px);
}

.single-product .smx-allegro-btn.button {
  line-height: 1;
}

/* Стиль для неактивної кнопки (немає варіації або посилання) */
.smx-allegro-btn.wcba-inactive {
  background-color: #999 !important;
  color: #fff !important;
  pointer-events: none;
  /*opacity: 0.6;*/
  cursor: not-allowed;
}

/* Дві позиції: показуємо лише одну залежно від ширини */
.smx-allegro-right {
  display: inline-flex;
}

.smx-allegro-under {
  display: none;
}

@media (max-width: 767px) {
  .smx-allegro-wrap {
    padding: 15px 0;
  }

  body.single-product .smx-allegro-right {
    display: none;
  }

  .smx-allegro-under {
    display: block;
    width: 100%;
  }

  .smx-allegro-under .smx-allegro-btn {
    width: 100%;
    justify-content: center;
  }
}

/* ============================
   Custom Button (wcba-custom-button)
   ============================ */

   .smx-allegro-btn.wcba-custom-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    width: auto;
  }
  
  /* На мобилках и планшетах — всегда видна, можно сделать на всю ширину */
  @media (max-width: 767px) {
    .smx-allegro-btn.wcba-custom-button {
      display: flex;
      width: 100%;
      justify-content: center;
    }
  }
  
