/* DSK sticky callbar owner v1
   Protected-safe visual contract for PL mobile quick contact.
   Existing sticky rules in broader bundles stay as PARKED_COMPAT. */

:root{
  --dsk-stickybar-bottom:calc(env(safe-area-inset-bottom, 0px) + 8px);
  --dsk-stickybar-pad-x:12px;
  --dsk-stickybar-height:58px;
}

.dsk-stickybar{
  position:fixed;
  left:0;
  right:0;
  bottom:var(--dsk-stickybar-bottom);
  width:100%;
  max-width:100vw;
  height:auto;
  min-height:0;
  margin:0;
  padding:0 var(--dsk-stickybar-pad-x);
  box-sizing:border-box;
  display:none;
  background:transparent;
  border:0;
  box-shadow:none;
  opacity:1;
  pointer-events:none;
  transform:translate3d(0, 0, 0);
  transition:transform 220ms ease, opacity 220ms ease;
  z-index:2147483000;
}

.dsk-stickybar__inner{
  width:100%;
  max-width:720px;
  margin:0 auto;
  padding:0;
  box-sizing:border-box;
}

.dsk-stickybar .dsk-stickybar__inner{
  width:100%;
  max-width:720px;
  margin:0 auto;
  padding:0;
  box-sizing:border-box;
}

.dsk-stickybar__card{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  width:100%;
  min-width:0;
  margin:0;
  padding:4px;
  box-sizing:border-box;
  border-radius:999px;
  background:rgba(255, 255, 255, 0.80);
  border:1px solid rgba(148, 163, 184, 0.26);
  box-shadow:0 10px 28px rgba(15, 23, 42, 0.18);
  backdrop-filter:blur(14px) saturate(140%);
  -webkit-backdrop-filter:blur(14px) saturate(140%);
  pointer-events:auto;
}

.dsk-stickybar .dsk-stickybar__card{
  justify-content:center;
  gap:6px;
  width:100%;
  min-width:0;
  margin:0;
  padding:4px;
  box-sizing:border-box;
  border-radius:999px;
  backdrop-filter:blur(14px) saturate(140%);
  -webkit-backdrop-filter:blur(14px) saturate(140%);
  pointer-events:auto;
}

.dsk-stickybar__btn{
  flex:1 1 0;
  width:50%;
  min-width:0;
  min-height:44px;
  height:44px;
  padding:0 12px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  border-radius:999px;
  box-sizing:border-box;
  font-family:inherit;
  font-size:0.875rem;
  line-height:1;
  font-weight:800;
  letter-spacing:0;
  text-align:center;
  text-decoration:none;
  white-space:nowrap;
  pointer-events:auto;
  -webkit-tap-highlight-color:transparent;
}

.dsk-stickybar__btn::before{
  width:16px;
  height:16px;
  flex:0 0 16px;
  background-size:16px 16px;
  background-position:center center;
  transform:none;
}

.dsk-stickybar__chat{
  order:1;
  background:rgba(19, 84, 146, 0.94);
  color:#fff;
  border:1px solid rgba(255, 255, 255, 0.16);
  box-shadow:0 6px 18px rgba(19, 84, 146, 0.20);
  text-shadow:none;
}

.dsk-stickybar__call{
  order:2;
  background:linear-gradient(180deg, rgba(15, 153, 74, 0.96) 0%, rgba(11, 122, 60, 0.98) 100%);
  color:#fff;
  border:1px solid rgba(255, 255, 255, 0.16);
  box-shadow:0 7px 18px rgba(11, 122, 60, 0.24);
  text-shadow:none;
}

:is(html[lang="pl"], html[lang="uk"]) body .dsk-stickybar .dsk-stickybar__btn,
:is(html[lang="pl"], html[lang="uk"]) body .dsk-stickybar .dsk-stickybar__btn:link,
:is(html[lang="pl"], html[lang="uk"]) body .dsk-stickybar .dsk-stickybar__btn:visited,
:is(html[lang="pl"], html[lang="uk"]) body .dsk-stickybar .dsk-stickybar__btn:hover,
:is(html[lang="pl"], html[lang="uk"]) body .dsk-stickybar .dsk-stickybar__btn:active,
:is(html[lang="pl"], html[lang="uk"]) body .dsk-stickybar .dsk-stickybar__btn:focus-visible{
  color:#fff;
  -webkit-text-fill-color:#fff;
}

:is(html[lang="pl"], html[lang="uk"]) body .dsk-stickybar .dsk-stickybar__btn *,
:is(html[lang="pl"], html[lang="uk"]) body .dsk-stickybar .dsk-stickybar__btn span,
:is(html[lang="pl"], html[lang="uk"]) body .dsk-stickybar .dsk-stickybar__btn strong,
:is(html[lang="pl"], html[lang="uk"]) body .dsk-stickybar .dsk-stickybar__btn em{
  color:#fff;
  -webkit-text-fill-color:#fff;
}

.dsk-stickybar.dsk-stickybar--hide{
  transform:translate3d(0, calc(100% + 18px), 0);
  opacity:0;
}

.dsk-stickybar[aria-hidden="true"]{
  display:none;
  visibility:hidden;
  opacity:0;
  pointer-events:none;
  transform:translate3d(0, calc(100% + 18px), 0);
}

@media (max-width:768px), (hover:none) and (pointer:coarse){
  .dsk-stickybar{
    display:block;
  }

  body:not(.dsk-cookie-banner-open){
    padding-bottom:calc(var(--dsk-stickybar-height) + 20px + env(safe-area-inset-bottom, 0px));
  }

  body.dsk-cookie-banner-open .dsk-stickybar{
    display:none;
    visibility:hidden;
    opacity:0;
    pointer-events:none;
    transform:translate3d(0, calc(100% + 18px), 0);
  }

  body.dsk-cookie-banner-open .dsk-stickybar.dsk-stickybar--hide{
    opacity:0;
    transform:translate3d(0, calc(100% + 18px), 0);
  }
}

@media (max-width:360px){
  .dsk-stickybar{
    --dsk-stickybar-pad-x:10px;
  }

  .dsk-stickybar__btn{
    padding:0 9px;
    font-size:0.8125rem;
    gap:6px;
  }
}

@media (orientation:landscape) and (max-height:430px) and (max-width:960px){
  .dsk-stickybar,
  .dsk-stickybar.dsk-stickybar,
  body.dsk-cookie-banner-open .dsk-stickybar{
    display:none;
    visibility:hidden;
    opacity:0;
    pointer-events:none;
    transform:translate3d(0, calc(100% + 18px), 0);
  }

  body:not(.dsk-cookie-banner-open){
    padding-bottom:env(safe-area-inset-bottom, 0px);
  }
}

@media (min-width:769px) and (hover:hover) and (pointer:fine){
  .dsk-stickybar,
  .dsk-stickybar.dsk-stickybar{
    display:none;
    visibility:hidden;
    opacity:0;
    pointer-events:none;
  }
}

@supports (-moz-appearance:none){
  .dsk-stickybar__btn:active{
    transform:none;
  }
}
