body .comment-form input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]):not([type="reset"]),
body .comment-form select,
body .comment-form textarea,
body .search-form input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]):not([type="reset"]),
body .search-form select,
body .search-form textarea,
body .post-password-form input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]):not([type="reset"]),
body .post-password-form select,
body .post-password-form textarea,
body .wp-block-search input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]):not([type="reset"]),
body .wp-block-search select,
body .wp-block-search textarea {
  width: 100%;
  min-height: 3rem;
  padding: 0.82rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--color-surface-soft) 96%, transparent);
  color: var(--color-text);
  transition:
    border-color var(--transition-fast),
    box-shadow var(--transition-fast),
    background-color var(--transition-fast),
    color var(--transition-fast);
}

body .comment-form textarea,
body .search-form textarea,
body .post-password-form textarea,
body .wp-block-search textarea {
  min-height: 8rem;
  resize: vertical;
}

body .comment-form input::placeholder,
body .comment-form textarea::placeholder,
body .search-form input::placeholder,
body .search-form textarea::placeholder,
body .post-password-form input::placeholder,
body .post-password-form textarea::placeholder,
body .wp-block-search input::placeholder,
body .wp-block-search textarea::placeholder {
  color: var(--color-text-muted);
  opacity: 1;
}

body .comment-form input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]):not([type="reset"]):focus,
body .comment-form select:focus,
body .comment-form textarea:focus,
body .search-form input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]):not([type="reset"]):focus,
body .search-form select:focus,
body .search-form textarea:focus,
body .post-password-form input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]):not([type="reset"]):focus,
body .post-password-form select:focus,
body .post-password-form textarea:focus,
body .wp-block-search input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]):not([type="reset"]):focus,
body .wp-block-search select:focus,
body .wp-block-search textarea:focus {
  border-color: var(--color-border-strong);
  box-shadow: var(--focus-ring);
  outline: none;
}

body .comment-form fieldset,
body .search-form fieldset,
body .post-password-form fieldset,
body .wp-block-search fieldset,
body.woocommerce-cart .woocommerce fieldset,
body.woocommerce-checkout:not(.woocommerce-account) .woocommerce fieldset,
body.single-product .woocommerce fieldset {
  border: 1px solid color-mix(in srgb, var(--color-border) 82%, transparent);
  border-radius: var(--radius-md);
  padding: 1rem 1rem 1.15rem;
}

body .comment-form legend,
body .search-form legend,
body .post-password-form legend,
body .wp-block-search legend,
body.woocommerce-cart .woocommerce legend,
body.woocommerce-checkout:not(.woocommerce-account) .woocommerce legend,
body.single-product .woocommerce legend {
  padding: 0 0.35rem;
  color: var(--color-text);
  font-weight: 700;
}

body .comment-form input[type="checkbox"],
body .comment-form input[type="radio"],
body .search-form input[type="checkbox"],
body .search-form input[type="radio"],
body .post-password-form input[type="checkbox"],
body .post-password-form input[type="radio"],
body .wp-block-search input[type="checkbox"],
body .wp-block-search input[type="radio"],
body.woocommerce-cart .woocommerce input[type="checkbox"],
body.woocommerce-cart .woocommerce input[type="radio"],
body.woocommerce-checkout:not(.woocommerce-account) .woocommerce input[type="checkbox"],
body.woocommerce-checkout:not(.woocommerce-account) .woocommerce input[type="radio"],
body.single-product .woocommerce input[type="checkbox"],
body.single-product .woocommerce input[type="radio"] {
  accent-color: var(--color-accent-strong);
}

body .comment-form label:has(input[type="checkbox"]),
body .comment-form label:has(input[type="radio"]),
body .search-form label:has(input[type="checkbox"]),
body .search-form label:has(input[type="radio"]),
body .post-password-form label:has(input[type="checkbox"]),
body .post-password-form label:has(input[type="radio"]),
body .wp-block-search label:has(input[type="checkbox"]),
body .wp-block-search label:has(input[type="radio"]) {
  display: inline-flex;
  gap: 0.6rem;
  align-items: flex-start;
}

body .comment-form select,
body .search-form select,
body .post-password-form select,
body .wp-block-search select,
body.woocommerce-cart .woocommerce select,
body.woocommerce-checkout:not(.woocommerce-account) .woocommerce select,
body.single-product .woocommerce select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--color-text-muted) 50%),
    linear-gradient(135deg, var(--color-text-muted) 50%, transparent 50%);
  background-position:
    calc(100% - 1rem) calc(50% - 0.15rem),
    calc(100% - 0.7rem) calc(50% - 0.15rem);
  background-size: 0.38rem 0.38rem, 0.38rem 0.38rem;
  background-repeat: no-repeat;
  padding-right: 2.4rem;
}

body .search-form,
body .wp-block-search__inside-wrapper,
body .comment-form,
body .post-password-form {
  display: grid;
  gap: 0.9rem;
}

body.woocommerce-cart .woocommerce-cart-form,
body.woocommerce-cart .cart-collaterals,
body.woocommerce-checkout:not(.woocommerce-account) .woocommerce-checkout,
body.woocommerce-checkout:not(.woocommerce-account) .woocommerce-billing-fields,
body.woocommerce-checkout:not(.woocommerce-account) .woocommerce-shipping-fields,
body.woocommerce-checkout:not(.woocommerce-account) #order_review {
  color: var(--color-text);
}

body.woocommerce-cart .woocommerce input:not([type="checkbox"]):not([type="radio"]),
body.woocommerce-cart .woocommerce select,
body.woocommerce-cart .woocommerce textarea,
body.woocommerce-checkout:not(.woocommerce-account) .woocommerce input:not([type="checkbox"]):not([type="radio"]),
body.woocommerce-checkout:not(.woocommerce-account) .woocommerce select,
body.woocommerce-checkout:not(.woocommerce-account) .woocommerce textarea {
  min-height: 3rem;
}

body.woocommerce-cart .woocommerce input:focus,
body.woocommerce-cart .woocommerce select:focus,
body.woocommerce-cart .woocommerce textarea:focus,
body.woocommerce-checkout:not(.woocommerce-account) .woocommerce input:focus,
body.woocommerce-checkout:not(.woocommerce-account) .woocommerce select:focus,
body.woocommerce-checkout:not(.woocommerce-account) .woocommerce textarea:focus {
  border-color: var(--color-border-strong);
  box-shadow: var(--focus-ring);
  outline: none;
}

body.woocommerce-cart .quantity .qty,
body.single-product .quantity .qty,
body.woocommerce-checkout:not(.woocommerce-account) .quantity .qty {
  min-width: 5.5rem;
  text-align: center;
}

@media (max-width: 768px) {
  body .comment-form input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]):not([type="reset"]),
  body .comment-form select,
  body .comment-form textarea,
  body .search-form input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]):not([type="reset"]),
  body .search-form select,
  body .search-form textarea,
  body .post-password-form input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]):not([type="reset"]),
  body .post-password-form select,
  body .post-password-form textarea,
  body .wp-block-search input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]):not([type="reset"]),
  body .wp-block-search select,
  body .wp-block-search textarea,
  body.woocommerce-cart .woocommerce input:not([type="checkbox"]):not([type="radio"]),
  body.woocommerce-cart .woocommerce select,
  body.woocommerce-cart .woocommerce textarea,
  body.woocommerce-checkout:not(.woocommerce-account) .woocommerce input:not([type="checkbox"]):not([type="radio"]),
  body.woocommerce-checkout:not(.woocommerce-account) .woocommerce select,
  body.woocommerce-checkout:not(.woocommerce-account) .woocommerce textarea {
    font-size: 16px;
  }
}
