/* =========================================================
   JEPCS READER FEEDBACK
   Minimal and professional sidebar component
   ========================================================= */

.jepcs-reader-feedback {
    width: 100%;
    margin: 22px 0 0;
    padding: 18px 0 0;
    border-top: 1px solid #dddddd;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
}

.jepcs-reader-feedback[hidden] {
    display: none !important;
}

.jepcs-reader-feedback-heading-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.jepcs-reader-feedback-title {
    margin: 0;
    color: #202020;
    font-size: 1.06rem;
    line-height: 1.2;
    font-weight: 700;
}

.jepcs-launch-engagement {
    display: inline-flex;
    align-items: baseline;
    justify-content: flex-end;
    min-width: 84px;
    white-space: nowrap;
    color: #17813b;
}

.jepcs-launch-engagement[hidden] {
    display: none !important;
}

.jepcs-launch-engagement-main {
    display: inline-flex;
    align-items: baseline;
}

.jepcs-launch-engagement-value {
    font-size: 1.52rem;
    line-height: 1;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.jepcs-launch-engagement-scale {
    margin-left: 4px;
    color: #6e6e6e;
    font-size: 0.84rem;
    line-height: 1;
    font-weight: 700;
}

.jepcs-reader-feedback-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.jepcs-reader-feedback-button {
    appearance: none;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 46px;
    margin: 0;
    padding: 11px 12px;
    border: 0;
    border-radius: 6px;
    background: #ffffff;
    color: #2f2f2f;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.92rem;
    line-height: 1.2;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    box-sizing: border-box;
    transition:
        background 0.16s ease,
        color 0.16s ease,
        box-shadow 0.16s ease;
}

.jepcs-reader-feedback-button:hover,
.jepcs-reader-feedback-button:focus-visible {
    background: #fcfdfc;
    box-shadow: 0 0 0 2px rgba(22, 128, 58, 0.08);
    color: #166a33;
    outline: none;
}

.jepcs-reader-feedback-button.is-selected {
    background: #f3f9f5;
    color: #166a33;
    box-shadow: 0 0 0 1px rgba(143, 200, 164, 0.65);
}

.jepcs-reader-feedback-button:disabled {
    cursor: wait;
    opacity: 0.72;
}

.jepcs-reader-feedback-button-label-wrap {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    min-width: 0;
}

.jepcs-reader-feedback-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 23px;
    min-width: 23px;
    font-size: 20px;
    line-height: 1;
    flex: 0 0 auto;
}

.jepcs-reader-feedback-label {
    min-width: 0;
}

.jepcs-reader-feedback-count {
    min-width: 16px;
    color: #1a8c42;
    font-size: 0.82rem;
    line-height: 1;
    font-weight: 700;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.jepcs-reader-feedback-count[hidden] {
    display: none !important;
}

.jepcs-reader-feedback-status {
    min-height: 0.9rem;
    margin-top: 7px;
    color: #5f6b62;
    font-size: 0.67rem;
    line-height: 1.3;
}

@media (max-width: 760px) {
    .jepcs-reader-feedback {
        max-width: 290px;
    }

    .jepcs-launch-engagement-value {
        font-size: 1.30rem;
    }

    .jepcs-reader-feedback-button {
        min-height: 42px;
        padding: 10px 11px;
        font-size: 0.88rem;
    }

    .jepcs-reader-feedback-icon {
        width: 21px;
        min-width: 21px;
        font-size: 18px;
    }
}
