.ekowc,
.ekowc *,
.ekowc *::before,
.ekowc *::after {
    box-sizing: border-box;
}

.ekowc {
    --ekowc-green: #20c767;
    --ekowc-green-dark: #0d9f4d;
    --ekowc-ink: #102018;
    --ekowc-muted: #647067;
    --ekowc-line: rgba(16, 32, 24, 0.1);
    --ekowc-panel: rgba(255, 255, 255, 0.94);
    --ekowc-shadow: 0 22px 60px rgba(15, 35, 24, 0.22);
    position: fixed;
    left: 22px;
    bottom: 22px;
    z-index: 999999;
    font-family: inherit;
}

.ekowc__fab {
    appearance: none;
    position: relative;
    width: 62px;
    height: 62px;
    border: 0;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: linear-gradient(145deg, var(--ekowc-green), var(--ekowc-green-dark));
    box-shadow: 0 16px 38px rgba(32, 199, 103, 0.38), 0 8px 18px rgba(0, 0, 0, 0.18);
    cursor: pointer;
    outline: none;
    transform: translateZ(0);
    transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.ekowc__fab:hover,
.ekowc__fab:focus-visible {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 20px 44px rgba(32, 199, 103, 0.45), 0 10px 22px rgba(0, 0, 0, 0.2);
    filter: saturate(1.07);
}

.ekowc__fab:active {
    transform: translateY(0) scale(0.98);
}

.ekowc__fab svg {
    width: 34px;
    height: 34px;
    fill: currentColor;
    position: relative;
    z-index: 2;
}

.ekowc__fab-pulse {
    position: absolute;
    inset: -7px;
    border-radius: inherit;
    border: 2px solid rgba(32, 199, 103, 0.34);
    animation: ekowcPulse 2.2s ease-out infinite;
}

.ekowc__panel {
    position: absolute;
    left: 0;
    bottom: 78px;
    width: min(336px, calc(100vw - 32px));
    color: var(--ekowc-ink);
    background: var(--ekowc-panel);
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 24px;
    box-shadow: var(--ekowc-shadow);
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateY(16px) scale(0.96);
    transform-origin: left bottom;
    transition: opacity 190ms ease, transform 190ms ease;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.ekowc.is-open .ekowc__panel {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

.ekowc__header {
    position: relative;
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 18px 44px 16px 18px;
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.38), transparent 36%),
        linear-gradient(135deg, #20c767, #0c9b4c);
    color: #fff;
}

.ekowc__avatar {
    flex: 0 0 auto;
    width: 48px;
    height: 48px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.26);
}

.ekowc__avatar svg {
    width: 31px;
    height: 31px;
    fill: currentColor;
}

.ekowc__eyebrow,
.ekowc__title,
.ekowc__status,
.ekowc__bubble,
.ekowc__label {
    margin: 0;
}

.ekowc__eyebrow {
    font-size: 11px;
    line-height: 1.15;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    opacity: 0.82;
    font-weight: 700;
}

.ekowc__title {
    margin-top: 4px;
    font-size: 19px;
    line-height: 1.16;
    font-weight: 800;
    color: #fff;
}

.ekowc__status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 7px;
    font-size: 12px;
    line-height: 1.25;
    opacity: 0.92;
}

.ekowc__status span {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #b9ffcf;
    box-shadow: 0 0 0 4px rgba(185, 255, 207, 0.18);
}

.ekowc__close {
    appearance: none;
    position: absolute;
    top: 12px;
    right: 12px;
    width: 30px;
    height: 30px;
    border: 0;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: rgba(0, 0, 0, 0.18);
    cursor: pointer;
    transition: background 160ms ease, transform 160ms ease;
}

.ekowc__close:hover,
.ekowc__close:focus-visible {
    background: rgba(0, 0, 0, 0.3);
    transform: rotate(6deg) scale(1.04);
    outline: none;
}

.ekowc__close span {
    font-size: 24px;
    line-height: 1;
    transform: translateY(-1px);
}

.ekowc__body {
    padding: 16px;
}

.ekowc__bubble {
    display: inline-block;
    max-width: 92%;
    margin-bottom: 14px;
    padding: 12px 14px;
    color: #1b2d22;
    background: #f2f7f4;
    border: 1px solid var(--ekowc-line);
    border-radius: 16px 16px 16px 5px;
    font-size: 14px;
    line-height: 1.38;
}

.ekowc__label {
    display: block;
    margin-bottom: 7px;
    font-size: 12px;
    line-height: 1.2;
    font-weight: 800;
    color: var(--ekowc-muted);
}

.ekowc__textarea {
    width: 100%;
    min-height: 78px;
    resize: none;
    border: 1px solid var(--ekowc-line);
    border-radius: 16px;
    padding: 12px 13px;
    color: var(--ekowc-ink);
    background: #fff;
    font: inherit;
    font-size: 14px;
    line-height: 1.38;
    box-shadow: inset 0 1px 0 rgba(16, 32, 24, 0.03);
    outline: none;
    transition: border-color 160ms ease, box-shadow 160ms ease;
}

.ekowc__textarea:focus {
    border-color: rgba(32, 199, 103, 0.55);
    box-shadow: 0 0 0 4px rgba(32, 199, 103, 0.11);
}

.ekowc__start {
    appearance: none;
    width: 100%;
    margin-top: 12px;
    min-height: 48px;
    border: 0;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #fff;
    background: linear-gradient(135deg, var(--ekowc-green), var(--ekowc-green-dark));
    box-shadow: 0 12px 26px rgba(32, 199, 103, 0.26);
    cursor: pointer;
    font: inherit;
    font-size: 15px;
    font-weight: 800;
    line-height: 1;
    transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
}

.ekowc__start svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
    transition: transform 160ms ease;
}

.ekowc__start:hover,
.ekowc__start:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 16px 34px rgba(32, 199, 103, 0.32);
    filter: saturate(1.06);
    outline: none;
}

.ekowc__start:hover svg,
.ekowc__start:focus-visible svg {
    transform: translateX(2px);
}

.ekowc__start:active {
    transform: translateY(0) scale(0.99);
}

@keyframes ekowcPulse {
    0% {
        transform: scale(0.82);
        opacity: 0.72;
    }
    70%, 100% {
        transform: scale(1.28);
        opacity: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ekowc__fab-pulse {
        animation: none;
    }

    .ekowc__fab,
    .ekowc__panel,
    .ekowc__close,
    .ekowc__textarea,
    .ekowc__start,
    .ekowc__start svg {
        transition: none;
    }
}

@media (max-width: 480px) {
    .ekowc {
        left: 16px;
        bottom: 16px;
    }

    .ekowc__fab {
        width: 58px;
        height: 58px;
    }

    .ekowc__panel {
        bottom: 72px;
        width: min(326px, calc(100vw - 24px));
        border-radius: 22px;
    }

    .ekowc__header {
        padding: 16px 42px 15px 16px;
    }

    .ekowc__title {
        font-size: 18px;
    }
}
