
  .sp-contact-widget,
  .sp-contact-widget * { box-sizing: border-box; }

  .sp-contact-widget {
    --scw-cream: #F5F0E7;
    --scw-white: #FFFFFF;
    --scw-text: #3F3F3F;
    --scw-muted: rgba(63,63,63,.66);
    --scw-line: rgba(63,63,63,.10);
    --scw-coral: #EFA7A0;
    --scw-coral-dark: #D9827A;
    --scw-sage: #8FC9B6;
    --scw-sage-dark: #4F8575;

    position: fixed;
    z-index: 2147481000;
    right: max(22px, env(safe-area-inset-right));
    bottom: max(22px, env(safe-area-inset-bottom));
    display: flex;
    width: min(322px, calc(100vw - 44px));
    flex-direction: column;
    align-items: flex-end;
    color: var(--scw-text);
    font-family: var(--t-text-font, Arial, sans-serif);
    pointer-events: none;
    transition: opacity .22s ease, transform .28s ease, visibility 0s linear 0s;
  }

  .sp-contact-widget.is-suppressed {
    visibility: hidden;
    opacity: 0;
    transform: translate3d(0, 12px, 0);
    transition: opacity .2s ease, transform .24s ease, visibility 0s linear .24s;
  }

  .sp-contact-widget__panel {
    position: relative;
    width: 100%;
    max-height: calc(100vh - 88px - env(safe-area-inset-bottom));
    margin: 0 0 9px;
    padding: 16px;
    overflow-x: hidden;
    overflow-y: auto;
    border: 1px solid rgba(255,255,255,.88);
    border-radius: 23px;
    visibility: hidden;
    opacity: 0;
    background: linear-gradient(145deg, rgba(255,255,255,.985), rgba(245,240,231,.975));
    box-shadow: 0 24px 64px rgba(63,63,63,.17);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    pointer-events: none;
    transform: translate3d(0, 14px, 0) scale(.985);
    transform-origin: right bottom;
    transition:
      opacity .22s ease,
      transform .3s cubic-bezier(.22,.61,.36,1),
      visibility 0s linear .3s;
    overscroll-behavior: contain;
    scrollbar-width: thin;
  }

  .sp-contact-widget.is-open .sp-contact-widget__panel {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transform: translate3d(0, 0, 0) scale(1);
    transition-delay: 0s;
  }

  .sp-contact-widget__head {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr) 36px;
    gap: 12px;
    align-items: center;
    margin-bottom: 17px;
  }

  .sp-contact-widget__avatar {
    position: relative;
    width: 52px;
    height: 52px;
    overflow: hidden;
    border: 3px solid rgba(255,255,255,.98);
    border-radius: 50%;
    background: var(--scw-coral);
    box-shadow: 0 8px 20px rgba(63,63,63,.11);
  }

  .sp-contact-widget__avatar img {
    position: relative;
    z-index: 2;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }

  .sp-contact-widget__avatar-fallback {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: grid;
    place-items: center;
    color: var(--scw-white);
    font-family: var(--t-headline-font, Arial, sans-serif);
    font-size: 22px;
    font-weight: 800;
  }

  .sp-contact-widget__heading { min-width: 0; }

  .sp-contact-widget__title {
    display: block;
    margin: 0 0 3px;
    color: var(--scw-text);
    font-family: var(--t-headline-font, Arial, sans-serif);
    font-size: 18px;
    font-weight: 790;
    line-height: 1.16;
    letter-spacing: -.02em;
  }

  .sp-contact-widget__subtitle {
    display: block;
    color: var(--scw-muted);
    font-size: 10.5px;
    line-height: 1.3;
  }

  .sp-contact-widget__close {
    display: grid;
    width: 32px;
    height: 32px;
    padding: 0;
    place-items: center;
    border: 1px solid rgba(63,63,63,.08);
    border-radius: 50%;
    color: rgba(63,63,63,.62);
    background: rgba(255,255,255,.82);
    cursor: pointer;
    transition: color .2s ease, background .2s ease, transform .2s ease;
  }

  .sp-contact-widget__close:hover,
  .sp-contact-widget__close:focus-visible {
    color: var(--scw-text);
    background: var(--scw-white);
    transform: rotate(5deg);
    outline: none;
  }

  .sp-contact-widget__close svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
  }

  .sp-contact-widget__options {
    display: grid;
    gap: 7px;
  }

  .sp-contact-widget__option {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) 16px;
    gap: 10px;
    align-items: center;
    min-height: 56px;
    padding: 7px 10px 7px 7px;
    border: 1px solid var(--scw-line);
    border-radius: 16px;
    color: var(--scw-text) !important;
    background: rgba(255,255,255,.88);
    box-shadow: 0 7px 18px rgba(63,63,63,.055);
    text-decoration: none !important;
    transition: transform .2s ease, border-color .2s ease, background .2s ease, box-shadow .2s ease;
  }

  .sp-contact-widget__option:hover,
  .sp-contact-widget__option:focus-visible {
    color: var(--scw-text) !important;
    border-color: rgba(217,130,122,.34);
    background: var(--scw-white);
    box-shadow: 0 11px 23px rgba(63,63,63,.09);
    transform: translateY(-2px);
    outline: none;
  }

  .sp-contact-widget__icon {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    overflow: hidden;
    border-radius: 50%;
  }

  .sp-contact-widget__icon--max {
    position: relative;
    overflow: hidden;
    color: var(--scw-text);
    background: #F0F2F3;
  }

  .sp-contact-widget__icon--max img {
    position: relative;
    z-index: 2;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
  }

  .sp-contact-widget__max-fallback {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: grid;
    place-items: center;
    color: #FFFFFF;
    font-family: Arial, sans-serif;
    font-size: 8px;
    font-weight: 900;
    letter-spacing: -.05em;
  }

  .sp-contact-widget__icon--telegram {
    color: #FFFFFF;
    background: #2AABEE;
  }

  .sp-contact-widget__icon--phone {
    color: var(--scw-sage-dark);
    background: rgba(143,201,182,.22);
  }

  .sp-contact-widget__icon svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.75;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .sp-contact-widget__icon--telegram svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
    stroke: none;
  }

  .sp-contact-widget__option-copy { min-width: 0; }

  .sp-contact-widget__option-title {
    display: block;
    margin: 0 0 2px;
    font-size: 13.5px;
    font-weight: 780;
    line-height: 1.25;
  }

  .sp-contact-widget__option-note {
    display: block;
    overflow: hidden;
    color: var(--scw-muted);
    font-size: 11px;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .sp-contact-widget__arrow {
    width: 17px;
    height: 17px;
    color: rgba(63,63,63,.43);
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .sp-contact-widget__launcher {
    position: relative;
    isolation: isolate;
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) auto;
    width: 248px;
    min-height: 56px;
    align-items: center;
    gap: 9px;
    padding: 5px 8px 5px 6px;
    border: 1px solid rgba(255,255,255,.92);
    border-radius: 999px;
    color: var(--scw-text);
    background: rgba(255,255,255,.96);
    box-shadow: 0 14px 34px rgba(63,63,63,.16);
    font: inherit;
    cursor: pointer;
    pointer-events: auto;
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease, background .2s ease;
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
  }

  .sp-contact-widget__launcher::before,
  .sp-contact-widget__launcher::after {
    content: "";
    position: absolute;
    z-index: -1;
    inset: -1px;
    border: 1px solid rgba(217,130,122,.32);
    border-radius: inherit;
    opacity: 0;
    pointer-events: none;
    transform: scale(1);
    animation: scwWidgetRipple 5.4s cubic-bezier(.22,.61,.36,1) infinite;
  }

  .sp-contact-widget__launcher::after {
    animation-delay: .95s;
  }

  .sp-contact-widget.is-open .sp-contact-widget__launcher::before,
  .sp-contact-widget.is-open .sp-contact-widget__launcher::after {
    animation: none;
    opacity: 0;
  }

  .sp-contact-widget__launcher:hover,
  .sp-contact-widget__launcher:focus-visible {
    border-color: rgba(217,130,122,.34);
    background: #FFFFFF;
    box-shadow: 0 17px 38px rgba(63,63,63,.19);
    transform: translateY(-2px);
    outline: none;
  }

  .sp-contact-widget__launcher-avatar {
    position: relative;
    width: 44px;
    height: 44px;
    overflow: hidden;
    border: 2px solid rgba(255,255,255,.98);
    border-radius: 50%;
    background: var(--scw-coral);
    box-shadow: 0 7px 17px rgba(63,63,63,.11);
  }

  .sp-contact-widget__launcher-avatar img {
    position: relative;
    z-index: 2;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }

  .sp-contact-widget__launcher-fallback {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: grid;
    place-items: center;
    color: #FFFFFF;
    font-family: var(--t-headline-font, Arial, sans-serif);
    font-size: 18px;
    font-weight: 800;
  }

  .sp-contact-widget__launcher-copy {
    min-width: 0;
    text-align: left;
  }

  .sp-contact-widget__launcher-role,
  .sp-contact-widget__launcher-name {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .sp-contact-widget__launcher-role {
    margin-bottom: 1px;
    color: var(--scw-muted);
    font-size: 10.5px;
    font-weight: 600;
    line-height: 1.2;
  }

  .sp-contact-widget__launcher-name {
    color: var(--scw-text);
    font-size: 12.5px;
    font-weight: 780;
    line-height: 1.2;
  }

  .sp-contact-widget__launcher-action {
    display: grid;
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    place-items: center;
    border-radius: 50%;
    color: #FFFFFF;
    background: var(--scw-coral-dark);
    box-shadow: 0 7px 16px rgba(217,130,122,.22);
    transition: background .2s ease, transform .25s ease, box-shadow .25s ease;
  }

  .sp-contact-widget__launcher:hover .sp-contact-widget__launcher-action,
  .sp-contact-widget__launcher:focus-visible .sp-contact-widget__launcher-action {
    background: #C8746D;
    transform: scale(1.05);
  }

  .sp-contact-widget.is-open .sp-contact-widget__launcher-action {
    background: var(--scw-sage-dark);
    transform: rotate(45deg);
    box-shadow: none;
  }

  .sp-contact-widget__launcher-action svg {
    width: 15px;
    height: 15px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  @keyframes scwWidgetRipple {
    0%, 58% {
      opacity: 0;
      transform: scale(1);
    }
    62% {
      opacity: .24;
      transform: scale(1.012);
    }
    82% {
      opacity: 0;
      transform: scale(1.105, 1.32);
    }
    100% {
      opacity: 0;
      transform: scale(1.105, 1.32);
    }
  }

  .sp-contact-widget-editor-preview {
    width: min(100% - 32px, 620px);
    margin: 20px auto;
    padding: 20px 22px;
    border: 1px dashed rgba(79,133,117,.34);
    border-radius: 22px;
    color: var(--scw-text, #3F3F3F);
    background: linear-gradient(145deg, rgba(255,255,255,.96), rgba(245,240,231,.96));
    font-family: var(--t-text-font, Arial, sans-serif);
  }

  .sp-contact-widget-editor-preview strong {
    display: block;
    margin-bottom: 6px;
    color: #D9827A;
    font-family: var(--t-headline-font, Arial, sans-serif);
    font-size: 18px;
    line-height: 1.2;
  }

  .sp-contact-widget-editor-preview span {
    display: block;
    color: rgba(63,63,63,.68);
    font-size: 13px;
    line-height: 1.5;
  }

  @media (max-width: 780px) {
    .sp-contact-widget {
      right: max(12px, env(safe-area-inset-right));
      bottom: max(12px, env(safe-area-inset-bottom));
      left: auto;
      width: min(304px, calc(100vw - 24px));
    }

    .sp-contact-widget__panel {
      max-height: calc(100vh - 80px - env(safe-area-inset-bottom));
      padding: 15px;
      border-radius: 22px;
      transform-origin: right bottom;
    }

    .sp-contact-widget__launcher {
      width: min(248px, calc(100vw - 24px));
    }
  }

  @media (max-width: 390px) {
    .sp-contact-widget__panel { padding: 13px; border-radius: 20px; }
    .sp-contact-widget__head { grid-template-columns: 40px minmax(0, 1fr) 30px; gap: 8px; }
    .sp-contact-widget__avatar { width: 40px; height: 40px; }
    .sp-contact-widget__title { font-size: 15px; }
    .sp-contact-widget__subtitle { font-size: 10.5px; }
    .sp-contact-widget__option { min-height: 54px; border-radius: 15px; }
    .sp-contact-widget__icon { width: 38px; height: 38px; }
    .sp-contact-widget__launcher { width: min(240px, calc(100vw - 24px)); }
    .sp-contact-widget__launcher-avatar { width: 42px; height: 42px; }
  }

  @media (max-height: 520px) and (max-width: 780px) {
    .sp-contact-widget__head { margin-bottom: 11px; }
    .sp-contact-widget__subtitle { display: none; }
    .sp-contact-widget__option { min-height: 56px; }
  }

  @media (prefers-reduced-motion: reduce) {
    .sp-contact-widget,
    .sp-contact-widget__panel,
    .sp-contact-widget__close,
    .sp-contact-widget__option,
    .sp-contact-widget__launcher,
    .sp-contact-widget__launcher-action { transition: none; animation: none; }
    .sp-contact-widget__launcher::before,
    .sp-contact-widget__launcher::after { animation: none; }
  }

.sp-contact-widget__title,.sp-contact-widget__option-title,.sp-contact-widget__launcher-name{font-weight:700}
