/* ANONS643 — реакции. Не вмешивается в оформление рекламных блоков. */

.event-content > .anons643-reaction-summary {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.3;
    pointer-events: none;
}

.anons643-reaction-summary[hidden] {
    display: none !important;
}

.anons643-reaction-count {
    white-space: nowrap;
}

.anons643-reactions-detail {
    margin-top: 18px;
}

.anons643-reactions-detail h2 {
    margin-bottom: 12px;
}

.anons643-reaction-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.anons643-reaction-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 40px;
    padding: 8px 12px;
    border: 1px solid var(--border, #d5d9df);
    border-radius: 10px;
    background: var(--surface, #fff);
    color: var(--text, #222);
    font: inherit;
    cursor: pointer;
    transition: background .15s ease, border-color .15s ease, opacity .15s ease;
}

.anons643-reaction-button:hover:not(:disabled) {
    border-color: var(--accent, #4f8ef7);
}

.anons643-reaction-button.is-reacted {
    border-color: var(--accent, #4f8ef7);
    background: var(--surface-secondary, #eef4ff);
}

.anons643-reaction-button:disabled {
    cursor: default;
    opacity: .78;
}

.anons643-reaction-button.is-pending {
    opacity: .55;
}

.anons643-reaction-button-count {
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

body[data-theme="dark"] .anons643-reaction-button.is-reacted {
    background: var(--surface-secondary, #303744);
}

@media (max-width: 600px) {
    .event-content > .anons643-reaction-summary {
        gap: 7px;
        font-size: 12px;
    }

    .anons643-reaction-buttons {
        gap: 7px;
    }

    .anons643-reaction-button {
        padding: 8px 10px;
        font-size: 14px;
    }
}


/* Принудительный цвет галочки реакции «Планирую участвовать» */
/* .anons643-reaction-check {
    display: inline-block !important;
    color: #16a34a !important;
    -webkit-text-fill-color: #16a34a !important;
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 1.1em;
    font-weight: 700;
    line-height: 1;
    margin-right: 0.15em;
    vertical-align: -0.03em;
    opacity: 1 !important;
    filter: none !important;
} */


/* CSS-галочка: одинаковый цвет на Android и iOS */
/* .anons643-reaction-check {
    display: inline-block;
    position: relative;
    width: 15px;
    height: 15px;
    margin-right: 3px;
    flex: 0 0 15px;
    vertical-align: -2px;
    color: #16a34a;
}

.anons643-reaction-check::before {
    content: "";
    position: absolute;
    left: 2px;
    top: -1px;
    width: 5px;
    height: 11px;
    border-right: 4px solid #16a34a;
    border-bottom: 5px solid #16a34a;
    transform: rotate(45deg);
} */

.anons643-reaction-check {
    display: inline-block;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--text-secondary);
    position: relative;
}
.anons643-reaction-check::after {
    content: "";
    position: absolute;
    left: 4px;
    top: 2px;
    width: 4px;
    height: 7px;
    border: solid var(--surface-secondary);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* .anons643-forum-comments-count {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
} */

