.woo-support-widget {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 2500;
    font-family: inherit;
}

.woo-support-launcher {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    min-height: 58px;
    border: 1px solid rgba(24,199,184,.42);
    border-radius: 20px;
    background: linear-gradient(135deg, #0f172a, #12313c 58%, #18c7b8);
    color: #fff;
    padding: 5px;
    box-shadow: 0 16px 40px rgba(0,0,0,.34), 0 0 0 5px rgba(24,199,184,.08);
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease;
}

.woo-support-launcher:hover {
    transform: translateY(-2px);
    box-shadow: 0 24px 56px rgba(0,0,0,.42), 0 0 0 8px rgba(24,199,184,.11);
}

.woo-support-logo {
    position: relative;
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 16px;
    background: linear-gradient(135deg, #18c7b8, #6366f1 58%, #f43f5e);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.22), 0 12px 28px rgba(24,199,184,.28);
}

.woo-support-logo i {
    color: #fff;
    font-size: 25px;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,.28));
}

.woo-support-logo b {
    position: absolute;
    right: -2px;
    top: -2px;
    width: 13px;
    height: 13px;
    border: 2px solid #07111c;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 16px rgba(34,197,94,.9);
}

.woo-support-launcher-text {
    display: none;
    text-align: left;
    line-height: 1.1;
}

.woo-support-launcher-text strong {
    font-weight: 950;
}

.woo-support-launcher-text small {
    color: #a7fff3;
    font-size: 12px;
}

.woo-support-panel {
    position: absolute;
    right: 0;
    bottom: 70px;
    display: none;
    width: min(344px, calc(100vw - 18px));
    overflow: hidden;
    border: 1px solid rgba(24,199,184,.18);
    border-radius: 14px;
    background:
        radial-gradient(circle at 88% 0%, rgba(24,199,184,.12), transparent 30%),
        linear-gradient(180deg, rgba(12,20,36,.96), rgba(5,10,20,.96));
    color: #f8fafc;
    box-shadow: 0 18px 56px rgba(0,0,0,.32);
    backdrop-filter: blur(14px);
}

.woo-support-widget.is-open .woo-support-panel {
    display: block;
    animation: wooSupportIn .18s ease-out;
}

.woo-support-panel.is-open {
    display: block;
    animation: wooSupportIn .18s ease-out;
}

@keyframes wooSupportIn {
    from {
        opacity: 0;
        transform: translateY(8px) scale(.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.woo-support-panel header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border-bottom: 1px solid rgba(255,255,255,.09);
    padding: 9px 10px;
}

.woo-support-brand {
    display: flex;
    align-items: center;
    gap: 8px;
}

.woo-support-brand strong {
    display: block;
    font-size: 13px;
    font-weight: 950;
}

.woo-support-brand small {
    color: #9fb0c8;
    font-size: 10.5px;
}

.woo-support-logo.is-panel {
    width: 32px;
    height: 32px;
    border-radius: 10px;
}

.woo-support-logo.is-panel i {
    font-size: 18px;
}

.woo-support-panel header button,
.woo-support-form button {
    display: grid;
    place-items: center;
    border: 0;
    color: #fff;
}

.woo-support-panel header button {
    width: 28px;
    height: 28px;
    border-radius: 9px;
    background: rgba(255,255,255,.07);
}

.woo-support-body {
    display: grid;
    gap: 7px;
    max-height: 280px;
    overflow: auto;
    padding: 10px;
}

.woo-support-msg {
    width: fit-content;
    max-width: 88%;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 10px;
    background: rgba(15,23,42,.56);
    padding: 8px 9px;
}

.woo-support-msg.is-user {
    justify-self: end;
    background: linear-gradient(135deg, rgba(24,199,184,.18), rgba(244,63,94,.18));
}

.woo-support-msg.is-admin {
    background: rgba(244,63,94,.14);
    border-color: rgba(244,63,94,.28);
}

.woo-support-msg.is-admin b {
    color: #ff8da1;
}

.woo-support-msg.is-system {
    justify-self: center;
    max-width: 94%;
    border-color: rgba(250,204,21,.28);
    background: rgba(250,204,21,.1);
}

.woo-support-msg.is-system b {
    color: #fde68a;
}

.woo-support-msg b {
    display: block;
    margin-bottom: 3px;
    color: #6ff7e8;
    font-size: 10.5px;
}

.woo-support-msg p {
    margin: 0;
    color: #dbeafe;
    font-size: 11.5px;
    line-height: 1.38;
}

.woo-support-quick {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    padding: 0 10px 8px;
}

.woo-support-widget.has-human-support .woo-support-quick {
    display: none;
}

.woo-support-widget.is-ticket-closed .woo-support-quick {
    display: grid;
}

.woo-support-widget.is-ticket-closed .woo-support-note::before {
    content: attr(data-closed-note);
    color: #fde68a;
}

.woo-support-quick button {
    min-height: 29px;
    border: 1px solid rgba(24,199,184,.18);
    border-radius: 9px;
    background: rgba(24,199,184,.06);
    color: #c8fff8;
    font-size: 10.5px;
    font-weight: 750;
    transition: border-color .16s ease, background .16s ease, transform .16s ease;
}

.woo-support-quick button:hover {
    transform: translateY(-1px);
    border-color: rgba(24,199,184,.38);
    background: rgba(24,199,184,.1);
}

.woo-support-quick button.is-active {
    border-color: rgba(244,63,94,.55);
    background: rgba(244,63,94,.16);
    color: #fff;
}

.woo-support-form {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) 36px;
    gap: 6px;
    border-top: 1px solid rgba(255,255,255,.09);
    padding: 8px 10px 7px;
}

.woo-support-upload {
    display: grid;
    place-items: center;
    width: 34px;
    min-height: 36px;
    margin: 0;
    border: 1px solid rgba(24,199,184,.18);
    border-radius: 10px;
    background: rgba(24,199,184,.06);
    color: #9ffff4;
    cursor: pointer;
}

.woo-support-upload:hover {
    border-color: rgba(24,199,184,.45);
    background: rgba(24,199,184,.14);
}

.woo-support-upload input {
    display: none;
}

.woo-support-form textarea {
    width: 100%;
    resize: none;
    min-height: 36px;
    border: 1px solid rgba(148,163,184,.16);
    border-radius: 10px;
    background: rgba(2,6,23,.44);
    color: #fff;
    outline: 0;
    padding: 8px 9px;
    font-size: 11.5px;
    line-height: 1.35;
}

.woo-support-form textarea:focus {
    border-color: rgba(24,199,184,.44);
    box-shadow: 0 0 0 3px rgba(24,199,184,.08);
}

.woo-support-form button {
    border-radius: 10px;
    background: linear-gradient(135deg, #18c7b8, #f43f5e);
    box-shadow: none;
}

.woo-support-image {
    display: block;
    margin-top: 8px;
}

.woo-support-image img {
    display: block;
    width: min(220px, 100%);
    max-height: 170px;
    object-fit: cover;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 12px;
}

.woo-support-note {
    display: block;
    padding: 0 10px 8px;
    color: #7f91ad;
    font-size: 10px;
    line-height: 1.35;
}

@media (max-width: 640px) {
    .woo-support-widget {
        right: 12px;
        bottom: 12px;
    }

    .woo-support-launcher-text {
        display: none;
    }

    .woo-support-panel {
        right: -2px;
        bottom: 66px;
    }

    .woo-support-quick {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    body.incallx .woo-support-panel {
        width: min(342px, calc(100vw - 24px));
    }
}

body.incallx .lt-account-dock-actions .woo-support-widget {
    position: relative;
    right: auto;
    bottom: auto;
    z-index: 40;
    flex: 0 0 auto;
}

body.incallx .lt-account-dock-actions .woo-support-launcher {
    width: 38px;
    height: 38px;
    min-height: 38px;
    padding: 0;
    border: 1px solid rgba(148, 163, 184, .14);
    border-radius: 14px;
    background: rgba(9, 16, 31, .78);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06);
}

body.incallx .lt-account-dock-actions .woo-support-launcher:hover {
    transform: translateY(-1px);
    border-color: rgba(32, 224, 196, .34);
    background: rgba(32, 224, 196, .12);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
}

body.incallx .lt-account-dock-actions .woo-support-logo {
    width: 24px;
    height: 24px;
    border-radius: 9px;
    background: linear-gradient(135deg, #18c7b8, #6366f1 58%, #f43f5e);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.18);
}

body.incallx .lt-account-dock-actions .woo-support-logo i {
    font-size: 15px;
}

body.incallx .lt-account-dock-actions .woo-support-logo b {
    right: -3px;
    top: -3px;
    width: 9px;
    height: 9px;
    border-width: 1px;
}

body.incallx .lt-account-dock-actions .woo-support-panel {
    position: fixed;
    left: max(62px, env(safe-area-inset-left));
    right: auto;
    bottom: 74px;
    width: min(344px, calc(100vw - 76px));
    max-height: min(520px, calc(100vh - 94px));
    z-index: 3200;
}

body.incallx .lt-account-dock-actions .woo-support-body {
    max-height: min(280px, calc(100vh - 270px));
}

body.incallx .woo-support-panel[data-support-portal] {
    position: fixed;
    left: max(62px, env(safe-area-inset-left));
    right: auto;
    bottom: 74px;
    width: min(344px, calc(100vw - 76px));
    max-height: min(520px, calc(100vh - 94px));
    z-index: 3200;
}

body.incallx .woo-support-panel[data-support-portal] .woo-support-body {
    max-height: min(280px, calc(100vh - 270px));
}

@media (max-width: 767.98px) {
    body.incallx.woo-support-open::before {
        content: "";
        position: fixed;
        inset: 0;
        z-index: 3190;
        background:
            radial-gradient(circle at 22% 82%, rgba(32, 224, 196, .18), transparent 28%),
            radial-gradient(circle at 80% 12%, rgba(255, 51, 71, .16), transparent 32%),
            rgba(3, 7, 18, .58);
        backdrop-filter: blur(6px);
        pointer-events: none;
    }

    body.incallx .lt-account-dock-actions .woo-support-panel {
        position: fixed;
        left: max(10px, env(safe-area-inset-left));
        right: max(10px, env(safe-area-inset-right));
        bottom: 76px;
        width: auto;
        max-height: calc(100vh - 96px);
    }

    body.incallx .lt-account-dock-actions .woo-support-body {
        max-height: calc(100vh - 310px);
    }

    body.incallx .woo-support-panel[data-support-portal] {
        left: max(12px, env(safe-area-inset-left));
        right: max(12px, env(safe-area-inset-right));
        bottom: max(82px, calc(env(safe-area-inset-bottom) + 76px));
        width: auto;
        max-height: min(76dvh, 640px);
        border-radius: 20px;
        border-color: rgba(32, 224, 196, .28);
        background:
            linear-gradient(180deg, rgba(9, 16, 31, .97), rgba(4, 10, 22, .98)),
            radial-gradient(circle at 18% 0%, rgba(255, 51, 71, .16), transparent 34%),
            radial-gradient(circle at 96% 100%, rgba(32, 224, 196, .18), transparent 38%);
        box-shadow: 0 24px 70px rgba(0, 0, 0, .58), 0 0 0 1px rgba(255, 255, 255, .04);
    }

    body.incallx .woo-support-panel[data-support-portal] header {
        padding: 12px;
    }

    body.incallx .woo-support-panel[data-support-portal] .woo-support-brand strong {
        font-size: 13px;
    }

    body.incallx .woo-support-panel[data-support-portal] .woo-support-brand small {
        font-size: 10px;
    }

    body.incallx .woo-support-panel[data-support-portal] .woo-support-body {
        max-height: calc(76vh - 250px);
        max-height: calc(76dvh - 250px);
        padding: 10px 12px;
    }

    body.incallx .woo-support-panel[data-support-portal] .woo-support-quick {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 7px;
        padding: 0 12px 10px;
    }

    body.incallx .woo-support-panel[data-support-portal] .woo-support-form {
        grid-template-columns: 38px minmax(0, 1fr) 42px;
        gap: 8px;
        padding: 10px 12px;
    }

    body.incallx .woo-support-panel[data-support-portal] .woo-support-form textarea {
        min-height: 44px;
        font-size: 13px;
    }

    body.incallx .woo-support-panel[data-support-portal] .woo-support-note {
        padding: 0 12px 12px;
        font-size: 10px;
    }
}

@media (max-width: 420px) {
    body.incallx .woo-support-panel[data-support-portal] {
        left: max(10px, env(safe-area-inset-left));
        right: 8px;
        bottom: max(78px, calc(env(safe-area-inset-bottom) + 72px));
    }
}
