/* ===============================
   Base layout
================================ */
html, body {
    margin: 0;
    padding: 0;
    background: transparent !important;
    overflow: hidden;
}

/* ===============================
   Hide Zendesk default launcher
================================ */
div[data-testid="messenger-launcher"] {
    display: none !important;
}

/* ===============================
   Remove Zendesk grey backgrounds
================================ */
.zEWidget-messenger,
.zEWidget-webWidget,
iframe[title*="Zendesk"],
iframe[src*="zendesk"],
iframe[src*="zdassets"] {
    background: transparent !important;
    box-shadow: none !important;
}

/* ===============================
   Remove corner gradients & masks
   (fixes dark bottom corners)
================================ */
.zEWidget-messenger::before,
.zEWidget-messenger::after,
[data-testid="messenger-container"]::before,
[data-testid="messenger-container"]::after {
    display: none !important;
    background: none !important;
}

/* Prevent masking artifacts */
.zEWidget-messenger,
[data-testid="messenger-container"] {
    background-clip: padding-box !important;
}

/* ===============================
   Custom launcher button
================================ */
#telia-chat-launcher {
    position: fixed;
    right: 0;
    bottom: 0;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #4E0174;
    cursor: pointer;

    /* Launcher shadow only */
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);

    z-index: 29;
    display: flex;
    align-items: center;
    justify-content: center;

    transition: transform 0.2s ease;
    pointer-events: auto;
}

#telia-chat-launcher:hover {
    transform: scale(1.1);
}

#telia-chat-icon {
    width: 40px;
    height: 40px;
    display: block;
}

/* ===============================
   Unread badge
================================ */
#telia-chat-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 20px;
    height: 20px;
    background: #e53935;
    color: #fff;
    font-size: 12px;
    font-weight: bold;
    border-radius: 10px;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
}

/* ===============================
   Mobile offset
================================ */
@media (max-width: 480px) {
    #telia-chat-launcher {
        right: 24px;
        bottom: 24px;
    }
}
