/**
 * ThaPoetic1 plugin compatibility layer.
 * This file is intentionally conservative: it avoids forcing global styles onto plugin output.
 */

/* Forms */
.tp-theme .wpforms-container,
.tp-theme .wpcf7,
.tp-theme .gform_wrapper,
.tp-theme .nf-form-cont,
.tp-theme .forminator-ui{
  max-width: 100%;
  margin: 28px 0;
}

.tp-theme .wpforms-container input,
.tp-theme .wpforms-container textarea,
.tp-theme .wpforms-container select,
.tp-theme .wpcf7 input,
.tp-theme .wpcf7 textarea,
.tp-theme .wpcf7 select,
.tp-theme .gform_wrapper input,
.tp-theme .gform_wrapper textarea,
.tp-theme .gform_wrapper select,
.tp-theme .woocommerce input,
.tp-theme .woocommerce textarea,
.tp-theme .woocommerce select{
  width: 100%;
  border: 1px solid var(--tp-line);
  background: #fff;
  color: var(--tp-ink);
  padding: 13px 14px;
  font: inherit;
}

.tp-theme .wpforms-submit,
.tp-theme .wpcf7-submit,
.tp-theme .gform_button,
.tp-theme .forminator-button,
.tp-theme .woocommerce button.button,
.tp-theme .woocommerce a.button,
.tp-theme .woocommerce input.button,
.tp-theme .woocommerce #respond input#submit{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background:var(--tp-ink);
  color:#fff !important;
  border:1px solid var(--tp-gold);
  padding:14px 22px;
  border-radius:3px;
  font-size:12px;
  font-weight:900;
  letter-spacing:.12em;
  text-transform:uppercase;
  text-decoration:none;
}

.tp-theme .wpforms-submit:hover,
.tp-theme .wpcf7-submit:hover,
.tp-theme .gform_button:hover,
.tp-theme .forminator-button:hover,
.tp-theme .woocommerce button.button:hover,
.tp-theme .woocommerce a.button:hover,
.tp-theme .woocommerce input.button:hover{
  background:var(--tp-gold);
  color:var(--tp-ink) !important;
}

/* Elementor and block builders */
.tp-theme .elementor,
.tp-theme .elementor-section,
.tp-theme .elementor-widget,
.tp-theme .wp-block-group,
.tp-theme .wp-block-columns{
  max-width:100%;
}

.tp-theme .elementor img,
.tp-theme .wp-block-image img{
  height:auto;
}

/* WooCommerce */
.tp-theme.woocommerce-page .tp-page,
.tp-theme .woocommerce{
  max-width:1220px;
  margin-left:auto;
  margin-right:auto;
}

.tp-theme .woocommerce-message,
.tp-theme .woocommerce-info,
.tp-theme .woocommerce-error{
  border-top-color:var(--tp-gold);
  background:var(--tp-paper);
  color:var(--tp-ink);
}

.tp-theme .woocommerce ul.products li.product .woocommerce-loop-product__title{
  font-family:'Cormorant Garamond',serif;
  font-size:28px;
  line-height:1;
}

.tp-theme .woocommerce div.product .product_title{
  font-family:'Cormorant Garamond',serif;
}

/* Membership/course plugins */
.tp-theme .learndash-wrapper,
.tp-theme .ld-course-list-items,
.tp-theme .tutor-wrap,
.tp-theme .sensei,
.tp-theme .mepr,
.tp-theme .pmpro,
.tp-theme .swpm{
  max-width:1220px;
  margin-left:auto;
  margin-right:auto;
}

/* Author blocks/plugins */
.tp-theme .wp-block-post-author,
.tp-theme .wp-block-post-author-biography,
.tp-theme .author-box,
.tp-theme .author-bio,
.tp-theme .molongui-author-box,
.tp-theme .simple-author-box,
.tp-theme .saboxplugin-wrap,
.tp-theme .abh_box,
.tp-theme .m-a-box{
  display:block !important;
  visibility:visible !important;
  opacity:1 !important;
  clear:both;
}

/* Cookie/privacy banners should not inherit theme card transforms. */
.tp-theme [class*="cookie"],
.tp-theme [id*="cookie"],
.tp-theme .cky-consent-container,
.tp-theme .cc-window{
  transform:none !important;
}

/* Plugin widgets */
.tp-theme .widget,
.tp-theme .wp-block-widget{
  color:inherit;
}

.tp-theme .widget a,
.tp-theme .wp-block-widget a{
  text-decoration:underline;
  text-underline-offset:3px;
}
