/* Vendor button shape/color bridges.
 * WHY !important: Docent/Tutor/Woo set font-family, text-transform, box-shadow,
 * and button backgrounds with equal/higher specificity or theme inline CSS.
 * Tutor primary fill uses native --tutor-primary-button-color (PR1a) — not re-forced here.
 */

/* Shape sync with .hsg-btn */
body .tutor-button,
body .tutor-btn,
body .single_add_to_cart_button,
body .course-complete-button,
body button.course-complete-button,
body .woocommerce button.button,
body .woocommerce a.button,
body .woocommerce input.button,
body .woocommerce #respond input#submit,
body .blog-comments-section .form-submit .submit,
body .comments-area .form-submit input[type='submit'],
body .docent-signin-popup-body button.register_button,
body form#login .btn-fill,
body .pmpro_btn,
body .pmpro_btn.pmpro_btn-submit-checkout,
body .btn.btn-classic,
body .tutor-course-grid-enroll .btn {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: var(--hsg-btn-min-h);
  padding: 10px 18px;
  margin: 0;
  border-radius: var(--hsg-radius-btn);
  border: 1px solid transparent;
  font-family: var(--hsg-font) !important; /* WHY: Docent sets Montserrat on .tutor-button */
  font-size: 14px;
  font-weight: 650;
  line-height: 1.25;
  letter-spacing: 0;
  text-transform: none !important; /* WHY: Tutor uses text-transform: capitalize */
  text-decoration: none;
  text-align: center;
  white-space: normal;
  max-width: 100%;
  overflow-wrap: anywhere;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  box-shadow: none !important; /* WHY: theme button shadows */
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
  vertical-align: middle;
}

/* Primary fill for non-Tutor surfaces (+ intentional course start CTA) */
body .hsg-course-start-btn,
body .woocommerce a.button.alt,
body .woocommerce button.button.alt,
body .woocommerce input.button.alt,
body .pmpro_btn.pmpro_btn-submit-checkout,
body form#login .btn-fill,
body .docent-signin-popup-body button.register_button {
  background: var(--hsg-primary) !important; /* WHY: Woo/Docent/PMPro primary fills */
  border-color: var(--hsg-primary) !important;
  color: #fff !important;
}

body .hsg-course-start-btn:hover,
body .woocommerce a.button.alt:hover,
body .woocommerce button.button.alt:hover,
body .woocommerce input.button.alt:hover {
  background: var(--hsg-primary-hover) !important;
  border-color: var(--hsg-primary-hover) !important;
  color: #fff !important;
  filter: none;
}

/* Outline / secondary vendor */
body .course-complete-button,
body button.course-complete-button,
body .tutor-course-complete-form-wrap button,
body .woocommerce a.button:not(.alt),
body .woocommerce button.button:not(.alt),
body .woocommerce input.button:not(.alt),
body .woocommerce #respond input#submit,
body .blog-comments-section .form-submit .submit,
body .comments-area .form-submit input[type='submit'],
body .btn.btn-classic,
body .tutor-course-grid-enroll .btn {
  background: var(--hsg-surface) !important;
  border-color: var(--hsg-line-strong) !important;
  color: var(--hsg-ink) !important;
}

body .course-complete-button:hover,
body .tutor-course-complete-form-wrap button:hover,
body .btn.btn-classic:hover,
body .tutor-course-grid-enroll .btn:hover {
  background: #f1f5f9 !important;
  border-color: var(--hsg-line-strong) !important;
  color: var(--hsg-ink) !important;
}
