.customer-success-widget {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 9998;
    font-family: var(--font-family, "Segoe UI", sans-serif);
}

.customer-success-widget--with-accessibility {
    bottom: 20px;
}

.customer-success-widget__toggle {
    width: 62px;
    height: 62px;
    border: 0;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: linear-gradient(135deg, #1ec968, #0f9f4c);
    box-shadow: 0 18px 34px rgba(22, 146, 72, 0.32);
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}

.customer-success-widget__toggle:hover,
.customer-success-widget__toggle:focus-visible {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 22px 40px rgba(22, 146, 72, 0.38);
    color: #fff;
    filter: saturate(1.05);
}

.customer-success-widget__toggle i {
    font-size: 1.95rem;
    line-height: 1;
}

.customer-success-widget__panel {
    position: absolute;
    right: calc(100% + 14px);
    bottom: 0;
    width: min(440px, calc(100vw - 112px));
    max-height: min(560px, calc(100vh - 40px));
    overflow: auto;
    padding: 1rem;
    border-radius: 20px;
    background: rgba(14, 18, 24, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(22px);
    box-shadow: 0 30px 60px rgba(5, 8, 12, 0.42);
    color: #fff;
}

.customer-success-widget__panel[hidden] {
    display: none !important;
}

.customer-success-widget__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.9rem;
}

.customer-success-widget__header h3 {
    margin: 0;
    font-size: 1.02rem;
    font-weight: 800;
}

.customer-success-widget__header p {
    margin: 0.32rem 0 0;
    color: rgba(255,255,255,0.72);
    font-size: 0.82rem;
    line-height: 1.4;
}

.customer-success-widget__close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.06);
    color: #fff;
}

.customer-success-widget__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.customer-success-widget__field label {
    display: block;
    margin-bottom: 0.32rem;
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
    color: rgba(255,255,255,0.72);
}

.customer-success-widget__field input,
.customer-success-widget__field select,
.customer-success-widget__field textarea {
    width: 100%;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.08);
    color: #fff;
    padding: 0.72rem 0.85rem;
    outline: none;
    font-size: 0.94rem;
}

.customer-success-widget__field input::placeholder,
.customer-success-widget__field textarea::placeholder {
    color: rgba(255,255,255,0.48);
}

.customer-success-widget__field select option {
    color: #111;
}

.customer-success-widget__field textarea {
    min-height: 84px;
    resize: vertical;
}

.customer-success-widget__field--full,
.customer-success-widget__consent,
.customer-success-widget__actions,
.customer-success-widget__feedback {
    grid-column: 1 / -1;
}

.customer-success-widget__consent {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    font-size: 0.78rem;
    color: rgba(255,255,255,0.74);
}

.customer-success-widget__consent input {
    margin-top: 0.15rem;
}

.customer-success-widget__consent a {
    color: #ffe27a;
}

.customer-success-widget__actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.customer-success-widget__submit {
    flex: 1;
    border: 0;
    border-radius: 999px;
    padding: 0.82rem 1rem;
    font-weight: 800;
    color: #101114;
    background: linear-gradient(135deg, #f6c800, #ffde5b);
    box-shadow: 0 18px 30px rgba(246, 200, 0, 0.28);
}

.customer-success-widget__feedback {
    margin-top: 0.85rem;
    font-size: 0.86rem;
    color: rgba(255,255,255,0.8);
}

.customer-success-widget__feedback.is-error {
    color: #ff9f9f;
}

@media (max-width: 767px) {
    .customer-success-widget {
        right: 12px;
        bottom: 12px;
    }

    .customer-success-widget--with-accessibility {
        bottom: 12px;
    }

    .customer-success-widget__toggle {
        width: 56px;
        height: 56px;
    }

    .customer-success-widget__panel {
        right: 0;
        bottom: calc(100% + 12px);
        width: min(360px, calc(100vw - 24px));
        max-height: min(72vh, 560px);
    }

    .customer-success-widget__grid {
        grid-template-columns: 1fr;
    }
}

.customer-success-widget__field--hp {
    position: absolute !important;
    left: -9999px !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
}
