/* TrustDeal Divi Child 1.1.4 RC5 — scoped frontend design tokens.
 * Only explicitly enabled adapters are styled. No reset of input appearance,
 * no `!important`, no hidden fields, no changes to payment iframes.
 * Modules with custom Divi presets can intentionally override these base values.
 */

/* Input adapters: Divi, WooCommerce classic / Blocks, CF7, opted-in HTML, preview.
 * Add .tdc-style-exclude to a form, notice or ancestor to opt that instance out.
 * Never affect cross-origin payment fields or unrelated wp-admin elements. */
body.tdc-form-divi :where(.et_pb_contact_form,.et_pb_login_form,.et_pb_newsletter_form) :where(input[type="text"],input[type="email"],input[type="tel"],input[type="url"],input[type="number"],input[type="password"],input[type="search"],select:not(.select2-hidden-accessible),textarea):not(:where(.tdc-style-exclude,.tdc-style-exclude *)),
body.tdc-form-woo :where(.woocommerce form,.wc-block-components-form,.wc-block-checkout) :where(input[type="text"],input[type="email"],input[type="tel"],input[type="url"],input[type="number"],input[type="password"],input[type="search"],select:not(.select2-hidden-accessible),textarea):not(:where(.tdc-style-exclude,.tdc-style-exclude *,.tdwc-checkout-shell,.tdwc-checkout-shell *,.tdwc-account,.tdwc-account *)),
body.tdc-form-cf7 .wpcf7 form :where(input[type="text"],input[type="email"],input[type="tel"],input[type="url"],input[type="number"],input[type="password"],input[type="search"],select:not(.select2-hidden-accessible),textarea):not(:where(.tdc-style-exclude,.tdc-style-exclude *)),
body.tdc-form-html form.tdc-global-form :where(input[type="text"],input[type="email"],input[type="tel"],input[type="url"],input[type="number"],input[type="password"],input[type="search"],select:not(.select2-hidden-accessible),textarea):not(:where(.tdc-style-exclude,.tdc-style-exclude *)),
body.tdc-preview.tdc-preview-form-enabled :where(.tdc-preview-field,.tdc-preview-select,.tdc-preview-textarea){
  box-sizing:border-box;
  width:100%;max-width:100%;
  border:var(--tdc-form-border-width,1px) solid var(--tdc-form-border,#cbd5e1);
  border-radius:var(--tdc-form-radius,8px);
  padding:var(--tdc-form-padding-y,12px) var(--tdc-form-padding-x,14px);
  background-color:var(--tdc-form-background,#fff);
  color:var(--tdc-form-text,#273443);
  font-family:inherit;font-size:var(--tdc-form-font-size,16px);line-height:1.5;
  min-height:var(--tdc-form-min-height,44px);
  transition:border-color .15s ease,box-shadow .15s ease;
}

/* Textarea is taller but can still be resized naturally. */
body.tdc-form-divi :where(.et_pb_contact_form,.et_pb_login_form,.et_pb_newsletter_form) textarea:not(:where(.tdc-style-exclude,.tdc-style-exclude *)),
body.tdc-form-woo :where(.woocommerce form,.wc-block-components-form,.wc-block-checkout) textarea:not(:where(.tdc-style-exclude,.tdc-style-exclude *,.tdwc-checkout-shell,.tdwc-checkout-shell *,.tdwc-account,.tdwc-account *)),
body.tdc-form-cf7 .wpcf7 form textarea:not(:where(.tdc-style-exclude,.tdc-style-exclude *)),
body.tdc-form-html form.tdc-global-form textarea:not(:where(.tdc-style-exclude,.tdc-style-exclude *)),
body.tdc-preview.tdc-preview-form-enabled .tdc-preview-textarea{
  min-height:var(--tdc-form-textarea-min-height,110px);
}

/* Label typography is constrained to form contexts; no generic `label` overrides. */
body.tdc-form-divi :where(.et_pb_contact_form,.et_pb_login_form,.et_pb_newsletter_form) label:not(:where(.tdc-style-exclude,.tdc-style-exclude *)),
body.tdc-form-woo :where(.woocommerce form,.wc-block-components-form,.wc-block-checkout) label:not(:where(.tdc-style-exclude,.tdc-style-exclude *,.tdwc-checkout-shell,.tdwc-checkout-shell *,.tdwc-account,.tdwc-account *)),
body.tdc-form-cf7 .wpcf7 form label:not(:where(.tdc-style-exclude,.tdc-style-exclude *)),
body.tdc-form-html form.tdc-global-form label:not(:where(.tdc-style-exclude,.tdc-style-exclude *)),
body.tdc-preview.tdc-preview-form-enabled .tdc-preview-stack label,
body.tdc-preview.tdc-preview-form-enabled .tdc-scene-form .tdc-form-row > label{
  color:var(--tdc-form-label-color,#273443);
  font-size:var(--tdc-form-label-font-size,14px);
}
/* Divi and CF7 label geometry is inconsistent; only opt into label spacing when block-level. */
body.tdc-preview.tdc-preview-form-enabled .tdc-scene-form .tdc-form-row > label{
  display:block;
  /* The preview container already has gap:var(--tdc-form-label-gap).
     Adding margin-bottom doubles the user-entered spacing. */
  margin-bottom:0;
}

body.tdc-form-divi :where(.et_pb_contact_form,.et_pb_login_form,.et_pb_newsletter_form) :where(input:not([type]),input:is([type="text"],[type="email"],[type="tel"],[type="url"],[type="number"],[type="password"],[type="search"]),select:not(.select2-hidden-accessible),textarea):where(:not(:disabled)):hover:not(:where(.tdc-style-exclude,.tdc-style-exclude *)),
body.tdc-form-woo :where(.woocommerce form,.wc-block-components-form,.wc-block-checkout) :where(input:not([type]),input:is([type="text"],[type="email"],[type="tel"],[type="url"],[type="number"],[type="password"],[type="search"]),select:not(.select2-hidden-accessible),textarea):where(:not(:disabled)):hover:not(:where(.tdc-style-exclude,.tdc-style-exclude *,.tdwc-checkout-shell,.tdwc-checkout-shell *,.tdwc-account,.tdwc-account *)),
body.tdc-form-cf7 .wpcf7 form :where(input:not([type]),input:is([type="text"],[type="email"],[type="tel"],[type="url"],[type="number"],[type="password"],[type="search"]),select:not(.select2-hidden-accessible),textarea):where(:not(:disabled)):hover:not(:where(.tdc-style-exclude,.tdc-style-exclude *)),
body.tdc-form-html form.tdc-global-form :where(input:not([type]),input:is([type="text"],[type="email"],[type="tel"],[type="url"],[type="number"],[type="password"],[type="search"]),select:not(.select2-hidden-accessible),textarea):where(:not(:disabled)):hover:not(:where(.tdc-style-exclude,.tdc-style-exclude *)),
body.tdc-preview.tdc-preview-form-enabled :where(.tdc-preview-field,.tdc-preview-select,.tdc-preview-textarea):hover,
body.tdc-preview.tdc-preview-form-enabled[data-demo-state="hover"] #tdc-scene-name{
  border-color:var(--tdc-form-hover,#829bb1);
}
body.tdc-form-divi :where(.et_pb_contact_form,.et_pb_login_form,.et_pb_newsletter_form) :where(input:not([type]),input:is([type="text"],[type="email"],[type="tel"],[type="url"],[type="number"],[type="password"],[type="search"]),select:not(.select2-hidden-accessible),textarea):focus:not(:where(.tdc-style-exclude,.tdc-style-exclude *)),
body.tdc-form-woo :where(.woocommerce form,.wc-block-components-form,.wc-block-checkout) :where(input:not([type]),input:is([type="text"],[type="email"],[type="tel"],[type="url"],[type="number"],[type="password"],[type="search"]),select:not(.select2-hidden-accessible),textarea):focus:not(:where(.tdc-style-exclude,.tdc-style-exclude *,.tdwc-checkout-shell,.tdwc-checkout-shell *,.tdwc-account,.tdwc-account *)),
body.tdc-form-cf7 .wpcf7 form :where(input:not([type]),input:is([type="text"],[type="email"],[type="tel"],[type="url"],[type="number"],[type="password"],[type="search"]),select:not(.select2-hidden-accessible),textarea):focus:not(:where(.tdc-style-exclude,.tdc-style-exclude *)),
body.tdc-form-html form.tdc-global-form :where(input:not([type]),input:is([type="text"],[type="email"],[type="tel"],[type="url"],[type="number"],[type="password"],[type="search"]),select:not(.select2-hidden-accessible),textarea):focus:not(:where(.tdc-style-exclude,.tdc-style-exclude *)),
body.tdc-preview.tdc-preview-form-enabled :where(.tdc-preview-field,.tdc-preview-select,.tdc-preview-textarea):focus,
body.tdc-preview.tdc-preview-form-enabled[data-demo-state="focus"] #tdc-scene-name{
  border-color:var(--tdc-form-focus,var(--tdc-brand-primary,#2ea3f2));
}
body.tdc-form-divi :where(.et_pb_contact_form,.et_pb_login_form,.et_pb_newsletter_form) :where(input:not([type]),input:is([type="text"],[type="email"],[type="tel"],[type="url"],[type="number"],[type="password"],[type="search"]),select:not(.select2-hidden-accessible),textarea):focus-visible:not(:where(.tdc-style-exclude,.tdc-style-exclude *)),
body.tdc-form-woo :where(.woocommerce form,.wc-block-components-form,.wc-block-checkout) :where(input:not([type]),input:is([type="text"],[type="email"],[type="tel"],[type="url"],[type="number"],[type="password"],[type="search"]),select:not(.select2-hidden-accessible),textarea):focus-visible:not(:where(.tdc-style-exclude,.tdc-style-exclude *,.tdwc-checkout-shell,.tdwc-checkout-shell *,.tdwc-account,.tdwc-account *)),
body.tdc-form-cf7 .wpcf7 form :where(input:not([type]),input:is([type="text"],[type="email"],[type="tel"],[type="url"],[type="number"],[type="password"],[type="search"]),select:not(.select2-hidden-accessible),textarea):focus-visible:not(:where(.tdc-style-exclude,.tdc-style-exclude *)),
body.tdc-form-html form.tdc-global-form :where(input:not([type]),input:is([type="text"],[type="email"],[type="tel"],[type="url"],[type="number"],[type="password"],[type="search"]),select:not(.select2-hidden-accessible),textarea):focus-visible:not(:where(.tdc-style-exclude,.tdc-style-exclude *)),
body.tdc-preview.tdc-preview-form-enabled :where(.tdc-preview-field,.tdc-preview-select,.tdc-preview-textarea):focus-visible,
body.tdc-preview.tdc-preview-form-enabled[data-demo-state="focus"] #tdc-scene-name{
  outline:var(--tdc-form-focus-ring-width,2px) solid var(--tdc-form-focus,var(--tdc-brand-primary,#2ea3f2));
  outline-offset:var(--tdc-form-focus-ring-offset,2px);
  box-shadow:0 0 0 3px color-mix(in srgb,var(--tdc-form-focus,var(--tdc-brand-primary,#2ea3f2)) 18%,transparent);
}
body.tdc-form-divi :where(.et_pb_contact_form,.et_pb_login_form,.et_pb_newsletter_form) :where(input,textarea):not(:where(.tdc-style-exclude,.tdc-style-exclude *))::placeholder,
body.tdc-form-woo :where(.woocommerce form,.wc-block-components-form,.wc-block-checkout) :where(input,textarea):not(:where(.tdc-style-exclude,.tdc-style-exclude *,.tdwc-checkout-shell,.tdwc-checkout-shell *,.tdwc-account,.tdwc-account *))::placeholder,
body.tdc-form-cf7 .wpcf7 form :where(input,textarea):not(:where(.tdc-style-exclude,.tdc-style-exclude *))::placeholder,
body.tdc-form-html form.tdc-global-form :where(input,textarea):not(:where(.tdc-style-exclude,.tdc-style-exclude *))::placeholder,
body.tdc-preview.tdc-preview-form-enabled :where(.tdc-preview-field,.tdc-preview-textarea)::placeholder{
  color:var(--tdc-form-placeholder,#64748b);opacity:1;
}
body.tdc-form-divi :where(.et_pb_contact_form,.et_pb_login_form,.et_pb_newsletter_form) :where(input,select,textarea):disabled:not(:where(.tdc-style-exclude,.tdc-style-exclude *)),
body.tdc-form-woo :where(.woocommerce form,.wc-block-components-form,.wc-block-checkout) :where(input,select,textarea):disabled:not(:where(.tdc-style-exclude,.tdc-style-exclude *,.tdwc-checkout-shell,.tdwc-checkout-shell *,.tdwc-account,.tdwc-account *)),
body.tdc-form-cf7 .wpcf7 form :where(input,select,textarea):disabled:not(:where(.tdc-style-exclude,.tdc-style-exclude *)),
body.tdc-form-html form.tdc-global-form :where(input,select,textarea):disabled:not(:where(.tdc-style-exclude,.tdc-style-exclude *)),
body.tdc-preview.tdc-preview-form-enabled :where(.tdc-preview-field,.tdc-preview-select,.tdc-preview-textarea):disabled{
  opacity:var(--tdc-form-disabled-opacity,.65);cursor:not-allowed;
}
body.tdc-form-divi :where(.et_pb_contact_form,.et_pb_login_form,.et_pb_newsletter_form) :where(input,select,textarea)[aria-invalid="true"]:not(:where(.tdc-style-exclude,.tdc-style-exclude *)),
body.tdc-form-divi :where(.et_pb_contact_form,.et_pb_login_form,.et_pb_newsletter_form) :where(input,select,textarea).et_contact_error:not(:where(.tdc-style-exclude,.tdc-style-exclude *)),
body.tdc-form-woo :where(.woocommerce form,.wc-block-components-form,.wc-block-checkout) :where(input,select,textarea)[aria-invalid="true"]:not(:where(.tdc-style-exclude,.tdc-style-exclude *,.tdwc-checkout-shell,.tdwc-checkout-shell *,.tdwc-account,.tdwc-account *)),
body.tdc-form-woo .woocommerce .woocommerce-invalid :where(input,select:not(.select2-hidden-accessible),textarea):not(:where(.tdc-style-exclude,.tdc-style-exclude *,.tdwc-checkout-shell,.tdwc-checkout-shell *,.tdwc-account,.tdwc-account *)),
body.tdc-form-cf7 .wpcf7 form .wpcf7-not-valid:not(:where(.tdc-style-exclude,.tdc-style-exclude *)),
body.tdc-form-html form.tdc-global-form :where(input,select,textarea)[aria-invalid="true"]:not(:where(.tdc-style-exclude,.tdc-style-exclude *)),
body.tdc-preview.tdc-preview-form-enabled :where(.tdc-preview-field,.tdc-preview-select,.tdc-preview-textarea)[aria-invalid="true"]{
  border-color:var(--tdc-form-error,#c03939);
}
/* Real validation messages; never modify aria-live, role or form validation behavior. */
body.tdc-form-cf7 .wpcf7-not-valid-tip:not(:where(.tdc-style-exclude,.tdc-style-exclude *)),
body.tdc-form-woo .woocommerce :where(.woocommerce-error .error,.woocommerce-invalid .woocommerce-error):not(:where(.tdc-style-exclude,.tdc-style-exclude *,.tdwc-checkout-shell,.tdwc-checkout-shell *,.tdwc-account,.tdwc-account *)),
body.tdc-form-divi .et_pb_contact_form .et_pb_contact_error:not(:where(.tdc-style-exclude,.tdc-style-exclude *)),
body.tdc-preview.tdc-preview-form-enabled .tdc-preview-error-help{
  color:var(--tdc-form-error-help-color,#a92c2c);
}
body.tdc-preview .tdc-preview-error-help[hidden]{display:none}

/* Field and label rhythm: limit geometry changes to semantic form rows.
 * Avoid applying grid/flex to Divi or Woo structures, which own their layout. */
body.tdc-form-divi .et_pb_contact_form .et_pb_contact_field:not(:where(.tdc-style-exclude,.tdc-style-exclude *)),
body.tdc-form-woo .woocommerce form .form-row:not(:where(.tdc-style-exclude,.tdc-style-exclude *,.tdwc-checkout-shell,.tdwc-checkout-shell *,.tdwc-account,.tdwc-account *)),
body.tdc-form-cf7 .wpcf7 form > p:not(:where(.tdc-style-exclude,.tdc-style-exclude *)),
body.tdc-form-html form.tdc-global-form > .tdc-form-row:not(:where(.tdc-style-exclude,.tdc-style-exclude *)){
  margin-bottom:var(--tdc-form-gap,14px);
}
body.tdc-form-woo .woocommerce form .form-row > label:not(:where(.tdc-style-exclude,.tdc-style-exclude *,.tdwc-checkout-shell,.tdwc-checkout-shell *,.tdwc-account,.tdwc-account *)),
body.tdc-form-woo .wc-block-components-form .wc-block-components-text-input > label:not(:where(.tdc-style-exclude,.tdc-style-exclude *,.tdwc-checkout-shell,.tdwc-checkout-shell *,.tdwc-account,.tdwc-account *)),
body.tdc-form-html form.tdc-global-form .tdc-form-row > label:not(:where(.tdc-style-exclude,.tdc-style-exclude *)){
  margin-bottom:var(--tdc-form-label-gap,6px);
}
/* CF7 often nests inputs inside labels instead of separating rows. */
body.tdc-form-cf7 .wpcf7 form label > :where(input[type="text"],input[type="email"],select,textarea):not(:where(.tdc-style-exclude,.tdc-style-exclude *)){
  margin-top:var(--tdc-form-label-gap,6px);
}

/* Checkbox/radio retain native appearance; accent only, never `appearance:none`. */
body.tdc-form-divi :where(.et_pb_contact_form,.et_pb_login_form) :where(input[type="checkbox"],input[type="radio"]):not(:where(.tdc-style-exclude,.tdc-style-exclude *)),
body.tdc-form-woo :where(.woocommerce form,.wc-block-components-form,.wc-block-checkout) :where(input[type="checkbox"],input[type="radio"]):not(:where(.tdc-style-exclude,.tdc-style-exclude *,.tdwc-checkout-shell,.tdwc-checkout-shell *,.tdwc-account,.tdwc-account *)),
body.tdc-form-cf7 .wpcf7 form :where(input[type="checkbox"],input[type="radio"]):not(:where(.tdc-style-exclude,.tdc-style-exclude *)),
body.tdc-form-html form.tdc-global-form :where(input[type="checkbox"],input[type="radio"]):not(:where(.tdc-style-exclude,.tdc-style-exclude *)),
body.tdc-preview.tdc-preview-form-enabled :where(input[type="checkbox"],input[type="radio"]){
  accent-color:var(--tdc-form-checkbox,var(--tdc-brand-primary,#2ea3f2));
}

/* Notices: classic WooCommerce and WC Blocks share the same semantic tokens.
 * Scoped by body adapter, never by global .woocommerce-message etc. */
body.tdc-notice-woo :where(.woocommerce-message,.woocommerce-error,.woocommerce-info,.wc-block-components-notice-banner):not(:where(.tdc-style-exclude,.tdc-style-exclude *,.tdwc-notice,.tdwc-notice *)),
body.tdc-notice-cf7 .wpcf7 form .wpcf7-response-output:not(:where(.tdc-style-exclude,.tdc-style-exclude *)),
body.tdc-notice-divi .et-pb-contact-message:not(:where(.tdc-style-exclude,.tdc-style-exclude *)){
  box-sizing:border-box;
  border-style:solid;border-width:var(--tdc-notice-border-width,1px);
  border-radius:var(--tdc-notice-radius,10px);
  padding:var(--tdc-notice-padding,16px);
  margin-bottom:var(--tdc-notice-gap,16px);
  font-size:var(--tdc-notice-font-size,15px);
  line-height:var(--tdc-notice-line-height,1.5);
  box-shadow:none;
}
/* Keep Classic notices and Blocks on the same configurable typography scale.
 * Woo/Divi may assign independent sizes to banner content or Classic list items.
 * Apply the saved notice typography token both to the host and to text-bearing
 * descendants, without touching action buttons, icons or custom TrustDeal notices.
 * This also applies inside TrustDeal Checkout / My Account, where native notices
 * are supported by the global Woo adapter. */
body.tdc-notice-woo :is(.woocommerce-message,.woocommerce-info,.woocommerce-error,.wc-block-components-notice-banner):not(:where(.tdc-style-exclude,.tdc-style-exclude *,.tdwc-notice,.tdwc-notice *)){
  font-size:var(--tdc-notice-font-size,15px)!important;
  line-height:var(--tdc-notice-line-height,1.5)!important;
  /* Inherit the website typography, not Woo's separate Classic/Blocks defaults. */
  font-family:inherit!important;
  font-weight:400!important;
  letter-spacing:normal!important;
}
/* A Blocks banner is a row. Center its native/replacement icon with the text
 * and use exactly the same gap as the Classic left gutter. This is deliberately
 * scoped to the active Woo notice adapter, never generic list/error markup. */
body.tdc-notice-woo .wc-block-components-notice-banner:not(:where(.tdc-style-exclude,.tdc-style-exclude *,.tdwc-notice,.tdwc-notice *)){
  display:flex;
  align-items:center;
  column-gap:var(--tdc-notice-icon-gap,10px);
  min-width:0;
}
body.tdc-notice-woo :is(.woocommerce-message,.woocommerce-info,.woocommerce-error):not(:where(.tdc-style-exclude,.tdc-style-exclude *,.tdwc-notice,.tdwc-notice *)) :is(li,p),
body.tdc-notice-woo .wc-block-components-notice-banner:not(:where(.tdc-style-exclude,.tdc-style-exclude *,.tdwc-notice,.tdwc-notice *)) :is(.wc-block-components-notice-banner__content,.wc-block-components-notice-banner__content p,.wc-block-components-notice-banner__content li){
  font-size:inherit!important;
  line-height:inherit!important;
  font-family:inherit!important;
  font-weight:inherit!important;
  letter-spacing:inherit!important;
}
/* The Woo Classic error is a semantic list, never a flex row. Do not modify
 * button/link/strong weights or the native li layout. */
body.tdc-notice-woo .woocommerce-error:not(:where(.tdc-style-exclude,.tdc-style-exclude *,.tdwc-notice,.tdwc-notice *)) > li{
  min-width:0;
}

/* Baseline neutral, then precise status mapping (order intentional). */
body.tdc-notice-woo .wc-block-components-notice-banner:not(:where(.tdc-style-exclude,.tdc-style-exclude *,.tdwc-notice,.tdwc-notice *)),
body.tdc-notice-cf7 .wpcf7 form .wpcf7-response-output:not(:where(.tdc-style-exclude,.tdc-style-exclude *)),
body.tdc-notice-divi .et-pb-contact-message:not(:where(.tdc-style-exclude,.tdc-style-exclude *)){
  background:var(--tdc-notice-neutral-bg,#f4f6f8);
  color:var(--tdc-notice-neutral-text,#334155);
  border-color:var(--tdc-notice-neutral-border,#dbe2e9);
}
body.tdc-notice-woo :is(.woocommerce-message,.wc-block-components-notice-banner.is-success):not(:where(.tdc-style-exclude,.tdc-style-exclude *,.tdwc-notice,.tdwc-notice *)),
body.tdc-notice-cf7 .wpcf7 form.sent .wpcf7-response-output:not(:where(.tdc-style-exclude,.tdc-style-exclude *)){
  background:var(--tdc-notice-success-bg,#effaf4);
  color:var(--tdc-notice-success-text,#135c39);
  border-color:var(--tdc-notice-success-border,#b7e6cb);
}
body.tdc-notice-woo :is(.woocommerce-error,.wc-block-components-notice-banner.is-error):not(:where(.tdc-style-exclude,.tdc-style-exclude *,.tdwc-notice,.tdwc-notice *)),
body.tdc-notice-cf7 .wpcf7 form.failed .wpcf7-response-output:not(:where(.tdc-style-exclude,.tdc-style-exclude *)),
body.tdc-notice-cf7 .wpcf7 form.aborted .wpcf7-response-output:not(:where(.tdc-style-exclude,.tdc-style-exclude *)),
body.tdc-notice-divi .et_pb_contact_form_container.et_pb_contact_error .et-pb-contact-message:not(:where(.tdc-style-exclude,.tdc-style-exclude *)){
  background:var(--tdc-notice-error-bg,#fef1f1);
  color:var(--tdc-notice-error-text,#922525);
  border-color:var(--tdc-notice-error-border,#f6c8c8);
}
body.tdc-notice-woo .wc-block-components-notice-banner.is-warning:not(:where(.tdc-style-exclude,.tdc-style-exclude *,.tdwc-notice,.tdwc-notice *)),
body.tdc-notice-cf7 .wpcf7 :is(form.invalid,form.unaccepted,form.spam) .wpcf7-response-output:not(:where(.tdc-style-exclude,.tdc-style-exclude *)){
  background:var(--tdc-notice-warning-bg,#fff8e9);
  color:var(--tdc-notice-warning-text,#835509);
  border-color:var(--tdc-notice-warning-border,#eed8a2);
}
body.tdc-notice-woo :is(.woocommerce-info,.wc-block-components-notice-banner.is-info):not(:where(.tdc-style-exclude,.tdc-style-exclude *,.tdwc-notice,.tdwc-notice *)){
  background:var(--tdc-notice-info-bg,#edf5ff);
  color:var(--tdc-notice-info-text,#234e87);
  border-color:var(--tdc-notice-info-border,#bfd7f5);
}
body.tdc-notice-woo :where(.woocommerce-message,.woocommerce-error,.woocommerce-info,.wc-block-components-notice-banner) a:not(:where(.tdc-style-exclude,.tdc-style-exclude *,.tdwc-notice,.tdwc-notice *)),
body.tdc-notice-cf7 .wpcf7-response-output a:not(:where(.tdc-style-exclude,.tdc-style-exclude *)),
body.tdc-notice-divi .et-pb-contact-message a:not(:where(.tdc-style-exclude,.tdc-style-exclude *)){color:inherit;text-decoration:underline;text-underline-offset:.14em}

/* WooCommerce/Divi often apply higher-specificity background resets. For the
 * explicitly enabled adapter these semantic tokens are authoritative. */
body.tdc-notice-woo :is(.woocommerce-message.woocommerce-message,.woocommerce-info.woocommerce-info,.woocommerce-error.woocommerce-error,.wc-block-components-notice-banner):not(:where(.tdc-style-exclude,.tdc-style-exclude *,.tdwc-notice,.tdwc-notice *)){
  background-image:none!important;
}
body.tdc-notice-woo :is(.woocommerce-message.woocommerce-message,.wc-block-components-notice-banner.is-success):not(:where(.tdc-style-exclude,.tdc-style-exclude *,.tdwc-notice,.tdwc-notice *)){
  background-color:var(--tdc-notice-success-bg,#effaf4)!important;
  color:var(--tdc-notice-success-text,#135c39)!important;
  border-color:var(--tdc-notice-success-border,#b7e6cb)!important;
}
body.tdc-notice-woo :is(.woocommerce-info.woocommerce-info,.wc-block-components-notice-banner.is-info):not(:where(.tdc-style-exclude,.tdc-style-exclude *,.tdwc-notice,.tdwc-notice *)){
  background-color:var(--tdc-notice-info-bg,#edf5ff)!important;
  color:var(--tdc-notice-info-text,#234e87)!important;
  border-color:var(--tdc-notice-info-border,#bfd7f5)!important;
}
body.tdc-notice-woo :is(.woocommerce-error.woocommerce-error,.wc-block-components-notice-banner.is-error):not(:where(.tdc-style-exclude,.tdc-style-exclude *,.tdwc-notice,.tdwc-notice *)){
  background-color:var(--tdc-notice-error-bg,#fef1f1)!important;
  color:var(--tdc-notice-error-text,#922525)!important;
  border-color:var(--tdc-notice-error-border,#f6c8c8)!important;
}
body.tdc-notice-woo .wc-block-components-notice-banner.is-warning:not(:where(.tdc-style-exclude,.tdc-style-exclude *,.tdwc-notice,.tdwc-notice *)){
  background-color:var(--tdc-notice-warning-bg,#fff8e9)!important;
  color:var(--tdc-notice-warning-text,#835509)!important;
  border-color:var(--tdc-notice-warning-border,#eed8a2)!important;
}
/* Content links only; native Divi link color remains source of truth. */
.entry-content p a:not(.et_pb_button):hover,
.entry-content li a:not(.et_pb_button):hover{color:var(--tdc-link-hover,var(--tdc-brand-primary,#2ea3f2))}
body.tdc-links-underlined .entry-content :where(p,li) a:not(.et_pb_button){text-decoration:underline;text-underline-offset:.12em}

/* Preview state simulations share the same design tokens as the real adapter.
 * They are present only in the isolated iframe, never on the frontend. */
body.tdc-preview.tdc-preview-form-enabled[data-demo-state="error"] #tdc-scene-name{border-color:var(--tdc-form-error,#c03939)}
body.tdc-preview.tdc-preview-form-enabled[data-demo-state="disabled"] #tdc-scene-name{opacity:var(--tdc-form-disabled-opacity,.65)}
@media(prefers-reduced-motion:reduce) {
  body.tdc-form-divi :where(input,textarea,select):not(:where(.tdc-style-exclude,.tdc-style-exclude *)),
body.tdc-form-woo :where(input,textarea,select):not(:where(.tdc-style-exclude,.tdc-style-exclude *)),
body.tdc-form-cf7 :where(input,textarea,select):not(:where(.tdc-style-exclude,.tdc-style-exclude *)),
body.tdc-preview :where(input,textarea,select){transition:none}
}

/* V3 Stage B — explicit opt-in choice controls. Browsers still own click, keyboard,
 * disabled state and native form submission. Never replace a third-party shell. */
:where(body.tdc-form-choice-branded.tdc-form-divi) :where(.et_pb_contact_form,.et_pb_login_form) :where(input[type="checkbox"],input[type="radio"]):not(:where(.tdc-style-exclude,.tdc-style-exclude *)),
:where(body.tdc-form-choice-branded.tdc-form-woo) .woocommerce form :where(input[type="checkbox"],input[type="radio"]):not(:where(.tdc-style-exclude,.tdc-style-exclude *,.tdwc-checkout-shell,.tdwc-checkout-shell *,.tdwc-account,.tdwc-account *)),
:where(body.tdc-form-choice-branded.tdc-form-cf7) .wpcf7 form :where(input[type="checkbox"],input[type="radio"]):not(:where(.tdc-style-exclude,.tdc-style-exclude *)),
:where(body.tdc-form-choice-branded.tdc-form-html) form.tdc-global-form :where(input[type="checkbox"],input[type="radio"]):not(:where(.tdc-style-exclude,.tdc-style-exclude *)),
body.tdc-preview.tdc-preview-form-enabled.tdc-form-choice-branded .tdc-preview-checks input:is([type="checkbox"],[type="radio"]){
  appearance:none;-webkit-appearance:none;
  display:inline-grid;place-items:center;vertical-align:-.17em;flex:none;
  box-sizing:border-box;width:var(--tdc-form-choice-size,18px);height:var(--tdc-form-choice-size,18px);
  margin:0 6px 0 0;padding:0;cursor:pointer;
  border:var(--tdc-form-choice-border-width,2px) solid var(--tdc-form-border,#cbd5e1);
  border-radius:var(--tdc-form-checkbox-radius,4px);
  background:var(--tdc-form-background,#ffffff);
  color:var(--tdc-form-background,#ffffff);
  transition:background-color .15s,border-color .15s;
}
:where(body.tdc-form-choice-branded.tdc-form-divi) :where(.et_pb_contact_form,.et_pb_login_form) input[type="radio"]:not(.tdc-style-exclude),
:where(body.tdc-form-choice-branded.tdc-form-woo) .woocommerce form input[type="radio"]:not(.tdc-style-exclude),
:where(body.tdc-form-choice-branded.tdc-form-cf7) .wpcf7 form input[type="radio"]:not(.tdc-style-exclude),
:where(body.tdc-form-choice-branded.tdc-form-html) form.tdc-global-form input[type="radio"]:not(.tdc-style-exclude),
body.tdc-preview.tdc-preview-form-enabled.tdc-form-choice-branded .tdc-preview-checks input[type="radio"]{border-radius:50%}
:where(body.tdc-form-choice-branded.tdc-form-divi) :where(.et_pb_contact_form,.et_pb_login_form) :where(input[type="checkbox"],input[type="radio"]):checked:not(.tdc-style-exclude),
:where(body.tdc-form-choice-branded.tdc-form-woo) .woocommerce form :where(input[type="checkbox"],input[type="radio"]):checked:not(:where(.tdc-style-exclude,.tdc-style-exclude *,.tdwc-checkout-shell,.tdwc-checkout-shell *,.tdwc-account,.tdwc-account *)),
:where(body.tdc-form-choice-branded.tdc-form-cf7) .wpcf7 form :where(input[type="checkbox"],input[type="radio"]):checked:not(.tdc-style-exclude),
:where(body.tdc-form-choice-branded.tdc-form-html) form.tdc-global-form :where(input[type="checkbox"],input[type="radio"]):checked:not(.tdc-style-exclude),
body.tdc-preview.tdc-preview-form-enabled.tdc-form-choice-branded .tdc-preview-checks input:checked{
  background-color:var(--tdc-form-checkbox,var(--tdc-brand-primary,#2ea3f2));border-color:var(--tdc-form-checkbox,var(--tdc-brand-primary,#2ea3f2))
}
:is(body.tdc-form-choice-branded.tdc-form-divi :where(.et_pb_contact_form,.et_pb_login_form),body.tdc-form-choice-branded.tdc-form-woo .woocommerce form,body.tdc-form-choice-branded.tdc-form-cf7 .wpcf7 form,body.tdc-form-choice-branded.tdc-form-html form.tdc-global-form) input[type="checkbox"]:checked:not(:where(.tdc-style-exclude,.tdc-style-exclude *,.tdwc-checkout-shell,.tdwc-checkout-shell *,.tdwc-account,.tdwc-account *))::after,
body.tdc-preview.tdc-preview-form-enabled.tdc-form-choice-branded .tdc-preview-checks input[type="checkbox"]:checked::after{
  content:"";display:block;width:30%;height:55%;margin-top:-2px;border:solid currentColor;border-width:0 2px 2px 0;transform:rotate(45deg)
}
:is(body.tdc-form-choice-branded.tdc-form-divi :where(.et_pb_contact_form,.et_pb_login_form),body.tdc-form-choice-branded.tdc-form-woo .woocommerce form,body.tdc-form-choice-branded.tdc-form-cf7 .wpcf7 form,body.tdc-form-choice-branded.tdc-form-html form.tdc-global-form) input[type="radio"]:checked:not(:where(.tdc-style-exclude,.tdc-style-exclude *,.tdwc-checkout-shell,.tdwc-checkout-shell *,.tdwc-account,.tdwc-account *))::after,
body.tdc-preview.tdc-preview-form-enabled.tdc-form-choice-branded .tdc-preview-checks input[type="radio"]:checked::after{
  content:"";display:block;width:45%;height:45%;border-radius:50%;background:currentColor
}
:is(body.tdc-form-choice-branded.tdc-form-divi :where(.et_pb_contact_form,.et_pb_login_form),body.tdc-form-choice-branded.tdc-form-woo .woocommerce form,body.tdc-form-choice-branded.tdc-form-cf7 .wpcf7 form,body.tdc-form-choice-branded.tdc-form-html form.tdc-global-form) :where(input[type="checkbox"],input[type="radio"]):focus-visible:not(:where(.tdc-style-exclude,.tdc-style-exclude *,.tdwc-checkout-shell,.tdwc-checkout-shell *,.tdwc-account,.tdwc-account *)),
body.tdc-preview.tdc-preview-form-enabled.tdc-form-choice-branded .tdc-preview-checks input:focus-visible{
  outline:var(--tdc-form-choice-focus-width,2px) solid var(--tdc-form-focus,var(--tdc-brand-primary,#2ea3f2));
  outline-offset:var(--tdc-form-focus-ring-offset,2px)
}
:is(body.tdc-form-choice-branded.tdc-form-divi :where(.et_pb_contact_form,.et_pb_login_form),body.tdc-form-choice-branded.tdc-form-woo .woocommerce form,body.tdc-form-choice-branded.tdc-form-cf7 .wpcf7 form,body.tdc-form-choice-branded.tdc-form-html form.tdc-global-form) :where(input[type="checkbox"],input[type="radio"]):disabled:not(:where(.tdc-style-exclude,.tdc-style-exclude *,.tdwc-checkout-shell,.tdwc-checkout-shell *,.tdwc-account,.tdwc-account *)),
body.tdc-preview.tdc-preview-form-enabled.tdc-form-choice-branded .tdc-preview-checks input:disabled{
  opacity:var(--tdc-form-disabled-opacity,.65);cursor:not-allowed
}
/* Only explicitly annotated radio-card wrappers; no automatic conversion of all radios. */
 :is(body.tdc-form-choice-branded.tdc-form-html form.tdc-global-form,
     body.tdc-form-choice-branded.tdc-form-cf7 .wpcf7 form,
     body.tdc-form-choice-branded.tdc-form-divi .et_pb_contact_form,
     body.tdc-form-choice-branded.tdc-form-woo .woocommerce form) label.tdc-radio-card:not(:where(.tdc-style-exclude,.tdc-style-exclude *,.tdwc-checkout-shell,.tdwc-checkout-shell *,.tdwc-account,.tdwc-account *)),
body.tdc-preview.tdc-preview-form-enabled.tdc-form-choice-branded label.tdc-radio-card{
  display:flex;align-items:center;gap:10px;padding:12px 14px;
  border:1px solid var(--tdc-form-border,#cbd5e1);border-radius:var(--tdc-form-radius,8px);
  background:var(--tdc-form-background,#fff);cursor:pointer
}
body.tdc-form-choice-branded label.tdc-radio-card:has(input:checked):not(:where(.tdc-style-exclude,.tdc-style-exclude *,.tdwc-checkout-shell,.tdwc-checkout-shell *,.tdwc-account,.tdwc-account *)),
body.tdc-preview.tdc-preview-form-enabled.tdc-form-choice-branded label.tdc-radio-card:has(input:checked){
  border-color:var(--tdc-form-checkbox,var(--tdc-brand-primary,#2ea3f2));
  background:color-mix(in srgb,var(--tdc-form-checkbox,var(--tdc-brand-primary,#2ea3f2)) 7%,#fff)
}
body.tdc-form-choice-branded label.tdc-radio-card:focus-within:not(:where(.tdc-style-exclude,.tdc-style-exclude *,.tdwc-checkout-shell,.tdwc-checkout-shell *,.tdwc-account,.tdwc-account *)),
body.tdc-preview.tdc-preview-form-enabled.tdc-form-choice-branded label.tdc-radio-card:focus-within{
  outline:var(--tdc-form-choice-focus-width,2px) solid var(--tdc-form-focus,var(--tdc-brand-primary,#2ea3f2));outline-offset:2px
}
/* Stage B: additional hover/focus/padding on explicitly annotated buttons.
 * Native Divi all_buttons_* remains the only source of its actual defaults. */
body.tdc-button-extras :where(button.tdc-global-button,a.tdc-global-button,input.tdc-global-button):not(:where(.tdc-style-exclude,.tdc-style-exclude *,.tdwc-checkout-shell,.tdwc-checkout-shell *,.tdwc-account,.tdwc-account *)),
body.tdc-preview.tdc-preview-button-extras .tdc-preview-button.tdc-global-button{
  padding:var(--tdc-button-padding-y,11px) var(--tdc-button-padding-x,20px)
}
body.tdc-button-extras :where(button.tdc-global-button,a.tdc-global-button,input.tdc-global-button):not(:disabled):hover:not(:where(.tdc-style-exclude,.tdc-style-exclude *,.tdwc-checkout-shell,.tdwc-checkout-shell *,.tdwc-account,.tdwc-account *)),
body.tdc-preview.tdc-preview-button-extras .tdc-preview-button.tdc-global-button:hover,
body.tdc-preview.tdc-preview-button-extras[data-demo-state="hover"] .tdc-preview-button.tdc-global-button{
  background-color:var(--tdc-button-hover-background,#0b2b5f);color:var(--tdc-button-hover-text,#fff)
}
body.tdc-button-extras :where(button.tdc-global-button,a.tdc-global-button,input.tdc-global-button):focus-visible:not(:where(.tdc-style-exclude,.tdc-style-exclude *,.tdwc-checkout-shell,.tdwc-checkout-shell *,.tdwc-account,.tdwc-account *)),
body.tdc-preview.tdc-preview-button-extras .tdc-preview-button.tdc-global-button:focus-visible,
body.tdc-preview.tdc-preview-button-extras[data-demo-state="focus"] .tdc-preview-button.tdc-global-button{
  outline:2px solid var(--tdc-button-focus-color,#0b2b5f);outline-offset:3px
}
body.tdc-button-extras :where(button.tdc-global-button,input.tdc-global-button):disabled:not(:where(.tdc-style-exclude,.tdc-style-exclude *,.tdwc-checkout-shell,.tdwc-checkout-shell *,.tdwc-account,.tdwc-account *)),
body.tdc-preview.tdc-preview-button-extras .tdc-preview-button.tdc-global-button:disabled,
body.tdc-preview.tdc-preview-button-extras[data-demo-state="disabled"] .tdc-preview-button.tdc-global-button{
  opacity:var(--tdc-button-disabled-opacity,.6);cursor:not-allowed
}
@media(prefers-reduced-motion:reduce){
 body.tdc-form-choice-branded input:is([type="checkbox"],[type="radio"]){transition:none}
}

/* Structured TrustDeal notice content is optional. Native notices without
   explicit title/description remain untouched: no synthetic HTML is injected. */
body[class*="tdc-notice-"] .tdc-notice-title{font-weight:var(--tdc-notice-title-weight,600);line-height:var(--tdc-notice-line-height,1.5);margin-bottom:var(--tdc-notice-title-gap,3px)}
body[class*="tdc-notice-"] .tdc-notice-description{display:block;line-height:var(--tdc-notice-line-height,1.5)}
