/* DigiSilta Yhteyspainike */
.dsyp{--dsyp-accent:#f0d420;--dsyp-accent-ink:#15171a;--dsyp-dark:#15171a;--dsyp-bottom-m:16px;--dsyp-r:18px;font-family:inherit;color:#1c1e21;-webkit-font-smoothing:antialiased}
.dsyp *,.dsyp *::before,.dsyp *::after{box-sizing:border-box}
.dsyp svg{width:1em;height:1em;fill:currentColor;display:block}
.dsyp [hidden]{display:none!important}
.dsyp button{font:inherit;cursor:pointer;margin:0}

/* Käynnistin */
.dsyp .dsyp-launcher{position:relative;width:62px;height:62px;border-radius:50%;border:0;padding:0;display:flex;align-items:center;justify-content:center;background:var(--dsyp-accent);color:var(--dsyp-accent-ink);box-shadow:0 10px 30px -8px rgba(0,0,0,.45),0 2px 6px rgba(0,0,0,.18);transition:transform .2s,box-shadow .2s}
.dsyp .dsyp-launcher:hover,.dsyp .dsyp-launcher:focus{background:var(--dsyp-accent);color:var(--dsyp-accent-ink);transform:translateY(-2px);box-shadow:0 14px 34px -8px rgba(0,0,0,.5),0 2px 6px rgba(0,0,0,.2)}
.dsyp .dsyp-launcher:focus-visible{outline:3px solid var(--dsyp-dark);outline-offset:3px}
.dsyp .dsyp-launcher svg{width:26px;height:26px}
.dsyp .dsyp-launcher::after{content:"";position:absolute;inset:-6px;border-radius:50%;border:2px solid var(--dsyp-accent);opacity:0;animation:dsyp-ring 2.4s ease-out 2s 2}
@keyframes dsyp-ring{0%{opacity:.8;transform:scale(.9)}100%{opacity:0;transform:scale(1.35)}}
.dsyp-launcher__close{display:none}
.dsyp.is-open .dsyp-launcher__open{display:none}.dsyp.is-open .dsyp-launcher__close{display:block}
.dsyp.is-open .dsyp-launcher__close svg{width:20px;height:20px}

/* Tervehdyskupla */
.dsyp-teaser{position:relative;width:100%;display:flex;flex-direction:column;align-items:flex-end;gap:10px;animation:dsyp-in .35s cubic-bezier(.2,.8,.2,1)}
@keyframes dsyp-in{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:none}}
.dsyp .dsyp-teaser__close{position:absolute;top:-12px;right:-6px;width:28px;height:28px;border-radius:50%;border:0;padding:0;background:#fff;color:#5b6068;display:flex;align-items:center;justify-content:center;box-shadow:0 2px 8px rgba(0,0,0,.2);z-index:2}
.dsyp .dsyp-teaser__close:hover,.dsyp .dsyp-teaser__close:focus{background:#fff;color:#1c1e21}
.dsyp-teaser__close svg{width:11px;height:11px}
.dsyp-bubble{position:relative;background:#fff;border-radius:16px;padding:18px 20px 18px 22px;box-shadow:0 12px 36px -12px rgba(0,0,0,.35),0 1px 3px rgba(0,0,0,.08);margin-left:26px;align-self:stretch}
.dsyp-bubble p{margin:0;font-size:16px;line-height:1.45;color:#1c1e21}
.dsyp-bubble__av{position:absolute;left:-26px;top:-18px;width:46px;height:46px;border-radius:50%;object-fit:cover;border:3px solid #fff;box-shadow:0 2px 8px rgba(0,0,0,.2)}
.dsyp-bubble p{padding-left:12px}
.dsyp-ini{display:inline-flex;align-items:center;justify-content:center;background:var(--dsyp-accent);color:var(--dsyp-accent-ink);font-weight:700;font-size:15px;letter-spacing:.02em}
.dsyp-chips{display:flex;flex-direction:column;align-items:flex-end;gap:8px}
.dsyp .dsyp-chip{display:inline-flex;align-items:center;padding:11px 18px;border-radius:999px;background:#fff;color:#1c1e21;text-decoration:none;font-weight:600;font-size:15px;box-shadow:0 6px 18px -8px rgba(0,0,0,.35),inset 0 0 0 2px var(--dsyp-accent);transition:background-color .15s,transform .15s}
.dsyp .dsyp-chip:hover{background:var(--dsyp-accent);color:var(--dsyp-accent-ink);transform:translateX(-2px)}
.dsyp .dsyp-promo{display:grid;grid-template-columns:1fr;align-items:stretch;width:100%;background:#fff;border-radius:16px;overflow:hidden;text-decoration:none;color:#1c1e21;box-shadow:0 12px 36px -12px rgba(0,0,0,.35),0 1px 3px rgba(0,0,0,.08)}
.dsyp .dsyp-promo.has-img{grid-template-columns:1fr 38%}
.dsyp-promo__txt{padding:18px 18px 18px 20px;display:flex;flex-direction:column;gap:6px}
.dsyp-promo__txt b{font-size:17px;line-height:1.25}
.dsyp-promo__txt>span:not(.dsyp-promo__btn){font-size:14px;color:#5b6068;line-height:1.4}
.dsyp-promo__btn{margin-top:6px;align-self:flex-start;display:inline-flex;align-items:center;gap:8px;background:var(--dsyp-dark);color:#fff;border-radius:999px;padding:9px 16px;font-weight:600;font-size:14px}
.dsyp-promo__btn svg{width:12px;height:12px}
.dsyp .dsyp-promo__img{width:100%;height:100%;object-fit:cover;display:block;min-height:150px}
.dsyp .dsyp-promo:hover .dsyp-promo__btn{background:var(--dsyp-accent);color:var(--dsyp-accent-ink)}

/* Paneeli */
.dsyp-panel{position:fixed;right:24px;bottom:100px;z-index:9991;width:min(390px,calc(100vw - 32px));max-height:calc(100vh - 130px);display:flex;flex-direction:column;border-radius:var(--dsyp-r);overflow:hidden;background:#f6f5f1;box-shadow:0 24px 60px -18px rgba(0,0,0,.55),0 2px 8px rgba(0,0,0,.15);animation:dsyp-in .3s cubic-bezier(.2,.8,.2,1)}
.dsyp-panel__head{background:var(--dsyp-dark);color:#fff;padding:18px 22px 24px;position:relative;overflow:hidden;flex:none}
.dsyp-panel__head::after{content:"";position:absolute;right:-70px;top:-70px;width:220px;height:220px;border-radius:50%;background:radial-gradient(circle,var(--dsyp-accent) 0%,transparent 68%);opacity:.22;pointer-events:none}
.dsyp-panel__bar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:22px;position:relative;z-index:1}
.dsyp .dsyp-panel__logo{height:30px;width:auto;max-width:210px;display:block}
.dsyp-panel__name{font-weight:700;letter-spacing:.04em;text-transform:uppercase;font-size:14px}
.dsyp .dsyp-panel__close{width:34px;height:34px;border-radius:50%;border:0;padding:0;background:rgba(255,255,255,.12);color:#fff;display:flex;align-items:center;justify-content:center}
.dsyp .dsyp-panel__close:hover,.dsyp .dsyp-panel__close:focus{background:rgba(255,255,255,.22);color:#fff}
.dsyp-panel__close svg{width:12px;height:12px}
.dsyp-panel__h{margin:0;font-size:25px;line-height:1.15;font-weight:700;color:#fff;position:relative;z-index:1;text-wrap:balance}
.dsyp-panel__sub{margin:10px 0 0;font-size:15px;line-height:1.45;color:#c9cdd3;position:relative;z-index:1}
.dsyp-panel__body{overflow-y:auto;overscroll-behavior:contain;padding:14px;display:flex;flex-direction:column;gap:12px}
.dsyp-person{display:flex;align-items:center;gap:12px;background:#fff;border-radius:14px;padding:12px 14px;box-shadow:0 1px 2px rgba(0,0,0,.06)}
.dsyp-person__av{width:44px;height:44px;border-radius:50%;object-fit:cover;flex:none}
.dsyp-person b{display:block;font-size:15.5px}
.dsyp-person small{display:block;font-size:13.5px;color:#5b6068}
.dsyp-actions{list-style:none;margin:0;padding:0;background:#fff;border-radius:14px;overflow:hidden;box-shadow:0 1px 2px rgba(0,0,0,.06)}
.dsyp-actions li+li{border-top:1px solid #ece8de}
.dsyp .dsyp-action{display:flex;align-items:center;gap:14px;padding:13px 14px;text-decoration:none;color:#1c1e21;transition:background-color .15s}
.dsyp .dsyp-action:hover,.dsyp .dsyp-action:focus-visible{background:#faf8f3}
.dsyp-action__ic{width:40px;height:40px;border-radius:12px;flex:none;display:flex;align-items:center;justify-content:center;background:color-mix(in srgb,var(--dsyp-accent) 28%,#fff);color:var(--dsyp-accent-ink)}
.dsyp-action--whatsapp .dsyp-action__ic{background:#e4f6ea;color:#1f8a4c}
.dsyp-action__ic svg{width:17px;height:17px}
.dsyp-action__txt{flex:1;min-width:0}
.dsyp-action__txt b{display:block;font-size:15.5px;line-height:1.25}
.dsyp-action__txt small{display:block;font-size:13.5px;color:#5b6068;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.dsyp-action__go{font-size:22px;line-height:1;color:#9a9fa6}

@media (max-width:600px){
  .dsyp .dsyp-launcher{width:56px;height:56px}
  .dsyp-bar{right:16px;bottom:var(--dsyp-bottom-m)}
  .dsyp-stack{right:16px;bottom:calc(var(--dsyp-bottom-m) + 72px)}
  .dsyp-panel{left:8px;right:8px;width:auto;bottom:calc(var(--dsyp-bottom-m) + 66px);max-height:calc(100dvh - var(--dsyp-bottom-m) - 90px)}
  .dsyp-panel__h{font-size:22px}
}
@media (prefers-reduced-motion:reduce){.dsyp-teaser,.dsyp-panel{animation:none}.dsyp .dsyp-launcher::after{animation:none}}
.dsyp-panel__body>*{flex:none}

/* Pino (kupla + nostokortti) ja alapalkki (piilotusnuoli + painike) */
.dsyp-stack{position:fixed;right:24px;bottom:104px;z-index:9989;width:min(380px,calc(100vw - 32px));display:flex;flex-direction:column;align-items:flex-end;gap:12px;pointer-events:none}
.dsyp-stack>*{pointer-events:auto}
.dsyp-bar{position:fixed;right:24px;bottom:24px;z-index:9990;display:flex;align-items:center;border-radius:999px}
.dsyp-bar.has-fold{background:var(--dsyp-dark);padding:4px 4px 4px 6px;box-shadow:0 10px 30px -8px rgba(0,0,0,.45)}
.dsyp .dsyp-fold{width:42px;height:54px;border:0;padding:0;background:transparent;color:#fff;display:flex;align-items:center;justify-content:center;border-radius:999px 0 0 999px;transition:transform .2s}
.dsyp .dsyp-fold:hover,.dsyp .dsyp-fold:focus{background:transparent;color:var(--dsyp-accent)}
.dsyp .dsyp-fold svg{width:14px;height:22px;transition:transform .25s}
.dsyp .dsyp-fold[aria-expanded="true"] svg{transform:rotate(180deg)}
.dsyp.is-open .dsyp-fold{visibility:hidden}
.dsyp-bar.has-fold .dsyp-launcher{box-shadow:none}
/* Telakan kuvakortti */
.dsyp-dock{width:100%;animation:dsyp-in .4s cubic-bezier(.2,.8,.2,1)}
.dsyp .dsyp-card{position:relative;display:flex;align-items:center;min-height:200px;border-radius:18px;overflow:hidden;text-decoration:none;color:#1c1e21;background:#f3f1ec;box-shadow:0 18px 40px -16px rgba(0,0,0,.45),0 2px 6px rgba(0,0,0,.1)}
.dsyp .dsyp-card.has-img::before{content:"";position:absolute;inset:0;background:var(--dsyp-card-img) right center/cover no-repeat}
.dsyp .dsyp-card.has-img::after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(247,246,242,.98) 0%,rgba(247,246,242,.94) 42%,rgba(247,246,242,.35) 68%,rgba(247,246,242,0) 85%)}
.dsyp-card__txt{position:relative;z-index:1;display:flex;flex-direction:column;gap:6px;padding:22px 24px;max-width:66%}
.dsyp-card__txt b{font-size:19px;line-height:1.2}
.dsyp-card__txt>span:not(.dsyp-card__btn){font-size:14.5px;line-height:1.45;color:#3b3f45}
.dsyp-card__btn{margin-top:8px;align-self:flex-start;display:inline-flex;align-items:center;gap:8px;background:var(--dsyp-dark);color:#fff;border-radius:999px;padding:10px 18px;font-weight:600;font-size:14.5px;transition:background-color .15s,color .15s}
.dsyp-card__btn svg{width:12px;height:12px}
.dsyp .dsyp-card:hover .dsyp-card__btn{background:var(--dsyp-accent);color:var(--dsyp-accent-ink)}
.dsyp.is-open .dsyp-stack{display:none}

/* Kortti väistää lomaketta, avoimen paneelin palkki ja mobiilin sijainti */
.dsyp-dock{transition:opacity .25s,transform .25s,visibility .25s}
.dsyp-dock.is-blocked{opacity:0;visibility:hidden;transform:translateY(10px);pointer-events:none}
.dsyp.is-open .dsyp-bar.has-fold{background:transparent;box-shadow:none}
.dsyp.is-open .dsyp-fold{visibility:hidden;width:0}
.dsyp-bar.has-fold .dsyp-launcher::after{inset:-3px}
@media (max-width:600px){
  .dsyp-bar{right:16px;bottom:var(--dsyp-bottom-m)}
  .dsyp-stack{right:16px;bottom:calc(var(--dsyp-bottom-m) + 76px)}
  .dsyp .dsyp-fold{height:48px;width:38px}
}
