/* Botão do shortcode [wm_static_search_button]
   Dupla classe (.wm-search-button.wm-search-button) reforça especificidade sobre tema/Elementor. */

.wm-search-button.wm-search-button {
  --wm-search-from: #2b8ef0;
  --wm-search-to: #4f46e5;
  --wm-search-from-hover: #2478c9;
  --wm-search-to-hover: #4338ca;
  --wm-search-shadow: 0 2px 8px rgba(15, 23, 42, 0.08),
    0 1px 3px rgba(79, 70, 229, 0.14);
  --wm-search-shadow-hover: 0 4px 14px rgba(15, 23, 42, 0.1),
    0 2px 6px rgba(79, 70, 229, 0.2);
  --wm-search-shadow-active: 0 1px 4px rgba(15, 23, 42, 0.08),
    0 1px 2px rgba(79, 70, 229, 0.12);
  --wm-search-focus-ring: 0 0 0 2px #ffffff, 0 0 0 4px rgba(43, 142, 240, 0.45);

  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  background: linear-gradient(135deg, var(--wm-search-from) 0%, var(--wm-search-to) 100%);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #ffffff;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  box-shadow: var(--wm-search-shadow);
  transition: box-shadow 0.2s ease, transform 0.2s ease, background 0.2s ease, color 0.2s ease,
    border-color 0.2s ease;
  text-decoration: none;
  text-underline-offset: unset;
  font-size: 1rem;
  cursor: pointer;
  line-height: 1.5;
  gap: 0.5rem;
}

.wm-search-button.wm-search-button:hover {
  transform: translateY(-1px);
  box-shadow: var(--wm-search-shadow-hover);
  background: linear-gradient(
    135deg,
    var(--wm-search-from-hover) 0%,
    var(--wm-search-to-hover) 100%
  );
  color: #ffffff;
  text-decoration: none;
}

.wm-search-button.wm-search-button:active {
  transform: translateY(0);
  box-shadow: var(--wm-search-shadow-active);
}

.wm-search-button.wm-search-button:focus {
  outline: none;
}

.wm-search-button.wm-search-button:focus:not(:focus-visible) {
  box-shadow: var(--wm-search-shadow);
}

.wm-search-button.wm-search-button:focus-visible {
  outline: none;
  box-shadow: var(--wm-search-focus-ring), var(--wm-search-shadow-hover);
}

.wm-search-button.wm-search-button .wm-search-button__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05em;
  line-height: 0;
}

.wm-search-button.wm-search-button .wm-search-button__text {
  display: inline-block;
  text-decoration: none;
  border-bottom: none;
}

.wm-search-button.wm-search-button:hover .wm-search-button__text,
.wm-search-button.wm-search-button:focus .wm-search-button__text,
.wm-search-button.wm-search-button:focus-visible .wm-search-button__text,
.wm-search-button.wm-search-button:active .wm-search-button__text {
  text-decoration: none;
  border-bottom: none;
}

/* Tamanhos alternativos */
.wm-search-button--small.wm-search-button {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
}

.wm-search-button--large.wm-search-button {
  padding: 1rem 2rem;
  font-size: 1.1rem;
}

/* Versão plana (sem gradiente) */
.wm-search-button--simple.wm-search-button {
  --wm-search-shadow: 0 2px 6px rgba(15, 23, 42, 0.07), 0 1px 2px rgba(43, 142, 240, 0.2);
  --wm-search-shadow-hover: 0 4px 12px rgba(15, 23, 42, 0.09), 0 2px 4px rgba(43, 142, 240, 0.25);
  background: #2b8ef0;
  border-color: rgba(255, 255, 255, 0.25);
}

.wm-search-button--simple.wm-search-button:hover {
  background: #2478c9;
  background-image: none;
}

/* Discreto: harmoniza com header neutro (contorno) */
.wm-search-button--outline.wm-search-button,
.wm-search-button--header.wm-search-button {
  --wm-search-focus-ring: 0 0 0 2px #ffffff, 0 0 0 4px rgba(51, 65, 85, 0.35);
  background: #ffffff;
  background-image: none;
  color: #334155;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

.wm-search-button--outline.wm-search-button:hover,
.wm-search-button--header.wm-search-button:hover {
  background: #f8fafc;
  background-image: none;
  color: #1e293b;
  border-color: #cbd5e1;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}

.wm-search-button--outline.wm-search-button:focus-visible,
.wm-search-button--header.wm-search-button:focus-visible {
  box-shadow: var(--wm-search-focus-ring), 0 2px 8px rgba(15, 23, 42, 0.08);
}

.wm-search-button--outline.wm-search-button:active,
.wm-search-button--header.wm-search-button:active {
  background: #f1f5f9;
  background-image: none;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}

@media (max-width: 768px) {
  .wm-search-button.wm-search-button {
    padding: 0.625rem 1.25rem;
    font-size: 0.9rem;
  }
}
