/* ==================================================
   REGISTRY FEEDBACK SIDEBAR
================================================== */

.qm-registry-feedback-sidebar {
    width: 100%;
    box-sizing: border-box;
}


/* ==================================================
   SUBMIT FEEDBACK BOX
================================================== */

.qm-registry-feedback-box {
    width: 100%;
    box-sizing: border-box;
    padding: 16px;
    margin-bottom: 16px;
    background: #ffffff;
    border: 1px solid #e1e4e8;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.qm-registry-feedback-box h3 {
    margin: 0 0 6px;
    padding: 0;
    color: #000e36;
    font-size: 18px;
    line-height: 1.4;
}

.qm-registry-feedback-box p {
    margin: 0 0 14px;
    color: #666666;
    font-size: 13px;
    line-height: 1.5;
}


/* ==================================================
   TUTORIAL BUTTON
================================================== */

.qm-registry-tutorial-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    box-sizing: border-box;
    margin: 0 0 14px;
    padding: 10px 14px;
    border: 1px solid #e0a800;
    border-radius: 5px;
    background: #e0a800;
    color: #000e36;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.qm-registry-tutorial-button:hover {
    background: #000e36;
    color: #ffffff;
    text-decoration: none;
}


/* ==================================================
   FEEDBACK FORM
================================================== */

.qm-registry-feedback-form {
    width: 100%;
    margin: 0;
    padding: 0;
}

.qm-feedback-field {
    width: 100%;
    margin-bottom: 11px;
}

.qm-feedback-field label {
    display: block;
    margin-bottom: 5px;
    color: #000e36;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
}

.qm-feedback-field input,
.qm-feedback-field textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 9px 10px;
    border: 1px solid #d5d9df;
    border-radius: 5px;
    background: #ffffff;
    color: #333333;
    font-family: inherit;
    font-size: 13px;
    line-height: 1.4;
    outline: none;
}

.qm-feedback-field input {
    height: 38px;
}

.qm-feedback-field textarea {
    min-height: 105px;
    resize: vertical;
}

.qm-feedback-field input:focus,
.qm-feedback-field textarea:focus {
    border-color: #000e36;
    box-shadow: 0 0 0 2px rgba(0, 14, 54, 0.08);
}

.qm-feedback-field input::placeholder,
.qm-feedback-field textarea::placeholder {
    color: #999999;
}


/* ==================================================
   SUBMIT BUTTON
================================================== */

.qm-feedback-submit {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 10px 14px;
    margin: 2px 0 0;
    border: none;
    border-radius: 5px;
    background: #000e36;
    color: #ffffff;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    cursor: pointer;
    transition: background 0.2s ease;
}

.qm-feedback-submit:hover {
    background: #0b1d50;
}


/* ==================================================
   ADVERTISEMENT BOX
================================================== */

.qm-registry-feedback-ad-box {
    width: 100%;
    min-height: 120px;
    box-sizing: border-box;
    margin-bottom: 16px;
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f8f8;
    border: 1px dashed #d5d5d5;
    border-radius: 8px;
    text-align: center;
}

.qm-registry-feedback-ad-box span {
    color: #999999;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}


/* ==================================================
   FEEDBACK & COMMENTS BOX
================================================== */

.qm-registry-feedback-list-box {
    width: 100%;
    box-sizing: border-box;
    padding: 16px;
    background: #ffffff;
    border: 1px solid #e1e4e8;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.qm-registry-feedback-list-header {
    margin: 0 0 12px;
    padding: 0 0 9px;
    border-bottom: 1px solid #e5e5e5;
}

.qm-registry-feedback-list-header h3 {
    margin: 0;
    padding: 0;
    color: #000e36;
    font-size: 18px;
    line-height: 1.4;
}


/* ==================================================
   FEEDBACK SCROLL AREA
================================================== */

.qm-registry-feedback-scroll {
    width: 100%;
    max-height: 500px;
    overflow-y: auto;
    overflow-x: hidden;
    box-sizing: border-box;
    padding-right: 7px;
}


/* ==================================================
   FEEDBACK LIST
================================================== */

.qm-registry-feedback-list {
    width: 100%;
    box-sizing: border-box;
}

.qm-registry-feedback-loading {
    padding: 12px 0;
    color: #777777;
    font-size: 13px;
    line-height: 1.5;
    text-align: center;
}


/* ==================================================
   FEEDBACK ITEM
================================================== */

.qm-registry-feedback-item {
    padding: 12px 0;
    border-bottom: 1px solid #e5e5e5;
}

.qm-registry-feedback-item:first-child {
    padding-top: 0;
}

.qm-registry-feedback-item:last-child {
    padding-bottom: 0;
    border-bottom: none;
}

.qm-registry-feedback-item-name {
    margin-bottom: 4px;
    color: #000e36;
    font-size: 13px;
    font-weight: 600;
}

.qm-registry-feedback-item-comment {
    margin-bottom: 6px;
    color: #444444;
    font-size: 13px;
    line-height: 1.5;
    word-break: break-word;
}

.qm-registry-feedback-item-date {
    color: #999999;
    font-size: 11px;
}


/* ==================================================
   REPLY BUTTON
================================================== */

.qm-registry-feedback-reply-button {
    display: inline-block;
    margin-top: 6px;
    padding: 4px 9px;
    border: 1px solid #000e36;
    border-radius: 4px;
    background: #ffffff;
    color: #000e36;
    font-family: inherit;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.3;
    cursor: pointer;
}

.qm-registry-feedback-reply-button:hover {
    background: #000e36;
    color: #ffffff;
}


/* ==================================================
   CHAT REPLY
================================================== */

.qm-registry-feedback-reply {
    margin-top: 10px;
    margin-left: 14px;
    padding: 9px 10px;
    border-left: 3px solid #e0a800;
    background: #f8f9fb;
    border-radius: 5px;
}


/* ==================================================
   REPLY NOTICE
================================================== */

.qm-registry-reply-notice {
    margin-bottom: 10px;
    padding: 7px 9px;
    border-left: 3px solid #e0a800;
    background: #f8f9fb;
    color: #000e36;
    font-size: 12px;
    line-height: 1.4;
}

.qm-registry-cancel-reply {
    margin-left: 6px;
    padding: 2px 6px;
    border: 0;
    background: transparent;
    color: #777777;
    font-size: 11px;
    cursor: pointer;
}

.qm-registry-cancel-reply:hover {
    color: #000e36;
}


/* ==================================================
   FEEDBACK REACTIONS
================================================== */

.qm-registry-feedback-reactions {
    display: flex;
    gap: 5px;
    margin-top: 6px;
}

.qm-feedback-reaction {
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    background: #ffffff;
    padding: 2px 6px;
    font-size: 13px;
    line-height: 1.2;
    cursor: pointer;
}

.qm-feedback-reaction:hover {
    background: #f5f5f5;
}


/* ==================================================
   EMOJI BUTTONS
================================================== */

.qm-feedback-emoji-list {
    display: flex;
    gap: 6px;
    margin-bottom: 7px;
}

.qm-feedback-emoji {
    padding: 4px 8px;
    border: 1px solid #e5e5e5;
    border-radius: 5px;
    background: #ffffff;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
}

.qm-feedback-emoji:hover {
    background: #f5f5f5;
}


/* ==================================================
   MOBILE
================================================== */

@media (max-width: 768px) {

    .qm-registry-feedback-box,
    .qm-registry-feedback-list-box {
        padding: 14px;
    }

    .qm-registry-feedback-box h3,
    .qm-registry-feedback-list-header h3 {
        font-size: 17px;
    }

    .qm-feedback-field input,
    .qm-feedback-field textarea {
        font-size: 13px;
    }

    .qm-registry-feedback-scroll {
        max-height: 420px;
    }

}