/**
 * HDev Custom Button - Stylesheet
 */

.hdev-button-wrap {
  position: relative;
  display: flex;
  width: 100%;
  margin: 0 0 14px 0;
  box-sizing: border-box;
}

.hdev-button-wrap.align-left {
  justify-content: flex-start;
}
.hdev-button-wrap.align-center {
  justify-content: center;
}
.hdev-button-wrap.align-right {
  justify-content: flex-end;
}
.hdev-button-wrap.is-full-width .hdev-btn,
.hdev-button-wrap.has-custom-width .hdev-btn {
  width: var(--hdev-btn-width, 100%);
  justify-content: space-between;
}

.hdev-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: var(--hdev-btn-width, auto);
  padding: var(--hdev-btn-padding, 12px 24px);
  background-color: var(--hdev-btn-bg, #da251c);
  color: var(--hdev-btn-color, #ffffff) !important;
  border: var(--hdev-btn-border-width, 0px) solid var(--hdev-btn-border-color, currentColor);
  border-radius: var(--hdev-btn-radius, 8px);
  font-size: var(--hdev-btn-font-size, 16px);
  font-weight: var(--hdev-btn-font-weight, 700);
  line-height: 1.4;
  text-decoration: none !important;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  box-sizing: border-box;
}

.hdev-btn,
.hdev-btn *,
.hdev-btn .hdev-btn-text {
  color: var(--hdev-btn-color, #ffffff) !important;
}

.hdev-btn:hover,
.hdev-btn:hover *,
.hdev-btn:hover .hdev-btn-text {
  color: var(--hdev-btn-color-hover, #ffffff) !important;
}

.hdev-btn:hover {
  background-color: var(--hdev-btn-bg-hover, #b81d15);
  border-color: var(--hdev-btn-border-hover, currentColor);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

.hdev-btn-text {
  flex: 1;
  text-align: center;
}
.hdev-button-wrap:not(.is-full-width):not(.has-custom-width) .hdev-btn-text {
  flex: initial;
}

.hdev-btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--hdev-btn-icon-size, 20px);
  height: var(--hdev-btn-icon-size, 20px);
  flex-shrink: 0;
  color: inherit !important;
}

.hdev-btn-icon svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
  fill: none;
}

.hdev-btn-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

@media (max-width: 849px) {
  .hdev-button-wrap.is-full-width .hdev-btn,
  .hdev-button-wrap.has-custom-width .hdev-btn {
    width: var(--hdev-btn-width-md, var(--hdev-btn-width, 100%));
  }
}

@media (max-width: 767px) {
  .hdev-button-wrap {
    width: 100%;
  }
  .hdev-button-wrap.is-full-width .hdev-btn,
  .hdev-button-wrap.has-custom-width .hdev-btn {
    width: var(--hdev-btn-width-sm, var(--hdev-btn-width-md, var(--hdev-btn-width, 100%)));
    justify-content: space-between;
  }
  .hdev-btn {
    padding: 12px 16px;
    font-size: 18px;
  }
}
