.vse-pub-lead .spcl-modal__actions > :is(a,button) {
  display: flex;
  box-sizing: border-box;
  gap: 6px;
  justify-content: center;
  align-items: center;
  border: 0;
  border-radius: 9px;
  min-height: 44px;
  padding: 7px 8px;
  color: white !important;
  font: 650 14px/1.2 Arial, sans-serif;
  text-decoration: none;
  cursor: pointer;
}
body .vse-pub-lead .spcl-modal__actions > .vse-pub-call { background: #ffae19 !important; color: #332000 !important; }
body .vse-pub-lead .spcl-modal__actions > .vse-pub-telegram { background: #1279ad !important; }
body .vse-pub-lead .spcl-modal__actions > .vse-pub-chat { background: #fff; color: #065abc !important; border: 1px solid #a8c7ec; }
body .vse-pub-lead .spcl-modal__actions > .vse-pub-max { background: #0066d9 !important; }
.vse-pub-lead .spcl-modal__actions > :is(a,button):hover { filter: brightness(.92); }
.vse-pub-lead .spcl-modal__actions > :is(a,button):focus-visible,
.vse-pub-inline-chat:focus-visible { outline: 2px solid #032e70; outline-offset: 2px; }
.vse-pub-lead .spcl-callback__status:empty { display: none; }
.vse-pub-inline-chat {
  background: transparent;
  border: 0;
  color: #065abc;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 3px;
}
@media (max-width: 900px) {
  .vse-pub-lead .spcl-modal__dialog { padding: 14px !important; overscroll-behavior: contain; }
  .vse-pub-lead .spcl-modal__title { font-size: 19px !important; margin-bottom: 10px !important; }
  .vse-pub-lead .spcl-callback { padding: 0 !important; border: 0; background: none; margin: 0 !important; }
  .vse-pub-lead .spcl-callback__grid { gap: 6px; }
  .vse-pub-lead .spcl-callback input { font-size: 16px; }
  .vse-pub-lead .spcl-callback__submit { margin-top: 8px; }
  .vse-pub-lead .spcl-modal__section-title { margin: 10px 0 6px !important; }
  .vse-pub-lead .spcl-modal__actions { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
}
@media (max-width: 760px) {
  .vse-pub-desktop-launcher { display: none !important; }
  body .mobile_block.vse-pub-mobile {
    display: grid;
    left: 12px !important;
    right: 12px !important;
    width: calc(100% - 24px) !important;
    max-width: none !important;
    margin-inline: 0 !important;
    transform: none !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 6px;
  }
  body .vse-pub-mobile > .mobile_callback {
    grid-column: 1 / -1;
    box-sizing: border-box;
    width: 100% !important;
    margin-inline: 0 !important;
    transform: none !important;
  }
  body .vse-pub-mobile > .mobile_block__messenger {
    min-width: 0 !important;
    padding-inline: 4px !important;
    gap: 3px !important;
  }
  body .vse-pub-mobile > .vse-pub-rutube {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #202b3f;
    color: #fff;
    border-radius: 14px;
    min-height: 44px;
    font: 800 12px/1 Arial, sans-serif;
  }
}

.vse-pub-lead .spcl-modal__actions svg { width: 16px; height: 16px; flex: 0 0 16px; }


body .vse-pub-lead .spcl-callback label .vse-pub-optional { display: inline; margin: 0; font: inherit; }

/* Published VSE articles only. Layout coordinates come from the visible viewport. */
@media (max-width: 900px) {
  body.vse-pub-contact-active .vse-pub-lead {
    inset: auto;
    top: var(--vse-vv-top, 0px);
    left: var(--vse-vv-left, 0px);
    width: var(--vse-vv-width, 100%);
    height: var(--vse-vv-height, 100dvh);
    grid-template: minmax(0, 1fr) / minmax(0, 1fr);
    box-sizing: border-box;
    padding: clamp(12px, 4vw, 16px) !important;
  }
  body .vse-pub-lead .spcl-modal__dialog {
    min-width: 0;
    max-height: 100% !important;
    padding: 16px !important;
    overscroll-behavior: contain;
  }
  body .vse-pub-lead :is(.spcl-modal__title,.spcl-callback span,.spcl-callback input,
    .spcl-callback__submit,.spcl-modal__section-title,.spcl-modal__actions > *) {
    font-family: Arial, sans-serif !important;
  }
  body .vse-pub-lead .spcl-modal__title {
    font-size: 1.1875rem !important;
    font-weight: 700;
    line-height: 1.22 !important;
  }
  body .vse-pub-lead .spcl-callback input {
    font-size: max(16px, 1rem) !important;
    min-height: 44px !important;
  }
  body .vse-pub-lead .spcl-callback label .vse-pub-optional {
    display: inline;
    margin: 0;
    color: #627084;
    font: inherit;
    font-weight: 400;
  }
  body .vse-pub-lead .spcl-modal__section-title {
    margin: 18px 0 8px !important;
    text-transform: none;
    letter-spacing: normal;
    font-size: .875rem;
    font-weight: 700;
  }
  body .vse-pub-lead .spcl-modal__actions > :is(a,button) {
    border: 0;
    border-radius: 10px;
    min-width: 0;
    min-height: 44px !important;
    font: 700 .875rem/1.2 Arial, sans-serif !important;
    color: #fff !important;
    overflow-wrap: anywhere;
  }
  body .vse-pub-lead .spcl-modal__actions > .vse-pub-call:any-link { background: #A64B08 !important; color: #fff !important; }
  body .vse-pub-lead .spcl-modal__actions > .vse-pub-telegram:any-link { background: #1279AD !important; color: #fff !important; }
  body .vse-pub-lead .spcl-modal__actions > .vse-pub-chat { background: #1D4C87 !important; color: #fff !important; }
  body .vse-pub-lead .spcl-modal__actions > .vse-pub-max:any-link { background: #0066D9 !important; color: #fff !important; }
  body .vse-pub-lead .spcl-modal__close { color: #20324C !important; }
}
@media (max-width: 760px) {
  body.vse-pub-contact-active {
    --vse-side-start: max(12px, env(safe-area-inset-left));
    --vse-side-end: max(12px, env(safe-area-inset-right));
    --vse-dock-bottom: calc(var(--vse-vv-bottom, 0px) + max(8px, env(safe-area-inset-bottom)));
    padding-bottom: calc(var(--vse-dock-height, 98px) + var(--vse-offer-height, 54px) + 28px + env(safe-area-inset-bottom));
  }
  body.vse-pub-contact-active .rutube_link { display: none !important; }
  body.vse-pub-contact-active .header {
    min-width: 0 !important;
    width: 100% !important;
  }
  body.vse-pub-contact-active :is(.header,.similar-posts,.footer,.site-useful-links) > .container {
    box-sizing: border-box;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0;
  }
  body.vse-pub-contact-active .mobile_block.vse-pub-mobile {
    left: calc(var(--vse-vv-left, 0px) + var(--vse-side-start)) !important;
    right: auto !important;
    bottom: var(--vse-dock-bottom) !important;
    width: calc(var(--vse-vv-width, 100vw) - var(--vse-side-start) - var(--vse-side-end)) !important;
    z-index: 99989 !important;
    gap: 6px !important;
  }
  body.vse-pub-contact-active.wp-theme-vse-klienty .spcl-floating-cta {
    left: calc(var(--vse-vv-left, 0px) + var(--vse-vv-width, 100vw) / 2);
    bottom: calc(var(--vse-dock-bottom) + var(--vse-dock-height, 98px) + 10px) !important;
    max-width: calc(var(--vse-vv-width, 100vw) - var(--vse-side-start) - var(--vse-side-end)) !important;
  }
  body.vse-pub-contact-active .vse-pub-mobile > .mobile_block__messenger {
    min-height: 44px !important;
    font: 700 .75rem/1.15 Arial, sans-serif !important;
  }
  body.vse-pub-contact-active .vse-pub-mobile > .mobile_block__messenger span {
    min-width: 0;
  }
  html.spcl-modal-open body.vse-pub-contact-active :is(.vse-pub-mobile,.spcl-floating-cta),
  html.pvchat-page-open body.vse-pub-contact-active :is(.vse-pub-mobile,.spcl-floating-cta) {
    visibility: hidden;
  }
  body.vse-pub-contact-active.vse-pub-narrow .vse-pub-mobile :is(img,svg) {
    width: 13px !important;
    height: 13px !important;
    flex: 0 0 13px !important;
  }
  body.vse-pub-contact-active.vse-pub-narrow .vse-pub-mobile .mobile_block__messenger--tg :is(svg,img,i) {
    display: none !important;
  }
}



@media (max-width: 767px) {
  body.vse-pub-contact-active #pvchat[open] {
    inset: var(--vse-vv-top, 0px) auto auto var(--vse-vv-left, 0px);
    width: var(--vse-vv-width, 100%);
    height: var(--vse-vv-height, 100dvh);
    max-width: none;
  }
  body.vse-pub-contact-active.vse-pub-narrow .vse-pub-mobile > .mobile_block__messenger {
    padding-inline: 2px !important;
    gap: 2px !important;
  }
  body.vse-pub-contact-active.vse-pub-narrow .vse-pub-mobile .mobile_block__messenger--tg .vse-mobile-icon {
    display: none !important;
  }
}
