#main-chat-widget-help {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 5px;
    position: relative;
}

#main-chat-widget-help #help-chat-widget {
    width: 146px;
    height: 46px;
    background-color: #091b91 !important;
    border-radius: 23px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);

    opacity: 0;
    transform: translateX(60px);
    transition: transform 0.5s ease, opacity 0.5s ease;
    color: #e3e2e2;
}

#main-chat-widget-help #help-chat-widget.show {
    opacity: 1;
    transform: translateX(0);
}

#main-chat-widget-help #help-chat-widget.float {
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateX(0) translateY(0);
    }

    50% {
        transform: translateX(0) translateY(-6px);
    }

    100% {
        transform: translateX(0) translateY(0);
    }
}

#main-chat-widget-help #chat-widget-chat-icon {
    width: 60px;
    height: 60px;
    background-color: #091b91 !important;
    border-radius: 50%;
    color: white;
    font-size: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 15px rgba(10, 30, 158, 0.9) !important;;
    cursor: pointer;
    position: relative;
    z-index: 2;
}

:root {
    --widget-w: 300px;
    --widget-h: 300px;
    --green: #348d16;
    --green-dark: #2f7b13;
    --shadow: 0 10px 22px rgba(0, 0, 0, 0.12);
}

#main-chat-widget #widget-stage {
    width: var(--widget-w);
    padding: 10px;
    padding-bottom: 52px;
    position: relative;
    overflow: visible;
    border-radius: 16px;
    background-color: transparent;
    margin-right: 62px;
}

#main-chat-widget #chat-widget {
    width: 350px;
    height: 483px;
    padding-bottom: 25px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    position: relative;
    background: #fff;
}

#main-chat-widget #chat-widget-header {
    height: 150px;
    background: linear-gradient(
        180deg,
        var(--color) 84%,
        var(--color) 72%,
        rgba(52, 141, 22, 0) 100%
    );
    position: relative;
    padding: 14px 12px 24px 12px;
    color: #fff;
    box-sizing: border-box;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

#main-chat-widget #chat-widget-brand-dots {
    position: absolute;
    left: 12px;
    top: 10px;
    width: 22px;
    height: 22px;
    display: grid;
    grid-template-columns: repeat(2, 7px);
    grid-gap: 3px;
}

#main-chat-widget #chat-widget-brand-dots span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    display: inline-block;
}

#main-chat-widget #chat-widget-close-x {
    position: absolute;
    right: 10px;
    top: 10px;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 700;
    font-size: 25px;
    line-height: 14px;
    cursor: pointer;
}

#main-chat-widget #chat-widget-avatars {
    position: absolute;
    top: 12px;
    right: 36px;
    display: flex;
    align-items: center;
}

#main-chat-widget #chat-widget-avatars img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid #fff;
    box-sizing: content-box;
    margin-left: -8px;
    background: #eee;
    object-fit: cover;
}

/* #main-chat-widget #chat-widget-greet {
    margin-top: 48px;
    padding-left: 4px;
    line-height: 1.05;
} */

#main-chat-widget #chat-widget-greet {
    margin-top: 32px;
    padding-left: 4px;
    line-height: 1.05;
}

#main-chat-widget #chat-widget-greet #chat-widget-title {
    font-weight: 700;
    font-size: 15px;
    margin: 0 0 0px 0;
}

#main-chat-widget #chat-widget-greet #chat-widget-sub {
    margin: 0;
    font-size: 13px;
    opacity: 0.98;
}

#main-chat-widget #chat-widget-chat-body {
    height: 100vh;
    background: #fff;
    overflow: auto;
    padding: 10px 12px;
}

#main-chat-widget #chat-widget-bottom-card {
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: 30px;
    height: 50px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 6px 10px;
    box-sizing: border-box;
    width: 350px;
}

#main-chat-widget .chat-widget-tab {
    width: 50%;
    text-align: center;
    font-size: 11px;
    color: #7b7b7b;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
}

#main-chat-widget .chat-widget-tab.active {
    color: var(--color);
    font-weight: 600;
    font-size: 13px;
}

#main-chat-widget .chat-widget-tab .chat-widget-icon-wrap {
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}
#main-chat-widget .icon {
    width: 21px;
    height: 21px;
    display: block;
    fill: currentColor;
}

#main-chat-widget .chat-widget-tab.active .icon {
    color: var(--color);
}

#main-chat-widget .chat-widget-tab:not(.active) .icon {
    color: #b5b5b5;
}

#main-chat-widget .chat-widget-toggle {
    position: absolute;
    left: 335px;
    transform: translateY(6px);
    width: 23px;
    height: 23px;
    border-radius: 50%;
    border: none;
    background: var(--color);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.14);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    bottom: 10px;
}

#main-chat-widget #chat-widget,
#chat-widget-bottom-card {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

#main-chat-widget-help {
    position: fixed;
    bottom: 4px;
    right: 20px;
    display: flex;
    gap: 5px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    z-index: 1000;
}

#main-chat-widget-help.scrolled {
    bottom: 42px;
}

#main-chat-widget-help.show {
    opacity: 1;
    transform: translateY(0);
}

#main-chat-widget-help #help-chat-widget {
    width: 175px;
    /* height: 46px; */
    height: 62px;
    background-color: white;
    border-radius: 7px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    opacity: 0;
    transform: translateX(50px) translateY(0);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

#main-chat-widget-help #help-chat-widget p {
    margin-bottom: 0;
}

#main-chat-widget-help #help-chat-widget.show {
    opacity: 1;
    transform: translateX(0) translateY(0);
    animation: floatUpDown 2s ease-in-out infinite alternate;
}

@keyframes floatUpDown {
    0% {
        transform: translateX(0) translateY(0);
    }

    100% {
        transform: translateX(0) translateY(-6px);
    }
}

#main-chat-widget-help #chat-widget-chat-icon {
    width: 60px;
    height: 60px;
    background-color: var(--color);
    border-radius: 50%;
    color: white;
    font-size: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.12);
}

#main-chat-widget {
    position: fixed;
    display: none;
    bottom: 45px;
    right: 20px;
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    transition: opacity 0.5s ease, transform 0.5s ease;
    z-index: 1000;
}

#main-chat-widget.show {
    opacity: 1;
    transform: translateY(0) scale(1);
}

#main-chat-widget .chat-widget-duty-template {
    background: #fff;
    border-radius: 12px;
    padding: 10px 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    max-width: 340px;
    font-family: Arial, sans-serif;
    margin-bottom: 5px;
}

#main-chat-widget #chat-widget-duty-header h5 {
    margin: 0;
    font-size: 14px;
    line-height: 0.8;
    display: flex;
    align-items: center;
    font-weight: 600;
}

#main-chat-widget #chat-widget-duty-header i {
    color: #2f7b13;
    margin-right: 4px;
    margin-left: 3px;
    font-size: 12px;
}

#main-chat-widget #chat-widget-duty-details {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 12px 0;
}

#main-chat-widget #chat-widget-duty-details img {
    border-radius: 50%;
    width: 48px;
    height: 48px;
    margin-bottom: 0px;
}

#main-chat-widget .chat-widget-duty-info .chat-widget-name {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 5px;
}

#main-chat-widget #chat-widget-duty-info #chat-widget-time {
    margin: 0;
    font-size: 13px;
    color: #555;
}

#main-chat-widget #chat-widget-duty-contacts {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

#main-chat-widget .chat-widget-duty-whatsapp p,
.chat-widget-duty-call p {
    display: flex;
    align-items: center;
    gap: 5px;
    margin: 0;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
}

#main-chat-widget .chat-widget-duty-whatsapp i {
    color: #25d366;
    font-size: 20px;
    cursor: pointer;
}

#main-chat-widget .chat-widget-duty-call i {
    color: #348d16;
    font-size: 18px;
    cursor: pointer;
}

#main-chat-widget .chat-widget-duty-whatsapp span {
    font-weight: 600;
    cursor: pointer;
}

#main-chat-widget .chat-widget-duty-call span {
    font-weight: 600;
    cursor: pointer;
}
#main-chat-widget #chat-widget-faq-container {
    max-width: 700px;
    margin: auto;
    background: #fff;
    border-radius: 8px;
    padding: 0px 9px 22px 23px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

#main-chat-widget #chat-widget-faq-container h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #333;
}

#main-chat-widget details {
    border-bottom: 1px solid #ddd;
    padding: 22px 0px;
    cursor: pointer;
}

#main-chat-widget summary {
    font-size: 13px;
    font-weight: 600;
    color: #2c3e50;
    outline: none;
    list-style: none;
}

#main-chat-widget summary::marker {
    display: none;
}

#main-chat-widget summary::after {
    content: "➕";
    float: right;
    transition: transform 0.3s ease;
    color: #666;
}

#main-chat-widget details[open] summary::after {
    content: "➖";
    transform: rotate(180deg);
}

#main-chat-widget details p {
    margin: 10px 0 0;
    padding-left: 5px;
    color: #555;
    line-height: 1.6;
}

#main-chat-widget #chat-widget-chat-body > div {
    display: none;
}

#main-chat-widget #chat-widget-chat-body > div.active {
    display: block;
}
.no-supports-card {
    animation: fadeIn 0.6s ease-in-out;
}
.no-results-card {
    animation: fadeIn 0.6s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.whatsapp-link {
    color: inherit;
    text-decoration: none;
    font-weight: bold;
}

.whatsapp-link:hover {
    text-decoration: none;
    color: var(--color);
}
.skeleton-card {
    height: 128px;
    margin-bottom: 12px;
    border-radius: 8px;
    background: linear-gradient(-90deg, #eeeeee 0%, #dddddd 50%, #eeeeee 100%);
    background-size: 400% 400%;
    animation: shimmer 1.2s ease-in-out infinite;
}

@keyframes shimmer {
    0% {
        background-position: 100% 0;
    }
    100% {
        background-position: -100% 0;
    }
}
.blinking {
    animation: blink-animation 3s infinite;
}

@keyframes blink-animation {
    0%,
    50%,
    100% {
        opacity: 1;
    }
    25%,
    75% {
        opacity: 0;
    }
}
.closeComment {
    position: absolute;
    top: -24px;
    right: -2px;
    border-radius: 50%;
    padding: 5px;
    cursor: pointer;
    font-size: 18px;
}

#chat-widget-tickets-container {
    padding: 4px 0;
}

.ticket-card {
    display: block;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 10px;
    text-decoration: none;
    transition: box-shadow 0.2s;
}
.ticket-card:hover {
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    text-decoration: none;
}
.ticket-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}
.ticket-number {
    font-size: 12px;
    font-weight: 700;
    color: #333;
}
.ticket-cat-badge {
    font-size: 10px;
    color: #fff;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 600;
}
.ticket-card-subject {
    font-size: 13px;
    font-weight: 600;
    color: #222;
    margin-bottom: 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.ticket-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.ticket-status-badge {
    font-size: 10px;
    color: #fff;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 600;
}
.ticket-date {
    font-size: 11px;
    color: #999;
}
.tickets-loading,
.no-tickets {
    text-align: center;
    padding: 30px 10px;
    color: #999;
    font-size: 13px;
}
.tickets-all-link {
    text-align: center;
    margin-top: 4px;
}
.tickets-all-link a {
    font-size: 13px;
    color: var(--color);
    font-weight: 600;
    text-decoration: none;
}
.tickets-all-link a:hover {
    text-decoration: underline;
}
.new-ticket-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    padding: 10px;
    border-radius: 10px;
    border: 1px dashed var(--color);
    color: var(--color);
    font-weight: 600;
    font-size: 13px;
    text-decoration: none;
    margin-top: 6px;
    transition: background 0.2s;
}
.new-ticket-btn:hover {
    background: rgba(9,27,145,0.04);
    text-decoration: none;
    color: var(--color);
}

.ticket-unseen {
    border-color: #dc3545;
    background: #fff8f8;
}
.ticket-unseen-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #dc3545;
    margin-right: 6px;
    animation: blink-unseen 1.2s ease-in-out infinite;
    vertical-align: middle;
    position: relative;
    top: -1px;
}
@keyframes blink-unseen {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.3; transform: scale(0.7); }
}

#main-chat-widget #chat-widget-avatars img,
#main-chat-widget #chat-widget-duty-details img {
    object-fit: cover !important;
}

