/*
 PolskaElita.pl | Green Dark | MyBB 1.8.41
 pe_shoutbox.css - wersja 4
 Poprawiony naglowek motywu: .headline > .head > .title
 Wiersze wiadomosci jak w wersji 3.
*/

/* 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-text: #dce9e3;
    width: 100%;
    margin: 0 0 18px;
    padding: 0;
    box-sizing: border-box;
    border: 0;
    background: transparent;
    box-shadow: none;
    color: var(--pe-chat-text);
}

/* NAGLOWEK - STRUKTURA GREEN DARK */
.pe-index-layout .cont #shoutbox.front > .headline {
    position: relative;
    display: flow-root;
    width: 100%;
    height: auto;
    min-height: 48px;
    margin: 0 0 9px !important;
    padding: 10px 18px !important;
    box-sizing: border-box;
    line-height: 26px;
    background: linear-gradient(
        115deg,
        #1c292a 0%,
        #172327 75%,
        #162b22 100%
    ) !important;
    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 > .headline .head.left {
    float: left;
    line-height: 26px;
    cursor: pointer;
}

/* SHOUTBOX -> CZAT */
.pe-index-layout .cont #shoutbox.front > .headline .head .title {
    font-size: 0 !important;
    line-height: 26px;
}

.pe-index-layout .cont #shoutbox.front > .headline .head .title::after {
    content: "Czat";
    color: #f2f8f3;
    font-size: 13px;
    font-weight: 700;
    line-height: 26px;
}

/* ZIELONA IKONA */
.pe-index-layout .cont #shoutbox.front > .headline .head .icon::before {
    margin-right: 12px;
}

/* ARCHIWUM */
.pe-index-layout .cont #shoutbox.front > .headline .right {
    float: right;
    line-height: 26px;
    font-size: 12px;
}

.pe-index-layout .cont #shoutbox.front > .headline .right a {
    color: #b5cfc0;
    text-decoration: none;
    font-size: 12px;
}

.pe-index-layout .cont #shoutbox.front > .headline .right a:hover {
    color: #9ee9b4;
}

/* RAMKA CZATU */
.pe-index-layout .cont #shoutbox.front > .body {
    padding: 9px;
    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);
}

/* POLE PISANIA */
.pe-index-layout .cont #shoutbox.front .panel {
    margin: 0 0 9px;
    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: 38px;
    margin: 0;
    padding: 8px 12px;
    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;
}

/* OKNO WIADOMOSCI */
.pe-index-layout .cont #shoutbox.front .window {
    overflow-y: auto;
    overflow-x: hidden;
    margin-top: 0;
    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;
}

.pe-index-layout .cont #shoutbox.front .data {
    display: block;
    width: 100%;
    margin: 0;
    box-sizing: border-box;
    border: 0;
    background: transparent;
    color: #dce9e3;
    font-size: 12px;
}

/* KOMPAKTOWE WIADOMOSCI */
.pe-index-layout .cont #shoutbox.front .entry {
    display: grid !important;
    grid-template-columns: 32px minmax(0,1fr) max-content;
    grid-template-rows: auto auto;
    grid-template-areas:
        "avatar user info"
        "avatar message info";
    align-items: center;
    column-gap: 8px;
    row-gap: 2px;
    min-width: 0;
    min-height: 52px;
    margin: 0;
    padding: 7px 10px;
    box-sizing: border-box;
    border-bottom: 1px solid var(--pe-chat-line);
    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:nth-child(even) {
    background: var(--pe-chat-card-alt);
}

.pe-index-layout .cont #shoutbox.front .entry:hover {
    background: #26383b;
}

.pe-index-layout .cont #shoutbox.front .entry:last-child {
    border-bottom: 0;
}

.pe-index-layout .cont #shoutbox.front .entry.unread {
    box-shadow: inset 3px 0 0 #6acb87;
}

/* RESET STARYCH KOMOREK */
.pe-index-layout .cont #shoutbox.front .entry > div {
    display: block !important;
    min-width: 0;
    width: auto;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    border: 0;
    position: static;
    float: none;
    transform: none;
}

/* AVATAR */
.pe-index-layout .cont #shoutbox.front .entry > .avatar {
    grid-area: avatar;
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 32px;
    align-self: center;
}

.pe-index-layout .cont #shoutbox.front .entry > .avatar img {
    display: block;
    width: 26px;
    height: 26px;
    max-width: 26px;
    max-height: 26px;
    object-fit: cover;
    margin: 0;
    padding: 0;
    border: 1px solid #496653;
    border-radius: 50%;
    box-sizing: border-box;
    box-shadow: 0 0 0 2px rgba(7,17,15,.23);
}

/* AUTOR I RANGA */
.pe-index-layout .cont #shoutbox.front .entry > .user {
    grid-area: user;
    display: flex !important;
    align-items: center;
    justify-content: flex-start;
    align-self: end;
    min-height: 16px;
    text-align: left !important;
    white-space: normal;
    font-size: 11px;
    line-height: 1.15;
}

.pe-index-layout .cont #shoutbox.front .entry > .user a {
    text-decoration: none;
}

.pe-index-layout .cont #shoutbox.front .entry > .user .pe-rank,
.pe-index-layout .cont #shoutbox.front .entry > .user .pe-login {
    font-size: 10px;
    line-height: 1.2;
}

/* TRESC WIADOMOSCI */
.pe-index-layout .cont #shoutbox.front .entry > .text {
    grid-area: message;
    display: block !important;
    align-self: start;
    color: #dce9e3;
    font-size: 11px;
    line-height: 1.28;
    text-align: left;
    white-space: normal;
    word-break: normal;
    overflow-wrap: anywhere;
}

.pe-index-layout .cont #shoutbox.front .entry > .text a {
    color: #8bdaa5;
}

.pe-index-layout .cont #shoutbox.front .entry > .text a:hover {
    color: #c4f6d1;
}

/* MODERACJA I DATA */
.pe-index-layout .cont #shoutbox.front .entry > .info {
    grid-area: info;
    display: flex !important;
    align-items: center;
    justify-content: flex-end;
    justify-self: end;
    align-self: center;
    gap: 4px;
    text-align: right;
    color: #acc3b2;
    font-size: 10px;
    white-space: nowrap;
}

.pe-index-layout .cont #shoutbox.front .entry > .info .date {
    margin-left: 2px;
    white-space: nowrap;
}

.pe-index-layout .cont #shoutbox.front .entry > .info a {
    color: inherit;
    text-decoration: none;
}

.pe-index-layout .cont #shoutbox.front .entry > .info a:hover {
    color: #b8efd0;
}

/* PRZYCISKI E I X */
.pe-index-layout .cont #shoutbox.front .entry > .info .mod {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 21px;
    height: 22px;
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    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 .entry > .info .mod:hover {
    background: #294635;
    color: #ffffff;
}

/* ZWINIETY CZAT */
.pe-index-layout .cont #shoutbox.front.collapsed > .body {
    display: none;
}

/* TELEFONY */
@media screen and (max-width: 800px) {
    .pe-index-layout .cont #shoutbox.front > .headline {
        min-height: 44px;
        padding: 9px 13px !important;
    }

    .pe-index-layout .cont #shoutbox.front > .body {
        padding: 7px;
    }

    .pe-index-layout .cont #shoutbox.front .entry {
        grid-template-columns: 32px minmax(0,1fr);
        grid-template-areas:
            "avatar user"
            "avatar message"
            "info info";
        min-height: 50px;
        padding: 7px 8px;
        column-gap: 7px;
        row-gap: 2px;
    }

    .pe-index-layout .cont #shoutbox.front .entry > .info {
        font-size: 10px;
        padding-top: 2px;
    }
}

/* DOSTEPNOSC */
@media (prefers-reduced-motion: reduce) {
    .pe-index-layout .cont #shoutbox.front .entry,
    .pe-index-layout .cont #shoutbox.front .panel input.text {
        transition: none;
    }
}