.page-chatwoot-source-switcher {
    --source-green: #2d9172;
    --source-green-soft: #72bf9f;
    --source-blue: #3d7fe0;
    --source-blue-soft: #7ea7e5;
    --source-pink: #e160a9;
    --source-pink-soft: #e98bbb;
    --source-violet: #8b63d4;
    --source-violet-soft: #a483de;
    --source-neutral-border: rgba(18, 34, 28, 0.18);
    --source-neutral-text: var(--ux-text, #16382c);
    --launcher-border: rgba(18, 34, 28, 0.18);
    --launcher-text: var(--ux-text, #16382c);
    padding-bottom: 160px;
}

.page-chatwoot-source-switcher .entry-header {
    margin: 28px 0 24px;
}

.page-chatwoot-source-switcher .entry-header h1 {
    margin: 0;
    color: #103629;
    font-size: 40px;
    line-height: 1.08;
}

.chatwoot-source-switcher-entry-text {
    max-width: 660px;
    margin: 12px 0 0;
    color: #3f5f54;
    line-height: 1.6;
}

.chatwoot-source-tile,
.chatwoot-source-switcher-picker,
.chatwoot-source-switcher-frame {
    border: 1px solid var(--launcher-border);
    border-radius: 28px;
    background: #ffffff;
    box-shadow: 0 18px 34px rgba(18, 34, 28, 0.12);
}

.chatwoot-source-switcher-picker__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 12px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(18, 34, 28, 0.05);
    color: var(--launcher-text);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.chatwoot-source-switcher-picker__item-text,
.chatwoot-source-switcher-frame__status {
    margin: 0;
    color: #3f5f54;
    line-height: 1.6;
}

.chatwoot-source-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.chatwoot-source-tile,
.chatwoot-source-switcher-ui__launcher,
.chatwoot-source-switcher-picker__item,
.chatwoot-source-switcher-frame__action {
    font: inherit;
    border: 0;
    cursor: pointer;
}

.chatwoot-source-tile,
.chatwoot-source-switcher-picker__item {
    background: #ffffff !important;
    color: var(--source-neutral-text);
    box-shadow: none;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease, color .2s ease;
}

.chatwoot-source-tile {
    border: 2px solid rgba(18, 34, 28, 0.22) !important;
}

.chatwoot-source-switcher-picker__item {
    --source-accent: var(--source-green);
    all: unset;
    box-sizing: border-box;
    display: block !important;
    width: 100% !important;
    min-height: 58px;
    padding: 14px 16px;
    border-radius: 18px;
    border: 2px solid var(--source-accent) !important;
    background: #ffffff !important;
    color: var(--source-neutral-text) !important;
    text-decoration: none !important;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    box-shadow: none !important;
}

.chatwoot-source-switcher-picker__item[data-chatwoot-tone="pink"] {
    --source-accent: var(--source-pink);
}

.chatwoot-source-switcher-picker__item[data-chatwoot-tone="violet"] {
    --source-accent: var(--source-violet);
}

.chatwoot-source-switcher-ui__launcher {
    padding: 16px 20px;
    border-radius: 18px;
    background: #ffffff;
    border: 1px solid var(--launcher-border);
    color: var(--launcher-text);
    font-weight: 700;
    box-shadow: 0 18px 34px rgba(18, 34, 28, 0.18);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, color .2s ease;
}

.chatwoot-source-tile:hover {
    background: #ffffff !important;
    border-color: rgba(18, 34, 28, 0.32) !important;
    color: var(--launcher-text);
    transform: none;
    box-shadow: none;
}

.chatwoot-source-switcher-picker__item:hover {
    background: var(--source-green) !important;
    border-color: var(--source-green) !important;
    color: #ffffff;
    transform: none;
    box-shadow: none;
}

.chatwoot-source-switcher-ui__launcher:hover {
    transform: translateY(-1px);
    box-shadow: 0 22px 38px rgba(18, 34, 28, 0.22);
}

.chatwoot-source-tile {
    min-height: 64px;
    padding: 16px 20px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
}

.chatwoot-source-tile__title {
    display: block;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.3;
}

.chatwoot-source-switcher-ui {
    position: fixed;
    right: 24px;
    bottom: 22px;
    z-index: 2147483000;
}

.chatwoot-source-switcher-ui__launcher {
    min-width: 268px;
}

.chatwoot-source-switcher-ui__launcher-text {
    display: block;
}

.chatwoot-source-switcher-picker,
.chatwoot-source-switcher-frame {
    position: absolute;
    right: 0;
    bottom: 78px;
    width: min(420px, calc(100vw - 24px));
    overflow: hidden;
}

.chatwoot-source-switcher-picker {
    padding: 22px;
    display: grid;
    grid-template-rows: auto 1fr;
    min-height: 780px;
    height: min(78vh, 780px);
    max-height: calc(100vh - 112px);
}

.chatwoot-source-switcher-picker__header,
.chatwoot-source-switcher-frame__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.chatwoot-source-switcher-picker__header h2,
.chatwoot-source-switcher-frame__title {
    margin: 0;
    color: #103629;
}

.chatwoot-source-switcher-picker__close,
.chatwoot-source-switcher-frame__action--close {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(16, 54, 41, 0.08);
    color: #103629;
    font-size: 24px;
    line-height: 1;
}

.chatwoot-source-switcher-picker__list {
    display: grid;
    gap: 10px;
    margin-top: 18px;
    align-content: start;
    min-height: 0;
    overflow: auto;
    padding-right: 4px;
}

.chatwoot-source-switcher-picker__item {
    text-align: left;
}


.chatwoot-source-switcher-picker__item-title {
    color: inherit;
    font-weight: 700;
    font-size: 16px;
    line-height: 1.3;
    text-decoration: none !important;
}

.chatwoot-source-switcher-frame {
    display: grid;
    grid-template-rows: auto 1fr;
    min-height: 930px;
    height: min(86vh, 930px);
    max-height: calc(100vh - 80px);
}

.chatwoot-source-switcher-frame__header {
    padding: 16px 18px;
    border-bottom: 1px solid var(--launcher-border);
    background: #ffffff;
    align-items: center;
}

.chatwoot-source-switcher-frame__actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.chatwoot-source-switcher-frame__action {
    padding: 10px 14px;
    border-radius: 14px;
    background: #ffffff;
    border: 1px solid var(--launcher-border);
    color: var(--launcher-text);
    font-weight: 700;
}

.chatwoot-source-switcher-frame__status {
    position: absolute;
    top: 62px;
    left: 16px;
    right: 16px;
    z-index: 2;
    padding: 10px 14px;
    border: 1px solid var(--launcher-border);
    border-radius: 14px;
    font-size: 13px;
    background: rgba(255, 255, 255, 0.96);
}

.chatwoot-source-switcher-frame__iframe {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 820px;
    border: 0;
    background: #f4f7f6;
}

body.chatwoot-source-switcher-picker-open .chatwoot-source-switcher-ui__launcher,
body.chatwoot-source-switcher-chat-open .chatwoot-source-switcher-ui__launcher {
    opacity: 0;
    pointer-events: none;
    transform: translateY(12px);
}

@media (max-width: 980px) {
    .chatwoot-source-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .page-chatwoot-source-switcher {
        padding-bottom: 120px;
    }

    .page-chatwoot-source-switcher .entry-header {
        margin-top: 20px;
    }

    .page-chatwoot-source-switcher .entry-header h1 {
        font-size: 30px;
    }

    .chatwoot-source-grid {
        grid-template-columns: 1fr;
    }

    .chatwoot-source-switcher-ui {
        left: 12px;
        right: 12px;
        bottom: 12px;
    }

    .chatwoot-source-switcher-ui__launcher {
        width: 100%;
        min-width: 0;
    }

    .chatwoot-source-switcher-picker,
    .chatwoot-source-switcher-frame {
        right: 0;
        left: 0;
        width: auto;
        bottom: 74px;
    }

    .chatwoot-source-switcher-picker {
        min-height: auto;
        height: auto;
        max-height: calc(100vh - 94px);
    }

    .chatwoot-source-switcher-frame {
        min-height: 64vh;
        height: auto;
        max-height: calc(100vh - 94px);
    }

    .chatwoot-source-switcher-frame__iframe {
        min-height: 0;
    }
}

@keyframes ultrameddzr-book-outline-cycle {
    0%, 20% {
        border-color: #8b7cf6;
        color: #6450d9;
        box-shadow: 0 18px 30px rgba(20, 44, 35, 0.18), 0 0 0 0 rgba(139, 124, 246, 0);
    }

    23% {
        border-color: #8b7cf6;
        color: #6450d9;
        box-shadow: 0 18px 30px rgba(20, 44, 35, 0.18), 0 0 0 7px rgba(139, 124, 246, 0.18);
    }

    25%, 45% {
        border-color: #e670a8;
        color: #c94d88;
        box-shadow: 0 18px 30px rgba(20, 44, 35, 0.18), 0 0 0 0 rgba(230, 112, 168, 0);
    }

    48% {
        border-color: #e670a8;
        color: #c94d88;
        box-shadow: 0 18px 30px rgba(20, 44, 35, 0.18), 0 0 0 7px rgba(230, 112, 168, 0.16);
    }

    50%, 70% {
        border-color: #6ea9ff;
        color: #2f72d8;
        box-shadow: 0 18px 30px rgba(20, 44, 35, 0.18), 0 0 0 0 rgba(110, 169, 255, 0);
    }

    73% {
        border-color: #6ea9ff;
        color: #2f72d8;
        box-shadow: 0 18px 30px rgba(20, 44, 35, 0.18), 0 0 0 7px rgba(110, 169, 255, 0.17);
    }

    75%, 95% {
        border-color: #73c9a3;
        color: #2f9c73;
        box-shadow: 0 18px 30px rgba(20, 44, 35, 0.18), 0 0 0 0 rgba(115, 201, 163, 0);
    }

    98%, 100% {
        border-color: #73c9a3;
        color: #2f9c73;
        box-shadow: 0 18px 30px rgba(20, 44, 35, 0.18), 0 0 0 7px rgba(115, 201, 163, 0.15);
    }
}

.desktop-sticky-cta {
    display: none;
}

.mobile-sticky-cta {
    display: none;
}

@media only screen and (min-width: 769px) {
    .desktop-sticky-cta {
        position: fixed;
        right: 44px;
        bottom: 16px;
        z-index: 999;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: clamp(320px, 25vw, 430px);
        align-items: stretch;
        gap: 10px;
    }

    .desktop-sticky-cta__item {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        min-height: 58px;
        padding: 0 18px;
        border-radius: 18px;
        background: #ffffff;
        box-shadow: 0 18px 34px rgba(18, 34, 28, 0.18);
        font-size: 16px;
        font-weight: 700;
        line-height: 1.15;
        text-align: center;
        text-decoration: none;
        cursor: pointer;
        transition: box-shadow 0.2s ease, border-color 0.2s ease, color 0.2s ease;
    }

    .desktop-sticky-cta__item:hover {
        color: inherit;
        box-shadow: 0 22px 38px rgba(18, 34, 28, 0.22);
    }

    .desktop-sticky-cta__label {
        display: block;
        letter-spacing: 0.03em;
    }

    .desktop-sticky-cta__item--chat {
        border: 1px solid rgba(18, 34, 28, 0.18);
        color: #16382c;
    }

    .desktop-sticky-cta__item--book {
        border: 2px solid #8b7cf6;
        color: #6450d9;
        animation: ultrameddzr-book-outline-cycle 7.2s linear infinite;
    }
}

@media only screen and (max-width: 768px) {
    .desktop-sticky-cta {
        display: none !important;
    }

    .mobile-sticky-cta {
        position: fixed;
        right: 16px;
        bottom: 16px;
        left: 16px;
        z-index: 999;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .mobile-sticky-cta__item {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 52px;
        padding: 0 16px;
        border-radius: 18px;
        background: #ffffff;
        box-shadow: 0 18px 30px rgba(20, 44, 35, 0.18);
        font-size: 15px;
        font-weight: 700;
        text-decoration: none;
    }

    .mobile-sticky-cta__item--chat {
        border: 1px solid rgba(18, 34, 28, 0.18);
        color: #16382c;
    }

    .mobile-sticky-cta__item--book {
        border: 2px solid #8b7cf6;
        color: #6450d9;
        animation: ultrameddzr-book-outline-cycle 7.2s linear infinite;
    }

    body {
        padding-bottom: 88px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .desktop-sticky-cta__item--book,
    .mobile-sticky-cta__item--book {
        animation: none !important;
        border-color: #6ea9ff !important;
        color: #2f72d8 !important;
    }
}
