.shinsei-likebar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
    min-height: 26px;
    margin-top: 8px;
    color: #817970;
    font-size: 11px;
    line-height: 1.4;
    clear: both;
}

.shinsei-likebar[hidden],
.shinsei-like-button[hidden] {
    display: none !important;
}

.shinsei-likebar--post-summary {
    display: block;
    min-height: 0;
    margin-top: 18px;
    padding-top: 9px;
    border-top: 1px solid rgba(139, 124, 111, 0.18);
}

.shinsei-likebar--comment {
    min-height: 23px;
    margin-top: 5px;
    gap: 6px;
    font-size: 10.5px;
}

.shinsei-like-button {
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-width: 24px;
    height: 28px;
    margin: 0;
    padding: 3px 4px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #d97c63;
    font: inherit;
    line-height: 1;
    cursor: pointer;
    opacity: 0.76;
    transition: opacity 140ms ease, background-color 140ms ease, transform 140ms ease;
}

.shinsei-like-button:hover,
.shinsei-like-button:focus-visible,
.shinsei-like-button.is-liked {
    background: rgba(217, 124, 99, 0.09);
    opacity: 1;
}

.shinsei-like-button:hover {
    transform: translateY(-1px);
}

.shinsei-like-button:focus-visible {
    outline: 2px solid rgba(217, 124, 99, 0.28);
    outline-offset: 2px;
}

.shinsei-like-button:disabled {
    cursor: wait;
    opacity: 0.42;
    transform: none;
}

.shinsei-like-button__icon {
    display: block;
    width: 18px;
    height: 18px;
    overflow: visible;
    flex: 0 0 auto;
}

.shinsei-like-button__icon path {
    fill: #090807;
    stroke: #d97c63;
    stroke-width: 1.35;
    stroke-linejoin: round;
}

.shinsei-like-button.is-liked .shinsei-like-button__icon path {
    fill: #1b100c;
    stroke-width: 1.7;
}

.shinsei-like-button__count {
    margin-left: -1px;
    color: #c96f55;
    font-size: 10px;
    font-weight: 600;
    line-height: 1;
}

.shinsei-like-summary {
    color: #817970;
    opacity: 0.84;
}

.shinsei-like-summary:empty {
    display: none;
}

.shinsei-like-summary a {
    font-weight: 600;
    text-decoration: none;
}

.shinsei-like-summary a:hover {
    text-decoration: underline;
}

.shinsei-likebar.is-loading .shinsei-like-summary {
    opacity: 0.55;
}

/* Forum posts: the control lives with the existing top-right post actions. */
.shinsei-like-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.shinsei-like-button--post-top {
    position: relative;
    width: 32px;
    min-width: 32px;
    height: 32px;
    padding: 5px;
    border-radius: 50%;
}

.shinsei-like-button--post-top .shinsei-like-button__icon {
    width: 19px;
    height: 19px;
}

.shinsei-like-button--post-top .shinsei-like-button__count {
    position: absolute;
    margin: 0;
    transform: translate(10px, 10px);
    min-width: 13px;
    height: 13px;
    padding: 0 3px;
    border-radius: 999px;
    background: #181412;
    color: #d97c63;
    font-size: 8.5px;
    line-height: 13px;
    text-align: center;
}

.shinsei-like-created-post-buttons {
    float: right;
    margin: 0 0 4px 8px;
    padding: 0;
    list-style: none;
}

/* Feed updates and comments keep their existing position, only with a larger borderless icon. */
.shinsei-like-button--feed,
.shinsei-like-button--comment {
    min-width: 27px;
    height: 29px;
    padding: 3px;
    border-radius: 50%;
}

.shinsei-like-button--feed .shinsei-like-button__icon,
.shinsei-like-button--comment .shinsei-like-button__icon {
    width: 18px;
    height: 18px;
}

.profilefeed-update > .shinsei-likebar {
    margin-left: 2px;
    margin-bottom: 10px;
}

.profilefeed-comment__body > .shinsei-likebar {
    margin-bottom: 1px;
}

@media (max-width: 700px) {
    .shinsei-likebar {
        gap: 6px;
        font-size: 10.5px;
    }

    .shinsei-like-button--post-top {
    position: relative;
        width: 30px;
        min-width: 30px;
        height: 30px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .shinsei-like-button {
        transition: none;
    }
}

@media print {
    .shinsei-likebar,
    .shinsei-like-action {
        display: none !important;
    }
}

/* Zeina action toolbar integration (0.1.2). */
.topic-tools.post-buttons > .shinsei-like-button--post-top,
.topic-tools.post-buttons > [data-shinsei-like-action] > .shinsei-like-button--post-top {
    display: inline-flex !important;
    visibility: visible !important;
    opacity: 0.82;
    flex: 0 0 auto;
    margin: 0;
    vertical-align: middle;
}

.topic-tools.post-buttons > .shinsei-like-button--post-top:hover,
.topic-tools.post-buttons > .shinsei-like-button--post-top:focus-visible,
.topic-tools.post-buttons > .shinsei-like-button--post-top.is-liked,
.topic-tools.post-buttons > [data-shinsei-like-action] > .shinsei-like-button--post-top:hover,
.topic-tools.post-buttons > [data-shinsei-like-action] > .shinsei-like-button--post-top:focus-visible,
.topic-tools.post-buttons > [data-shinsei-like-action] > .shinsei-like-button--post-top.is-liked {
    opacity: 1;
}
