:root {
  --fm-theme-text: var(--e-global-color-text, currentColor);
  --fm-theme-accent: var(--e-global-color-primary, currentColor);
  --fm-theme-muted: var(--e-global-color-secondary, rgba(17, 17, 17, 0.7));
  --fm-theme-border: color-mix(in srgb, var(--fm-theme-text) 12%, transparent);
}

html {
  scroll-behavior: smooth;
}

body {
  color: var(--fm-theme-text);
}

body,
button,
input,
select,
textarea {
  font: inherit;
}

a,
.elementor a {
  color: var(--fm-theme-accent);
}

a:visited,
.elementor a:visited {
  color: var(--fm-theme-accent);
}

a:hover,
a:focus,
.elementor a:hover,
.elementor a:focus {
  color: var(--fm-theme-accent);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--fm-theme-accent);
  outline-offset: 2px;
}

img {
  max-width: 100%;
  height: auto;
}

.site-main,
.elementor-location-header,
.elementor-location-footer {
  min-width: 0;
}

.elementor-widget-text-editor p:last-child,
.elementor-widget-theme-post-content p:last-child {
  margin-bottom: 0;
}

.woocommerce a,
.woocommerce-page a,
.woocommerce-privacy-policy-text a,
.woocommerce-terms-and-conditions-wrapper a,
.woocommerce-checkout a,
.woocommerce-cart a,
.woocommerce-message a,
.woocommerce-info a,
.woocommerce-error a,
.woocommerce-form a {
  color: var(--fm-theme-accent);
  text-underline-offset: 0.14em;
}

.woocommerce-privacy-policy-text,
.woocommerce-terms-and-conditions-wrapper {
  color: var(--fm-theme-muted);
  line-height: 1.65;
}

.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce input#submit,
.woocommerce button.button.alt,
.woocommerce a.button.alt,
.woocommerce input.button.alt {
  font: inherit;
  text-transform: none;
  letter-spacing: inherit;
  box-shadow: none;
  text-shadow: none;
  background-image: none;
  border-radius: inherit;
}

.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select,
.select2-container--default .select2-selection--single,
.select2-container--default .select2-selection--multiple {
  border-radius: 14px;
  border-color: var(--fm-theme-border);
}

.woocommerce input[type="text"],
.woocommerce input[type="email"],
.woocommerce input[type="tel"],
.woocommerce input[type="password"],
.woocommerce input[type="search"],
.woocommerce input[type="number"],
.woocommerce textarea,
.woocommerce select {
  font: inherit;
  color: inherit;
  box-shadow: none;
}

.woocommerce select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

.woocommerce ::placeholder {
  color: currentColor;
  opacity: 0.55;
}

.woocommerce table,
.woocommerce table th,
.woocommerce table td {
  border-color: var(--fm-theme-border);
}

.woocommerce span.onsale,
.woocommerce .price,
.woocommerce div.product p.price,
.woocommerce div.product span.price {
  color: inherit;
}

.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
  box-shadow: none;
  background-image: none;
}

.entry-content a,
.page-content a,
.site-footer a {
  color: var(--fm-theme-accent);
}

@media (max-width: 767px) {
  .woocommerce-privacy-policy-text,
  .woocommerce-terms-and-conditions-wrapper {
    font-size: 0.95rem;
  }
}
