.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;
}

@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));
    }
}
