/* Form 4 only. The approved two-slide layout is owned by Consultation Layout. */
html body #fluentform_4 :is(input.ff-el-form-control,textarea.ff-el-form-control,select.ff-el-form-control) {
  background:#e8e0d6!important;color:#251b2c!important;caret-color:#251b2c;border-color:#c9bdac!important;
}
html body #fluentform_4 :is(input.ff-el-form-control,textarea.ff-el-form-control,select.ff-el-form-control):focus {
  background:#e8e0d6!important;border-color:#c99a32!important;outline:1px solid #c99a32!important;outline-offset:2px;
}
html body #fluentform_4 .ff-el-form-control::placeholder {color:#746b75!important;opacity:1;}
html body #fluentform_4 :is(input[type=checkbox],input[type=radio]) {accent-color:#c99a32;}
@media (forced-colors:none) {
  html body #fluentform_4 input:-webkit-autofill,
  html body #fluentform_4 input:-webkit-autofill:hover,
  html body #fluentform_4 input:-webkit-autofill:focus {
    -webkit-box-shadow:0 0 0 1000px #e8e0d6 inset!important;box-shadow:0 0 0 1000px #e8e0d6 inset!important;
    -webkit-text-fill-color:#251b2c!important;caret-color:#251b2c;
  }
  html body #fluentform_4 input:autofill {
    box-shadow:0 0 0 1000px #e8e0d6 inset!important;-webkit-text-fill-color:#251b2c!important;caret-color:#251b2c;
  }
}
#fluentform_4 .an-cp-response {color:#e8e0d6;font:400 13px/1.45 var(--wp--preset--font-family--manrope,Manrope,sans-serif);margin:8px 0 0;max-width:54em;}
#fluentform_4 .ff-btn-submit {white-space:normal;max-width:100%;}
@media(max-width:782px) {
  html.an-consultation-mobile body #fluentform_4 .an-cp-response {font-size:12px!important;line-height:1.4!important;margin:6px 0 0!important;}
  html.an-consultation-mobile body #fluentform_4 .ff-btn-submit {font-size:13px!important;padding-inline:12px!important;}
}
/* Keep the native WooPayments form intact, including its secure card frames. */
html:has(body.an-consultation-payment),body.an-consultation-payment {scroll-snap-type:none!important;}
body.an-consultation-payment .wp-block-post-title {display:none!important;}
body.an-consultation-payment .an-cp-payment-flow {
  position:relative!important;inset:auto!important;transform:none!important;height:auto!important;
  min-height:0!important;max-height:none!important;overflow:visible!important;
}
body.an-consultation-payment .wp-block-post-content {
  position:relative!important;inset:auto!important;transform:none!important;box-sizing:border-box!important;
  width:100%!important;max-width:1180px!important;margin:0 auto!important;
  padding:var(--an-cp-clearance,220px) 32px 64px!important;height:auto!important;
  min-height:0!important;max-height:none!important;overflow:visible!important;
}
body.an-consultation-payment .woocommerce {color:#e8e0d6;max-width:none;}
body.an-consultation-payment .woocommerce:has(> .an-cp-payment-heading) {
  display:grid!important;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);gap:24px 64px;align-items:start;
}
body.an-consultation-payment .woocommerce:has(> .an-cp-payment-heading)::before,
body.an-consultation-payment .woocommerce:has(> .an-cp-payment-heading)::after {display:none!important;}
body.an-consultation-payment .woocommerce:has(> .an-cp-payment-heading) > * {grid-column:1 / -1;min-width:0;}
body.an-consultation-payment .woocommerce > .an-cp-payment-heading {grid-column:1!important;grid-row:1;}
body.an-consultation-payment .woocommerce:has(> .an-cp-payment-heading) > #order_review {grid-column:2;grid-row:1;}
body.an-consultation-payment .an-cp-payment-heading {text-align:left;margin:0;}
body.an-consultation-payment .an-cp-payment-heading h1 {font-size:clamp(28px,3vw,38px);font-weight:400;line-height:1.22;color:#c99a32;margin:0 0 16px;}
body.an-consultation-payment .an-cp-payment-heading p {color:#e8e0d6;font-size:14px;line-height:1.55;margin:12px 0;max-width:550px;}
body.an-consultation-payment .an-cp-payment-heading .an-cp-session {color:#c99a32;margin-bottom:20px;}
body.an-consultation-payment .an-cp-payment-heading .an-cp-test {font-size:12px;line-height:1.4;padding:8px 0 8px 12px;border-left:1px solid #c99a32;margin-top:24px;}
body.an-consultation-payment #order_review {width:100%!important;float:none!important;position:relative!important;inset:auto!important;margin:0!important;}
body.an-consultation-payment .woocommerce table.shop_table {width:100%;font-size:14px;line-height:1.4;border:1px solid #8b712f;margin:0 0 20px;border-radius:4px;border-collapse:separate;border-spacing:0;}
body.an-consultation-payment .woocommerce table.shop_table :is(th,td) {background:transparent;color:#e8e0d6;border-color:#504032;padding:12px;font-size:14px;line-height:1.4;}
body.an-consultation-payment .woocommerce table.shop_table tfoot th {font-weight:400;}
body.an-consultation-payment .woocommerce table.shop_table tfoot td {text-align:right;white-space:nowrap;}
body.an-consultation-payment .woocommerce table.shop_table:not(:has(tbody tr)) thead {display:none;}
body.an-consultation-payment .woocommerce #payment {background:#e8e0d6;color:#251b2c;border-radius:6px;position:relative!important;inset:auto!important;height:auto!important;max-height:none!important;overflow:visible!important;}
body.an-consultation-payment .woocommerce #payment :is(label,p,a) {color:#251b2c;}
body.an-consultation-payment .woocommerce #payment ul.payment_methods {padding:16px;font-size:14px;line-height:1.4;}
body.an-consultation-payment .woocommerce #payment .payment_box {background:#fff;color:#251b2c;padding:14px;font-size:14px;line-height:1.4;margin:16px 0 0;width:100%;box-sizing:border-box;}
body.an-consultation-payment .woocommerce #payment .payment_box::before {border-bottom-color:#fff;}
body.an-consultation-payment .woocommerce #payment .form-row {padding:16px;margin:0;}
body.an-consultation-payment .woocommerce #payment .payment_box .form-row {padding:0;margin:0 0 12px;}
body.an-consultation-payment .woocommerce #payment .woocommerce-privacy-policy-text {font-size:12px;line-height:1.45;}
body.an-consultation-payment .woocommerce #payment .woocommerce-privacy-policy-text p {font-size:inherit;line-height:inherit;margin:0 0 12px;}
body.an-consultation-payment .woocommerce button.button {white-space:normal;min-height:44px;background:#2a112f;color:#c99a32;border:1px solid #c99a32;padding:12px 18px;font-size:14px;line-height:1.4;}
body.an-consultation-payment .woocommerce #payment #place_order {width:100%;float:none;margin:0;word-spacing:.3em!important;}
/* Approved full brand, used only if the template supplies no visible logo. */
body.an-consultation-payment > .an-cp-brand-fallback {position:absolute;top:var(--an-cp-brand-top,0px);left:50%;transform:translateX(-50%);width:335px;max-width:48vw;z-index:101;display:block;line-height:0;}
body.an-consultation-payment > .an-cp-brand-fallback[hidden] {display:none!important;}
body.an-consultation-payment > .an-cp-brand-fallback img {display:block;width:100%;height:auto;}
body.an-consultation-payment footer.wp-block-template-part {position:relative!important;inset:auto!important;transform:none!important;height:auto!important;min-height:0!important;max-height:none!important;scroll-snap-align:none!important;clear:both;}
@media(max-width:1000px) {
  body.an-consultation-payment .wp-block-post-content {max-width:600px!important;}
  body.an-consultation-payment .woocommerce:has(> .an-cp-payment-heading) {grid-template-columns:minmax(0,1fr);gap:24px;}
  body.an-consultation-payment .woocommerce > .an-cp-payment-heading {grid-row:auto;}
  body.an-consultation-payment .woocommerce:has(> .an-cp-payment-heading) > #order_review {grid-column:1;grid-row:auto;}
  body.an-consultation-payment .an-cp-payment-heading {text-align:center;}
  body.an-consultation-payment .an-cp-payment-heading .an-cp-test {border-left:0;padding:0;margin-top:16px;}
}
@media(max-width:782px) {
  body.an-consultation-payment .wp-block-post-content {padding-inline:18px!important;padding-bottom:48px!important;}
  body.an-consultation-payment > .an-cp-brand-fallback {width:230px;max-width:58vw;}
  body.an-consultation-payment .woocommerce #payment ul.payment_methods {padding:12px;}
  body.an-consultation-payment .woocommerce #payment .payment_box {padding:12px;}
}

/* Two mobile screens, with boundaries inserted by the native order-pay hook. */
.an-cp-step-nav,.an-cp-card-start,.an-cp-viewport {display:none;}
body.an-consultation-payment > .an-cp-brand-fallback {
  visibility:visible!important;opacity:1!important;pointer-events:auto;
}

/* Compact payment navigation follows both screens, in normal document flow. */
html body.an-consultation-payment .an-cp-payment-footer {
  display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:8px 24px;
  position:relative;box-sizing:border-box;width:100%;margin:28px auto 0;padding:16px 0 0;
  border-top:1px solid #c99a324d;scroll-snap-align:end;scroll-snap-stop:normal;
}
html body.an-consultation-payment .an-cp-payment-footer a {
  display:inline-flex;align-items:center;min-height:44px;color:#c99a32;font-size:13px;line-height:1.4;text-decoration:none;
}
html body.an-consultation-payment .an-cp-payment-footer a:focus-visible {outline:2px solid #c99a32;outline-offset:3px;}
html body.an-consultation-payment:has(.an-cp-payment-footer) footer.wp-block-template-part {display:none!important;}
@media(min-width:783px) {
  body.an-consultation-payment.an-cp-custom-brand .an-global-header :is(.wp-block-site-logo,.an-header-logo,.custom-logo-link),
  body.an-consultation-payment.an-cp-custom-brand header.wp-block-template-part :is(.wp-block-site-logo,.an-header-logo,.custom-logo-link) {visibility:hidden!important;}
}
@media(max-width:782px) {
  html.an-cp-slides {scroll-snap-type:y mandatory!important;scroll-padding-top:0!important;}
  html.an-cp-slides::before {content:'';position:absolute;top:0;left:0;width:1px;height:1px;pointer-events:none;scroll-snap-align:start;}
  html.an-cp-slides.an-cp-long {scroll-snap-type:y proximity!important;}
  html.an-cp-slides:has(#order_review :is(input,select,textarea,iframe):focus),
  html.an-cp-slides:has(.woocommerce-error),
  html.an-cp-slides:has(.wp-block-navigation__responsive-container.is-menu-open),
  html.an-cp-slides:has(dialog[open]) {scroll-snap-type:none!important;}
  html.an-cp-slides body .wp-block-post-content {
    width:100vw!important;max-width:none!important;margin:0 calc(50% - 50vw)!important;
    padding:var(--an-cp-clearance,220px) 18px 24px!important;
  }
  html.an-cp-slides body .wp-block-post-content > .woocommerce,
  html.an-cp-slides body .wp-block-post-content .woocommerce:has(> .an-cp-payment-heading) {
    width:100%!important;max-width:520px!important;margin:0 auto!important;padding:0!important;
    display:block!important;
  }
  html.an-cp-slides body .an-cp-payment-heading {margin:0 0 20px!important;}
  html.an-cp-slides body .an-cp-payment-heading h1 {font-size:clamp(25px,7vw,30px);}
  html.an-cp-slides body .an-cp-step-nav {
    display:block;box-sizing:border-box;margin:0!important;
    padding:var(--an-cp-first-gap,16px) 0 16px!important;
  }
  html.an-cp-slides body .an-cp-next {
    display:flex;align-items:center;justify-content:center;width:44px;height:44px;
    margin:0 auto!important;padding:8px;box-sizing:border-box;color:#c99a32;text-decoration:none;
  }
  html.an-cp-slides .an-cp-next svg {width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.25;}
  html.an-cp-slides body .an-cp-card-start {
    display:flex;align-items:center;justify-content:center;box-sizing:border-box;
    height:78px;margin:0!important;padding:18px 0 16px!important;
    scroll-snap-align:start!important;scroll-snap-stop:always!important;
    scroll-margin-top:var(--an-cp-toolbar,0px)!important;outline:none;
  }
  html.an-cp-slides body .an-cp-small-logo {display:flex;align-items:center;justify-content:center;width:44px;height:44px;padding:0;margin:0;}
  html.an-cp-slides body .an-cp-small-logo img {display:block;object-fit:contain;width:32px;height:40px;margin:0;}
  html.an-cp-slides body #payment {
    display:flex!important;flex-direction:column!important;
    min-height:var(--an-cp-card-room,0px)!important;box-sizing:border-box;
    width:100%!important;max-width:none!important;margin:0!important;
  }
  html.an-cp-slides body #payment > ul.payment_methods {padding:10px!important;flex:none;}
  html.an-cp-slides body #payment .payment_box {padding:8px!important;margin-top:12px!important;font-size:12px;}
  html.an-cp-slides body #payment .payment_box fieldset {min-width:0!important;width:100%!important;box-sizing:border-box;margin:0!important;padding:0!important;border:0!important;}
  html.an-cp-slides body #payment .payment_box p {font-size:12px;line-height:1.4;}
  html.an-cp-slides body #payment > .form-row {padding:10px!important;margin-top:auto!important;flex:none;}
  html.an-cp-slides body #payment #place_order {min-height:44px;padding:10px 14px;font-size:14px;}
  html.an-cp-slides body footer.wp-block-template-part {
    display:block!important;position:relative!important;inset:auto!important;
    height:auto!important;min-height:0!important;max-height:none!important;
    margin-top:0!important;scroll-snap-align:end!important;scroll-snap-stop:normal!important;
  }
  html.an-cp-slides .an-cp-viewport {display:block;position:fixed;top:0;left:0;height:100svh;width:0;visibility:hidden;pointer-events:none;}
  .an-cp-next:focus-visible,.an-cp-small-logo:focus-visible {outline:2px solid #c99a32;outline-offset:3px;}
}
