/* Option 22: Code to Forward / pass through. Native Gutenberg and Astra links. */
body #page :is(.wp-block-button__link,.ast-custom-button,a.ast-button,button.ast-button,button.wpcf7-submit){position:relative;display:inline-flex;align-items:center;justify-content:center;gap:0;min-height:54px;padding:14px 84px 14px 24px!important;border-radius:999px!important;overflow:hidden}
body #page :is(.wp-block-button__link,.ast-custom-button,a.ast-button,button.ast-button,button.wpcf7-submit)::before,body #page :is(.wp-block-button__link,.ast-custom-button,a.ast-button,button.ast-button,button.wpcf7-submit)::after{content:"";position:absolute;right:24px;top:50%;width:38px;height:28px;display:block;flex:none;border:0;border-radius:0;pointer-events:none;background:var(--ast-global-color-0,#ef233c);transform:translate(0,-50%)}
body #page :is(.wp-block-button__link,.ast-custom-button,a.ast-button,button.ast-button,button.wpcf7-submit)::before{mask:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2032%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%222.1%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22m9%205-6%207%206%207m10-16-6%2018m10-16%206%207-6%207%22%2F%3E%3C%2Fsvg%3E") center / contain no-repeat;opacity:1;transition:transform 320ms cubic-bezier(.23,1,.32,1),opacity 200ms ease}
body #page :is(.wp-block-button__link,.ast-custom-button,a.ast-button,button.ast-button,button.wpcf7-submit)::after{mask:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2032%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%222.1%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22m13%205%207%207-7%207%22%2F%3E%3C%2Fsvg%3E") center / contain no-repeat;opacity:0;transform:translate(-16px,-50%);transition:transform 240ms cubic-bezier(.23,1,.32,1),opacity 200ms ease}
body #page :is(.wp-block-button__link,.ast-custom-button,a.ast-button,button.ast-button,button.wpcf7-submit):focus-visible::before,body #page .ast-custom-button-link:focus-visible .ast-custom-button::before{transform:translate(16px,-50%);opacity:0}
body #page :is(.wp-block-button__link,.ast-custom-button,a.ast-button,button.ast-button,button.wpcf7-submit):focus-visible::after,body #page .ast-custom-button-link:focus-visible .ast-custom-button::after{transform:translate(0,-50%);opacity:1;transition-delay:90ms;background:var(--ast-global-color-0,#ef233c)}
@media(hover:hover) and (pointer:fine){
body #page :is(.wp-block-button__link,.ast-custom-button,a.ast-button,button.ast-button,button.wpcf7-submit):hover::before{transform:translate(16px,-50%);opacity:0}
body #page :is(.wp-block-button__link,.ast-custom-button,a.ast-button,button.ast-button,button.wpcf7-submit):hover::after{transform:translate(0,-50%);opacity:1;transition-delay:90ms;background:var(--ast-global-color-0,#ef233c)}
}
@media(hover:none),(pointer:coarse){body #page :is(.wp-block-button__link,.ast-custom-button,a.ast-button,button.ast-button,button.wpcf7-submit)::before{opacity:0}body #page :is(.wp-block-button__link,.ast-custom-button,a.ast-button,button.ast-button,button.wpcf7-submit)::after{opacity:1;transform:translate(0,-50%)}}
@media(prefers-reduced-motion:reduce){body #page :is(.wp-block-button__link,.ast-custom-button,a.ast-button,button.ast-button,button.wpcf7-submit)::before,body #page :is(.wp-block-button__link,.ast-custom-button,a.ast-button,button.ast-button,button.wpcf7-submit)::after{transition:none}}

/* Astra owns the icon colour through its native text colour in every state. */
body #page :is(.ast-custom-button,a.ast-button,button.ast-button):is(*,:hover,:focus-visible,:active)::before,
body #page :is(.ast-custom-button,a.ast-button,button.ast-button):is(*,:hover,:focus-visible,:active)::after,
body #page .ast-custom-button-link:is(:hover,:focus-visible,:active) .ast-custom-button::before,
body #page .ast-custom-button-link:is(:hover,:focus-visible,:active) .ast-custom-button::after{background-color:currentColor}

/* CF7 submit buttons share the pill treatment; override legacy green fill. */
body #page .wpcf7 button.wpcf7-submit{background:var(--ast-global-color-4,#171b19)!important;color:#fff!important;border:1px solid transparent;font-family:var(--ch-font-body,inherit);font-size:15px;cursor:pointer;width:auto}
body #page .wpcf7 button.wpcf7-submit:is(:hover,:focus-visible,:active){background:#f3f5f0!important;color:var(--ast-global-color-4,#171b19)!important}
body #page .wpcf7 button.wpcf7-submit:is(:hover,:focus-visible,:active)::after{background:currentColor}
body #page .wpcf7 button.wpcf7-submit:disabled{opacity:.55;cursor:not-allowed}

/* Spectra icons follow the configured button text colour on interaction. */
body #page .wp-block-button__link.wp-block-spectra-button:is(:hover,:focus-visible,:active)::before,
body #page .wp-block-button__link.wp-block-spectra-button:is(:hover,:focus-visible,:active)::after{background-color:currentColor}
