.dzwa-floating-btn {
    position: fixed;
    right: 20px;
    bottom: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 !important;
    margin: 0 !important;
    line-height: 0 !important;
    z-index: 99999;
}

.dzwa-floating-btn img {
    display: block;
    pointer-events: none;
}

/* FLOATING WINDOW */
#dzwa-window {
    display: none;
    position: fixed;
    right: 20px;
    bottom: 90px;
    width: 350px;
    height: auto;
    max-height: 520px;
    background: transparent;
    border-radius: 14px;
    box-shadow: 0 4px 18px rgba(0,0,0,0.15);
    overflow: hidden;
}

/* Window structure */
.dzwa-win {
    display: flex;
    flex-direction: column;
    max-height: 520px;
    border-radius: 14px;
    overflow: hidden;
}

.dzwa-win-header {
    padding: 12px 14px;
    color: #ffffff;
}

.dzwa-win-header-inner {
    display: flex;
    align-items: center;
    gap: 10px;
}

.dzwa-win-logo img {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    object-fit: contain;
    background: #ffffff;
    padding: 4px;
}

.dzwa-win-header-text {
    flex: 1;
}

.dzwa-win-title {
    font-size: 15px;
    font-weight: 700;
}

.dzwa-win-subtitle {
    font-size: 12px;
    opacity: 0.9;
    margin-top: 2px;
}

/* Logo alignment helpers */
.dzwa-logo-left .dzwa-win-logo {
    order: 0;
}

.dzwa-logo-left .dzwa-win-header-text {
    order: 1;
}

.dzwa-logo-right .dzwa-win-header-text {
    order: 0;
}

.dzwa-logo-right .dzwa-win-logo {
    order: 1;
    margin-left: auto;
}

/* Body scroll area */
.dzwa-win-body {
    padding: 10px 12px 12px;
    overflow-y: auto;
    flex: 1 1 auto;
    background: #f5f7fa;
}

/* Profile cards */
.dzwa-prof {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 10px;
    border-radius: 10px;
    margin-bottom: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    cursor: pointer;
    transition: background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.dzwa-prof:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(0,0,0,0.08);
}

/* Non-clickable state text */
.dzwa-prof-empty {
    justify-content: flex-start;
    cursor: default;
}

.dzwa-prof-empty:hover {
    transform: none;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.dzwa-prof-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.dzwa-prof-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    overflow: hidden;
    background: #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.dzwa-prof-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dzwa-prof-avatar-initial {
    font-size: 16px;
    font-weight: 700;
    color: #111827;
}

.dzwa-prof-text {
    display: flex;
    flex-direction: column;
}

.dzwa-prof-name {
    font-size: 13px;
    font-weight: 600;
    color: #111827;
}

.dzwa-prof-sub {
    font-size: 11px;
    color: #4b5563;
}

.dzwa-prof-right {
    flex-shrink: 0;
}

/* Tiny WhatsApp dot icon */
.dzwa-prof-wa {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #25D366;
    display: inline-block;
    position: relative;
}

.dzwa-prof-wa::before {
    content: "";
    position: absolute;
    inset: 4px;
    border-radius: 50%;
    border: 2px solid #ffffff;
}

/* Template view */
.dzwa-template-wrapper {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 0;
}

.dzwa-template-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: #031450;
    cursor: pointer;
    padding: 6px 8px;
    border-radius: 999px;
    background: #e5ecff;
    width: fit-content;
}

.dzwa-template-back:hover {
    background: #d3ddff;
}

.dzwa-template-back-icon {
    width: 16px;
    height: 16px;
    border-radius: 999px;
    border: 1px solid #031450;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
}

/* Elementor template content area inside window */
.dzwa-template-inner {
    background: transparent;
}
