.td-online-services {
    --td-violet: #5123b8;
    --td-violet-dark: #34208f;
    --td-magenta: #b638a5;
    --td-ink: #2f313e;
    --td-muted: #696b76;
    --td-line: #e6e1f2;
    --td-green: #43aa63;
    position: fixed;
    z-index: 4800;
    top: 50%;
    right: 0;
    display: flex;
    align-items: center;
    transform: translateY(-50%);
    font-family: Onest, "Onest Fallback", Arial, sans-serif;
    font-size: 15px;
    line-height: 1.35;
    letter-spacing: 0;
}

.td-online-services[aria-hidden="true"],
.td-online-services.is-suspended {
    display: none !important;
}

.td-online-services *,
.td-online-services *::before,
.td-online-services *::after {
    box-sizing: border-box;
    letter-spacing: 0;
}

.td-online-services__launcher {
    display: inline-flex;
    width: 54px;
    min-width: 54px;
    height: 148px;
    padding: 11px 8px;
    border: 0;
    border-radius: 12px 0 0 12px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 9px;
    background: var(--td-violet);
    box-shadow: 0 12px 32px rgba(38, 21, 95, .24);
    color: #fff;
    cursor: pointer;
    transition: background-color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.td-online-services__launcher:hover {
    background: var(--td-violet-dark);
    box-shadow: 0 14px 36px rgba(38, 21, 95, .31);
}

.td-online-services__launcher:active {
    transform: translateX(2px);
}

.td-online-services__launcher svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex: 0 0 auto;
}

.td-online-services__launcher span {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.td-online-services__panel {
    position: absolute;
    right: 68px;
    width: min(344px, calc(100vw - 92px));
    max-height: calc(100vh - 32px);
    overflow: auto;
    padding: 22px;
    border: 1px solid rgba(81, 35, 184, .15);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 24px 64px rgba(30, 20, 72, .24);
    color: var(--td-ink);
}

.td-online-services__panel[hidden] {
    display: none !important;
}

.td-online-services__panel:not([hidden]) {
    animation: td-services-in .2s ease-out both;
}

.td-online-services__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.td-online-services__eyebrow {
    display: block;
    margin-bottom: 5px;
    color: var(--td-violet);
    font-size: 11px;
    font-weight: 700;
    line-height: 1.25;
    text-transform: uppercase;
}

.td-online-services__header h2 {
    margin: 0;
    color: var(--td-ink);
    font: 700 23px/1.15 Onest, "Onest Fallback", Arial, sans-serif;
}

.td-online-services__close {
    display: inline-flex;
    width: 44px;
    height: 44px;
    margin: -8px -8px 0 0;
    padding: 0;
    border: 0;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    background: #f5f2fb;
    color: var(--td-violet-dark);
    cursor: pointer;
    flex: 0 0 auto;
}

.td-online-services__close:hover {
    background: #ece6f8;
}

.td-online-services__close svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
}

.td-online-services__features {
    display: grid;
    gap: 10px;
    margin: 20px 0;
    padding: 0;
    list-style: none;
}

.td-online-services__features li {
    display: grid;
    min-width: 0;
    grid-template-columns: 28px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    color: var(--td-ink);
    font-size: 14px;
    font-weight: 500;
}

.td-online-services__features li > span {
    display: inline-flex;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    background: #f0ebfa;
    color: var(--td-violet);
    font-size: 12px;
    font-weight: 800;
}

.td-online-services__actions {
    display: grid;
    gap: 6px;
}

.td-online-services__primary {
    display: flex;
    min-height: 48px;
    padding: 12px 15px;
    border-radius: 6px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: var(--td-violet);
    color: #fff !important;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none !important;
    transition: background-color .18s ease;
}

.td-online-services__primary:hover {
    background: var(--td-violet-dark);
}

.td-online-services__primary svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.td-online-services__booking {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    color: var(--td-violet-dark) !important;
    font-size: 13px;
    font-weight: 700;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.td-online-services__bots {
    margin-top: 16px;
    padding-top: 15px;
    border-top: 1px solid var(--td-line);
}

.td-online-services__bots > span {
    display: block;
    margin-bottom: 9px;
    color: var(--td-muted);
    font-size: 12px;
    font-weight: 600;
}

.td-online-services__bots > div {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.td-online-services__bots a {
    display: inline-flex;
    min-height: 44px;
    padding: 9px 11px;
    border: 1px solid var(--td-line);
    border-radius: 6px;
    align-items: center;
    justify-content: center;
    gap: 7px;
    background: #fff;
    color: var(--td-ink) !important;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none !important;
}

.td-online-services__bots a:hover {
    border-color: rgba(81, 35, 184, .45);
    background: #faf8fe;
}

.td-online-services__bots svg {
    width: 21px;
    height: 21px;
    fill: #2aabee;
    stroke: #fff;
    stroke-width: 1.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.td-online-services__max-icon {
    display: inline-flex;
    width: 21px;
    height: 21px;
    border-radius: 7px;
    align-items: center;
    justify-content: center;
    background: #5b2bd3;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
}

.td-online-services button:focus-visible,
.td-online-services a:focus-visible {
    outline: 3px solid var(--td-green);
    outline-offset: 3px;
}

@keyframes td-services-in {
    from { opacity: 0; transform: translateX(10px); }
    to { opacity: 1; transform: translateX(0); }
}

@media (max-width: 767px) {
    .td-online-services {
        top: 54%;
    }

    .td-online-services__launcher {
        width: 50px;
        min-width: 50px;
        height: 52px;
        padding: 0;
        border-radius: 10px 0 0 10px;
    }

    .td-online-services__launcher span {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
    }

    .td-online-services__panel {
        position: fixed;
        top: 50%;
        right: 16px;
        width: calc(100vw - 64px);
        max-height: calc(100vh - 32px);
        padding: 20px;
        transform: translateY(-50%);
    }

    .td-online-services__panel:not([hidden]) {
        animation-name: td-services-mobile-in;
    }

    .td-online-services.is-open .td-online-services__launcher {
        visibility: hidden;
    }

    .td-online-services__header h2 {
        font-size: 21px;
    }
}

@media (max-width: 359px) {
    .td-online-services__panel {
        right: 10px;
        width: calc(100vw - 60px);
        padding: 16px;
    }

    .td-online-services__features {
        margin: 16px 0;
    }

    .td-online-services__header h2 {
        font-size: 19px;
    }
}

@keyframes td-services-mobile-in {
    from { opacity: 0; transform: translate(8px, -50%); }
    to { opacity: 1; transform: translate(0, -50%); }
}

@media (prefers-reduced-motion: reduce) {
    .td-online-services *,
    .td-online-services *::before,
    .td-online-services *::after {
        scroll-behavior: auto !important;
        animation: none !important;
        transition: none !important;
    }
}
