/* ORTOTOP V34 - końcowy kontakt po stopce. Nie ingeruje w wygląd stopki V31,
   istniejące przyciski Tawk ani formularz rejestracji. */
.otop-after-footer-chat,
.otop-after-footer-chat * { box-sizing:border-box; }

.otop-after-footer-chat {
  position:relative;
  z-index:1;
  isolation:isolate;
  width:100%;
  margin:0;
  overflow:hidden;
  color:#173c30;
  background:#f6f8f6;
  border-top:1px solid rgba(12,80,59,.20);
  border-bottom:3px solid #d6ad40;
  font-family:Rajdhani,sans-serif;
}
.otop-after-footer-chat::before,
.otop-after-footer-chat::after {
  content:"";
  position:absolute;
  z-index:-1;
  pointer-events:none;
  display:block;
}
.otop-after-footer-chat::before {
  inset:0 auto 0 0;
  width:min(46%, 520px);
  background:#e8efeb;
  clip-path:polygon(0 0, 100% 0, 65% 100%, 0 100%);
}
.otop-after-footer-chat::after {
  inset:0 0 0 auto;
  width:min(31%, 380px);
  background:#eef3ef;
  clip-path:polygon(36% 0, 100% 0, 100% 100%, 0 100%);
}
.otop-after-footer-chat__inner {
  position:relative;
  display:flex;
  align-items:center;
  justify-content:space-between;
  width:100%;
  max-width:1120px;
  min-height:120px;
  margin:0 auto;
  padding:22px 30px;
  gap:24px;
}
.otop-after-footer-chat__copy { min-width:0; }
.otop-after-footer-chat__eyebrow {
  display:block;
  margin:0 0 6px;
  color:#8b6c22;
  font:700 12px/1.1 Rajdhani,sans-serif;
  letter-spacing:.11em;
}
.otop-after-footer-chat__eyebrow span { padding:0 6px; color:#9da9a1; }
.otop-after-footer-chat__copy h2 {
  margin:0 !important;
  padding:0 !important;
  color:#0a4b38 !important;
  font:700 clamp(25px, 2.4vw, 33px)/1 Rajdhani,sans-serif !important;
  text-transform:none !important;
  letter-spacing:.01em !important;
}
.otop-after-footer-chat__copy h2::after { content:none !important; display:none !important; }
.otop-after-footer-chat__copy p {
  margin:5px 0 0 !important;
  color:#52675d !important;
  font:500 15px/1.3 Rajdhani,sans-serif !important;
}
.otop-after-footer-chat__button {
  position:relative !important;
  z-index:0;
  display:flex !important;
  align-items:center;
  justify-content:center;
  flex:0 0 260px;
  gap:14px;
  width:260px;
  min-width:260px;
  height:68px;
  min-height:68px;
  margin:0 !important;
  padding:10px 16px 12px !important;
  border:0 !important;
  border-radius:0 !important;
  background-color:#0b5943 !important;
  background-image:url('ortotop-assets/otop-menu-chat-facets.svg') !important;
  background-position:center !important;
  background-size:100% 100% !important;
  background-repeat:no-repeat !important;
  -webkit-clip-path:polygon(0 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%) !important;
  clip-path:polygon(0 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%) !important;
  box-shadow:none !important;
  color:#fff !important;
  text-align:left;
  font-family:Rajdhani,sans-serif !important;
  cursor:pointer;
  transition:filter .18s ease;
}
.otop-after-footer-chat__button:hover,
.otop-after-footer-chat__button:focus-visible { filter:brightness(1.13); }
.otop-after-footer-chat__button:focus-visible { outline:2px solid #e9bd4a !important; outline-offset:-4px; }
.otop-after-footer-chat__icon {
  position:relative;
  z-index:2;
  display:block;
  flex:0 0 24px;
  color:#f6cc61;
}
.otop-after-footer-chat__button-copy {
  position:relative;
  z-index:2;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  min-width:0;
  gap:2px;
}
.otop-after-footer-chat__button-copy strong {
  color:#fff;
  font:700 21px/1 Rajdhani,sans-serif;
  text-transform:uppercase;
  letter-spacing:.018em;
  white-space:nowrap;
}
.otop-after-footer-chat__button-copy small {
  color:#f4cf79;
  font:600 12px/1 Rajdhani,sans-serif;
  letter-spacing:.045em;
  text-transform:uppercase;
  white-space:nowrap;
}
.otop-after-footer-chat__outline {
  position:absolute;
  z-index:1;
  inset:0;
  width:100%;
  height:100%;
  display:block;
  pointer-events:none;
  overflow:visible;
}
.otop-after-footer-chat__outline path {
  fill:none;
  stroke:#ffe5a0;
  stroke-width:2.15;
  stroke-linecap:butt;
  stroke-linejoin:miter;
  stroke-dasharray:10 90;
  stroke-dashoffset:100;
  filter:drop-shadow(0 0 2px rgba(255,224,145,.98)) drop-shadow(0 0 5px rgba(240,176,50,.62));
  opacity:0;
  animation:otop-outline-chase-v8 24.8s linear infinite;
  animation-delay:-12.4s;
}
@media (max-width:700px) {
  .otop-after-footer-chat__inner {
    flex-direction:column;
    align-items:stretch;
    justify-content:center;
    gap:15px;
    min-height:0;
    padding:24px 18px 27px;
  }
  .otop-after-footer-chat__copy { text-align:center; }
  .otop-after-footer-chat__eyebrow { font-size:11px; }
  .otop-after-footer-chat__copy h2 { font-size:27px !important; }
  .otop-after-footer-chat__copy p { max-width:340px; margin:5px auto 0 !important; font-size:14px !important; }
  .otop-after-footer-chat__button { flex:0 0 68px; align-self:center; max-width:100%; }
}
@media (max-width:767px) {
  /* Przy widocznym dolnym CTA chowamy drugi, pływający launcher mobilny. */
  html.otop-after-footer-chat--visible .otop-tawk-mobile-launcher {
    visibility:hidden !important;
    opacity:0 !important;
    pointer-events:none !important;
  }
}
@media (prefers-reduced-motion:reduce) {
  .otop-after-footer-chat__button { transition:none; }
  .otop-after-footer-chat__outline path { animation:none !important; opacity:0 !important; }
}
