/*
    Theme Name: Legacy
    Theme URI: https://rxchun.github.io/shop/legacy
    Theme Date: 2021-09-01
    Theme Author: Chun (Gold Developer)
    Theme Author URI: https://rxchun.github.io/shop
    Theme License: Premium
*/

.qa-part-form-profile tr:before {
    display: none;
}

.rquestions a {    
    background-color: transparent !important;
    font: 400 15px/22px Roboto, sans-serif !important;
    color:#000 !important;
}

.rquestions a:hover {    
    color: #1a73e8;
    box-shadow: none !important;
    text-decoration: underline;
}    

.q2am-next-prev-question {
    margin-bottom: 100px;
}

.qa-prev-q {
    float: left;
    padding-left: 20px;
}

.qa-next-q {
    float: right;
    padding-right: 20px;
}

.mfp-bg {
    opacity: 0.9 !important;
}

@media (max-width: 900px) {
    .qa-sidepanel {
        display: block !important; /* Обеспечиваем видимость на мобильных устройствах */
    }
}

.qa-widget-container .qa-q-item-title a {
    font-weight: 400 !important;
    color: #000 !important;
    font: 400 15px/22px Roboto, sans-serif !important;
}

.qa-a-item-avatar-meta {
    clear: both;
}

.qa-header {
    background-color: #eee !important;
}

.sc-topbar-avatar {
    border-radius: 20px;
}

/*Activity Count*/
.qa-activity-count {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.qa-activity-count-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.qa-activity-count-item:first-child {
    margin-right: 10px;
    border-right: 1px solid #ccc;
    padding-right: 10px;
}

.qa-activity-count-data {
    font-weight: bold;
    font-size: 1.5em;
}

.qa-activity-count-label {
    font-size: 1em;
    color: #666;
    margin-top: 5px;
}

.qa-activity-count-item span + span {
    margin-left: 0;
}
/*Activity Count*/

/* Общий контейнер для избранного и голосования */
.qa-vote-favorite-container {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: auto;
    margin: 0;
    padding: 0;
}

/* Стили для контейнера избранного */
.qa-favorite-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: auto;
    text-align: center;
    margin: 0;
    padding: 0;
}

/* Стили для контейнера голосования */
.qa-voting-container {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: auto;
    margin: 0;
    padding: 0;
}

/* Стили для формы внутри контейнера избранного */
.qa-favorite-container form,
.qa-voting-container form {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin: 0;
    padding: 0;
}

/* Стили для звездочки */
.qa-favorite-container .qa-favorite-star {
    font-size: 2.0625rem;
    width: 2.0625rem;
    height: 2.0625rem;
    cursor: pointer;
    color: transparent;
    border-radius: 50%;
    border: 2px solid #000000;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
}

/* Псевдоэлемент для звезды */
.qa-favorite-container .qa-favorite-star:before {
    content: '★';
    color: transparent;
    width: 100%;
    height: 100%;
    text-align: center;
    background-color: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
}

/* Стили при наведении на звезду */
.qa-favorite-container .qa-favorite-star:hover {
    color: #ff9900;
    border-color: #ff9900;
}

/* Стили для выбранной звезды */
.qa-favorite-container .qa-favorite-star.selected {
    color: #ff9900;
    border-color: #ff9900;
}

/* Прозрачный фон для псевдоэлементов кнопок */
.qa-voting-button:after, 
.trigger-more-buttons:after, 
.qa-favorite-button:after, 
.qa-unfavorite-button:after {
    background-color: transparent !important;
}

/*Btns*/
#q_doanswer {
    background-color: #e0e0e0;
    color: #1c3041;
    font-weight: 500;
}

button[value="ask related question"] {
    background-color: #e0e0e0;
    color: #1c3041;
    font-weight: 500;
}


