/* HizmetGelsin Mesajlaşma */

.hg-chat-box,
.hg-messages-wrap {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    padding: 22px;
    margin: 24px 0;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
    font-family: inherit;
}

.hg-chat-box h3,
.hg-messages-wrap h2 {
    margin-top: 0;
}

.hg-small {
    color: #64748b;
    font-size: 14px;
}

.hg-chat-box textarea,
.hg-reply-form textarea {
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 14px;
    padding: 12px;
    resize: vertical;
    box-sizing: border-box;
    margin: 8px 0 12px;
    font-family: inherit;
}

.hg-btn {
    display: inline-block;
    background: linear-gradient(135deg, #0ea5e9, #2563eb);
    color: #fff !important;
    border: none;
    border-radius: 999px;
    padding: 11px 20px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.25);
}

.hg-btn:hover {
    opacity: .92;
}

.hg-success {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #86efac;
    border-radius: 12px;
    padding: 12px 14px;
    margin-bottom: 16px;
}

.hg-empty {
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 14px;
    padding: 18px;
    color: #475569;
}

.hg-thread {
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    padding: 18px;
    margin: 18px 0;
    background: #f8fafc;
}

.hg-thread-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 14px;
    padding-bottom: 10px;
}

.hg-thread-head h3 {
    margin: 0 0 4px;
}

.hg-thread-head p {
    margin: 0;
    color: #64748b;
}

.hg-thread-messages {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.hg-message {
    max-width: 82%;
    padding: 12px 14px;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
}

.hg-message.mine {
    align-self: flex-end;
    background: #eff6ff;
    border-color: #bfdbfe;
}

.hg-message.theirs {
    align-self: flex-start;
    background: #ffffff;
}

.hg-meta {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: 12px;
    color: #64748b;
    margin-bottom: 6px;
}

.hg-message p {
    margin: 0;
}

.hg-reply-form {
    margin-top: 14px;
}

@media (max-width: 600px) {
    .hg-message {
        max-width: 100%;
    }
}
