/**
 * Smart Button Module - Frontend Styles
 */

/* Compensate for Beaver Builder's default 20px left padding */
.fl-module[data-type="jaak-smartbutton"],
.fl-module-jaak-smartbutton,
.fl-module-jaak_smartbutton {
  padding-left: 0 !important;
}

.jaak-smartbutton {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  padding: 16px 32px;
  background-color: #253D67;
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  line-height: 1.5;
  transition: background-color 0.2s ease, color 0.2s ease, border 0.2s ease;
  border: 2px solid transparent;
  cursor: pointer;
  text-align: left;
  margin-left: -20px; /* Compensate for Beaver Builder padding */
}

.jaak-smartbutton:hover {
  background-color: #ffffff;
  color: #253D67;
  border-color: #253D67;
}

.jaak-smartbutton__icon {
  width: 18px;
  height: 18px;
  fill: currentColor;
  flex-shrink: 0;
}

/* Responsive - Reset margin on screens under 1300px */
@media (max-width: 1300px) {
  .fl-module[data-type="jaak-smartbutton"],
  .fl-module-jaak-smartbutton,
  .fl-module-jaak_smartbutton {
    padding-left: 0 !important;
  }
  
  .jaak-smartbutton {
    margin-left: 0; /* Reset negative margin on screens under 1300px */
  }
}

/* Responsive - Tablets */
@media (max-width: 1024px) {
  .jaak-smartbutton {
    padding: 15px 28px;
  }
}

/* Responsive - Mobile Tablets */
@media (max-width: 768px) {
  .jaak-smartbutton {
    display: inline-flex;
    padding: 14px 24px;
    font-size: 16px;
    margin-left: 0; /* Reset margin on mobile tablets */
  }
}

/* Responsive - Small Mobile */
@media (max-width: 480px) {
  .jaak-smartbutton {
    padding: 12px 20px;
    font-size: 15px;
    margin-left: 0;
  }
  
  .jaak-smartbutton__icon {
    width: 16px;
    height: 16px;
  }
}

