/* ============================================================
   Kewlar & Carbon - Panel klienta - styl spójny z resztą strony
   Minimalistyczny, biały + ciemny tekst + żółte akcenty
   ============================================================ */

/* ─── LISTA ZAPYTAŃ ─── */
.kcrfq-empty {
    padding: 30px 20px;
    background: #fafafa;
    border-radius: 4px;
    text-align: center;
    color: #555;
}

.kcrfq-list {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    font-size: 14px;
}

.kcrfq-list th,
.kcrfq-list td {
    padding: 12px 14px;
    text-align: left;
    border-bottom: 1px solid #eee;
    vertical-align: middle;
}

.kcrfq-list th {
    background: #fafafa;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 12px;
    color: #555;
}

.kcrfq-list tr.has-unread {
    background: #fffbe5;
}

.kcrfq-list tr:hover {
    background: #fafafa;
}

.kcrfq-list a {
    color: #1a1a1a;
    text-decoration: none;
    font-weight: 500;
}

.kcrfq-list a:hover {
    color: #000;
    text-decoration: underline;
}

.kcrfq-status {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 3px;
    font-size: 11px;
    color: #fff;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.kcrfq-badge-new {
    display: inline-block;
    background: #FFD700;
    color: #1a1a1a;
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 3px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-left: 8px;
}

.kcrfq-btn-show {
    display: inline-block;
    padding: 6px 14px;
    background: #1a1a1a;
    color: #fff !important;
    border-radius: 3px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: background 0.2s;
}

.kcrfq-btn-show:hover {
    background: #000;
    text-decoration: none !important;
}

/* ─── WIDOK WĄTKU ─── */
.kcrfq-back {
    display: inline-block;
    margin-bottom: 20px;
    color: #555;
    text-decoration: none;
    font-size: 14px;
}

.kcrfq-back:hover {
    color: #000;
}

.kcrfq-thread {
    background: #fff;
}

.kcrfq-thread-header {
    padding-bottom: 20px;
    margin-bottom: 25px;
    border-bottom: 2px solid #f0f0f0;
}

.kcrfq-thread-header h2 {
    margin: 0 0 12px;
    font-size: 22px;
    font-weight: 600;
}

.kcrfq-thread-header h2 a {
    color: #1a1a1a;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s;
}

.kcrfq-thread-header h2 a:hover {
    border-bottom-color: #FFD700;
}

.kcrfq-thread-meta {
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
}

.kcrfq-quote {
    color: #555;
    font-size: 14px;
}

.kcrfq-quote strong {
    color: #1a1a1a;
    font-size: 16px;
}

.kcrfq-description {
    background: #fafafa;
    padding: 12px 16px;
    border-radius: 4px;
    margin-top: 14px;
    font-size: 14px;
    border-left: 3px solid #FFD700;
}

/* ─── WIADOMOŚCI ─── */
.kcrfq-messages {
    margin-bottom: 30px;
}

.kcrfq-msg {
    margin-bottom: 16px;
    padding: 14px 18px;
    border-radius: 6px;
    max-width: 85%;
}

.kcrfq-msg-customer {
    background: #f5f5f5;
    margin-left: 0;
    margin-right: auto;
}

.kcrfq-msg-admin {
    background: #1a1a1a;
    color: #f5f5f5;
    margin-left: auto;
    margin-right: 0;
    border-left: 3px solid #FFD700;
}

.kcrfq-msg-meta {
    font-size: 12px;
    margin-bottom: 6px;
    opacity: 0.8;
}

.kcrfq-msg-admin .kcrfq-msg-meta strong {
    color: #FFD700;
}

.kcrfq-msg-content {
    font-size: 14px;
    line-height: 1.6;
}

.kcrfq-msg-content p {
    margin: 0 0 8px;
}

.kcrfq-msg-content p:last-child {
    margin-bottom: 0;
}

/* ─── FORMULARZ ODPOWIEDZI ─── */
.kcrfq-reply-form {
    margin-top: 30px;
    padding-top: 25px;
    border-top: 2px solid #f0f0f0;
}

.kcrfq-reply-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.kcrfq-reply-form textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: 14px;
    box-sizing: border-box;
    resize: vertical;
    transition: border-color 0.2s;
}

.kcrfq-reply-form textarea:focus {
    outline: none;
    border-color: #FFD700;
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.15);
}

.kcrfq-btn-send {
    margin-top: 12px;
    padding: 12px 28px;
    background: #1a1a1a;
    color: #fff;
    border: none;
    border-radius: 3px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
}

.kcrfq-btn-send:hover {
    background: #000;
}

.kcrfq-btn-send:active {
    transform: translateY(1px);
}

.kcrfq-closed-notice {
    margin-top: 20px;
    padding: 14px 18px;
    background: #fafafa;
    border-left: 3px solid #ccc;
    border-radius: 3px;
    font-size: 14px;
    color: #555;
}

/* ─── RESPONSYWNOŚĆ ─── */
@media (max-width: 768px) {
    .kcrfq-list {
        font-size: 13px;
    }
    .kcrfq-list th,
    .kcrfq-list td {
        padding: 10px 8px;
    }
    .kcrfq-msg {
        max-width: 100%;
    }
    .kcrfq-thread-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}
