.cca_setting_wrapper{
    display: flex;
    flex-wrap:wrap
}
.cca_setting_wrapper .cca-menu{
    width: 200px;
    border-radius: 20px;
    padding: 10px;
    margin-right: 20px;
}

.cca_setting_wrapper .cca-menu .selected{
    background-color: #eeeeee;
}
.cca_setting_wrapper .cca-menu a{
    margin-left: 5px;
}

.cca_setting_wrapper .cca-main{
    max-width: 800px;
    min-width: 400px;
}

.cca-like-button,
.cca-liked,
.cca-loading{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    box-sizing: border-box;
    border: 0;
    background: transparent;
    color: #d43f57;
    font-size: 22px;
    line-height: 1;
    vertical-align: middle;
}

.cca-like-button{
    color: #888;
    cursor: pointer;
}

.cca-like-button:hover{
    color: #d43f57;
}

.cca-loading{
    color: #777;
    font-size: 14px;
}

.post-info-wrapper .post-info-ratings .cca-like-button,
.post-info-wrapper .post-info-ratings .cca-liked,
.post-info-wrapper .post-info-ratings .cca-loading{
    position: absolute;
    top: 50%;
    -webkit-transform: translateY(-50%);
    transform: translateY(-50%);
}

.cca-author-tabs{
    display: flex;
    gap: 8px;
    width: 90%;
    max-width: 760px;
    margin: 16px 0;
    clear: both;
}

.cca-author-archive-controls{
    width: 90%;
    max-width: 760px;
    margin: 0 auto 16px;
}

.cca-author-archive-controls .cca-author-tabs{
    width: 100%;
}

#list > .cca-author-tabs,
#list > .cca-mutter-message,
#list > .cca-author-archive-controls{
    grid-column: 1 / -1;
    flex: 0 0 100%!important;
    width: 100%!important;
    max-width: 100%!important;
}

#list > .cca-mutters-archive{
    grid-column: 1 / -1;
    flex: 0 0 100%!important;
    width: 90%!important;
    max-width: 760px!important;
    margin-left: auto;
    margin-right: auto;
}

.cca-author-tab{
    display: inline-block;
    min-width: 96px;
    box-sizing: border-box;
    padding: 8px 14px;
    border: 1px solid #d7d7d7;
    border-radius: 4px;
    background: #fff;
    color: #333;
    text-decoration: none;
    text-align: center;
}

.cca-author-tab.is-active{
    background: #bbb;
    border-color: #bbb;
}

.cca-mutters-archive{
    width: 90%;
    max-width: 760px;
}

.cca-mutter-latest{
    width: 100%;
}

.cca-mutter-form,
.cca-mutter-item,
.cca-mutter-latest{
    box-sizing: border-box;
    margin: 14px 0;
    padding: 14px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fff;
}

.cca-mutter-form label{
    display: block;
    margin-bottom: 6px;
    font-weight: bold;
}

.cca-mutter-form textarea,
.cca-mutter-reply-form textarea,
.cca-mutter-reply-form input[type="text"]{
    box-sizing: border-box;
    width: 100%;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 8px;
}

.cca-mutter-form-row{
    margin-top: 10px;
}

.cca-mutter-help{
    display: block;
    margin-top: 4px;
    font-size: 12px;
    color: #666;
}

.cca-mutter-file-error{
    margin-top: 4px;
    color: #d43f57;
    font-size: 12px;
    font-weight: bold;
}

.cca-mutter-counter,
.cca-mutter-reply-counter{
    margin-top: 4px;
    text-align: right;
    font-size: 12px;
    color: #666;
}

.cca-mutter-counter.is-over,
.cca-mutter-reply-counter.is-over{
    color: #d43f57;
    font-weight: bold;
}

.cca-mutter-checkbox{
    margin-top: 10px;
    font-weight: normal!important;
}

.cca-mutter-submit,
.cca-mutter-reply-form button,
.cca-mutter-delete-form button{
    margin-top: 10px;
    border: 0;
    border-radius: 4px;
    padding: 8px 12px;
    background: #333;
    color: #fff;
    cursor: pointer;
}

.cca-mutter-submit:disabled,
.cca-mutter-reply-form button:disabled{
    background: #aaa;
    cursor: not-allowed;
}

.cca-mutter-delete-form button{
    margin-top: 0;
    background: #777;
}

.cca-mutter-message{
    width: 90%;
    max-width: 760px;
    box-sizing: border-box;
    margin: 12px 0;
    padding: 10px;
    border-radius: 4px;
}

.cca-mutter-message.is-success{
    background: #edf8ed;
    border: 1px solid #9cd69c;
}

.cca-mutter-message.is-error{
    background: #fff0f0;
    border: 1px solid #e1a1a1;
}

.cca-mutter-meta,
.cca-mutter-reply-meta{
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
    font-size: 13px;
}

.cca-mutter-meta img,
.cca-mutter-reply-meta img{
    border-radius: 50%;
}

.cca-mutter-author{
    color: #333;
    font-weight: bold;
    font-size: 15px;
}

.cca-mutter-content{
    margin: 12px 0;
    line-height: 1.7;
    white-space: normal;
    word-break: break-word;
}

.cca-mutter-images{
    display: grid;
    gap: 6px;
    margin: 10px 0;
}

.cca-mutter-images-1{
    grid-template-columns: minmax(0, 1fr);
}

.cca-mutter-images-2,
.cca-mutter-images-3,
.cca-mutter-images-4{
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cca-mutter-image{
    display: block;
    width: 100%;
    overflow: hidden;
    padding: 0;
    border: 0;
    border-radius: 4px;
    background: #f3f3f3;
    aspect-ratio: 16 / 9;
    cursor: zoom-in;
}

.cca-mutter-image img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.cca-mutter-image-modal[hidden]{
    display: none;
}

.cca-mutter-image-modal{
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.cca-mutter-image-modal-back{
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .72);
}

.cca-mutter-image-modal-panel{
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: min(960px, 100%);
    max-height: min(760px, 92vh);
}

.cca-mutter-image-modal-close{
    position: absolute;
    top: -14px;
    right: -14px;
    z-index: 1;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: #fff;
    color: #333;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0, 0, 0, .25);
}

.cca-mutter-image-modal-img{
    display: block;
    max-width: 100%;
    max-height: min(760px, 92vh);
    width: auto;
    height: auto;
    border-radius: 4px;
    background: #fff;
}

.cca-mutter-actions{
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 10px;
    color: #666;
    font-size: 14px;
}

.cca-mutter-like,
.cca-mutter-replies-open{
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    gap: 4px;
    color: #666;
    font-size: 14px;
    line-height: 1;
}

.cca-mutter-like .cca-like-button,
.cca-mutter-like .cca-liked,
.cca-mutter-like .cca-loading{
    position: static;
    -webkit-transform: none;
    transform: none;
}

.cca-mutter-like-count{
    display: inline-flex;
    align-items: center;
    min-width: 1em;
}

.cca-mutter-delete-form{
    margin-left: auto;
}

.cca-mutter-pagination{
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    margin: 24px 0;
}

.cca-mutter-pagination .page-numbers{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    box-sizing: border-box;
    padding: 0 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    color: #333;
    text-decoration: none;
}

.cca-mutter-pagination .page-numbers.current{
    background: #333;
    border-color: #333;
    color: #fff;
}

.cca-mutter-replies{
    display: inline-flex;
    align-items: center;
}

.cca-mutter-replies-open{
    border: 0;
    background: transparent;
    padding: 0;
    cursor: pointer;
}

.cca-mutter-replies-open i{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    color: #888;
    font-size: 22px;
}

.cca-mutter-replies-open:hover{
    color: #3567a8;
}

.cca-mutter-replies-open:hover i{
    color: #3567a8;
}

.cca-mutter-modal[hidden]{
    display: none;
}

.cca-mutter-modal{
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.cca-mutter-modal-back{
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .45);
}

.cca-mutter-modal-panel{
    position: relative;
    width: min(720px, 100%);
    max-height: min(720px, 90vh);
    overflow: hidden;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 12px 40px rgba(0, 0, 0, .25);
}

.cca-mutter-modal-header{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid #e5e5e5;
}

.cca-mutter-modal-title{
    font-weight: bold;
}

.cca-mutter-modal-close{
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 4px;
    background: transparent;
    color: #333;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

.cca-mutter-modal-close:hover{
    background: #f0f0f0;
}

.cca-mutter-modal-body{
    max-height: calc(min(720px, 90vh) - 61px);
    overflow: auto;
    padding: 16px;
}

.cca-mutter-modal-post{
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #eee;
}

.cca-mutter-modal-post-content{
    margin: 12px 0;
    line-height: 1.7;
    word-break: break-word;
}

.cca-mutter-modal-open{
    overflow: hidden;
}

.cca-mutter-reply{
    margin-top: 10px;
    padding: 10px;
    background: #f8f8f8;
    border-radius: 4px;
}

.cca-mutter-reply-content{
    margin-top: 6px;
    word-break: break-word;
}

.cca-mutter-reply-form{
    margin-top: 10px;
}

.cca-mutter-reply-form textarea{
    margin-top: 6px;
}

.cca-mutter-reply-closed,
.cca-mutter-empty,
.cca-mutter-login-message{
    color: #666;
}

.cca-mutter-latest-title{
    margin-bottom: 8px;
    font-weight: bold;
}

.cca-mutter-latest-item{
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 0;
    border-top: 1px solid #eee;
    color: #333;
    text-decoration: none;
}

.cca-mutter-latest-item span{
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cca-mutter-latest-item time{
    flex: 0 0 auto;
    color: #777;
}

.cca-mutter-latest-link{
    display: inline-block;
    margin-top: 8px;
}

@media screen and (max-width: 480px){
    .cca-author-tabs,
    .cca-author-archive-controls,
    .cca-mutters-archive,
    .cca-mutter-latest,
    .cca-mutter-message{
        width: 100%!important;
        max-width: 100%!important;
    }

    #list > .cca-author-tabs,
    #list > .cca-mutters-archive,
    #list > .cca-mutter-message,
    #list > .cca-author-archive-controls{
        display: block!important;
        flex: 0 0 100%!important;
        width: 100%!important;
        max-width: 100%!important;
        margin-left: 0!important;
        margin-right: 0!important;
        padding-left: 0!important;
        padding-right: 0!important;
        box-sizing: border-box;
    }

    .cca-author-tabs{
        flex-wrap: nowrap;
        gap: 6px;
    }

    .cca-author-tab{
        flex: 1 1 0;
        min-width: 0;
    }

    .cca-mutter-images-2,
    .cca-mutter-images-3,
    .cca-mutter-images-4{
        grid-template-columns: minmax(0, 1fr);
    }

    .cca-mutter-item,
    .cca-mutter-form{
        width: 100%;
        padding: 12px;
    }

    .cca-mutter-actions{
        gap: 10px;
    }

    .cca-mutter-delete-form{
        flex-basis: 100%;
        margin-left: 0;
    }

    .cca-mutter-modal{
        align-items: stretch;
        padding: 10px;
    }

    .cca-mutter-modal-panel{
        width: 100%;
        max-height: calc(100vh - 20px);
        margin: auto 0;
    }

    .cca-mutter-modal-body{
        max-height: calc(100vh - 82px);
        padding: 12px;
    }
}
