:root {
    --ecw-color: #1a73e8;
}

/* ── Bubble ── */
#ecw-bubble {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 99998;
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--ecw-color);
    color: #fff;
    border-radius: 999px;
    padding: 14px 20px 14px 16px;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0,0,0,.22);
    user-select: none;
    transition: transform .18s ease, box-shadow .18s ease;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: .01em;
}
#ecw-bubble:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(0,0,0,.28);
}
#ecw-bubble svg { flex-shrink: 0; }

/* ── Panel ── */
#ecw-panel {
    position: fixed;
    bottom: 90px;
    right: 24px;
    z-index: 99999;
    width: 340px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 40px rgba(0,0,0,.18);
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    animation: ecw-pop .22s cubic-bezier(.34,1.56,.64,1);
    transform-origin: bottom right;
}
#ecw-panel[hidden] { display: none !important; }

@keyframes ecw-pop {
    from { opacity: 0; transform: scale(.85) translateY(10px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}

/* Header */
#ecw-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--ecw-color);
    color: #fff;
    padding: 18px 16px 16px;
}
#ecw-panel-title {
    display: flex;
    flex-direction: column;
    gap: 2px;
    line-height: 1.3;
}
#ecw-panel-title strong { font-size: 16px; }
#ecw-panel-title span   { font-size: 12px; opacity: .85; }

#ecw-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    padding: 0 4px;
    opacity: .8;
    transition: opacity .15s;
}
#ecw-close:hover { opacity: 1; }

/* Body */
#ecw-panel-body { padding: 20px 18px 22px; }

/* Fields */
.ecw-field { margin-bottom: 12px; }
.ecw-field input,
.ecw-field textarea {
    width: 100%;
    box-sizing: border-box;
    border: 1.5px solid #dde1e7;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 14px;
    font-family: inherit;
    color: #1c1c1e;
    outline: none;
    transition: border-color .15s;
    resize: none;
    background: #fafbfc;
}
.ecw-field input:focus,
.ecw-field textarea:focus {
    border-color: var(--ecw-color);
    background: #fff;
}

/* Submit */
#ecw-submit {
    width: 100%;
    background: var(--ecw-color);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 4px;
    transition: opacity .15s;
    font-family: inherit;
}
#ecw-submit:hover   { opacity: .88; }
#ecw-submit:disabled { opacity: .6; cursor: default; }

/* Error */
#ecw-error {
    background: #fff0f0;
    color: #c0392b;
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 13px;
    margin-bottom: 10px;
}

/* Success */
#ecw-success {
    text-align: center;
    padding: 12px 0 4px;
    color: #1c1c1e;
}
#ecw-success svg {
    stroke: #27ae60;
    margin-bottom: 10px;
}
#ecw-success p {
    font-size: 15px;
    margin: 0;
    line-height: 1.5;
}

/* Mobile */
@media (max-width: 400px) {
    #ecw-panel {
        right: 10px;
        left: 10px;
        width: auto;
        bottom: 80px;
    }
}
