#feedback-widget {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 9990;
    font-family: inherit;
}

#feedback-toggle {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 11px 17px;
    border: none;
    border-radius: 30px;
    background: #343a40;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 3px 12px rgba(0, 0, 0, .25);
    cursor: pointer;
    transition: background .2s, transform .2s;
}

#feedback-toggle:hover {
    background: #23272b;
    transform: translateY(-2px);
}

#feedback-toggle i {
    font-size: 16px;
}

#feedback-panel {
    position: absolute;
    left: 0;
    bottom: 60px;
    width: 420px;
    max-width: calc(100vw - 40px);
    max-height: calc(100vh - 110px);
    background: #fff;
    color: #343a40;
    border-radius: 10px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, .25);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

#feedback-panel.d-none {
    display: none !important;
}

.feedback-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px;
    background: #343a40;
    color: #fff;
    flex-shrink: 0;
}

.feedback-header strong {
    display: block;
    font-size: 16px;
}

.feedback-header small {
    display: block;
    margin-top: 3px;
    color: rgba(255,255,255,.75);
}

#feedback-close {
    border: none;
    background: transparent;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    padding: 0 3px;
}

.feedback-body {
    padding: 18px;
    overflow-y: auto;
    min-height: 0;
}

.feedback-body .form-group {
    margin-bottom: 16px;
}

.feedback-body label {
    font-weight: 600;
    font-size: 13px;
}

.feedback-body textarea {
    resize: vertical;
}

.feedback-footer {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding: 13px 18px;
    border-top: 1px solid #e5e5e5;
    background: #f8f9fa;
    flex-shrink: 0;
}

#feedback-image-area {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    border: 2px dashed #ced4da;
    border-radius: 7px;
    cursor: pointer;
    transition: border-color .2s, background .2s;
}

#feedback-image-area:hover {
    border-color: #007bff;
    background: #f8fbff;
}

#feedback-image-area > i {
    font-size: 26px;
    color: #6c757d;
}

#feedback-image-area strong,
#feedback-image-area small {
    display: block;
}

#feedback-image-area small {
    color: #6c757d;
    margin-top: 3px;
}

#feedback-image-preview {
    position: relative;
    margin-top: 10px;
    padding: 5px;
    border: 1px solid #dee2e6;
    border-radius: 7px;
}

#feedback-image-preview img {
    display: block;
    max-width: 100%;
    max-height: 180px;
    margin: auto;
    border-radius: 4px;
}

#feedback-remove-image {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 50%;
    background: rgba(0,0,0,.7);
    color: #fff;
    cursor: pointer;
}

#feedback-js-errors {
    padding: 10px;
    margin-top: 10px;
    border-radius: 5px;
    background: #fff3cd;
    color: #856404;
    font-size: 12px;
}

#feedback-js-errors i {
    margin-right: 5px;
}

@media (max-width: 575px) {
    #feedback-widget {
        bottom: 12px;
        left: 12px;
    }

    #feedback-panel {
        width: calc(100vw - 24px);
        max-width: none;
        bottom: 55px;
        max-height: calc(100vh - 85px);
    }
}

.feedback-checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 9px;
    min-height: 24px;
}

.feedback-checkbox-wrapper input[type="checkbox"] {
    appearance: auto !important;
    -webkit-appearance: checkbox !important;
    position: static !important;
    opacity: 1 !important;
    width: 16px;
    height: 16px;
    margin: 0;
    flex-shrink: 0;
    cursor: pointer;
    pointer-events: auto !important;
}

.feedback-checkbox-wrapper label {
    margin: 0;
    font-weight: normal;
    font-size: 14px;
    cursor: pointer;
    pointer-events: auto !important;
}