.sms_post {
    width: 100%;
    box-sizing: border-box;
    padding: 30px 34px;
    color: var(--maincolor);
    font-family: var(--roboto);
}

.sms_post + .sms_post {
    margin-top: 2px;
}

.sms_wrap {
    width: 100%;
    max-width: 980px;
    margin: 0 auto;
    display: flex;
    align-items: flex-start;
    gap: 22px;
    box-sizing: border-box;
}

.sms_left .sms_wrap {
    flex-direction: row;
}

.sms_right .sms_wrap {
    flex-direction: row-reverse;
}

.sms_userbox {
    flex: 0 0 112px;
    width: 112px;
    box-sizing: border-box;
    text-align: center;
    margin-top: 14px;
}

.sms_avatar_frame {
    position: relative;
    width: 76px;
    height: 76px;
    margin: 0 auto 12px auto;
    padding: 3px;
    box-sizing: border-box;
    border: 1px solid var(--accent1);
    background: var(--dunkelbraun);
    border-radius: 50%;
    overflow: hidden;
}

.sms_avatar_frame a {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
}

.sms_avatar_frame img {
    position: absolute !important;
    inset: 0 !important;
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    min-width: 100% !important;
    min-height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    object-position: center center !important;
}

.sms_username {
    font-family: var(--inria);
    font-size: 15px;
    line-height: 17px;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: var(--accent1_light);
}

.sms_username a {
    color: var(--accent1_light);
    text-decoration: none;
}

.sms_username a:hover {
    color: var(--accent1);
}

.sms_facts {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--accent1_grey);
    font-family: var(--condensed);
    font-size: 11px;
    line-height: 15px;
    color: var(--maincolor);
}

.sms_stecki {
    margin-top: 8px;
}

.sms_stecki a {
    font-family: var(--inria);
    font-size: 11px;
    color: var(--accent1);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.sms_stecki a:hover {
    color: var(--accent1_light);
}

.sms_player {
    margin-top: 8px;
    font-family: var(--condensed);
    font-size: 9px;
    line-height: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent1_grey);
}

.sms_main {
    flex: 1 1 auto;
    min-width: 0;
}

.sms_lane {
    width: min(100%, 690px);
}

.sms_left .sms_lane {
    margin-right: auto;
}

.sms_right .sms_lane {
    margin-left: auto;
}

.sms_meta {
    margin-bottom: 7px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--condensed);
    font-size: 9px;
    line-height: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent1_grey);
}

.sms_left .sms_meta {
    justify-content: flex-start;
    padding-left: 14px;
}

.sms_right .sms_meta {
    justify-content: flex-end;
    padding-right: 14px;
}

.sms_meta a {
    color: var(--accent1_matt);
    text-decoration: none;
}

.sms_meta a:hover {
    color: var(--accent1);
}

.sms_bubble {
    position: relative;
    width: 100%;
    box-sizing: border-box;
    padding: 17px 20px;
    border-radius: 3px;
    border: 1px solid;
}

.sms_left .sms_bubble {
    background: var(--accent1_light);
    border-color: var(--accent1_matt);
    color: var(--dunkelbraun);
}

.sms_right .sms_bubble {
    background: var(--mittelbraun);
    border-color: var(--accent1_grey);
    color: var(--maincolor);
}

.sms_left .sms_bubble:before {
    content: "";
    position: absolute;
    top: 18px;
    left: -14px;
    width: 0;
    height: 0;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-right: 14px solid var(--accent1_matt);
}

.sms_left .sms_bubble:after {
    content: "";
    position: absolute;
    top: 19px;
    left: -12px;
    width: 0;
    height: 0;
    border-top: 9px solid transparent;
    border-bottom: 9px solid transparent;
    border-right: 13px solid var(--accent1_light);
}

.sms_right .sms_bubble:before {
    content: "";
    position: absolute;
    top: 18px;
    right: -14px;
    width: 0;
    height: 0;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-left: 14px solid var(--accent1_grey);
}

.sms_right .sms_bubble:after {
    content: "";
    position: absolute;
    top: 19px;
    right: -12px;
    width: 0;
    height: 0;
    border-top: 9px solid transparent;
    border-bottom: 9px solid transparent;
    border-left: 13px solid var(--mittelbraun);
}

.sms_message {
    font-size: 13px;
    line-height: 1.65;
    text-align: left;
    word-wrap: break-word;
}

.sms_left .sms_message {
    color: var(--dunkelbraun);
}

.sms_right .sms_message {
    color: var(--maincolor);
}

.sms_message p:first-child {
    margin-top: 0;
}

.sms_message p:last-child {
    margin-bottom: 0;
}

.sms_message a {
    color: var(--accent1_dark);
}

.sms_right .sms_message a {
    color: var(--accent1_light);
}

.sms_authorchange {
    margin-top: 5px;
    font-size: 9px;
    color: var(--accent1_grey);
    font-family: var(--condensed);
}

.sms_right .sms_authorchange {
    text-align: right;
}

.sms_controls {
    margin-top: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    opacity: .4;
    transition: .2s ease;
}

.sms_post:hover .sms_controls {
    opacity: 1;
}

.sms_controls_left,
.sms_controls_right {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    align-items: center;
}

.sms_right .sms_controls {
    flex-direction: row-reverse;
}

.sms_controls a {
    display: inline-block;
    padding: 3px 6px;
    box-sizing: border-box;
    border: 1px solid var(--accent1_grey);
    background: transparent;
    color: var(--accent1_grey);
    text-decoration: none;
    font-family: var(--condensed);
    font-size: 9px;
    line-height: 11px;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.sms_controls a:hover {
    border-color: var(--accent1);
    color: var(--accent1_light);
}

@media (max-width: 900px) {
    .sms_post {
        padding: 24px 18px;
    }

    .sms_wrap {
        gap: 14px;
    }

    .sms_userbox {
        flex: 0 0 84px;
        width: 84px;
        margin-top: 10px;
    }

    .sms_avatar_frame {
        width: 60px;
        height: 60px;
    }

    .sms_lane {
        width: 100%;
    }

    .sms_username {
        font-size: 11px;
        line-height: 13px;
    }

    .sms_facts,
    .sms_stecki a,
    .sms_player {
        font-size: 9px;
        line-height: 12px;
    }
}