/*
 * tora-vote-buttons — 評価ボタン スタイル
 * 阪神カラー（黒×黄）。Cocoon / AdSense と干渉しない最小スタイル。
 * クラス名はすべて .ty-vote- プレフィックスで衝突を防ぐ。
 */

.ty-vote-wrap {
    margin: 1.8em 0 1em;
    padding: 1.1em 1em 1.2em;
    background: #1a1a1a;
    border-radius: 6px;
    text-align: center;
    box-sizing: border-box;
}

.ty-vote-title {
    color: #ffe201;
    font-size: .85em;
    font-weight: bold;
    margin: 0 0 .75em;
    letter-spacing: .06em;
}

.ty-vote-buttons {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    gap: .75em;
    justify-content: center;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
}

.ty-vote-btn {
    display: -webkit-inline-box;
    display: -ms-inline-flexbox;
    display: inline-flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    gap: .2em;
    padding: .55em 1.3em .6em;
    min-width: 110px;
    border: 2px solid #ffe201;
    border-radius: 4px;
    background: #000;
    color: #ffe201;
    font-size: 1em;
    font-family: inherit;
    font-weight: bold;
    cursor: pointer;
    -webkit-transition: background .15s, color .15s;
    transition: background .15s, color .15s;
    -webkit-tap-highlight-color: transparent;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.ty-vote-btn:hover,
.ty-vote-btn:focus-visible {
    background: #ffe201;
    color: #000;
    outline: none;
}

/* 投票済みのボタンは押された状態で固定 */
.ty-vote-btn--voted {
    background: #ffe201;
    color: #000;
}

.ty-vote-btn:disabled {
    opacity: .55;
    cursor: default;
}

.ty-vote-btn__label {
    font-size: 1.1em;
    line-height: 1.2;
}

.ty-vote-btn__count {
    font-size: .78em;
    opacity: .85;
    min-width: 2em;
}

/* スマホ幅対応 */
@media (max-width: 400px) {
    .ty-vote-btn {
        min-width: 90px;
        padding: .5em .9em;
        font-size: .95em;
    }
}
