/* local_feedback — floating widget styles.
 * Mirrors avc_feedback's design: green circular button bottom-right,
 * popup card 320px wide, four type buttons + title + body + submit.
 */

.local-feedback-trigger {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #2E7D32;
    color: #fff;
    border: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
    cursor: pointer;
    z-index: 9998;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.15s, background 0.15s, box-shadow 0.15s;
    padding: 0;
}
.local-feedback-trigger:hover {
    background: #1B5E20;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.22);
}
.local-feedback-trigger:focus {
    outline: 3px solid rgba(46, 125, 50, 0.4);
    outline-offset: 2px;
}
.local-feedback-trigger--active {
    background: #1B5E20;
}
.local-feedback-trigger__icon {
    width: 24px;
    height: 24px;
}

.local-feedback-popup {
    position: fixed;
    bottom: 96px;
    right: 24px;
    width: 340px;
    max-width: calc(100vw - 48px);
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.20);
    z-index: 9999;
    display: none;
    flex-direction: column;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #222;
}
.local-feedback-popup--open {
    display: flex;
    animation: localFeedbackFadeIn 0.18s ease-out;
}
@keyframes localFeedbackFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.local-feedback-popup__header {
    background: #2E7D32;
    color: #fff;
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.local-feedback-popup__title {
    font-weight: 600;
    font-size: 1em;
}
.local-feedback-popup__close {
    background: transparent;
    border: 0;
    color: #fff;
    font-size: 1.4em;
    cursor: pointer;
    line-height: 1;
    padding: 0 4px;
}
.local-feedback-popup__close:hover {
    opacity: 0.8;
}

.local-feedback-popup__body {
    padding: 16px;
}
.local-feedback-popup__types {
    display: flex;
    gap: 4px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}
.local-feedback-popup__type-btn {
    flex: 1;
    min-width: 70px;
    padding: 6px 10px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    background: #fafafa;
    color: #555;
    cursor: pointer;
    font-size: 0.85em;
    transition: all 0.15s;
}
.local-feedback-popup__type-btn:hover {
    background: #f0f7f0;
    border-color: #2E7D32;
}
.local-feedback-popup__type-btn--active {
    background: #2E7D32;
    color: #fff;
    border-color: #1B5E20;
}

.local-feedback-popup__input,
.local-feedback-popup__textarea {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-family: inherit;
    font-size: 0.95em;
    margin-bottom: 8px;
    box-sizing: border-box;
}
.local-feedback-popup__input:focus,
.local-feedback-popup__textarea:focus {
    outline: 0;
    border-color: #2E7D32;
    box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.15);
}
.local-feedback-popup__textarea {
    min-height: 60px;
    resize: vertical;
}

.local-feedback-popup__submit {
    width: 100%;
    padding: 9px 16px;
    background: #2E7D32;
    color: #fff;
    border: 0;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.95em;
    transition: background 0.15s;
}
.local-feedback-popup__submit:hover {
    background: #1B5E20;
}
.local-feedback-popup__submit:disabled {
    opacity: 0.6;
    cursor: wait;
}

.local-feedback-popup__message {
    padding: 12px 16px;
    display: none;
    text-align: center;
    font-size: 0.92em;
}
.local-feedback-popup__message--success {
    color: #1B5E20;
    background: #e8f5e9;
}
.local-feedback-popup__message--error {
    color: #c62828;
    background: #ffebee;
}

.local-feedback-popup__footer {
    border-top: 1px solid #f0f0f0;
    padding: 8px 16px;
    text-align: center;
    background: #fafafa;
}
.local-feedback-popup__footer a {
    color: #2E7D32;
    text-decoration: none;
    font-size: 0.85em;
}
.local-feedback-popup__footer a:hover {
    text-decoration: underline;
}

@media (max-width: 480px) {
    .local-feedback-popup {
        bottom: 80px;
        right: 12px;
        left: 12px;
        width: auto;
    }
    .local-feedback-trigger {
        bottom: 16px;
        right: 16px;
    }
}
