/* Bottle detail — community ratings + review feed */

.rating-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 28px;
    align-items: flex-end;
    margin-bottom: 8px;
}

.rating-overall-block .label,
.rating-cat .label {
    display: block;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--color-text-muted);
    font-weight: 700;
    margin: 0 0 4px;
}

.rating-overall-value {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.rating-count {
    color: var(--color-text-muted);
    font-size: 0.85rem;
    margin-top: 4px;
}

.rating-cats {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 20px;
}

.rating-cat .value {
    font-weight: 700;
    font-size: 1rem;
}

.star-row {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}

.star-btn {
    width: 36px;
    height: 36px;
    border: 1.5px solid var(--color-border);
    border-radius: 6px;
    background: var(--color-surface);
    color: var(--color-text-muted);
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
}

.star-btn.active {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--color-on-primary);
}

.star-btn:focus-visible {
    outline: 2px solid var(--color-border-focus);
    outline-offset: 2px;
}

.overall-preview {
    font-size: 0.95rem;
    font-weight: 600;
    margin: 4px 0 12px;
    color: var(--color-text);
}

.rating-gate {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    margin: 0 0 12px;
}

.rating-form-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.comment-feed {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 8px;
}

.comment-bubble {
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius);
    padding: 14px 16px;
    background: var(--color-bg);
}

.comment-bubble-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.comment-username {
    font-weight: 700;
    font-size: 0.95rem;
}

.comment-overall-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.comment-overall {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--color-primary);
    cursor: help;
    border-bottom: 1px dotted var(--color-primary);
    background: none;
    border-top: none;
    border-left: none;
    border-right: none;
    padding: 0;
    font-family: inherit;
}

.comment-overall:focus-visible {
    outline: 2px solid var(--color-border-focus);
    outline-offset: 2px;
}

.subrating-tooltip {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 6px);
    min-width: 180px;
    z-index: 5;
    background: var(--color-surface-elevated);
    border: 1.5px solid var(--color-border);
    border-radius: 6px;
    padding: 10px 12px;
    box-shadow: var(--shadow);
    font-size: 0.8rem;
    color: var(--color-text);
}

.comment-overall-wrap:hover .subrating-tooltip,
.comment-overall-wrap:focus-within .subrating-tooltip {
    display: block;
}

.subrating-tooltip div {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 4px;
}

.subrating-tooltip div:last-child {
    margin-bottom: 0;
}

.comment-text {
    margin: 0;
    line-height: 1.5;
    font-size: 0.95rem;
    white-space: pre-wrap;
    word-break: break-word;
}

.comment-empty {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    margin: 0;
}
