/* Design Your Shed page (/design, page-design.php): the "Send me my quote" bar below the designer and the quote
   form dialog. Behavior is in assets/shed-designer.js. */
.bb-design-bar{--bb-design-bar:72px}body.bb-design-page{--bb-design-bar:72px}
.bb-design-connection{margin:0!important;font-size:12px;text-align:center;color:var(--bb-muted)}
.bb-design-connection:empty{display:none}
.bb-design-frame.is-connecting:not(.is-ready) iframe{visibility:hidden;pointer-events:none}

/* "Send me my quote" is the page's main action: a large button with a lifted shadow and an arrow, and two soft
   pulses once the designer connects and the button becomes usable (skipped for reduced motion). On phones the call
   link shrinks to a round phone button so the quote button can fill the rest of the bar. */
.bb-design-bar .bb-design-quote-open{--bb-quote-lift:0 2px 4px rgba(var(--bb-shadow-rgb),.14),0 12px 26px -10px rgba(var(--bb-shadow-rgb),.55);flex-shrink:0;gap:10px;min-height:52px;padding:0 30px;font-size:17px;font-weight:800;letter-spacing:.01em;white-space:nowrap;box-shadow:var(--bb-quote-lift)}
.bb-design-bar .bb-design-quote-open svg{flex-shrink:0;stroke-width:2.25;transition:transform .2s}
.bb-design-bar .bb-design-quote-open:not(:disabled):hover svg{transform:translateX(3px)}
.bb-design-bar .bb-design-quote-open:disabled{opacity:.6;cursor:wait;box-shadow:none}
.bb-design-bar .bb-design-quote-open:disabled:hover{transform:none;background:var(--bb-green);border-color:var(--bb-green)}
.bb-design-bar .bb-design-quote-open:not(:disabled){animation:bb-quote-pulse 1.6s ease-out .6s 2}
@keyframes bb-quote-pulse{from{box-shadow:var(--bb-quote-lift),0 0 0 0 rgba(var(--bb-primary-rgb),.75)}to{box-shadow:var(--bb-quote-lift),0 0 0 16px rgba(var(--bb-primary-rgb),0)}}
@media(max-width:760px){.bb-design-bar-ask{display:none}}
@media(max-width:600px),(max-height:500px){body.bb-design-page,.bb-design-bar{--bb-design-bar:64px}}
@media(max-width:600px){
  .bb-design-bar{gap:10px}
  .bb-design-bar p{flex-shrink:0}
  .bb-design-bar .bb-design-call{justify-content:center;width:46px;height:46px;border:1px solid var(--bb-line);border-radius:50%;background:var(--bb-paper)}
  .bb-design-bar .bb-design-call svg{width:20px;height:20px}
  .bb-design-call-text{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap}
  .bb-design-bar .bb-design-quote-open{flex:1;min-width:0;min-height:48px;padding:0 18px;font-size:16px}
}

/* Quote dialog: a card with a warm header, two labeled sections and a footer whose send button stays in view while
   the form scrolls. The close button stays put in the corner; the form and confirmation views scroll inside. On
   phones it becomes a bottom sheet. */
.bb-design-quote-dialog{--bb-dq-pad:32px;--bb-dq-error:#b3261e;box-sizing:border-box;width:min(620px,calc(100% - 32px));max-width:none;max-height:min(92dvh,920px);padding:0;border:0;border-radius:20px;background:var(--bb-paper);color:var(--bb-ink);box-shadow:0 30px 80px -24px rgba(var(--bb-shade-rgb),.6);overflow:hidden}
.bb-design-quote-dialog[open]{display:flex;flex-direction:column;animation:bb-dq-in .22s ease-out}
.bb-design-quote-dialog::backdrop{background:rgba(var(--bb-shade-rgb),.6);backdrop-filter:blur(3px)}
.bb-design-quote-dialog[open]::backdrop{animation:bb-dq-fade .22s ease-out}
.bb-design-quote-dialog [hidden]{display:none!important}
@keyframes bb-dq-in{from{opacity:0;transform:translateY(14px) scale(.98)}}
@keyframes bb-dq-fade{from{opacity:0}}
body:has(.bb-design-quote-dialog[open]){overflow:hidden}
.bb-design-quote-view,.bb-design-quote-done{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain}
/* The parent theme (Kadence) restyles every <button> on :hover, :focus and :active, so states here are spelled out
   with enough specificity to keep each button's own look. */
.bb-design-page .bb-button:is(:focus,:active){background:var(--bb-green);border-color:var(--bb-green);color:#fff}
.bb-design-page .bb-button:hover:not(:disabled){background:var(--bb-green-dark);border-color:var(--bb-green-dark);color:#fff}
.bb-design-quote-dialog .bb-design-quote-close{position:absolute;top:16px;right:16px;z-index:4;display:grid;place-items:center;width:40px;height:40px;padding:0;border:1px solid var(--bb-line);border-radius:50%;background:var(--bb-paper);color:var(--bb-ink);box-shadow:0 2px 10px -2px rgba(var(--bb-shadow-rgb),.18);cursor:pointer;transition:background .15s,transform .15s}
.bb-design-quote-dialog .bb-design-quote-close:is(:focus,:active){background:var(--bb-paper);color:var(--bb-ink);box-shadow:0 2px 10px -2px rgba(var(--bb-shadow-rgb),.18)}
.bb-design-quote-dialog .bb-design-quote-close:hover{background:var(--bb-mint);transform:rotate(90deg)}
.bb-design-quote-dialog .bb-design-quote-close:focus-visible{outline:2px solid var(--bb-green);outline-offset:2px}

.bb-design-quote-head{padding:30px var(--bb-dq-pad) 8px;background:linear-gradient(180deg,var(--bb-butter),var(--bb-paper))}
.bb-design-quote-kicker{display:inline-block;padding:5px 12px;border-radius:999px;background:rgba(var(--bb-primary-rgb),.24);color:var(--bb-green-dark);font-size:12px;font-weight:700;letter-spacing:.02em}
.bb-design-quote-head h2{margin:14px 48px 6px 0;font-size:30px;line-height:1.15}
.bb-design-quote-head p{margin:0;font-size:15px;line-height:1.55;color:var(--bb-muted)}

.bb-design-quote-form fieldset{min-width:0;margin:0;padding:0;border:0}
.bb-design-quote-section{padding:22px var(--bb-dq-pad) 0}
.bb-design-quote-section h3{margin:0 0 14px;font:700 12px/1.4 var(--bb-sans);letter-spacing:.12em;text-transform:uppercase;color:var(--bb-muted)}
.bb-design-quote-section+.bb-design-quote-section{margin-top:6px}
.bb-design-quote-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px 14px}
.bb-design-quote-grid-address{grid-template-columns:1.7fr .8fr 1fr}
.bb-design-quote-wide{grid-column:1/-1}

.bb-field{position:relative;min-width:0}
.bb-field>label,.bb-design-quote-choice legend{display:block;margin:0 0 6px;padding:0;font-size:13.5px;font-weight:600;line-height:1.4;color:var(--bb-ink)}
.bb-field-optional{font-weight:400;color:var(--bb-muted)}
.bb-field input:not([type=radio]),.bb-field textarea{box-sizing:border-box;display:block;width:100%;min-height:48px;margin:0;padding:12px 14px;border:1px solid var(--bb-field-line);border-radius:10px;background:#fff;color:var(--bb-ink);font:400 16px/1.4 var(--bb-sans);box-shadow:none;transition:border-color .15s,box-shadow .15s}
.bb-field textarea{min-height:88px;resize:vertical}
.bb-field input::placeholder,.bb-field textarea::placeholder{color:var(--bb-muted);opacity:.7}
.bb-field input:not([type=radio]):hover,.bb-field textarea:hover{border-color:rgba(var(--bb-shadow-rgb),.4)}
.bb-field input:not([type=radio]):focus,.bb-field textarea:focus{outline:0;border-color:var(--bb-green);box-shadow:0 0 0 3px rgba(var(--bb-primary-rgb),.4)}
.bb-field.has-error input,.bb-field.has-error textarea{border-color:var(--bb-dq-error);background:#fffafa}
.bb-field.has-error input:focus{box-shadow:0 0 0 3px rgba(179,38,30,.18)}
.bb-field-error{display:flex;align-items:flex-start;gap:6px;margin:7px 0 0;font-size:13px;line-height:1.4;color:var(--bb-dq-error)}
.bb-field-error:empty{display:none}
.bb-field-error::before{content:"!";flex:none;display:grid;place-items:center;width:16px;height:16px;margin-top:1px;border-radius:50%;background:var(--bb-dq-error);color:#fff;font-size:11px;font-weight:800;line-height:1}

.bb-design-quote-choice{margin:0;padding:0;border:0;min-width:0}
.bb-design-quote-pills{display:flex;flex-wrap:wrap;gap:8px}
.bb-design-quote-pills label{position:relative;cursor:pointer}
.bb-design-quote-pills input{position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:pointer}
.bb-design-quote-pills span{display:inline-flex;align-items:center;gap:9px;min-height:44px;padding:0 18px 0 14px;border:1px solid var(--bb-field-line);border-radius:999px;background:#fff;font-size:15px;font-weight:600;color:var(--bb-ink);transition:border-color .15s,background .15s,box-shadow .15s}
.bb-design-quote-pills span::before{content:"";box-sizing:border-box;width:18px;height:18px;border:1.5px solid var(--bb-field-line);border-radius:50%;background:#fff;transition:border .15s}
.bb-design-quote-pills label:hover span{border-color:rgba(var(--bb-shadow-rgb),.4)}
.bb-design-quote-pills input:checked+span{border-color:var(--bb-green);background:rgba(var(--bb-primary-rgb),.16);color:var(--bb-green-dark)}
.bb-design-quote-pills input:checked+span::before{border:5.5px solid var(--bb-green)}
.bb-design-quote-pills input:focus-visible+span{box-shadow:0 0 0 3px rgba(var(--bb-primary-rgb),.45)}

.bb-design-quote-footer{position:sticky;bottom:0;z-index:3;margin-top:24px;padding:16px var(--bb-dq-pad) 20px;border-top:1px solid var(--bb-line);background:var(--bb-paper)}
.bb-design-quote-form .bb-design-quote-submit,.bb-design-quote-form .bb-design-quote-submit:is(:hover,:focus,:active){width:100%;gap:10px;min-height:54px;font-size:17px;font-weight:800;box-shadow:0 2px 4px rgba(var(--bb-shadow-rgb),.12),0 12px 24px -12px rgba(var(--bb-shadow-rgb),.5)}
.bb-design-quote-submit svg{flex-shrink:0;stroke-width:2.25}
.bb-design-quote-form fieldset:disabled .bb-design-quote-submit{cursor:progress;transform:none}
.bb-design-quote-submit.is-busy svg{display:none}
.bb-design-quote-submit.is-busy::after{content:"";width:18px;height:18px;box-sizing:border-box;border:2.5px solid rgba(255,255,255,.4);border-top-color:#fff;border-radius:50%;animation:bb-dq-spin .8s linear infinite}
@keyframes bb-dq-spin{to{transform:rotate(1turn)}}
.bb-design-quote-status{margin:10px 0 0;font-size:14px;line-height:1.45;text-align:center;color:var(--bb-muted)}
.bb-design-quote-status:empty{display:none}
.bb-design-quote-status[data-error=true]{color:var(--bb-dq-error);font-weight:600}

/* Google address suggestions under the street address field. */
.bb-places{position:absolute;left:0;right:0;top:calc(100% + 6px);z-index:5;overflow:hidden;border:1px solid var(--bb-line);border-radius:12px;background:#fff;box-shadow:0 18px 40px -16px rgba(var(--bb-shade-rgb),.45)}
.bb-places-list{max-height:264px;margin:0;padding:6px;overflow-y:auto;list-style:none}
.bb-places-list li{display:flex;flex-direction:column;gap:1px;margin:0;padding:10px 12px;border-radius:8px;line-height:1.35;cursor:pointer}
.bb-places-list li strong{font-size:15px;font-weight:600;color:var(--bb-ink)}
.bb-places-list li span{font-size:13px;color:var(--bb-muted)}
.bb-places-list li:hover,.bb-places-list li[aria-selected=true]{background:var(--bb-mint)}
.bb-places-credit{display:flex;justify-content:flex-end;padding:6px 12px 8px;border-top:1px solid var(--bb-line)}
.bb-places-credit img{display:block;width:auto;height:15px}

/* Confirmation after a request is sent. */
.bb-design-quote-done{padding:52px 36px 32px;text-align:center}
.bb-design-quote-done-icon{display:inline-grid;place-items:center;width:72px;height:72px;margin-bottom:20px;border-radius:50%;background:var(--bb-green);color:#fff;box-shadow:0 0 0 10px rgba(var(--bb-primary-rgb),.22);animation:bb-dq-pop .45s cubic-bezier(.2,1.4,.4,1)}
@keyframes bb-dq-pop{from{opacity:0;transform:scale(.6)}}
.bb-design-quote-done h2{margin:0 auto 10px;max-width:440px;font-size:28px;line-height:1.2;text-wrap:balance;outline:0}
.bb-design-quote-done p{margin:0 auto 8px;max-width:420px;font-size:15.5px;line-height:1.55;color:var(--bb-muted)}
.bb-design-quote-done p strong{color:var(--bb-ink)}
.bb-design-quote-done .bb-design-quote-ref{display:inline-block;margin-top:8px;padding:8px 14px;border-radius:10px;background:var(--bb-mint);font-size:14px}
.bb-design-quote-done-actions{display:flex;flex-direction:column;align-items:center;gap:4px;max-width:340px;margin:26px auto 14px}
.bb-design-quote-done-close{width:100%;min-height:52px;font-size:16px}
.bb-design-quote-done .bb-design-quote-again,.bb-design-quote-done .bb-design-quote-again:is(:hover,:focus,:active){padding:10px 12px;border:0;border-radius:6px;background:none;box-shadow:none;color:var(--bb-green);font:600 15px/1.3 var(--bb-sans);text-decoration:underline;text-underline-offset:3px;cursor:pointer}
.bb-design-quote-done .bb-design-quote-again:hover{color:var(--bb-green-dark)}
.bb-design-quote-done .bb-design-quote-help{font-size:14px}
.bb-design-quote-help a{color:var(--bb-ink);font-weight:700}

@media(max-width:600px){
  .bb-design-quote-dialog{--bb-dq-pad:20px;width:100%;max-height:94dvh;margin:auto 0 0;border-radius:20px 20px 0 0}
  .bb-design-quote-dialog[open]{animation-name:bb-dq-up}
  .bb-design-quote-close{top:12px;right:12px}
  .bb-design-quote-head{padding-top:24px}
  .bb-design-quote-head h2{font-size:25px}
  .bb-design-quote-grid-address{grid-template-columns:1fr 1fr}
  .bb-design-quote-wide-sm{grid-column:1/-1}
  .bb-design-quote-footer{padding-bottom:calc(16px + env(safe-area-inset-bottom))}
  .bb-design-quote-done{padding:44px 22px calc(26px + env(safe-area-inset-bottom))}
  .bb-design-quote-done h2{font-size:24px}
}
@keyframes bb-dq-up{from{opacity:0;transform:translateY(40px)}}
@media(prefers-reduced-motion:reduce){
  .bb-design-bar .bb-design-quote-open:not(:disabled),.bb-design-quote-dialog[open],.bb-design-quote-dialog[open]::backdrop,.bb-design-quote-done-icon{animation:none}
  .bb-design-quote-close:hover{transform:none}
}
