/*
===========================================================
 POLSKAELITA.PL | GREEN DARK | MyBB 1.8.41
 pe_shoutbox.css | DVZ Shoutbox | wersja 1.0

 Tylko Shoutbox na stronie glownej.
 Nie zmienia HTML, JS, uprawnien ani wysokosci okna.
 Nie dotyka: Team Online, TopStats, listy serwerow,
 partnerow, kafelkow forow, klodek i panelu bocznego.
===========================================================
*/

/* 01. GLOWNY KONTENER */
.pe-index-layout .cont #shoutbox.front {
    --pe-chat-bg: #111a1d;
    --pe-chat-card: #202c30;
    --pe-chat-card-alt: #1c282c;
    --pe-chat-line: #31453e;
    --pe-chat-green: #82d99b;
    --pe-chat-text: #dce9e3;

    width: 100%;
    margin: 0 0 18px;
    padding: 0;
    box-sizing: border-box;
    background: transparent;
    border: 0;
    box-shadow: none;
    color: var(--pe-chat-text);
}

/* 02. NAGLOWEK */
.pe-index-layout .cont #shoutbox.front > .head {
    position: relative;
    min-height: 58px;
    padding: 15px 20px;
    margin: 0 0 9px;
    box-sizing: border-box;
    display: flow-root;

    background: linear-gradient(
        115deg,
        #1c292a 0%,
        #172327 75%,
        #162b22 100%
    );
    border: 1px solid #365748;
    border-radius: 10px;
    box-shadow:
        inset 0 1px rgba(255,255,255,.04),
        0 4px 14px rgba(0,0,0,.16);
    color: #f2f8f3;
}

.pe-index-layout .cont #shoutbox.front > .head strong {
    color: #f2f8f3;
    font-size: 14px;
    font-weight: 700;
    line-height: 26px;
}

.pe-index-layout .cont #shoutbox.front > .head .right {
    float: right;
    margin: 0;
    font-size: 12px;
    line-height: 26px;
}

.pe-index-layout .cont #shoutbox.front > .head .right a {
    display: inline-block;
    padding: 0 4px;
    color: #b5cfc0;
    text-decoration: none;
    transition: color .15s ease;
}

.pe-index-layout .cont #shoutbox.front > .head .right a:hover {
    color: #9ee9b4;
}

/* 03. OBRAMOWANIE CZATU */
.pe-index-layout .cont #shoutbox.front > .body {
    padding: 10px;
    box-sizing: border-box;
    background: var(--pe-chat-bg);
    border: 1px solid #293e34;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,.12);
}

/* 04. POLE WIADOMOSCI */
.pe-index-layout .cont #shoutbox.front .panel {
    margin: 0 0 10px;
    padding: 0;
    border: 0;
    background: transparent;
}

.pe-index-layout .cont #shoutbox.front .panel form {
    margin: 0;
    padding: 0;
}

.pe-index-layout .cont #shoutbox.front .panel input.text {
    display: block;
    width: 100%;
    min-height: 42px;
    margin: 0;
    padding: 10px 13px;
    box-sizing: border-box;

    background: #182328;
    border: 1px solid #33493e;
    border-radius: 8px;
    outline: none;
    box-shadow: inset 0 1px 3px rgba(0,0,0,.15);

    color: #edf7ef;
    font: inherit;
    font-size: 12px;
    line-height: 20px;
    transition: border-color .15s ease,
                box-shadow .15s ease;
}

.pe-index-layout .cont #shoutbox.front .panel input.text::placeholder {
    color: #80b68c;
    opacity: .9;
}

.pe-index-layout .cont #shoutbox.front .panel input.text:focus {
    border-color: #5ca577;
    box-shadow: 0 0 0 2px rgba(92,165,119,.12);
}

/* OGRANICZENIA PISANIA */
.pe-index-layout .cont #shoutbox.front .panel.blocked,
.pe-index-layout .cont #shoutbox.front .panel.minposts {
    padding: 10px 12px;
    background: #2b2623;
    color: #f0d6bf;
    border: 1px solid #755741;
    border-radius: 8px;
}

.pe-index-layout .cont #shoutbox.front .panel p {
    margin: 0;
}

/* 05. OKNO WIADOMOSCI */
.pe-index-layout .cont #shoutbox.front .window {
    overflow-y: auto;
    overflow-x: hidden;
    background: #151f23;
    border: 1px solid #2b4037;
    border-radius: 8px;
    box-sizing: border-box;
    scrollbar-color: #486a55 #141d1c;
    scrollbar-width: thin;
}

.pe-index-layout .cont #shoutbox.front .window::-webkit-scrollbar {
    width: 8px;
}

.pe-index-layout .cont #shoutbox.front .window::-webkit-scrollbar-track {
    background: #141d1c;
}

.pe-index-layout .cont #shoutbox.front .window::-webkit-scrollbar-thumb {
    background: #486a55;
    border-radius: 8px;
}

/* 06. WIADOMOSCI */
.pe-index-layout .cont #shoutbox.front .data {
    display: table;
    width: 100%;
    margin: 0;
    box-sizing: border-box;
    border-top: 0;
    border-spacing: 0;
    border-collapse: separate;
    background: transparent;
    color: #dce9e3;
    font-size: 12px;
}

.pe-index-layout .cont #shoutbox.front .entry,
.pe-index-layout .cont #shoutbox.front .entry:nth-child(even) {
    background: var(--pe-chat-card-alt);
    transition: background-color .15s ease;
}

.pe-index-layout .cont #shoutbox.front .entry:nth-child(odd) {
    background: var(--pe-chat-card);
}

.pe-index-layout .cont #shoutbox.front .entry:hover {
    background: #26383b;
}

.pe-index-layout .cont #shoutbox.front .entry > div {
    padding: 9px 7px;
    vertical-align: middle;
    border-bottom: 1px solid #31443d;
}

.pe-index-layout .cont #shoutbox.front .entry:last-child > div {
    border-bottom: 0;
}

.pe-index-layout .cont #shoutbox.front .entry.unread {
    box-shadow: inset 3px 0 0 #6acb87;
}

/* 07. AVATARY */
.pe-index-layout .cont #shoutbox.front .avatar img {
    width: 30px;
    height: 30px;
    max-width: 30px;
    max-height: 30px;
    object-fit: cover;
    border: 1px solid #496653;
    border-radius: 50%;
    box-sizing: border-box;
    vertical-align: middle;
    box-shadow: 0 0 0 2px rgba(7,17,15,.23);
}

/* 08. LOGINY I WIADOMOSCI */
.pe-index-layout .cont #shoutbox.front .user {
    border-right-color: #31443d;
}

.pe-index-layout .cont #shoutbox.front .text {
    color: #dce9e3;
    line-height: 1.5;
    overflow-wrap: anywhere;
    word-break: normal;
}

.pe-index-layout .cont #shoutbox.front .text a {
    color: #8bdaa5;
}

.pe-index-layout .cont #shoutbox.front .text a:hover {
    color: #c4f6d1;
}

/* 09. DATY I PRZYCISKI MODERACJI */
.pe-index-layout .cont #shoutbox.front .info {
    color: #acc3b2;
    font-size: 11px;
    text-align: right;
    white-space: nowrap;
}

.pe-index-layout .cont #shoutbox.front .info a {
    color: inherit;
    text-decoration: none;
}

.pe-index-layout .cont #shoutbox.front .info a:hover {
    color: #b8efd0;
}

.pe-index-layout .cont #shoutbox.front .mod {
    display: inline-block;
    padding: 4px 7px;
    margin-right: 3px;
    background: #14201c;
    border: 1px solid #37513e;
    border-radius: 4px;
    color: #a3ddb1;
    font-size: 10px;
    font-weight: 700;
    text-decoration: none;
}

.pe-index-layout .cont #shoutbox.front .mod:nth-of-type(2) {
    border-left: 1px solid #37513e;
}

.pe-index-layout .cont #shoutbox.front .mod:hover {
    background: #294635;
    color: #ffffff;
}

/* 10. ZWINIETY SHOUTBOX */
.pe-index-layout .cont #shoutbox.front.collapsed > .body {
    display: none;
}

/* 11. MNIEJSZE EKRANY */
@media (max-width: 800px) {
    .pe-index-layout .cont #shoutbox.front > .head {
        padding: 12px 14px;
        min-height: 52px;
    }

    .pe-index-layout .cont #shoutbox.front > .body {
        padding: 7px;
    }

    .pe-index-layout .cont #shoutbox.front .entry > div {
        padding: 7px 4px;
    }

    .pe-index-layout .cont #shoutbox.front .avatar img {
        width: 26px;
        height: 26px;
        max-width: 26px;
        max-height: 26px;
    }

    .pe-index-layout .cont #shoutbox.front .info {
        font-size: 10px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .pe-index-layout .cont #shoutbox.front .entry,
    .pe-index-layout .cont #shoutbox.front .panel input.text,
    .pe-index-layout .cont #shoutbox.front > .head .right a {
        transition: none;
    }
}