/* BT Wix Connect – Forms & Popups (front end) */
.btwc,.btwc *,.btwc *::before,.btwc *::after{box-sizing:border-box}
.btwc{position:relative;font-family:var(--btwc-f-body);font-size:var(--btwc-b-size);line-height:1.6;color:var(--btwc-text);background-color:var(--btwc-bg);text-align:center;-webkit-font-smoothing:antialiased}
.btwc-align-left{text-align:left}
.btwc .btwc-sr{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
.btwc-inner{position:relative;z-index:1;container-type:inline-size;container-name:btwc}
.btwc p{margin:0}

/* glow + frame */
.btwc-has-glow{background-image:radial-gradient(120% 70% at 50% -10%,rgba(232,53,122,.22),transparent 60%),radial-gradient(80% 50% at 50% 115%,rgba(201,162,122,.14),transparent 70%)}
.btwc--inline.btwc-has-glow{background-image:radial-gradient(60% 120% at 0% 50%,rgba(232,53,122,.14),transparent 70%)}
.btwc-has-frame::before{content:"";position:absolute;inset:10px;border:1px solid var(--btwc-accent-soft);border-radius:max(0px,calc(var(--btwc-radius) - 6px));pointer-events:none;z-index:0}

/* typography */
.btwc .btwc-eyebrow{display:inline-block;font:600 11px/1 var(--btwc-f-body);letter-spacing:5px;text-transform:uppercase;color:var(--btwc-accent);margin:0 0 18px;padding:0 0 10px;border-bottom:1px solid var(--btwc-accent-soft)}
.btwc .btwc-title{font-family:var(--btwc-f-heading);font-weight:900;font-size:clamp(26px,7vw,var(--btwc-h-size));line-height:1.05;letter-spacing:-.5px;color:var(--btwc-heading);margin:0 0 6px;padding:0;text-wrap:balance;overflow-wrap:break-word}
.btwc-upper .btwc-title{text-transform:uppercase}
.btwc .btwc-script{font-family:var(--btwc-f-accent);font-weight:400;text-transform:none;letter-spacing:0;font-size:1.25em;line-height:1.15;color:var(--btwc-script);padding:0 .12em;text-shadow:0 0 6px var(--btwc-glow),0 0 18px var(--btwc-glow-2)}
.btwc .btwc-script.is-block{display:block}
.btwc .btwc-text{margin:14px auto 0;max-width:420px;color:var(--btwc-text);font-size:var(--btwc-b-size);line-height:1.65}
.btwc-align-left .btwc-text{margin-left:0}
.btwc .btwc-text em{font-family:var(--btwc-f-heading);font-style:italic;font-weight:700;color:var(--btwc-heading)}
.btwc .btwc-text a,.btwc .btwc-fine a,.btwc .btwc-consent a{color:inherit;text-decoration:underline}
.btwc .btwc-fine{margin:20px 0 0;font-size:12px;line-height:1.5;letter-spacing:.4px;opacity:.75}
.btwc .btwc-fine b,.btwc .btwc-fine strong{font-family:var(--btwc-f-accent);font-weight:400;font-size:17px;letter-spacing:0;color:var(--btwc-accent)}

/* form */
.btwc .btwc-form{margin:24px auto 0;max-width:400px;padding:0;border:0;background:none}
.btwc-align-left .btwc-form{margin-left:0}
.btwc .btwc-fields{display:flex;flex-direction:column;gap:12px}
.btwc .btwc-field{margin:0;min-width:0}
.btwc .btwc-field input{display:block;width:100%;height:54px;margin:0;padding:0 22px;border-radius:var(--btwc-ctl-radius);background:var(--btwc-input-bg);border:1px solid var(--btwc-accent-soft);color:var(--btwc-input-color);font:400 16px/1.2 var(--btwc-f-body);text-align:inherit;box-shadow:none;outline:none;transition:border-color .2s,background-color .2s;-webkit-appearance:none;appearance:none}
.btwc .btwc-field input::placeholder{color:var(--btwc-input-color);opacity:.55}
.btwc .btwc-field input:focus{border-color:var(--btwc-accent);box-shadow:0 0 0 3px var(--btwc-accent-soft)}
.btwc .btwc-field input[aria-invalid=true]{border-color:#ff7aa8;box-shadow:0 0 0 3px rgba(255,122,168,.25)}
.btwc .btwc-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;width:100%;height:54px;margin:0;padding:0 28px;border:0;border-radius:var(--btwc-ctl-radius);cursor:pointer;background:var(--btwc-btn);color:var(--btwc-btn-color);font:600 13px/1 var(--btwc-f-body);letter-spacing:3px;text-transform:uppercase;text-decoration:none;white-space:nowrap;box-shadow:0 10px 26px var(--btwc-btn-shadow);transition:transform .15s,background-color .2s;-webkit-appearance:none;appearance:none}
.btwc .btwc-btn:hover,.btwc .btwc-btn:focus-visible{background:var(--btwc-btn-hover);color:var(--btwc-btn-color);transform:translateY(-1px)}
.btwc .btwc-btn:focus-visible{outline:2px solid var(--btwc-accent);outline-offset:3px}
.btwc .btwc-btn[disabled]{opacity:.65;cursor:wait;transform:none}
.btwc .btwc-btn.is-loading::before{content:"";width:14px;height:14px;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;animation:btwc-spin .7s linear infinite}
@keyframes btwc-spin{to{transform:rotate(360deg)}}
.btwc .btwc-consent{display:flex;gap:10px;align-items:flex-start;margin:2px 0 4px;padding:0 6px;text-align:left;font-size:13px;line-height:1.5;cursor:pointer}
.btwc .btwc-consent input{flex:0 0 auto;width:18px;height:18px;margin:2px 0 0;accent-color:var(--btwc-btn)}
.btwc .btwc-hp{position:absolute!important;left:-9999px!important;width:1px;height:1px;opacity:0;pointer-events:none}
.btwc .btwc-msg{min-height:0;margin:10px 0 0;font-size:14px;font-weight:500;line-height:1.5}
.btwc .btwc-msg:empty{display:none}
.btwc .btwc-msg.is-error{color:#ff9cc2}

/* row layout: email + button side by side when there is room */
.btwc-fields-row .btwc-fields{flex-direction:row;flex-wrap:wrap}
.btwc-fields-row .btwc-field{flex:1 1 200px}
.btwc-fields-row .btwc-btn{flex:0 0 auto;width:auto}
.btwc-fields-row .btwc-consent{margin-top:14px}
.btwc-fields-row .btwc-field input{text-align:left}

/* success */
.btwc .btwc-success{margin-top:18px;font-size:var(--btwc-b-size);line-height:1.6;outline:none}
.btwc .btwc-success[hidden]{display:none}
.btwc .btwc-success-title{display:block;font-family:var(--btwc-f-accent);font-weight:400;font-size:32px;line-height:1.2;color:var(--btwc-script);margin-bottom:6px;text-shadow:0 0 8px var(--btwc-glow)}
.btwc.is-done .btwc-form,.btwc.is-done .btwc-text,.btwc.is-done .btwc-msg{display:none}
.btwc.is-done.btwc-custom .btwc-custom-html form{display:none}

/* image */
.btwc .btwc-media{margin:0 0 22px}
.btwc .btwc-media img{display:block;width:100%;height:auto;max-height:260px;object-fit:cover;border-radius:max(0px,calc(var(--btwc-radius) - 8px))}

/* ---------------------------------------------------------------- inline */
.btwc--inline{width:100%;padding:var(--btwc-pad) 24px;border-radius:var(--btwc-radius)}
.btwc--inline > .btwc-inner{max-width:var(--btwc-width);margin:0 auto}
.btwc-layout-split .btwc-content{display:grid;grid-template-columns:1.1fr 1fr;gap:40px;align-items:center}
.btwc-layout-split .btwc-form{margin:0;max-width:none}
.btwc-layout-split .btwc-text{margin-left:0}
.btwc-layout-split .btwc-success{margin-top:0}
.btwc-img-left .btwc-body{display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);gap:32px;align-items:center}
.btwc-img-left .btwc-media{margin:0}
.btwc-img-left .btwc-media img{max-height:none;height:100%}
@container btwc (max-width:760px){
	.btwc-layout-split .btwc-content{grid-template-columns:1fr;gap:22px;text-align:center}
	.btwc-layout-split .btwc-text{margin-left:auto;margin-right:auto}
	.btwc-layout-split .btwc-form{margin:0 auto;max-width:440px}
	.btwc-img-left .btwc-body{grid-template-columns:1fr;gap:0}
	.btwc-img-left .btwc-media{margin:0 0 22px}
	.btwc-img-left .btwc-media img{max-height:240px}
}
@container btwc (max-width:520px){
	.btwc-fields-row .btwc-fields{flex-direction:column}
	.btwc-fields-row .btwc-field{flex:none}
	.btwc-fields-row .btwc-btn{width:100%}
	.btwc-fields-row .btwc-field input{text-align:center}
	.btwc-align-left .btwc-fields-row .btwc-field input{text-align:left}
}
/* fallback for browsers without container queries */
@supports not (container-type:inline-size){
	@media (max-width:900px){.btwc-layout-split .btwc-content,.btwc-img-left .btwc-body{grid-template-columns:1fr;text-align:center}}
	@media (max-width:560px){.btwc-fields-row .btwc-fields{flex-direction:column}.btwc-fields-row .btwc-btn{width:100%}}
}
@media (max-width:600px){.btwc--inline{padding:calc(var(--btwc-pad)*.75) 18px}}

/* ----------------------------------------------------------------- popup */
.btwc-popup{position:fixed;inset:0;z-index:2147483000;display:flex;align-items:center;justify-content:center;padding:20px;pointer-events:none}
.btwc-popup[hidden]{display:none!important}
.btwc-popup .btwc-overlay{position:absolute;inset:0;background:var(--btwc-overlay);-webkit-backdrop-filter:blur(var(--btwc-blur));backdrop-filter:blur(var(--btwc-blur));opacity:0;transition:opacity .35s ease;pointer-events:auto}
.btwc-popup .btwc--popup{position:relative;width:100%;max-width:var(--btwc-width);max-height:calc(100vh - 40px);max-height:calc(100dvh - 40px);overflow-y:auto;overscroll-behavior:contain;padding:max(64px,calc(var(--btwc-pad) + 8px)) max(20px,calc(var(--btwc-pad) - 4px)) max(22px,calc(var(--btwc-pad) - 14px));border-radius:var(--btwc-radius);box-shadow:0 30px 80px rgba(0,0,0,.5);pointer-events:auto;opacity:0;transition:opacity .35s ease,transform .4s cubic-bezier(.2,.8,.2,1);outline:none;scrollbar-width:thin}
.btwc-popup.is-open .btwc-overlay,.btwc-popup.is-open .btwc--popup{opacity:1}
.btwc-anim-slide-up .btwc--popup{transform:translateY(24px)}
.btwc-anim-zoom .btwc--popup{transform:scale(.92)}
.btwc-popup.is-open .btwc--popup{transform:none}

/* slide-in positions (non-blocking) */
.btwc-pos-bottom-right,.btwc-pos-bottom-left{align-items:flex-end}
.btwc-pos-bottom-right{justify-content:flex-end}
.btwc-pos-bottom-left{justify-content:flex-start}
.btwc-pos-bottom-right .btwc-overlay,.btwc-pos-bottom-left .btwc-overlay{display:none}
.btwc-pos-bottom-right .btwc--popup,.btwc-pos-bottom-left .btwc--popup{max-width:min(var(--btwc-width),400px)}

.btwc-popup .btwc-close{position:absolute;top:14px;right:14px;z-index:3;display:flex;align-items:center;justify-content:center;width:44px;height:44px;margin:0;padding:0;border-radius:50%;border:1px solid var(--btwc-accent-soft);background:rgba(255,255,255,.06);color:var(--btwc-close);cursor:pointer;line-height:1;box-shadow:none;transition:background-color .2s,border-color .2s,color .2s}
.btwc-popup .btwc-close:hover,.btwc-popup .btwc-close:focus-visible{background:var(--btwc-close-hover);border-color:var(--btwc-close-hover);color:#fff;outline:none}
.btwc-popup .btwc-close svg{display:block;pointer-events:none}

html.btwc-locked,html.btwc-locked body{overflow:hidden!important}

/* phones */
@media (max-width:767px){
	.btwc-popup{padding:12px}
	.btwc-popup .btwc--popup{padding:56px 22px 26px;max-height:calc(100vh - 24px);max-height:calc(100dvh - 24px)}
	.btwc-popup .btwc-close{top:10px;right:10px}
	.btwc-has-frame.btwc--popup::before{inset:8px}
	.btwc-mobile-sheet{align-items:flex-end;justify-content:center;padding:0}
	.btwc-mobile-sheet .btwc--popup{max-width:100%;border-radius:var(--btwc-radius) var(--btwc-radius) 0 0;padding-bottom:calc(26px + env(safe-area-inset-bottom,0px));max-height:calc(100vh - 32px);max-height:calc(100dvh - 32px)}
	.btwc-mobile-sheet.btwc-anim-zoom .btwc--popup,.btwc-mobile-sheet.btwc-anim-fade .btwc--popup{transform:translateY(24px)}
	.btwc-mobile-sheet.is-open .btwc--popup{transform:none}
	.btwc-pos-bottom-right .btwc--popup,.btwc-pos-bottom-left .btwc--popup{max-width:100%}
	.btwc-popup .btwc-title{font-size:clamp(26px,8.4vw,var(--btwc-h-size))}
}
@media (max-width:360px){
	.btwc-popup .btwc--popup{padding-left:16px;padding-right:16px}
	.btwc .btwc-btn{letter-spacing:2px;padding:0 16px}
}
@media (prefers-reduced-motion:reduce){
	.btwc-popup .btwc-overlay,.btwc-popup .btwc--popup,.btwc .btwc-btn{transition:none!important}
	.btwc-popup .btwc--popup{transform:none!important}
}
