/* Defeat theme/bootstrap button styling that bleeds into the React app. */
#root button,
#root input[type="button"],
#root input[type="submit"] {
  -webkit-appearance: none;
  appearance: none;
  width: auto;
  margin: 0;
  background: none;
  border: none;
  text-transform: none;
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  color: inherit;
  border-radius: 0;
}

/* Re-assert the design's button styles after the reset above. */
#root .ctt-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--primary-accent);
  color: var(--brown);
  font-family: var(--font-body);
  font-weight: 900;
  font-size: 16px;
  line-height: 1.2;
  padding: 18px 26px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  text-decoration: none;
  letter-spacing: 0.01em;
  width: max-content;
  max-width: 100%;
  min-width: 0;
  white-space: normal;
  text-align: center;
  flex: 0 0 auto !important;
  box-sizing: border-box;
}

/* Lucide icons inside buttons. The icon library swaps <i data-lucide> with
   <svg class="lucide lucide-X">. Force a sane size in case theme svg rules
   (e.g. bootstrap's `svg { overflow: hidden }`) collapse them. */
#root .ctt-btn .lucide,
#root .ctt-btn svg {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  stroke-width: 2.5;
  overflow: visible;
}
#root .ctt-btn--lg .lucide,
#root .ctt-btn--lg svg {
  width: 20px;
  height: 20px;
  flex-basis: 20px;
}
#root .ctt-btn--xl .lucide,
#root .ctt-btn--xl svg {
  width: 22px;
  height: 22px;
  flex-basis: 22px;
}

/* Style Gravity Form #22 submit button like .ctt-btn .ctt-btn--lg. */
#root #gform_submit_button_22 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--primary-accent);
  color: var(--brown);
  font-family: var(--font-body);
  font-weight: 900;
  font-size: 18px;
  line-height: 1.2;
  padding: 22px 32px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  text-decoration: none;
  letter-spacing: 0.01em;
  text-transform: none;
  width: max-content;
  max-width: 100%;
  min-width: 0;
  white-space: normal;
  text-align: center;
  flex: 0 0 auto !important;
  box-sizing: border-box;
  transition: background-color .2s ease, color .2s ease, transform .15s ease;
}
#root #gform_submit_button_22:hover,
#root #gform_submit_button_22:focus {
  background: var(--brown);
  color: var(--white);
  outline: none;
  transform: translateY(-1px);
}
#root .ctt-btn--lg { font-size: 18px; padding: 22px 32px; }
#root .ctt-btn--xl { font-size: 22px; padding: 26px 38px; }
#root .ctt-btn--ghost {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--primary-accent);
}
#root .ctt-btn--dark {
  background: var(--brown);
  color: var(--white);
}
#root .ctt-btn--link {
  background: transparent;
  color: var(--brown);
  padding: 10px 0;
  text-decoration: underline;
  text-decoration-color: var(--primary-accent);
  text-decoration-thickness: 3px;
  text-underline-offset: 6px;
  border-radius: 0;
}

/* Hover / focus states. Need #root prefix here too — otherwise the
   #root button reset above wins on specificity. */
#root .ctt-btn {
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .15s ease;
}
#root .ctt-btn:hover,
#root .ctt-btn:focus {
  background: var(--brown);
  color: var(--white);
  outline: none;
  transform: translateY(-1px);
}
#root .ctt-btn--ghost:hover,
#root .ctt-btn--ghost:focus {
  background: var(--primary-accent);
  color: var(--brown);
  border-color: var(--primary-accent);
}
#root .ctt-btn--dark:hover,
#root .ctt-btn--dark:focus {
  background: var(--primary-accent);
  color: var(--brown);
}
#root .ctt-btn--link:hover,
#root .ctt-btn--link:focus {
  background: transparent;
  color: var(--primary-accent);
  transform: none;
}

/* Parent theme aw-styles.css forces .ctt-hero h1 to thirsty-rough with
   !important. Override it to the display token (now Oswald). */
#root .ctt-hero h1 {
  font-family: var(--font-display) !important;
}
